@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--bg:#faf9f5;--paper:#fff;--ink:#222b29;--muted:#7c8581;--line:#e8e9e4;--green:#2c6b60;--soft:#e7efeb;--sand:#f5eee5;--orange:#c89365;--blue:#e4eef1;--shadow:0 5px 25px rgba(43,58,49,.05);--r:18px}
*{box-sizing:border-box}html{background:var(--bg);color:var(--ink);-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','PingFang SC','Helvetica Neue',Arial,sans-serif;font-size:14px;line-height:1.45}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a2beb4;outline-offset:2px}.initial-load{text-align:center;margin:35vh auto;font-size:16px;letter-spacing:3px}.initial-load small{font-size:12px;letter-spacing:0;color:var(--muted)}.shell{width:min(100%,490px);min-height:100dvh;margin:0 auto;background:var(--bg);box-shadow:0 0 65px rgba(0,0,0,.055);position:relative;padding-bottom:calc(88px + env(safe-area-inset-bottom));overflow-x:hidden}@media(min-width:760px){body{background:#e8ece8}.shell{margin:24px auto;min-height:calc(100dvh - 48px);border-radius:26px;overflow:hidden}.bottom-nav{border-radius:0 0 26px 26px}}.head{padding:24px 20px 11px;display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--green);text-transform:uppercase}.title{font-family:Georgia,'Times New Roman','Songti SC',serif;font-size:31px;letter-spacing:-.8px;line-height:1.14;margin:5px 0 0;font-weight:600}.sub{font-size:12px;color:var(--muted)}.head-actions{display:flex;gap:6px}.round{height:36px;width:36px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--paper);font-size:17px}.page{padding:0 17px 26px}.photo{position:relative;overflow:hidden;background:linear-gradient(135deg,#d0e6e3,#f4cba0 62%,#83a7a3)}.photo::before{content:'';position:absolute;inset:0;background-image:var(--photo);background-size:cover;background-position:center;filter:saturate(.91)}.photo::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,40,37,.55),transparent 72%)}.hero{height:238px;border-radius:20px;margin-top:8px}.hero-txt{position:absolute;bottom:19px;left:18px;right:20px;color:white;z-index:1}.hero-txt h2{font-family:Georgia,'Songti SC',serif;font-size:30px;line-height:1.07;margin:5px 0;font-weight:500}.hero-txt .hero-meta{font-size:12px;opacity:.93}.hero-label{font-size:10px;letter-spacing:2px;font-weight:700}.overview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:13px 0 23px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 7px;text-align:center}.stat b{display:block;font-family:Georgia,serif;font-size:23px}.stat small{color:var(--muted);font-size:10px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:22px 1px 12px}.section-head h3{font-size:15px;margin:0;letter-spacing:-.2px}.tertiary{border:0;background:none;color:var(--green);font-size:12px;font-weight:700;padding:5px}.city-card{display:flex;gap:13px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:10px;margin:9px 0;text-align:left;width:100%}.city-thumb{height:69px;width:83px;flex:none;border-radius:10px}.city-text{flex:1}.city-text strong{font-size:16px}.city-text p{margin:4px 0 0;color:var(--muted);font-size:11px}.muted{color:var(--muted)}.arrow{font-size:19px;color:#8aa29a}.note-ribbon{display:flex;gap:10px;padding:12px 13px;border-radius:13px;background:var(--soft);font-size:12px;color:#3d645a;align-items:center;margin-top:14px}.datebar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;position:sticky;top:0;z-index:10;padding:9px 17px;background:rgba(250,249,245,.97);backdrop-filter:blur(12px);border-bottom:1px solid #f0f0ed}.date{border:0;background:transparent;border-radius:11px;padding:6px 0 7px;display:flex;align-items:center;flex-direction:column;gap:3px;color:#68716e}.date span{font-size:10px;letter-spacing:.3px}.date b{font-size:14px}.date.selected{background:var(--green);color:white}.dayhead{display:flex;justify-content:space-between;align-items:flex-end;padding:16px 3px 10px}.dayhead h2{font-size:23px;margin:3px 0 1px;letter-spacing:-.6px}.day-cover{height:145px;border-radius:16px;margin-bottom:12px}.cover-caption{position:absolute;bottom:12px;left:13px;color:#fff;z-index:1;font-weight:650;font-size:14px;text-shadow:0 1px 10px #0007}.cover-caption small{display:block;font-weight:450;font-size:11px;margin-top:3px}.btn{border:0;border-radius:11px;padding:10px 13px;background:var(--green);color:white;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn.ghost{background:#eef2ef;color:var(--green)}.btn.outline{background:white;color:var(--ink);border:1px solid var(--line)}.btn.tiny{font-size:11px;padding:7px 10px;border-radius:9px}.next{border-radius:13px;border:1px solid #dbe9e1;background:linear-gradient(100deg,#eaf3ec,#f4f6ef);padding:12px 13px;margin:6px 0 15px;display:flex;gap:9px;align-items:center}.next-label{font-size:9px;color:var(--green);font-weight:800;letter-spacing:1.3px}.next strong{font-size:13px;display:block;margin:3px 0}.next .go{margin-left:auto;height:34px;width:34px;flex:none;border:0;border-radius:10px;background:white;color:var(--green);font-size:17px}.timelist{position:relative;margin-top:0}.timelist .event{display:grid;grid-template-columns:47px 29px minmax(0,1fr) 26px;align-items:stretch;gap:6px;min-height:60px}.time{font-size:12px;color:#697774;font-weight:650;letter-spacing:-.3px;padding-top:16px;font-variant-numeric:tabular-nums}.rail{display:flex;align-items:center;flex-direction:column;position:relative}.rail::after{content:'';background:#dce5df;position:absolute;top:34px;bottom:0;width:1px;left:50%;z-index:0}.event:last-child .rail::after{display:none}.bubble{border-radius:50%;width:28px;height:28px;background:#e8f0eb;display:grid;place-items:center;font-size:14px;margin-top:9px;position:relative;z-index:1}.event-body{padding:9px 0 11px;text-align:left;border-bottom:1px solid var(--line);cursor:pointer;min-width:0}.event:last-child .event-body{border:0}.event-title{font-size:13px;font-weight:710;line-height:1.4;overflow-wrap:anywhere}.event-sub{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.4}.event-icon{display:flex;align-items:flex-start;justify-content:center;padding-top:14px;color:#8d9a95;font-size:16px;cursor:pointer}.completed .event-title{text-decoration:line-through;text-decoration-thickness:1px;color:#88938d}.completed .bubble{background:#d7ede2}.event.featured-event{min-height:81px}.event-inline-thumb{float:right;width:61px;height:64px;border-radius:9px;margin:0 0 6px 7px}.event.flight-event{display:block;margin:8px 0 13px}.flightcard{background:white;border:1px solid var(--line);border-radius:16px;padding:14px;margin:0 0 8px;cursor:pointer}.flighttop{display:flex;justify-content:space-between;font-size:10px;color:var(--green);letter-spacing:1px;font-weight:750}.route{display:flex;align-items:center;justify-content:space-between;margin:15px 0 11px}.airport{text-align:center}.airport b{font-size:22px;letter-spacing:-.6px}.airport small{display:block;font-size:10px;color:var(--muted)}.plane-mid{flex:1;color:#92aea1;font-size:18px;text-align:center;position:relative}.plane-mid:before{content:'';position:absolute;left:5%;right:5%;top:50%;border-top:1px dashed #b2c4bb;z-index:0}.plane-mid span{position:relative;background:white;padding:0 11px}.flightbottom{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding-top:10px;color:var(--muted);font-size:11px}.stay{background:white;border:1px solid var(--line);border-radius:13px;margin:17px 0 4px;padding:12px;display:flex;align-items:center;gap:10px}.stay-icon{width:38px;height:38px;background:#e8f0ec;display:grid;place-items:center;border-radius:11px;font-size:17px}.stay small{display:block;font-size:10px;color:var(--muted);letter-spacing:.6px}.stay strong{font-size:13px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,490px);height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);backdrop-filter:blur(14px)}.bottom-nav button{border:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#8f9b97;font-size:10px}.bottom-nav button .navicon{font-size:21px;line-height:1}.bottom-nav button.current{color:var(--green);font-weight:800}.chiprow{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:10px 0 13px}.chiprow::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);border-radius:20px;padding:7px 12px;background:white;white-space:nowrap;font-size:11px;color:#6d7872}.chip.on{background:var(--green);color:white;border-color:var(--green)}.mapframe{height:212px;background:#e2ebdf;border-radius:15px;overflow:hidden;position:relative}.mapframe iframe{width:100%;height:100%;border:0}.mapframe .offline-note{position:absolute;bottom:7px;left:8px;background:#fffe;padding:6px 8px;border-radius:7px;font-size:10px;pointer-events:none}.place{display:flex;align-items:center;gap:10px;text-align:left;background:white;border:1px solid var(--line);padding:11px 12px;border-radius:12px;margin-bottom:7px}.place .place-icon{font-size:17px;width:25px;text-align:center}.place-main{flex:1;min-width:0}.place-main strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-main small{font-size:10px;color:var(--muted)}.place .linkbtn{border:0;color:var(--green);background:var(--soft);font-size:11px;padding:7px 9px;border-radius:8px}.info-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;margin-bottom:10px}.info-card .big{font-size:14px;font-weight:750}.info-card .small{font-size:11px;color:var(--muted);margin:4px 0}.itemline{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.itemline:last-child{border:0}.itemline .left{flex:1}.itemline .left strong{font-size:12px;display:block}.itemline .left small{font-size:11px;color:var(--muted)}.status{font-size:10px;padding:4px 8px;border-radius:20px;color:#79613f;background:#f4ecd9;white-space:nowrap}.status.booked{background:#e2f1e7;color:#387251}.status.pending{background:#fff0df;color:#a16b30}.status.confirm{background:#edf0f1;color:#6b7779}.taskcheck{accent-color:var(--green);width:18px;height:18px}.empty{padding:25px;text-align:center;color:var(--muted);font-size:12px}.small-foot{text-align:center;color:#a1aaa4;font-size:10px;padding:19px 0}.overlay{position:fixed;inset:0;background:rgba(24,36,33,.43);z-index:30;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;width:min(100%,490px);border-radius:23px 23px 0 0;padding:7px 19px calc(25px + env(safe-area-inset-bottom));max-height:91dvh;overflow:auto;box-shadow:0 -20px 50px #0001;animation:rise .19s ease-out}@keyframes rise{from{transform:translateY(30px);opacity:.6}to{transform:translateY(0);opacity:1}}.handle{height:4px;width:36px;background:#d9ddda;border-radius:8px;margin:3px auto 17px}.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.sheet-head h2{font-size:19px;margin:3px 0}.close{background:#f1f2f0;border:0;border-radius:50%;height:31px;width:31px;font-size:17px;color:#68736e}.sheetphoto{height:145px;border-radius:14px;margin:14px 0 10px}.tag{display:inline-block;background:var(--soft);color:var(--green);font-size:10px;padding:5px 8px;border-radius:12px;margin:5px 5px 0 0}.details{font-size:12px;line-height:1.65;color:#56635d;white-space:pre-wrap;margin:12px 0}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:13px 0}.actions a,.actions button{background:#f1f5f2;color:var(--green);border:0;padding:12px 8px;border-radius:11px;text-align:center;font-size:12px;font-weight:750}.field{display:flex;flex-direction:column;gap:6px;margin:11px 0}.field label{font-size:11px;font-weight:700;color:#65756c}.field input,.field textarea,.field select{padding:11px 12px;border:1px solid #dce3dd;border-radius:11px;background:#fcfcfb;color:#202823;outline:none;width:100%}.field textarea{resize:vertical;min-height:65px}.fieldgroup{display:grid;grid-template-columns:1fr 1fr;gap:9px}.flex-actions{display:flex;gap:8px;margin-top:17px}.flex-actions .btn{flex:1}.danger{color:#b44b43!important}.edit-help{font-size:11px;color:var(--muted)}.toast{position:fixed;z-index:50;bottom:calc(83px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#263a33;color:#fff;padding:10px 15px;border-radius:12px;font-size:12px;box-shadow:0 9px 25px #0003;max-width:90%;text-align:center}.mainloading{height:50vh;display:grid;place-items:center}.photo-credit{font-size:10px;color:#89958c;margin:10px 0}.split-row{display:flex;gap:8px}.split-row>*{flex:1}.action-header{display:flex;align-items:center;justify-content:space-between;padding:17px 0 6px}.action-header h2{margin:0;font-size:22px}.calendar-subtitle{font-size:11px;color:var(--muted);margin-top:2px}.pill{font-size:10px;padding:4px 8px;border-radius:30px;background:var(--soft);color:var(--green)}.card-alert{background:#fff7e8;padding:10px 12px;border-radius:10px;color:#795e34;font-size:11px;margin:10px 0}.textbutton{border:0;background:none;color:var(--green);font-size:12px;font-weight:700;padding:5px}.tabline{display:flex;border-bottom:1px solid var(--line);gap:19px;margin-bottom:13px}.tabline button{border:0;background:none;padding:11px 0;font-weight:700;font-size:12px;color:#8b9890}.tabline button.on{border-bottom:2px solid var(--green);color:var(--green)}.mapfilters{display:flex;gap:7px}.copyright{font-size:10px;color:#8f9892;padding:12px 4px}.settings-sub{font-size:11px;color:var(--muted);line-height:1.6}.avoid-overflow{overflow-wrap:anywhere}
/* Thailand Escape v2 — compact, Thai-inspired, light-only itinerary UI */
:root{color-scheme:light;--bg:#faf9f7;--paper:#fff;--ink:#262a28;--muted:#7f8781;--line:#ebe9e5;--green:#30695e;--soft:#eaf1ec;--sand:#f5eade;--orange:#bd8356;--blue:#e4eef0;--shadow:0 3px 15px rgba(63,67,58,.045);--r:15px}
html{background:var(--bg)}
body,button,input,select,textarea{font-family:'Inter','Noto Sans SC',sans-serif;letter-spacing:-.1px}
.shell{background:var(--bg);padding-bottom:calc(78px + env(safe-area-inset-bottom))}
.head{padding:17px 18px 9px}.eyebrow{font-size:8px;letter-spacing:1.3px;font-weight:700}.title,.hero-txt h2{font-family:'Inter','Noto Sans SC',sans-serif;font-weight:700;letter-spacing:-.45px}
.title{font-size:17px;margin:3px 0 0}.round{height:33px;width:33px;font-size:14px;background:#fff;box-shadow:var(--shadow)}
.page{padding:0 15px 22px}.hero{height:156px;border-radius:17px;margin-top:4px}.hero-txt{left:15px;bottom:13px}.hero-txt h2{font-size:22px;line-height:1.11;margin:5px 0}.hero-label{font-size:9px}.hero-txt .hero-meta{font-size:10px}
.overview-stats{gap:7px;margin:10px 0 16px}.stat{padding:9px 4px;border-radius:12px}.stat b{font-family:'Inter','Noto Sans SC',sans-serif;font-size:17px;font-weight:700}.stat small{font-size:8px}
.section-head{margin:16px 2px 9px}.section-head h3{font-size:12px;font-weight:700}.tertiary{font-size:10px}.city-card{margin:5px 0;padding:9px 10px;border-radius:13px;gap:9px;box-shadow:var(--shadow)}.city-text strong{font-size:12px!important}.city-text p{font-size:10px;margin:2px 0 0}.city-emoji{height:43px;width:43px;flex:none;display:grid;place-items:center;background:#eef3ed;border-radius:11px;font-size:19px}.city-emoji.small{width:39px;height:39px;font-size:16px}.note-ribbon{background:#edf3ee;margin-top:12px;padding:10px}
.datebar{padding:6px 15px;gap:4px;top:0}.date{border-radius:9px;padding:6px 0;gap:1px}.date span{font-size:9px}.date b{font-size:12px}
.thai-dayhead{padding:13px 2px 9px;align-items:center}.dayhead h2{font-size:18px;letter-spacing:-.25px;margin:3px 0 2px;font-weight:700}.dayhead .sub{font-size:10px;line-height:1.35}.day-summary{background:linear-gradient(135deg,#fffaf4,#f4f8f5);border:1px solid var(--line);border-radius:15px;padding:12px 10px 10px;margin:0 0 12px;box-shadow:var(--shadow);position:relative;overflow:hidden}.day-summary:after{content:'🌴';font-size:29px;opacity:.12;position:absolute;right:8px;top:-10px;transform:rotate(-14deg)}.day-keywords{font-size:11px;color:#7e795f;margin-bottom:11px;position:relative;z-index:1}.daily-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center}.daily-stats>div{padding:2px 5px;border-right:1px solid #e6e3db;display:flex;flex-direction:column;gap:2px;min-width:0}.daily-stats>div:last-child{border:0}.daily-stats strong{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.daily-stats small{font-size:9px;color:var(--muted)}.next{padding:10px 11px;margin:0 0 12px;border-radius:12px}.next strong{font-size:11px}.next-label{font-size:8px}.next .go{font-size:13px}
.timelist{margin:0}.timelist .event{grid-template-columns:40px 23px minmax(0,1fr) 19px;gap:5px;min-height:55px;margin:0}.time{font-size:10px;padding-top:15px}.rail::after{top:27px;background:#ddd9d1}.bubble{width:22px;height:22px;font-size:11px;margin-top:9px;background:#f2e8d9;box-shadow:0 0 0 2px white}.event:nth-child(3n + 1) .bubble{background:#e4f1eb}.event:nth-child(3n + 2) .bubble{background:#f7e7df}.event-body{padding:9px 10px 9px;background:#fff;border:1px solid #ebeae6;border-radius:12px;margin-bottom:5px;box-shadow:0 2px 8px #403a2810;min-height:49px}.event-title{font-size:11.5px;font-weight:700;line-height:1.35;letter-spacing:-.15px}.event-sub{font-size:9.5px;margin-top:3px;line-height:1.4;color:#7b827b}.event-icon{border:0;background:transparent;padding-top:17px;color:#a7aaa5;font-size:17px}.event.featured-event{min-height:57px}.event-inline-thumb{height:43px;width:47px;border-radius:9px;margin:0 0 3px 8px}.status{font-size:8px;padding:3px 7px;display:inline-block;margin-top:5px}.flightcard{padding:11px;border-radius:14px}.flighttop{font-size:8px}.route{margin:10px 0}.airport b{font-size:17px}.plane-mid{font-size:14px}.flightbottom{font-size:9px}.stay{padding:10px;margin:13px 0 3px}.stay-icon{font-size:14px;height:33px;width:33px}.stay strong{font-size:11px}
.bottom-nav{height:calc(59px + env(safe-area-inset-bottom));box-shadow:0 -7px 22px #342d2510}.bottom-nav button{gap:3px;font-size:9px}.bottom-nav button .navicon{font-size:16px}.chip{padding:7px 11px;font-size:10px}.place{padding:10px;border-radius:12px;gap:8px}.place .place-icon{font-size:13px;width:20px}.place-main strong{font-size:11px}.place-main small{font-size:9px}.linkbtn{font-size:10px}
.action-header{padding:14px 0 7px}.action-header h2{font-size:17px}.info-card{border-radius:13px;padding:11px 12px;margin-bottom:9px}.info-card .big{font-size:12px}.info-card .small{font-size:10px}.itemline{padding:9px 0}.itemline .left strong{font-size:11px}.itemline .left small{font-size:9px}.task-line{gap:10px}.task-text{font-size:11px!important;line-height:1.4}.taskcheck{height:17px;width:17px;flex:none}.taskcheck:disabled{opacity:.55}.progress-track{height:5px;border-radius:9px;background:#d5e1d7;overflow:hidden;margin-top:10px}.progress-fill{height:100%;background:var(--green);border-radius:9px}.task-progress{background:#ecf3ee;border-color:#ecf3ee}
.sheet{border-radius:20px 20px 0 0;padding:7px 16px calc(23px + env(safe-area-inset-bottom))}.sheet-head h2{font-size:16px}.sheetphoto{height:105px}.details{font-size:11px}.tag{font-size:9px}.actions a,.actions button{font-size:10px}.field input,.field select,.field textarea{font-size:12px}.field label{font-size:10px}.owner-sheet{text-align:left}.owner-info{border-radius:13px;background:#edf3ef;padding:12px;color:#537066;font-size:11px;line-height:1.65;margin:15px 0}.owner-submit{width:100%;height:43px;font-size:12px;margin:12px 0 8px}.owner-sheet .field input{font-variant-numeric:tabular-nums;letter-spacing:5px;font-size:18px;text-align:center}.owner-sheet .field input::placeholder{letter-spacing:4px;color:#afb8b0}
.btn{font-size:11px;border-radius:10px;font-weight:700}.btn.tiny{font-size:10px}.tag{background:#f3e8d6;color:#795c38}.card-alert{font-size:10px}.settings-sub{font-size:10px}.small-foot{font-size:9px;margin-top:3px}
@media (max-width:350px){.page{padding:0 12px 22px}.head{padding:15px 14px 9px}.datebar{padding:6px 12px}.daily-stats strong{font-size:11px}.event-title{font-size:11px}.city-text p{font-size:9px}}

/* Thailand Escape v2.1 · larger iPhone-readable typography & bottom Font Awesome icons */
.bottom-nav{height:calc(69px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav button{gap:4px;font-size:11px;font-weight:600;min-height:46px}
.bottom-nav button .navicon{font-size:23px;width:27px;height:26px;display:grid;place-items:center}
.bottom-nav button .navicon .fa-solid{font-size:23px}
.title{font-size:18px}.action-header h2{font-size:21px}.section-head h3{font-size:17px}
.itemline .left strong{font-size:15px;line-height:1.35}.itemline .left small{font-size:13px;line-height:1.45}
.itemline.booking-item{gap:10px;padding:14px 0;align-items:center}.booking-item .left{min-width:0}
.booking-item .status{font-size:12px;flex-shrink:0;white-space:nowrap;padding:5px 9px}
.event-title{font-size:15px;line-height:1.32}.event-sub{font-size:12.5px}.bubble{font-size:14px;width:24px;height:24px}
.time{font-size:12.5px}.event-body{min-height:57px;padding:10px 11px}
.flighttop{font-size:13px;letter-spacing:0}.flighttop small{font-size:11px;color:var(--muted)}.flighttop>span:last-child{font-size:11px;color:var(--muted)}
.airport b{font-size:22px}.airport small{font-size:12px}.flightbottom{font-size:11px}
.dayhead h2{font-size:20px}.daily-stats strong{font-size:13px}.day-keywords{font-size:12px}
.task-text{font-size:14px!important}.info-card .big{font-size:15px}.info-card .small{font-size:12px}
.place-main strong{font-size:14px}.place-main small{font-size:12px}.sheet-head h2{font-size:20px}.details{font-size:13px}
.status{font-size:11px}.sheet .actions a,.sheet .actions button{font-size:12px}
/* Prevent photos of unverified venues from being replaced by generic pictures */
.photo:not([style])::before{display:none}

/* v2.2: overview day links follow app palette on iPhone Safari, never browser blue */
.city-card,.city-card:link,.city-card:visited{appearance:none;-webkit-appearance:none;color:#223a32;-webkit-text-fill-color:#223a32;}
.city-card .city-text strong{color:#223a32!important;-webkit-text-fill-color:#223a32!important;}
.city-card .city-text p{color:#64736b!important;-webkit-text-fill-color:#64736b!important;}
.city-card .arrow{color:#2f695b!important;-webkit-text-fill-color:#2f695b!important;}
.city-card:focus-visible{outline:2px solid #398876;outline-offset:2px;}
.page button.tertiary{color:#236353;-webkit-text-fill-color:#236353;}

/* Thailand Escape V2.4 · interactive daily map and consistent sage action icons */
.head-actions .round,.action-header .round{color:var(--green)!important;}
.head-actions .round i,.action-header .round i{color:var(--green)!important;}
.route-page{padding-bottom:22px;}
.route-day-chips,.route-type-chips{overflow-x:auto;white-space:nowrap;scrollbar-width:none;margin:8px 0 10px;padding-bottom:4px;}
.route-day-chips::-webkit-scrollbar,.route-type-chips::-webkit-scrollbar{display:none;}
.route-day-chips .chip,.route-type-chips .chip{flex:0 0 auto;}
.route-map-frame{height:min(38dvh,320px);min-height:238px;border:1px solid var(--line);background:#edf1ec;border-radius:15px;overflow:hidden;position:relative;}
#trip-route-map{width:100%;height:100%;z-index:0;}
.route-map-loading{position:absolute;z-index:0;left:0;right:0;top:44%;text-align:center;font-size:13px;color:var(--green);pointer-events:none;}
.route-map-loading small{display:block;font-size:11px;color:var(--muted);margin-top:5px;}
.route-map-summary{display:flex;gap:9px;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:10px 1px 5px;flex-wrap:wrap;}
.route-map-summary strong{color:var(--green);} .route-swatch{display:inline-flex;align-items:center;gap:4px;font-size:10px;}
.route-swatch i{width:9px;height:9px;background:var(--green);border-radius:50%;display:block;}
.route-header{display:flex;align-items:center;justify-content:space-between;padding:6px 0 3px;}
.route-header h3{font-size:16px;font-weight:650;margin:0;color:var(--ink);}.route-header h3 span{color:var(--muted);font-weight:450;font-size:12px;}
.route-stops{display:flex;flex-direction:column;gap:8px;margin-top:7px;}
.route-stop{background:var(--paper);border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:4px;min-height:65px;box-shadow:var(--shadow);}
.route-stop.selected{border-color:#84aa9d;background:#f1f7f2;}
.route-stop-focus{display:flex;gap:10px;align-items:center;flex:1;min-width:0;text-align:left;background:none;border:0;padding:10px 4px 10px 10px;cursor:pointer;color:var(--ink);}
.route-stop-no{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;flex:none;font-weight:700;font-size:12px;}
.route-stop-no.located{background:var(--green);color:#fff;}.route-stop-no.unlocated{color:#8a918b;background:#eef0ed;}
.route-stop-info{min-width:0;display:flex;flex-direction:column;gap:3px;}.route-stop-info strong{font-size:13px;line-height:1.3;font-weight:650;color:var(--ink);overflow-wrap:anywhere;}
.route-stop-info small{font-size:11px;color:var(--muted);line-height:1.4;white-space:normal;}
.route-stop-info em{font-style:normal;font-size:10px;color:var(--green);}.route-stop:has(.unlocated) .route-stop-info em{color:#9c8a71;}
.route-stop-maps{width:42px;height:45px;flex:none;display:grid;place-items:center;color:var(--green)!important;font-size:15px;border-radius:12px;margin-right:3px;}
.route-google-route{margin-top:15px;width:100%;font-size:13px;padding:12px 10px;background:var(--green);color:white!important;}
.route-fineprint{font-size:10px;color:var(--muted);margin:8px 2px 15px;line-height:1.5;}
.route-smallnote{font-size:11px;color:#6d776f;background:var(--soft);border-radius:12px;padding:11px 12px;line-height:1.65;margin:13px 0 8px;}
.route-pin-wrapper{border:0;background:none;} .route-pin{display:grid;place-items:center;position:relative;height:31px;width:31px;color:white;background:var(--green);font-weight:800;font-size:13px;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 10px #152d2540;}
.trip-pin-popup{font-family:'Inter','Noto Sans SC',sans-serif;display:flex;flex-direction:column;gap:5px;min-width:125px;max-width:200px;}
.trip-pin-popup strong{font-size:12px;color:var(--ink)}.trip-pin-popup small{font-size:10px;color:var(--muted)}.trip-pin-popup a{color:var(--green)!important;font-size:11px;font-weight:650;}
.route-map-frame .leaflet-control-zoom a{color:var(--green)!important;} .route-map-frame .leaflet-control-attribution{font-size:9px;background:#fffD!important;color:#6b746e!important;}
.route-map-frame .leaflet-control-attribution a{color:var(--green)!important;}
.route-map-frame .leaflet-popup-content-wrapper,.route-map-frame .leaflet-popup-tip{background:#fff;}
.route-map-frame .leaflet-popup-content{margin:11px 14px;}
@media(max-width:360px){.route-map-frame{height:245px}.route-stop-info strong{font-size:12px}.route-stop-info small{font-size:10px}}
/* Compact day controls at the end of the itinerary. */
.day-navigation{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:12px 0 0;border-top:1px solid var(--line)}
.day-navigation button.btn{min-height:44px;background:transparent;border:0;box-shadow:none;color:var(--green);font-size:12px;padding:8px 4px;border-radius:8px}
.day-navigation button:last-child{justify-self:end}.day-navigation button:first-child{justify-self:start}
.day-position{font-size:10px;color:var(--muted);text-align:center}
.daily-page{touch-action:pan-y pinch-zoom;overflow-wrap:anywhere}
.shell{overflow-x:clip}

/* V2.7: fluid tablet and desktop layouts; mobile retains its existing layout. */
.daily-context,.daily-agenda,.route-canvas,.route-details{min-width:0}
@media(min-width:760px){
 body{background:var(--bg)}
 .shell{width:calc(100% - 48px);max-width:1240px;margin:0 auto;min-height:100dvh;border-radius:0;box-shadow:none;padding-bottom:32px;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start}
 .shell>.head{grid-column:1;grid-row:1;padding:28px 24px 24px 0;gap:24px}
 .head .title{font-size:24px}.head .eyebrow{font-size:10px}.head-actions{gap:9px}.round{width:38px;height:38px}
 .shell>.page,.shell>.datebar{grid-column:1 / -1;min-width:0}
 .page{padding:0 0 28px}
 .bottom-nav{grid-column:2;grid-row:1;position:static;transform:none;align-self:center;width:300px;height:48px;padding:4px;background:var(--soft);border:0;border-radius:14px;box-shadow:none;backdrop-filter:none;gap:4px}
 .bottom-nav button{flex-direction:row;gap:8px!important;font-size:12px;min-height:40px;border-radius:10px}
 .bottom-nav button.current{background:var(--paper);box-shadow:var(--shadow)}
 .bottom-nav button .navicon,.bottom-nav button .navicon .fa-solid{font-size:17px!important}
 .overview-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
 .overview-page>.hero,.overview-page>.overview-stats,.overview-page>.section-head,.overview-page>.note-ribbon,.overview-page>.small-foot{grid-column:1 / -1}
 .hero{height:280px;border-radius:22px;margin:0}.hero-txt{left:28px;bottom:26px}.hero-txt h2{font-size:38px}.hero-label{font-size:11px}.hero-txt .hero-meta{font-size:13px}
 .overview-stats{margin:16px 0 12px;gap:16px}.stat{padding:15px}.stat b{font-size:25px}.stat small{font-size:10px}
 .city-card{padding:16px;min-height:84px}.city-emoji{height:50px;width:50px}.note-ribbon{padding:16px}
 .section-head{margin:22px 0 12px}.tertiary{font-size:12px}.small-foot{padding:28px 0 8px}
 .datebar{padding:8px 0;gap:10px;border-bottom:1px solid var(--line)}.date{flex-direction:row;justify-content:center;gap:10px;padding:12px}.date span{font-size:12px}.date b{font-size:16px}
 .dayhead{padding:24px 0 20px}.dayhead h2{font-size:27px}.dayhead .sub{font-size:13px;margin-top:5px}
 .daily-layout{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.8fr);gap:28px;align-items:start}
 .daily-context{position:sticky;top:82px}.day-summary{padding:20px 16px}.day-keywords{font-size:13px;line-height:1.7}.daily-stats{grid-template-columns:1fr;text-align:left;gap:12px}.daily-stats>div{border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px;gap:5px}.daily-stats>div:last-child{padding-bottom:0}.daily-stats strong{font-size:16px;white-space:normal}.daily-stats small{font-size:11px}
 .daily-agenda>.section-head{margin-top:0!important}.next strong{font-size:13px}.next .sub{font-size:12px}
 .timelist .event{grid-template-columns:52px 30px minmax(0,1fr) 24px;gap:8px;min-height:75px}.time{font-size:13px}.bubble{width:28px;height:28px;font-size:15px}.event-body{padding:14px 16px;margin-bottom:10px}.event-title{font-size:16px}.event-sub{font-size:13px;line-height:1.6}.event-inline-thumb{width:74px;height:64px}.event-icon{padding-top:20px}
 .flightcard{padding:20px}.route{margin:20px 0}.airport b{font-size:28px}.flightbottom{padding-top:14px}.stay{padding:16px}.stay strong{font-size:14px}
 .day-navigation{margin-top:18px}.day-navigation button.btn{font-size:13px}.day-position{font-size:12px}
 .action-header{padding:12px 0 16px}.action-header h2{font-size:28px}.calendar-subtitle{font-size:13px;margin-top:5px}
 .chip{font-size:12px;padding:9px 16px}.route-day-chips{margin:0 0 16px;gap:10px}
 .route-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px;align-items:start}
 .route-canvas{position:sticky;top:20px}.route-map-frame{height:clamp(400px,65dvh,680px);min-height:400px}.route-map-summary{font-size:12px}.route-type-chips{flex-wrap:wrap;margin-top:0;gap:6px;white-space:normal}.route-type-chips .chip{padding:7px 11px}.route-stop{min-height:76px}.route-stop-info strong{font-size:14px}.route-stop-info small{font-size:12px}
 .tabline{gap:28px;margin-bottom:22px}.tabline button{font-size:14px;padding:13px 2px}
 .essentials-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;align-items:start}
 .essentials-content>.section-head,.essentials-content>.task-progress,.essentials-content>.card-alert,.essentials-content>button{grid-column:1 / -1}
 .essentials-content .info-card{height:100%;margin:0;padding:20px}.essentials-content .section-head{margin:12px 0 0}.essentials-content .itemline{height:100%;padding:14px 0}.essentials-content .booking-item{grid-column:1 / -1}
 .overlay{align-items:center;padding:28px}.sheet{width:min(640px,100%);border-radius:22px;max-height:calc(100dvh - 56px);padding:24px 28px}.handle{display:none}.sheetphoto{height:220px}.sheet-head h2{font-size:24px}.details{font-size:14px}.sheet .field input,.sheet .field select,.sheet .field textarea{font-size:14px}
 .toast{bottom:28px}
}
@media(min-width:1100px){
 .shell{width:calc(100% - 96px)}.overview-page{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px}
 .overview-page>.city-card:nth-child(4){grid-column:1 / 3}.overview-page>.city-card:nth-child(5){grid-column:3}
 .hero{height:320px}.hero-txt h2{font-size:44px}.daily-layout{grid-template-columns:300px minmax(0,1fr);gap:40px}
 .route-layout{grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);gap:28px}
 .essentials-booking{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Day transitions affect content only; navigation stays still. */
.daily-page,.route-layout{backface-visibility:hidden}
.hero.photo::before{background-position:center 48%}
@media(max-width:759px){.hero.photo::before{background-position:center 45%}.day-navigation button.btn{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.daily-page,.route-layout{animation:none!important;transition:none!important}}

.head-actions .round,.action-header .round{appearance:none;-webkit-appearance:none;color:#30695e!important;-webkit-text-fill-color:#30695e!important;background:#fff!important}
.action-icon{width:18px;height:18px;display:block;stroke:#30695e!important;fill:none!important;opacity:1!important}
.head-actions .round:hover,.action-header .round:hover{background:#eaf1ec!important}
.head-actions .round:active,.action-header .round:active{background:#dde9e1!important}

.bottom-nav button{color:#64736b!important;-webkit-text-fill-color:#64736b!important}
.bottom-nav button.current{color:#30695e!important;-webkit-text-fill-color:#30695e!important}
.navigation-icon{display:block;width:20px;height:20px;stroke:#64736b!important;fill:none!important;opacity:1!important}
.bottom-nav button.current .navigation-icon,.bottom-nav button:hover .navigation-icon{stroke:#30695e!important}

/* V2.8: compact, legible daily itinerary and minimal footer gap */
.day-navigation{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 0;padding:0;border-top:1px solid var(--line)}
.day-navigation button.btn{min-height:42px}
@media(max-width:759px){.page.daily-page{padding-bottom:0!important}.shell:has(.daily-page){padding-bottom:calc(69px + env(safe-area-inset-bottom))}.daily-page .thai-dayhead{padding-top:12px;padding-bottom:10px}.daily-page .thai-dayhead h2{font-weight:550;letter-spacing:-.2px;font-size:20px}.daily-page .day-summary{margin-bottom:12px}.daily-page .day-summary:after{display:none}}
@media(min-width:760px){.shell:has(.daily-page){padding-bottom:16px}}
