/* ===== consolidated from styles.css ===== */
:root{--ink:#14313b;--muted:#627780;--teal:#0f7078;--teal2:#075c63;--soft:#eef8f7;--cream:#fffaf1;--line:#dce8e6;--coral:#ef805f;--gold:#d59a39;--red:#a94631;--shadow:0 18px 50px rgba(13,48,57,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f7fbfa}button,a,input,select,textarea{font:inherit}button,a{touch-action:manipulation}header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px max(18px,calc((100vw - 1280px)/2));background:linear-gradient(120deg,#0d6670,#19958f);color:white}h1{font-family:Georgia,serif;margin:5px 0;font-size:clamp(1.7rem,4vw,3rem)}header p{margin:0;opacity:.9}.eyebrow{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800}.headerActions{display:flex;gap:8px}.primary,.headerGhost{border:0;padding:11px 15px;border-radius:12px;font-weight:850;cursor:pointer}.primary{background:white;color:var(--teal)}.headerGhost{background:#ffffff20;color:white;border:1px solid #ffffff55}main{max-width:1280px;margin:auto;padding:18px;display:grid;grid-template-columns:1.12fr .88fr;gap:18px}.mapPane,.panel{background:white;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.mapPane{position:sticky;top:12px;height:calc(100vh - 120px)}#map{height:calc(100% - 46px)}#mapCaption{height:46px;padding:10px 14px;color:var(--muted);font-size:.78rem;display:flex;align-items:center}.tabs{display:flex;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:4}.tabs button{flex:1;border:0;background:#fff;padding:14px 5px;font-weight:800;color:var(--muted);cursor:pointer}.tabs .active{color:var(--teal);border-bottom:3px solid var(--teal)}#content{padding:16px;max-height:calc(100vh - 170px);overflow:auto}.day{padding:12px 0;border-bottom:1px solid var(--line)}.dayHead{display:flex;align-items:center;justify-content:space-between;gap:8px}.day h3{margin:0 0 8px;font-size:1rem}.dayHint{font-size:.66rem;color:var(--muted)}.item,.proposal,.maybeCard,.historyCard,.todayCard,.weatherCard,.nextCard{border:1px solid var(--line);border-radius:14px;padding:11px;margin:8px 0;background:#fff}.item{display:grid;grid-template-columns:66px 1fr auto;gap:8px;cursor:pointer}.item:hover{background:var(--soft)}.item.dragging{opacity:.45}.item[draggable="true"]{cursor:grab}.item[draggable="true"]:active{cursor:grabbing}.item.locked{border-left:4px solid var(--coral);background:#fffaf8}.dragHandle{font-size:1.05rem;color:#9aabaa;align-self:center;padding:4px}.dragHandle.lock{font-size:.85rem}.time{font-weight:850;color:var(--teal);font-size:.78rem}.title{font-weight:850}.note,.meta{font-size:.78rem;color:var(--muted);line-height:1.45;margin-top:3px}.links{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.linkBtn,.ghost,.danger,.confirm,.smallBtn{border:1px solid var(--line);background:#fff;padding:8px 10px;border-radius:9px;font-size:.72rem;font-weight:800;cursor:pointer;text-decoration:none;color:var(--ink);display:inline-flex;align-items:center;justify-content:center}.confirm{background:var(--teal);color:white;border-color:var(--teal)}.danger{color:var(--red);background:#fff6f3}.smallBtn{padding:5px 7px}.tag{display:inline-block;border-radius:999px;background:#edf7f6;color:var(--teal);font-size:.64rem;font-weight:850;padding:4px 7px;margin:0 4px 3px 0}.tag.proposed{background:#fff4df;color:#926315}.tag.lock{background:#fff0eb;color:#9c4934}.tag.local{background:#eff3ff;color:#465aa0}.tag.adventure{background:#eef8ed;color:#39763b}.tag.relax{background:#f7efff;color:#7751a0}.proposalPhoto{width:100%;height:190px;object-fit:cover;border-radius:11px;margin:8px 0;background:#edf4f3}.todayHero{background:linear-gradient(135deg,#eaf8f6,#fff8e8);border:1px solid #d9ebe7;border-radius:18px;padding:16px}.todayHero h2{font-family:Georgia,serif;margin:0 0 5px}.nextCard{border-left:5px solid var(--teal);background:#f8fffe}.nextTitle{font-size:1.08rem;font-weight:900}.bigDirections{font-size:.88rem;padding:11px 14px}.weatherCard{background:#f6fbff}.weatherRow{display:flex;justify-content:space-between;gap:12px;align-items:center}.weatherTemp{font-size:1.55rem;font-weight:900}.leaveBy{background:#fff6e8;border:1px solid #f0d59e;padding:8px 10px;border-radius:10px;margin-top:7px;font-size:.75rem}.reservationMini{margin-top:7px;padding:8px 10px;border-radius:10px;background:#fff2ed;font-size:.72rem}.countdown{font-weight:850;color:var(--teal)}dialog{border:0;background:transparent;padding:0;width:min(820px,calc(100vw - 20px));max-height:94vh}dialog::backdrop{background:rgba(8,29,34,.6);backdrop-filter:blur(3px)}.sheet{background:white;border-radius:22px;padding:20px;max-height:92vh;overflow:auto;position:relative}.x{position:sticky;float:right;right:4px;top:0;width:38px;height:38px;border:0;border-radius:50%;background:#17343c;color:#fff;font-size:1.25rem;cursor:pointer;z-index:5}.menuGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.menuGrid button{padding:13px;border:1px solid var(--line);background:#f9fcfb;border-radius:12px;text-align:left;font-weight:800;cursor:pointer}.form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.form label{display:grid;gap:4px;font-size:.72rem;font-weight:800;color:var(--muted)}.form .full{grid-column:1/-1}.form input,.form select,.form textarea{width:100%;padding:10px;border:1px solid #cddfdd;border-radius:10px;background:#fff}.form textarea{min-height:78px}.form .actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.importBox{border:1px dashed #d7b86d;background:#fffaf0;border-radius:14px;padding:11px;margin:10px 0}.importPreview{margin-top:8px;padding:10px;background:white;border-radius:10px;border:1px solid #ead9b9}.detail{padding:18px}.detail h2{font-family:Georgia,serif;margin:5px 0 7px}.detailGallery{margin:-4px 0 14px;background:#eef5f4;border-radius:16px;position:relative;min-height:180px;display:grid;place-items:center;overflow:hidden}.detailGallery img{display:block;max-width:100%;width:auto;height:auto;max-height:min(48vh,520px);object-fit:contain;margin:auto}.photoNav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.photoNav button{pointer-events:auto;margin:7px;width:38px;height:38px;border-radius:50%;border:0;background:#14313bcc;color:white;font-weight:900}.photoCredit{font-size:.62rem;color:var(--muted);margin:-8px 0 10px}.rating{font-weight:850;color:#a56b00}.reservation{border-left:4px solid var(--coral);background:#fff8f5;padding:10px 12px;border-radius:10px;margin-top:10px}.reservationGrid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px;font-size:.76rem}.marker{background:var(--teal);border:3px solid white;border-radius:50%;width:30px;height:30px;color:white;font-weight:900;display:grid;place-items:center;box-shadow:0 3px 10px #0004}.marker.locked{background:var(--coral)}.manageCard{border:1px solid var(--line);border-radius:12px;padding:10px;margin:7px 0}.manageCard.locked{background:#fff8f5}.historyCard.undone{opacity:.55}.selectRow{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.selectRow label{flex:1;min-width:170px}.installBox{padding:14px;background:var(--soft);border-radius:14px}.offline{background:#fff0e7;color:#7b452f;padding:7px 10px;text-align:center;font-size:.75rem;display:none}.offline.show{display:block}#toast{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#17343c;color:white;padding:10px 14px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:9999;max-width:90vw;text-align:center}#toast.show{opacity:1}@media(max-width:850px){header{align-items:flex-start;padding:17px}main{grid-template-columns:1fr;padding:10px}.mapPane{position:relative;top:0;height:46vh}.panel{min-height:50vh}#content{max-height:none}.menuGrid{grid-template-columns:1fr}.form{grid-template-columns:1fr}.form .full,.form .actions{grid-column:1}.sheet{padding:16px}.detailGallery img{max-height:42vh}.proposalPhoto{height:220px}}@media(max-width:560px){header{display:block}.headerActions{margin-top:12px}.headerActions button{flex:1}.tabs button{font-size:.68rem;padding:13px 3px}.item{grid-template-columns:55px 1fr 26px}.mapPane{height:39vh}.reservationGrid{grid-template-columns:1fr}.detail{padding:12px}.detailGallery{border-radius:12px}.detailGallery img{max-height:38vh}.links>*{flex-grow:1}.proposalPhoto{height:180px}}
.proposalGroup{margin:0 0 22px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.72)}
.proposalGroup .proposal{margin-top:10px}
.proposalMedia img{width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:14px;background:#f4f4f2;margin-top:8px}

/* v4: image hero + right-side drawer */
.heroHeader{position:relative;display:block;padding:0;background:#0b555b;color:white;overflow:hidden;line-height:0}
.heroImage{display:block;width:100%;height:auto;max-height:430px;object-fit:cover;object-position:center}
.heroControls{position:absolute;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));display:flex;align-items:center;gap:10px;z-index:5;line-height:normal}
.heroAction{border:1px solid #ffffff70;background:#102f36c9;color:#fff;padding:10px 14px;border-radius:999px;font-weight:850;backdrop-filter:blur(10px);box-shadow:0 8px 24px #0002}
.hamburger{width:48px;height:48px;border:1px solid #ffffff70;border-radius:50%;background:#102f36d9;display:grid;place-content:center;gap:5px;cursor:pointer;box-shadow:0 8px 24px #0002;backdrop-filter:blur(10px)}
.hamburger span{display:block;width:21px;height:2px;background:white;border-radius:2px}
.sideMenu{width:min(430px,94vw);height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:0;border:0;background:transparent}
.sideMenu[open]{animation:drawerIn .22s ease-out}
.sideMenu::backdrop{background:rgba(5,26,31,.42);backdrop-filter:blur(2px)}
.sideMenu .sheet{height:100dvh;max-height:100dvh;border-radius:24px 0 0 24px;padding:0;overflow-y:auto;box-shadow:-24px 0 70px #0621282b}
.drawerHead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 20px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:7}
.drawerHead h2{margin:2px 0 0;font-family:Georgia,serif;font-size:1.65rem}
.drawerEyebrow{font-size:.66rem;text-transform:uppercase;letter-spacing:.12em;color:var(--teal);font-weight:900}
.sideMenu .x{position:static;float:none;flex:0 0 auto}
.menuList{padding:10px 12px 4px;display:grid;gap:3px}
.menuList button{width:100%;display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;border:0;background:transparent;padding:12px 10px;border-radius:12px;text-align:left;color:var(--ink);cursor:pointer}
.menuList button:hover,.menuList button:focus-visible{background:var(--soft);outline:none}
.menuList button>span{font-size:1.15rem;text-align:center;color:var(--teal)}
.menuList b{display:block;font-size:.91rem}
.menuList small{display:block;color:var(--muted);font-size:.69rem;margin-top:2px;font-weight:500}
.autoGoogleNote{margin:12px 16px 4px;padding:11px 12px;border:1px solid #dceae8;background:#f7fbfa;border-radius:12px;display:grid;grid-template-columns:12px 1fr;gap:9px;align-items:start}
.autoGoogleNote b{display:block;font-size:.74rem}.autoGoogleNote small{display:block;color:var(--muted);font-size:.66rem;line-height:1.35;margin-top:2px}.syncDot{width:9px;height:9px;border-radius:50%;background:#42a56b;margin-top:3px;box-shadow:0 0 0 3px #42a56b1d}
.sideMenu #menuBody{padding:4px 20px 28px}
@keyframes drawerIn{from{transform:translateX(28px);opacity:.6}to{transform:none;opacity:1}}
@media(max-width:720px){.heroImage{max-height:none;object-fit:contain}.heroControls{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right))}.heroAction{padding:8px 11px;font-size:.76rem}.hamburger{width:42px;height:42px}.sideMenu{width:min(390px,96vw)}.sideMenu .sheet{border-radius:20px 0 0 20px}.drawerHead{padding-top:max(20px,calc(env(safe-area-inset-top) + 12px))}}

/* v6 */
.dailyPicker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;background:#f7fbfa;border:1px solid var(--line);border-radius:15px}.dailyPicker label{font-size:.7rem;font-weight:850;color:var(--muted);display:grid;gap:4px;flex:1}.dailyPicker select{width:100%;padding:10px 12px;border:1px solid #cddfdd;border-radius:11px;background:#fff;color:var(--ink);font-weight:800}.planSection{margin:0 0 18px}.planSectionTitle{display:flex;align-items:center;gap:8px;margin:10px 0 6px;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:900}.planCount{background:var(--soft);color:var(--teal);border-radius:999px;padding:2px 7px;font-size:.65rem}.compactProposal,.compactMaybe{border:1px solid var(--line);border-radius:13px;padding:10px;margin:7px 0;background:#fff}.compactProposal{border-left:4px solid #d59a39}.compactMaybe{border-left:4px solid #8d72b8}.sourceLabel{font-size:.62rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--muted)}.item.locked.manual{border-left-color:#7656a5;background:#fcf9ff}.marker.manual{background:#7656a5}.actionDialog{width:min(760px,calc(100vw - 24px));max-height:92vh;margin:auto}.actionDialog .actionSheet{border-radius:24px;box-shadow:0 28px 90px #071e2640;padding:22px;max-height:90vh}.actionDialog h3{font-family:Georgia,serif;font-size:1.45rem;margin:6px 0 10px}.actionDialog .x{position:sticky;top:0;float:right}.aiIntro{background:linear-gradient(135deg,#f3f0ff,#eefaf8);border:1px solid #ded9f3;border-radius:15px;padding:12px;margin:8px 0 12px}.aiGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.aiCard{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff}.aiCard img{display:block;width:100%;height:145px;object-fit:cover;background:#eef4f3}.aiCardBody{padding:11px}.aiCard .title{font-size:.9rem}.aiLoading{padding:18px;text-align:center;color:var(--muted)}.lockButton.locked{background:#7656a5;color:#fff;border-color:#7656a5}@media(max-width:850px){main{display:block;padding:8px}.mapPane{position:sticky;top:0;z-index:25;height:36vh;margin-bottom:10px;box-shadow:0 12px 28px rgba(13,48,57,.16)}#map{height:calc(100% - 38px)}#mapCaption{height:38px;font-size:.68rem}.panel{overflow:visible}.tabs{top:36vh;z-index:20}.aiGrid{grid-template-columns:1fr}.actionDialog{width:min(680px,calc(100vw - 16px))}.actionDialog .actionSheet{border-radius:20px;padding:16px}.heroControls{z-index:30}}@media(max-width:560px){.mapPane{height:33vh}.tabs{top:33vh}.dailyPicker{padding:9px 10px}.aiCard img{height:180px}}


/* v7 — compact itinerary cards + quick actions */
.compactItem{grid-template-columns:132px minmax(0,1fr) 38px;gap:18px;align-items:start;padding:18px 20px;cursor:pointer;transition:box-shadow .16s ease,transform .16s ease,border-color .16s ease}
.compactItem:hover{box-shadow:0 10px 26px rgba(12,51,59,.09);border-color:#bfd8d5}.compactItem:focus-visible{outline:3px solid #1a808855;outline-offset:2px}.compactItem .time{font-size:1.02rem;font-weight:900;color:var(--teal);padding-top:3px}.itemMain{min-width:0}.itemBadges{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:4px}.compactItem .title{font-size:1.18rem;line-height:1.18}.compactItem .note{font-size:.86rem;line-height:1.35;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.quickActions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.quickBtn{border:1px solid #d1e1df;background:#fff;color:var(--ink);border-radius:999px;padding:7px 11px;font-size:.72rem;font-weight:850;cursor:pointer}.quickBtn:hover{background:var(--soft)}.quickBtn:disabled{opacity:.38;cursor:not-allowed}.quickBtn.activeLock{background:#7656a5;color:#fff;border-color:#7656a5}.quickBtn.dangerLite{color:#9b3f34}.detailChevron{width:34px;height:34px;border:0;background:#f3f8f7;border-radius:50%;font-size:1.6rem;line-height:1;color:var(--teal);cursor:pointer}.compactItem.locked{border-left-width:4px}.dayHint{font-size:.68rem}.quickPopupHead h3{margin-top:2px}.directionChoices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.directionChoice{display:block;border:1px solid var(--line);border-radius:16px;padding:16px;text-decoration:none;color:var(--ink);background:#fbfdfd}.directionChoice:hover{border-color:#a9cdca;background:var(--soft)}.directionChoice b{display:block;font-size:1rem}.directionChoice small{display:block;color:var(--muted);margin-top:3px}.warningBox{border:1px solid #efd0c8;background:#fff6f3;border-radius:15px;padding:14px;margin:12px 0}.lockNotice{margin-top:10px;border:1px solid #ded7ee;background:#faf8ff;border-radius:12px;padding:10px;color:#634b86;font-size:.74rem}.modalActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.shareGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.shareCard{border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px;text-align:left;color:var(--ink);cursor:pointer}.shareCard:hover{background:var(--soft)}.shareCard>span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#eaf6f4;color:var(--teal);font-weight:900;margin-bottom:8px}.shareCard b{display:block;font-size:.88rem}.shareCard small{display:block;color:var(--muted);font-size:.68rem;margin-top:3px}.manageCard button:disabled{opacity:.4}
@media(max-width:720px){.compactItem{grid-template-columns:74px minmax(0,1fr) 30px;gap:10px;padding:13px 12px}.compactItem .time{font-size:.8rem}.compactItem .title{font-size:.98rem}.compactItem .note{font-size:.76rem}.quickActions{gap:5px;margin-top:8px}.quickBtn{padding:6px 9px;font-size:.64rem}.detailChevron{width:29px;height:29px;font-size:1.35rem}.directionChoices,.shareGrid{grid-template-columns:1fr}.dayHead{align-items:baseline}.dayHint{font-size:.62rem}}


/* v8 — expandable itinerary + integrated proposals */
.plannerToolbar{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;gap:10px;align-items:end;padding:14px 16px;margin:0 0 14px;background:#f7fbfa;border:1px solid var(--line);border-radius:17px;position:sticky;top:0;z-index:14}.planSelectLabel{display:grid;gap:5px;font-size:.68rem;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.planSelectLabel select{width:100%;padding:10px 12px;border:1px solid #cbdedc;border-radius:11px;background:#fff;color:var(--ink);font-size:.9rem;font-weight:850}.proposalToggle,.aiPlanButton{height:42px;border-radius:12px;border:1px solid #cbdedc;background:#fff;color:var(--ink);font-weight:850;padding:0 13px;cursor:pointer}.proposalToggle{display:flex;align-items:center;gap:8px}.proposalToggle .toggleDot{width:28px;height:16px;border-radius:999px;background:#c9d8d6;position:relative;transition:.2s}.proposalToggle .toggleDot:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:white;left:2px;top:2px;box-shadow:0 1px 3px #0003;transition:.2s}.proposalToggle.on{background:#edf8f6;color:var(--teal);border-color:#9ecbc6}.proposalToggle.on .toggleDot{background:var(--teal)}.proposalToggle.on .toggleDot:after{transform:translateX(12px)}.aiPlanButton{background:linear-gradient(135deg,#f5f1ff,#effaf8);border-color:#d9d1ec;color:#513b78}.planDay{margin:0 0 22px}.planDay .dayHead{padding:5px 3px 9px}.planDay .dayHead h3{margin:2px 0 0}.itineraryCard{grid-template-columns:105px minmax(0,1fr) 34px;gap:14px;align-items:start;padding:15px 16px;cursor:pointer;transition:.18s ease;background:#fff}.itineraryCard:hover{border-color:#b9d5d2}.itineraryCard.expanded{padding:19px 18px;box-shadow:0 12px 30px rgba(12,51,59,.1);border-color:#9fc9c5;background:#fbfefe}.itineraryCard .time{font-size:.92rem;font-weight:900;color:var(--teal);padding-top:2px}.itineraryCard .title{font-size:1.04rem;line-height:1.2}.itineraryCard .note{font-size:.78rem;line-height:1.35;margin-top:4px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.itineraryCard.expanded .note{-webkit-line-clamp:unset}.itemTopline{min-height:0;margin-bottom:3px}.timelineBadge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:.58rem;text-transform:uppercase;letter-spacing:.05em;font-weight:900;margin:0 5px 3px 0}.hardBadge{background:#fff2e8;color:#a14f26;border:1px solid #f0c9af}.reservationBadge{background:#fff2e8;color:#a14f26}.protectedBadge{background:#f1ecfa;color:#624688}.expandedActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #e2eceb}.expandChevron{width:30px;height:30px;border:0;border-radius:50%;background:#f0f6f5;color:var(--teal);font-size:1rem;font-weight:900;cursor:pointer}.proposalStripHead{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:12px 3px 6px;font-weight:900;color:var(--ink)}.proposalStripHead small{color:var(--muted);font-weight:600}.proposalList{display:grid;gap:7px}.proposalToggleCard{display:grid;grid-template-columns:6px 1fr;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.proposalAccent{background:#7d8f92}.proposalBody{padding:10px 12px}.proposalMeta{display:flex;gap:8px;align-items:center;margin-bottom:4px}.proposalKind,.proposalTime{font-size:.6rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;border-radius:999px;padding:3px 7px}.proposalTime{background:#f3f6f6;color:var(--muted)}.proposalToggleCard .title{font-size:.9rem}.proposalToggleCard .note{font-size:.72rem;color:var(--muted);margin-top:3px}.proposalActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.proposalActions button{font-size:.65rem;padding:6px 9px}.proposalType-restaurant .proposalAccent{background:#e4774f}.proposalType-restaurant .proposalKind{background:#fff0ea;color:#a84d2d}.proposalType-activity .proposalAccent{background:#2b9b89}.proposalType-activity .proposalKind{background:#e8f7f4;color:#157466}.proposalType-show .proposalAccent{background:#8a67b6}.proposalType-show .proposalKind{background:#f2edfa;color:#65468d}.proposalType-local-experience .proposalAccent{background:#d9a12d}.proposalType-local-experience .proposalKind{background:#fff7df;color:#91660d}.proposalType-scenic .proposalAccent{background:#458db0}.proposalType-scenic .proposalKind{background:#eaf5fa;color:#2f6e8c}.proposalType-relaxation .proposalAccent{background:#67a879}.proposalType-relaxation .proposalKind{background:#edf8ef;color:#427b50}.aiPlannerHead{margin-bottom:12px}.aiSchedulePreview{grid-column:1/-1;background:#f7fbfa;border:1px solid var(--line);border-radius:13px;padding:11px}.aiAnalysis{margin:12px 0 8px;padding:10px 12px;border-radius:13px;background:#f4f1fb;border:1px solid #ddd4ed}.emptyPlan{padding:24px;text-align:center;color:var(--muted)}
@media(max-width:850px){.plannerToolbar{top:36vh;grid-template-columns:1fr auto;z-index:22}.aiPlanButton{grid-column:1/-1}.itineraryCard{grid-template-columns:72px minmax(0,1fr) 28px;padding:12px 11px}.itineraryCard.expanded{padding:14px 12px}.proposalStripHead{display:block}.proposalStripHead small{display:block;margin-top:2px}.panel{padding-top:4px}}
@media(max-width:560px){.plannerToolbar{top:33vh;padding:9px 10px;gap:7px}.proposalToggle,.aiPlanButton{height:38px;font-size:.7rem}.planSelectLabel select{font-size:.78rem}.itineraryCard{grid-template-columns:68px minmax(0,1fr) 25px;gap:8px}.itineraryCard .time{font-size:.74rem}.itineraryCard .title{font-size:.88rem}.itineraryCard .note{font-size:.69rem}.timelineBadge{font-size:.52rem}.expandedActions .quickBtn{font-size:.61rem;padding:6px 8px}}


/* v10 final planner pass */
.heroImage{height:clamp(105px,13vw,175px)!important;max-height:none!important;object-fit:cover!important;object-position:center 42%!important}.heroHeader{min-height:0!important}.heroControls{top:10px!important}.v10Toolbar{grid-template-columns:minmax(190px,1fr) auto auto!important;align-items:end}.v10Card{grid-template-columns:34px 94px minmax(0,1fr) 30px!important;gap:10px!important}.itineraryNumber{width:30px;height:30px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-size:.75rem;font-weight:950;box-shadow:0 3px 9px #0f707833}.v10Card.locked .itineraryNumber{background:var(--coral)}.timelineSoftBadge{background:#eef5ff;color:#486487;border:1px solid #cad9eb}.timeChoice{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px}.timeChoice label{display:grid;gap:4px;font-size:.72rem;font-weight:800;color:var(--muted)}.timeChoice [hidden]{display:none!important}.googlePreview{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:12px;align-items:start}.googlePreview .proposalPhoto{height:120px;margin:0;object-fit:cover}.plannerToolbar{overflow:visible}.proposalToggle,.aiPlanButton{white-space:nowrap}.weatherCard{margin-top:0}.mapPane{transition:height .2s ease}
@media(max-width:850px){.heroImage{height:120px!important}.heroControls{top:8px!important;right:8px!important}.heroAction{padding:8px 11px}.hamburger{width:42px;height:42px}.v10Toolbar{top:36vh;grid-template-columns:minmax(0,1fr) auto!important}.v10Toolbar .aiPlanButton{grid-column:1/-1;width:100%}.v10Card{grid-template-columns:30px 68px minmax(0,1fr) 26px!important}.itineraryNumber{width:27px;height:27px;font-size:.68rem}.timeChoice{grid-template-columns:1fr}.googlePreview{grid-template-columns:1fr}.googlePreview .proposalPhoto{height:180px}.panel{min-width:0}.plannerToolbar{max-width:100%}}
@media(max-width:560px){.heroImage{height:105px!important}.mapPane{height:31vh!important}.v10Toolbar{top:31vh!important;grid-template-columns:1fr auto!important;padding:8px!important}.proposalToggle{padding:0 9px!important}.v10Card{grid-template-columns:27px 62px minmax(0,1fr) 24px!important;gap:7px!important}.itineraryNumber{width:24px;height:24px;font-size:.62rem}.itineraryCard .title{font-size:.86rem}.itineraryCard .note{font-size:.68rem}.aiPlanButton{min-width:0;max-width:100%}}

.completedActivityCard{opacity:.68;background:#f7faf9!important}.completedActivityCard .title,.completedActivityCard .time{opacity:.9}.completedActivityCard .p34Actions{align-items:center}.completedRating{display:inline-flex;gap:1px;align-items:center;margin-left:auto}.ratingStar{border:0;background:transparent;color:#b17b16;font-size:1.2rem;line-height:1;padding:2px;cursor:pointer}.ratingStar.selected{color:#b17b16}.ratingStar:focus-visible{outline:2px solid var(--teal);border-radius:5px}

/* v11 stability + compact masthead */
.heroHeader{
  height:150px!important;
  min-height:150px!important;
  max-height:150px!important;
  overflow:hidden!important;
  background:#123b3f!important;
  position:relative!important;
}
.heroImage{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 43%!important;
  display:block!important;
  filter:saturate(.92) contrast(.96)!important;
}
.heroHeader:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(7,38,41,.15),transparent 38%,transparent 72%,rgba(7,38,41,.28));
  pointer-events:none;
}
.heroControls{z-index:2!important;top:16px!important;right:18px!important}
.loadingCard,.mapFallback{
  margin:28px;
  padding:28px;
  border:1px solid #d6e4e3;
  border-radius:22px;
  background:#fff;
  color:#183a42;
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:16px;
}
.loadingCard b,.mapFallback b{font-size:22px}
@media(max-width:760px){
  .heroHeader{height:112px!important;min-height:112px!important;max-height:112px!important}
  .heroImage{object-position:center 42%!important}
  .heroControls{top:10px!important;right:10px!important}
}

/* Patch 0012: compact, readable masthead */
.heroHeader{
  height:clamp(180px,16vw,300px)!important;
  min-height:180px;
  max-height:300px;
  background:#102f31;
  overflow:hidden;
  position:relative;
}
.heroImage{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
  display:block;
}
.heroHeader::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.08),transparent 55%,rgba(0,0,0,.16));
}
.heroControls{z-index:2}
@media (max-width:700px){
  .heroHeader{height:150px!important;min-height:150px;max-height:150px}
  .heroImage{object-position:center 38%}
}

/* Patch 0013: faster planner, preserved artwork, weather masthead, refined controls */
.heroHeader{
  height:220px!important;min-height:220px!important;max-height:220px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;
  gap:0!important;background:#10383d!important;overflow:hidden!important;border-bottom:1px solid #d8e6e4;
}
.heroHeader::after{display:none!important}
.heroArtwork{min-width:0;height:220px;display:flex;align-items:center;justify-content:flex-start;background:#102f31;overflow:hidden}
.heroImage{width:100%!important;height:100%!important;object-fit:contain!important;object-position:left center!important;filter:none!important;background:#102f31}

.heroTripMeta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.72rem;letter-spacing:.12em;font-weight:900;opacity:.94}.heroTripMeta b{font-size:.82rem}

.heroControls{position:static!important;display:flex!important;justify-content:flex-end!important;gap:9px!important}.heroAction,.hamburger{background:rgba(255,255,255,.94)!important;color:#143a41!important;box-shadow:none!important}.hamburger span{background:#143a41!important}

.v13Toolbar{position:sticky!important;top:0!important;z-index:18!important;display:grid!important;grid-template-columns:minmax(190px,1fr) 132px 132px!important;gap:9px!important;align-items:stretch!important;padding:11px!important;margin:0 0 14px!important;background:rgba(255,255,255,.96)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:0 6px 24px rgba(17,54,62,.07)!important;backdrop-filter:blur(10px)}
.planSelectLabel{min-width:0}.planSelectLabel span{display:block;font-size:.61rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:var(--muted);margin:1px 0 5px}.planSelectLabel select{width:100%;height:44px;border:1px solid #cbdedc;border-radius:12px;background:#fff;padding:0 38px 0 12px;font-weight:850;color:var(--ink)}
.plannerTool{height:64px!important;border:1px solid #cbdedc!important;border-radius:14px!important;background:#fff!important;color:var(--ink)!important;padding:8px 10px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;text-align:left!important;min-width:0!important;max-width:none!important;white-space:normal!important}.plannerTool .toolIcon{width:29px;height:29px;flex:0 0 29px;border-radius:10px;display:grid;place-items:center;background:#eef7f6;color:var(--teal);font-size:1rem}.plannerTool b{display:block;font-size:.74rem;line-height:1.05}.plannerTool small{display:block;font-size:.55rem;color:var(--muted);line-height:1.15;margin-top:3px}.proposalToggle.on{background:#edf9f7!important;border-color:#89c9c3!important}.proposalToggle.on .toolIcon{background:var(--teal);color:#fff}.aiPlanButton .toolIcon{background:#f3effa;color:#6d4a96}.aiPlanButton{border-color:#d9cfee!important}

.proposalMapMarker{width:30px;height:30px;border-radius:10px 10px 10px 2px;transform:rotate(-45deg);display:grid;place-items:center;color:#fff;font-size:15px;font-weight:950;border:2px solid #fff;box-shadow:0 3px 10px rgba(20,45,52,.25)}.proposalMapMarker::first-letter{transform:rotate(45deg)}.proposalMapMarker{background:#7c63a8}.proposalMapMarker.restaurant{background:#e4774f}.proposalMapMarker.activity{background:#2b9b89}.proposalMapMarker.show{background:#8a67b6}.proposalMapMarker.local-experience{background:#d9a12d}.proposalMapMarker.scenic{background:#458db0}.proposalMapMarker.relaxation{background:#67a879}

.logisticsList{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.logisticsList h4{margin:0 0 10px}.logisticsCard{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.logisticsKind{font-size:.62rem;font-weight:900;border-radius:999px;padding:5px 8px;white-space:nowrap}.logisticsKind.flight{background:#eaf3fb;color:#326e97}.logisticsKind.hotel{background:#eef8ef;color:#4b7c57}.logisticsCard .links{margin:0;justify-content:flex-end}

/* keep the map useful without letting it dominate the first paint */
.mapPane{min-height:420px}.panel{min-width:0}

@media(max-width:1120px){
  .heroHeader{grid-template-columns:minmax(0,1fr) 300px!important;height:190px!important;min-height:190px!important;max-height:190px!important}
  .v13Toolbar{grid-template-columns:minmax(170px,1fr) 112px!important}.v13Toolbar .aiPlanButton{grid-column:1/-1;height:48px!important}.v13Toolbar .aiPlanButton small{display:inline;margin-left:4px}.v13Toolbar .aiPlanButton span:last-child{display:flex;align-items:baseline;gap:4px}
}
@media(max-width:850px){
  .heroHeader{height:auto!important;min-height:0!important;max-height:none!important;display:block!important}.heroArtwork{height:128px}.heroImage{object-fit:contain!important;object-position:center!important}.heroTripMeta{grid-area:meta;justify-content:flex-start;font-size:.55rem}.heroTripMeta b{font-size:.6rem}.heroControls{grid-area:controls}.heroAction{height:40px;padding:0 12px!important}.hamburger{width:40px!important;height:40px!important}
  .mapPane{height:32vh!important;min-height:220px!important}.v13Toolbar{top:32vh!important;grid-template-columns:minmax(0,1fr) 104px!important;padding:8px!important;gap:7px!important}.plannerTool{height:52px!important;padding:6px 8px!important}.plannerTool .toolIcon{width:24px;height:24px;flex-basis:24px}.plannerTool b{font-size:.68rem}.plannerTool small{font-size:.5rem}.v13Toolbar .aiPlanButton{grid-column:1/-1;height:42px!important}.planSelectLabel select{height:40px}.logisticsCard{grid-template-columns:1fr}.logisticsKind{width:max-content}.logisticsCard .links{justify-content:flex-start}
}
@media(max-width:560px){
  .heroArtwork{height:108px}.heroTripMeta{display:none}.v13Toolbar{top:30vh!important}.proposalToggle small{display:none}.plannerTool{justify-content:center!important}.plannerTool span:last-child{text-align:left}.mapPane{height:30vh!important}
}
.proposalMapMarker span{display:block;transform:rotate(45deg);line-height:1}


/* Patch 0014: finished masthead, Up Next, compact mobile controls, Google place search */
.heroHeader{height:300px!important;min-height:300px!important;max-height:300px!important;grid-template-columns:minmax(620px,58%) minmax(360px,42%)!important;background:#0f373b!important}
.heroArtwork{height:300px!important;background:#102f31!important;display:flex!important;align-items:center!important;justify-content:center!important}
.heroImage{height:100%!important;width:100%!important;object-fit:contain!important;object-position:center!important;background:#102f31!important}

.heroTopline{display:flex;align-items:center;justify-content:space-between;gap:14px}.heroTripMeta{display:flex!important;gap:16px!important;justify-content:flex-start!important}.heroControls{flex:0 0 auto}
.heroKicker{display:block;font-size:.62rem;letter-spacing:.13em;font-weight:950;opacity:.75;margin-bottom:7px}

.v14Toolbar{position:sticky;top:0;z-index:18;display:grid;grid-template-columns:minmax(190px,1fr) 112px 132px;gap:8px;align-items:stretch;padding:9px;margin:0 0 14px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px rgba(17,54,62,.06);backdrop-filter:blur(10px)}
.v14Toolbar .plannerTool{height:50px!important;padding:6px 9px!important;border-radius:12px!important}.v14Toolbar .plannerTool .toolIcon{width:25px;height:25px;flex-basis:25px}.v14Toolbar .plannerTool b{font-size:.69rem}.v14Toolbar .plannerTool small{font-size:.48rem}.v14Toolbar .planSelectLabel select{height:40px!important}
.placeSearchRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:10px}.placeSearchRow input{min-width:0;padding:11px 12px;border:1px solid #cbdedc;border-radius:12px;font-size:.9rem}.placeSearchResults{display:grid;gap:8px;margin-top:11px;max-height:420px;overflow:auto}.placeSearchCard{width:100%;display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;border:1px solid #d5e4e2;background:#fff;border-radius:14px;padding:8px;color:var(--ink);cursor:pointer}.placeSearchCard:hover,.placeSearchCard.selected{border-color:#55aaa4;background:#f0fbfa;box-shadow:0 0 0 2px rgba(15,112,120,.09)}.placeSearchCard img,.placeSearchFallback{width:74px;height:62px;border-radius:10px;object-fit:cover;background:#eef5f4;display:grid;place-items:center;font-size:1.5rem}.placeSearchInfo{min-width:0}.placeSearchInfo b{font-size:.82rem;display:block}.placeSearchInfo .meta{font-size:.62rem;margin-top:3px}.placeSearchMeta{font-size:.6rem;color:#8c6714;font-weight:800;margin-top:4px}.selectPlace{font-size:.6rem;font-weight:900;color:var(--teal);padding:6px 8px;border-radius:999px;background:#eef8f7}
#weatherSlot,.weatherCard{display:none!important}
@media(max-width:1100px){.heroHeader{grid-template-columns:minmax(520px,60%) minmax(330px,40%)!important;height:270px!important;min-height:270px!important;max-height:270px!important}.v14Toolbar{grid-template-columns:minmax(160px,1fr) 96px 112px}}
@media(max-width:850px){
  .heroHeader{display:block!important;height:auto!important;min-height:0!important;max-height:none!important}.heroArtwork{height:154px!important;padding:0 6px}.heroImage{object-fit:contain!important}.heroTopline{display:contents}.heroTripMeta{display:none!important}.heroControls{grid-area:controls!important;align-self:start}.heroKicker{font-size:.52rem;margin-bottom:4px}
  .v14Toolbar{position:static!important;top:auto!important;z-index:auto!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:8px!important;margin:0 0 12px!important;border-radius:14px!important;box-shadow:none!important;backdrop-filter:none!important}.v14Toolbar .planSelectLabel{grid-column:1/-1!important}.v14Toolbar .plannerTool{height:42px!important;justify-content:center!important}.v14Toolbar .plannerTool small{display:none!important}.v14Toolbar .plannerTool b{font-size:.66rem}.v14Toolbar .plannerTool .toolIcon{width:22px;height:22px;flex-basis:22px;font-size:.78rem}.v14Toolbar .planSelectLabel span{font-size:.52rem}.v14Toolbar .planSelectLabel select{height:38px!important}.mapPane{position:sticky!important;top:0!important;z-index:12!important}.panel{position:relative!important;z-index:13!important;background:#fff!important}.placeSearchCard{grid-template-columns:58px minmax(0,1fr)}.placeSearchCard img,.placeSearchFallback{width:58px;height:52px}.selectPlace{grid-column:2;justify-self:start}.placeSearchRow{grid-template-columns:1fr}.placeSearchRow .confirm{width:100%}
}
@media(max-width:560px){.heroArtwork{height:132px!important}.heroAction{height:36px!important;padding:0 10px!important}.hamburger{width:36px!important;height:36px!important}.v14Toolbar{padding:7px!important}.mapPane{height:30vh!important;min-height:210px!important}.placeSearchResults{max-height:320px}}


/* v15 AI Planner */
.aiPlannerV15{padding-right:3rem}.aiPlannerV15 h3{margin:.2rem 0 .45rem}.aiPlannerControls{margin-top:1rem}.aiSchedulePreview{background:#f4fbfa;border:1px solid #d3e8e5;border-radius:18px;padding:14px 16px}.aiScanTitle{font-weight:800;color:#143842}.aiScanStats{display:flex;gap:8px;flex-wrap:wrap;margin:7px 0}.aiScanStats span,.aiGapChip{background:#e8f5f3;border-radius:999px;padding:5px 10px;font-size:.82rem;font-weight:750;color:#0b6f73}.aiLoading{margin-top:16px;padding:18px;border-radius:18px;background:#f7f3ff;border:1px solid #e4d9fa;font-weight:750;color:#5e4591}.aiDayRead{margin:18px 0 12px;padding:16px 18px;border:1px solid #dce7e6;border-radius:20px;background:white}.aiDayRead h4{font-size:1.05rem;margin:.25rem 0 .6rem}.aiGapRow{display:flex;gap:7px;flex-wrap:wrap;margin:.5rem 0}.aiGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.aiCard{overflow:hidden;border-radius:20px;border:1px solid #dbe7e5;background:#fff;box-shadow:0 8px 24px rgba(21,48,56,.07)}.aiCard>img{width:100%;height:160px;object-fit:cover;display:block}.aiCardBody{padding:14px}.aiCardBadges{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}.verifiedBadge,.warningBadge{border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:800}.verifiedBadge{background:#e8f7ee;color:#247045}.warningBadge{background:#fff1e5;color:#99521d}.aiCard .title{font-size:1.08rem;margin-bottom:5px}.aiCard .links{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:720px){.aiPlannerV15{padding-right:2.5rem}.aiGrid{grid-template-columns:1fr}.aiCard>img{height:180px}.aiPlannerControls.form{grid-template-columns:1fr}.aiPlannerControls .full{grid-column:auto}}


/* Patch 0018: fixed trip dashboard, synchronized map/planner */
@media (min-width:851px){
  html,body{height:100%;overflow:hidden}
  .heroHeader{position:fixed!important;top:0;left:0;right:0;z-index:50;height:220px!important;min-height:220px!important;max-height:220px!important;grid-template-columns:minmax(560px,62%) minmax(340px,38%)!important;box-shadow:0 8px 30px rgba(8,34,40,.14)}
  
  
  
  
  
  main{position:fixed;top:220px;left:0;right:0;bottom:0;max-width:1440px!important;width:100%;height:calc(100vh - 220px);padding:14px!important;margin:0 auto!important;grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr)!important;gap:14px!important;overflow:hidden}
  .mapPane,.panel{height:100%!important;min-height:0!important;position:relative!important;top:auto!important}
  #map{height:calc(100% - 40px)!important;min-height:0!important}
  #mapCaption{height:40px!important}
  .panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  #content{height:100%!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:14px!important}
  .v14Toolbar{position:sticky!important;top:-14px!important;z-index:22!important;margin:-14px -14px 12px!important;border-radius:0 0 16px 16px!important;border-top:0!important}
}
.marker.selectedMarker{transform:scale(1.16);box-shadow:0 0 0 5px rgba(15,112,120,.2),0 5px 15px rgba(8,46,55,.24)!important}
.proposalMapMarker{box-shadow:0 4px 12px rgba(25,45,55,.25);transition:transform .15s ease}.proposalMapMarker:hover{transform:scale(1.15)}
.leaflet-tooltip{border:0!important;border-radius:9px!important;box-shadow:0 5px 16px rgba(0,0,0,.16)!important;color:#16343c!important;font-weight:800!important;font-size:.72rem!important}
.leaflet-marker-icon{cursor:pointer}
.item.itineraryCard{scroll-margin-top:88px}.item.itineraryCard.expanded{box-shadow:0 0 0 3px rgba(15,112,120,.17),0 8px 22px rgba(17,54,62,.08)}
.proposalToggleCard{scroll-margin-top:88px}
@media (max-width:850px){
  html,body{min-height:100%;overflow-x:hidden}
  .heroHeader{position:sticky!important;top:0!important;z-index:60!important;box-shadow:0 5px 18px rgba(8,34,40,.14)}
  .heroArtwork{height:118px!important}
  main{display:block!important;padding:0!important;overflow:visible!important}
  .mapPane{position:sticky!important;top:210px!important;z-index:30!important;height:30vh!important;min-height:205px!important;border-radius:0!important;margin:0!important}
  #map{height:calc(100% - 34px)!important}#mapCaption{height:34px!important;padding:6px 10px!important;font-size:.67rem!important}
  .panel{border-radius:0!important;box-shadow:none!important;border-left:0!important;border-right:0!important;overflow:visible!important}
  #content{max-height:none!important;height:auto!important;overflow:visible!important;padding:10px!important}
  .v14Toolbar{position:sticky!important;top:calc(210px + 30vh)!important;z-index:29!important;margin:0 -10px 10px!important;border-radius:0!important;border-left:0!important;border-right:0!important}
}

.dualPlanActions{display:grid!important;grid-template-columns:1fr 1fr}.proposalButton{border:1px solid #b9a7dd;background:#f6f1ff;color:#59418a;padding:10px 14px;border-radius:10px;font-weight:850}.suggestedTimes{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fbfb}.timeChips{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.timeChip{border:1px solid #c9ddda;background:#fff;border-radius:999px;padding:7px 10px}.timeChip small{margin-left:5px;color:var(--muted)}.hotelResult{display:block;width:100%;text-align:left;border:1px solid var(--line);background:#fff;padding:9px;border-radius:10px;margin-top:6px}.hotelResult small{display:block;color:var(--muted)}.selectedHotel,.flightStatusBox{padding:10px;border:1px solid var(--line);border-radius:10px;background:#f7fbfa}@media(max-width:700px){.dualPlanActions{grid-template-columns:1fr!important}.timeChips{display:grid;grid-template-columns:1fr 1fr}}


/* Patch 0021 */
.favoriteHeart{border:0;background:transparent;font-size:1.35rem;line-height:1;color:#94a3a8;cursor:pointer;padding:.35rem .5rem}.favoriteHeart.isFavorite{color:#d64545}.staticHeart{cursor:default}.favoriteRow{display:flex;gap:.75rem;align-items:flex-start}.v21Card[draggable="true"]{cursor:grab}.v21Card.dragging{opacity:.5}.v21Card.dragOver{outline:2px dashed #0f7d82;outline-offset:4px}.dragHint{margin-left:auto;color:#8aa0a5;font-weight:900;letter-spacing:-3px}.logisticIcon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:#eef7f7;color:#0e7b80;flex:none}.logisticItem.flight{border-left:4px solid #6b63b5;background:#f8f7ff}.logisticItem.hotel{border-left:4px solid #c59b46;background:#fffdf7}.logisticsBadge{background:#eef4f7;color:#3b5a68}.homeBaseNote,.flightLive{font-size:.85rem;color:#607783;margin-top:.3rem}.recommendCard{padding:1rem;border:1px solid #cfe2df;border-radius:16px;background:#f5fbfa;margin-bottom:1rem}.favoriteCard{border:1px solid #d7e4e3;border-radius:16px;padding:1rem;margin:.75rem 0;background:#fff}

/* Patch 0022 - card layout and scheduling polish */
.v21Card{grid-template-columns:42px 105px minmax(0,1fr) 34px!important;gap:14px!important;align-items:start!important;min-height:0!important}
.v21Card .itemMain{min-width:0!important}
.v21Card .itemTopline{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.v21Card .dragHint{margin-left:auto}
.proposalToggleCard{position:relative}
.proposalToggleCard .proposalBody{position:relative;padding-right:58px}
.proposalFavoriteTop{position:absolute;top:8px;right:8px;z-index:2;width:42px;height:42px;padding:0!important;display:grid;place-items:center;border-radius:50%;font-size:2rem!important;background:#fff!important;box-shadow:0 2px 10px rgba(18,55,62,.08)}
.proposalFavoriteTop:hover{background:#fff7f7!important;transform:scale(1.05)}
.proposalFavoriteTop.isFavorite{color:#d63f45!important;background:#fff5f5!important}
.timeChip{cursor:pointer;transition:.15s ease;font-weight:800}
.timeChip:hover{border-color:var(--teal);background:#eef9f7}
.timeChip.selected{border-color:var(--teal)!important;background:var(--teal)!important;color:#fff!important;box-shadow:0 2px 8px rgba(15,112,120,.2)}
.timeChip.selected small{color:#e8ffff!important}
@media(max-width:850px){.v21Card{grid-template-columns:34px 74px minmax(0,1fr) 30px!important;gap:10px!important}.proposalToggleCard .proposalBody{padding-right:54px}.proposalFavoriteTop{width:40px;height:40px;font-size:1.85rem!important}}
@media(max-width:560px){.v21Card{grid-template-columns:30px 66px minmax(0,1fr) 28px!important;gap:8px!important}.v21Card .time{font-size:.74rem!important}.proposalFavoriteTop{top:7px;right:7px}}


/* Patch 0023 - logistics, category map colors, legend, legacy favorites */
:root{--cat-activity:#11827f;--cat-restaurant:#e7764f;--cat-location:#4d91b0;--cat-show:#8a67b6;--cat-shopping:#c75c86;--cat-transport:#657983;--cat-flight:#5f67b5;--cat-hotel:#c79a3d}
.marker.cat-activity,.itineraryNumber.cat-activity{background:var(--cat-activity)!important}.marker.cat-restaurant,.itineraryNumber.cat-restaurant{background:var(--cat-restaurant)!important}.marker.cat-location,.itineraryNumber.cat-location{background:var(--cat-location)!important}.marker.cat-show,.itineraryNumber.cat-show{background:var(--cat-show)!important}.marker.cat-shopping,.itineraryNumber.cat-shopping{background:var(--cat-shopping)!important}.marker.cat-transport,.itineraryNumber.cat-transport{background:var(--cat-transport)!important}
.marker.logisticMap{font-size:1rem!important;color:white!important;border:3px solid white!important}.marker.logisticMap.flight{background:var(--cat-flight)!important}.marker.logisticMap.hotel{background:var(--cat-hotel)!important}
.v21Card.cat-activity:not(.logisticItem){border-left:4px solid var(--cat-activity)}.v21Card.cat-restaurant:not(.logisticItem){border-left:4px solid var(--cat-restaurant)}.v21Card.cat-location:not(.logisticItem){border-left:4px solid var(--cat-location)}.v21Card.cat-show:not(.logisticItem){border-left:4px solid var(--cat-show)}.v21Card.cat-shopping:not(.logisticItem){border-left:4px solid var(--cat-shopping)}.v21Card.cat-transport:not(.logisticItem){border-left:4px solid var(--cat-transport)}
.logisticItem{min-height:0!important;padding-top:12px!important;padding-bottom:12px!important}.logisticItem.flight{border-left:5px solid var(--cat-flight)!important;background:linear-gradient(90deg,#f7f7ff,#fff)!important}.logisticItem.hotel{border-left:5px solid var(--cat-hotel)!important;background:linear-gradient(90deg,#fffaf0,#fff)!important}.logisticIcon.flight{background:#eeefff;color:var(--cat-flight)}.logisticIcon.hotel{background:#fff1cf;color:#9a6b11}.logisticMeta{font-size:.78rem;font-weight:750;color:#5e747d;margin-top:3px}.logisticItem .title{font-size:1rem}.logisticItem .note{font-size:.74rem}
.mapLegend{background:rgba(255,255,255,.96);border:1px solid #d7e4e3;border-radius:12px;padding:8px 10px;box-shadow:0 5px 18px #16363c24;min-width:128px;font:700 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#284650}.mapLegendTitle{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#6a7f85;margin-bottom:5px}.legendRow{display:flex;align-items:center;gap:7px;margin:4px 0}.legendSwatch,.legendStar{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:white;font-size:10px;font-weight:900}.legendSwatch.cat-flight{background:var(--cat-flight)}.legendSwatch.cat-hotel{background:var(--cat-hotel)}.legendSwatch.cat-restaurant{background:var(--cat-restaurant)}.legendSwatch.cat-activity{background:var(--cat-activity)}.legendSwatch.cat-location{background:var(--cat-location)}.legendSwatch.cat-show{background:var(--cat-show)}.legendSwatch.cat-shopping{background:var(--cat-shopping)}.legendSwatch.cat-transport{background:var(--cat-transport)}.legendStar{background:#f4f0ff;color:#7656a5;border:1px solid #d7cdf0}
.favoriteCard .links{display:flex;gap:8px;flex-wrap:wrap}.favoriteCard .staticHeart{font-size:1.8rem!important;color:#d63f45!important;padding:0!important}
@media(max-width:560px){.mapLegend{padding:6px 8px;min-width:0;max-width:160px}.legendRow{margin:3px 0;font-size:10px}.legendSwatch,.legendStar{width:16px;height:16px}.logisticItem .homeBaseNote{display:none}}

/* Patch 0025: travel timeline refinements */
.logisticTimes{font-size:.8rem;font-weight:800;color:#365660;margin-top:4px;display:flex;gap:.55rem;flex-wrap:wrap}
.logisticItem.hotel .time{color:#9a6b11}.logisticItem.flight .time{color:var(--cat-flight)}
.logisticItem.hotel .homeBaseNote{background:#fff7df;border:1px solid #f1ddb0;border-radius:10px;padding:.45rem .55rem;margin-top:.45rem}

/* Patch 0028 */
.reservationToggleWrap{margin-top:4px}.reservationToggle{display:flex!important;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d7e5e3;border-radius:14px;background:#f8fbfb;color:var(--ink)!important}.reservationToggle input{width:20px!important;height:20px;margin:2px 0 0}.reservationToggle span{display:grid;gap:2px}.reservationToggle small{font-weight:600;color:var(--muted)}.reservationInlineGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.inlineIdeas{display:grid;gap:8px;margin:10px 0 18px}.inlineIdeaCard{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px dashed #b9d9d6;background:#f7fcfb;border-radius:14px;padding:10px 12px}.inlineIdeaStar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f3efff;color:#7656a5;font-weight:900}.inlineIdeaKicker{font-size:.55rem;letter-spacing:.1em;font-weight:900;color:#0f7078}.inlineIdeaActions{display:flex;align-items:center}.logisticItem.flight .logisticMeta{line-height:1.35}
@media(max-width:850px){body{overflow-x:hidden}.heroHeader{position:relative!important}.mapPane{position:sticky!important;top:0!important;z-index:40!important;height:34vh!important;min-height:220px!important;border-radius:0 0 18px 18px!important}.panel{z-index:20!important}.mapPane #map{height:calc(100% - 38px)!important}.mapPane #mapCaption{height:38px!important}.reservationInlineGrid{grid-template-columns:1fr}.inlineIdeaCard{grid-template-columns:30px minmax(0,1fr)}.inlineIdeaActions{grid-column:2}}
/* Patch 0029 schedule rebuild */
.timeSelectField{border:0;padding:0;margin:0}.timeSelectField legend{font-weight:800;color:#607781;margin-bottom:6px}.timeSelectRow{display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(80px,1fr) minmax(84px,1fr);gap:8px;align-items:center}.timeSelectRow select{width:100%;min-height:46px}.v29Card.dragging{opacity:.5}.v29Card.dragOver{outline:3px solid rgba(11,125,127,.25);outline-offset:2px}.v29Card .logisticTimes{font-weight:800;color:#526b75}.v29Card.flight .time{color:#5b62b6}.v29Card.hotel .time{color:#98680b}
@media(max-width:760px){.timeSelectRow{grid-template-columns:1fr auto 1fr 1fr}.mapPanel{position:sticky!important;top:0!important;z-index:25!important;align-self:start}.mapWrap,#map{max-height:42vh;min-height:260px}.plannerPanel{position:relative!important}}

/* Patch 0030 — unified detailed Ideas cards */
.unifiedIdeaList{display:grid;gap:10px;margin-bottom:18px}
.unifiedIdeaCard .fitHereBadge{display:inline-flex;align-items:center;gap:5px;margin:1px 0 7px;padding:4px 8px;border-radius:999px;background:#eef8f6;color:#0b706d;font-size:.62rem;font-weight:850;line-height:1.2}
.unifiedIdeaCard .proposalBody{padding-top:11px;padding-bottom:11px}
.unifiedIdeaCard .note{font-size:.76rem;line-height:1.45}
.unifiedIdeaCard .proposalActions{margin-top:9px}
.inlineIdeas,.inlineIdeaCard{display:none!important}
@media(max-width:560px){.unifiedIdeaCard .fitHereBadge{max-width:calc(100% - 46px);white-space:normal}.unifiedIdeaCard .proposalBody{padding-right:52px}}

/* Patch 0032 - repair v29 itinerary card layout */
.v29Card{
  display:grid!important;
  grid-template-columns:42px 118px minmax(0,1fr) 34px!important;
  gap:14px!important;
  align-items:start!important;
  min-height:0!important;
  padding:14px 16px!important;
  overflow:hidden!important;
}
.v29Card .itemMain{min-width:0!important;width:auto!important;overflow:hidden!important}
.v29Card .time{white-space:nowrap!important;padding-top:4px!important;font-size:.9rem!important;line-height:1.2!important}
.v29Card .itemTopline{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;min-width:0!important}
.v29Card .title{font-size:1rem!important;line-height:1.2!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important}
.v29Card .logisticMeta,.v29Card .logisticTimes,.v29Card .note{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;max-width:100%!important}
.v29Card .dragHint{margin-left:auto!important;flex:none!important}
.v29Card .expandChevron{justify-self:end!important;align-self:start!important}
.v29Card.logisticItem{min-height:0!important}
.v29Card.logisticItem .logisticIcon{width:40px!important;height:40px!important}
.v29Card.logisticItem .homeBaseNote{max-width:520px!important}
@media(max-width:850px){
  .v29Card{grid-template-columns:36px 78px minmax(0,1fr) 30px!important;gap:10px!important;padding:12px 12px!important}
  .v29Card .time{font-size:.78rem!important}
  .v29Card .title{font-size:.92rem!important}
}
@media(max-width:560px){
  .v29Card{grid-template-columns:32px 70px minmax(0,1fr) 28px!important;gap:8px!important;padding:11px 10px!important}
  .v29Card .time{font-size:.72rem!important}
  .v29Card .title{font-size:.88rem!important}
  .v29Card .logisticMeta,.v29Card .logisticTimes,.v29Card .note{font-size:.7rem!important}
}

/* Patch 0033 — luxury layout + sticky mobile map + scheduling clarity */
.travelGuard{display:flex;gap:10px;align-items:flex-start;margin:10px 0 12px;padding:11px 13px;border:1px solid #d8e4e3;background:linear-gradient(135deg,#f5faf9,#fffaf1);border-radius:14px;box-shadow:0 8px 24px rgba(13,48,57,.06)}
.travelGuard>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#263f50;color:#fff;flex:0 0 auto}.travelGuard b{display:block;font-size:.78rem}.travelGuard small{display:block;color:var(--muted);font-size:.7rem;line-height:1.4;margin-top:2px}
.flightBlockCard{background:linear-gradient(135deg,#f8fbff,#fff);border-color:#cbd9e6;box-shadow:0 10px 30px rgba(26,55,80,.08)}.flightBlockCard .logisticIcon.flight{background:#263f50}.flightEndTime{display:block;font-size:.68rem;color:#6f8390;margin-top:3px;font-weight:750}.flightBlockNote{font-size:.72rem;line-height:1.45;color:#5f7480;margin-top:5px;max-width:720px}.flightBlockCard .logisticsBadge{background:#edf3f8;color:#38556b}
.itineraryCard{transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.itineraryCard:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(13,48,57,.08)}.item.dragOver{outline:2px solid rgba(15,112,120,.35);outline-offset:2px}.dragHint{cursor:grab;user-select:none}
.unifiedIdeaCard{box-shadow:0 10px 28px rgba(13,48,57,.07);overflow:hidden}.fitHereBadge{background:#f2f8f5;border:1px solid #dcebe5;border-radius:999px;padding:5px 9px;width:max-content;max-width:calc(100% - 48px);font-size:.66rem;color:#4e6c60;margin:6px 0 9px}.proposalFavoriteTop{width:42px!important;height:42px!important;font-size:1.45rem!important}
.loadingCard{padding:26px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#fff,#f4faf8);display:grid;gap:4px}.loadingCard span{color:var(--muted);font-size:.78rem}
@media(max-width:850px){body{overflow-x:hidden}main{display:block;padding:8px 10px 18px;overflow:visible}.mapPane{position:sticky!important;top:0!important;z-index:30!important;height:min(42svh,390px)!important;margin-bottom:10px;border-radius:18px;box-shadow:0 14px 36px rgba(13,48,57,.15)}#map{height:calc(100% - 38px)!important}#mapCaption{height:38px;font-size:.68rem;background:#fff}.panel{overflow:visible;min-height:60vh}.panel #content{max-height:none!important;overflow:visible!important}.plannerToolbar{position:sticky;top:min(42svh,390px);z-index:24;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 8px 20px rgba(13,48,57,.06)}}
@media(max-width:560px){.mapPane{height:36svh!important}.plannerToolbar{top:36svh}.v29Card{grid-template-columns:42px 72px minmax(0,1fr) 28px!important;gap:7px!important;padding:10px!important}.v29Card .time{font-size:.72rem}.v29Card .title{font-size:.9rem;line-height:1.2}.flightBlockNote{font-size:.68rem}.travelGuard{padding:10px}.proposalActions{gap:6px}.proposalActions button{flex:1 1 auto}}
.airportEndpoint{background:#263f50!important;border-color:#fff!important;font-size:.9rem}.airportEndpoint.destination{background:#0f7078!important}.airportPopup{min-width:190px}.airportPopup .linkBtn{margin-top:7px}

/* Patch 0034 — compact luxury timeline + dashboard planning */
.p34Card{display:grid!important;grid-template-columns:132px minmax(0,1fr) 28px!important;gap:12px!important;align-items:start!important;padding:11px 13px!important;min-height:0!important}
.p34Lead{display:flex;align-items:center;gap:9px;min-width:0}.p34Icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf5f3;color:#173f47;font-weight:900;flex:0 0 auto}.p34Lead.flight .p34Icon{background:#263f50;color:#fff}.p34Lead.hotel .p34Icon{background:#f4e7c9;color:#765318}.p34Time{font-size:.78rem;font-weight:900;white-space:nowrap;color:#38515b}.p34Body{min-width:0}.p34TitleRow{display:flex;align-items:center;gap:8px}.p34TitleRow .title{font-size:.98rem;line-height:1.18;flex:1}.p34Info{width:25px;height:25px;border-radius:50%;border:1px solid #c9d8d6;background:#fff;color:#557079;font:800 .75rem Georgia,serif;padding:0;flex:0 0 auto}.p34Desc{font-size:.73rem;line-height:1.35;color:#647982;margin-top:3px}.p34Travel{font-size:.72rem;font-weight:850;color:#344f5a;margin-top:4px}.p34Actions{display:flex!important;gap:6px!important;flex-wrap:nowrap!important;overflow-x:auto!important;margin-top:9px;padding-top:8px;border-top:1px solid #e6eeec}.p34Actions .quickBtn{white-space:nowrap;flex:1 0 auto;min-height:34px;padding:6px 9px}.p34InfoPanel{line-height:1.5}.p34InfoPanel p{padding-bottom:10px;border-bottom:1px solid #e6eeec}
.p34Search{margin:10px 0 14px;padding:13px 14px;border:1px solid #dbe7e4;border-radius:17px;background:linear-gradient(135deg,#fff,#f6faf8);box-shadow:0 9px 25px rgba(15,57,64,.05)}.p34Search>div:first-child{display:flex;align-items:baseline;gap:9px;margin-bottom:8px}.p34SearchRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.p34SearchRow input{min-height:43px}.p34SearchResult{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e5edeb}.p34SearchResult:first-child{margin-top:10px}.p34SearchResult>div:first-child{display:grid;gap:2px}.p34SearchResult small{color:var(--muted);font-size:.68rem}.p34SearchActions{display:flex;gap:5px;flex:none}.p34SearchActions button{padding:7px 9px}.p34Maybe.isMaybe{color:#a32639;border-color:#e1b6bd;background:#fff4f5}.p34MixedTimeline{display:grid;gap:8px}.p34MixedTimeline .unifiedIdeaCard{margin:0;border-style:dashed;background:linear-gradient(135deg,#fff,#fbfaf5)}.p34Toolbar .aiPlanButton.working{opacity:.72}.p34Toolbar button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:850px){.p34Card{grid-template-columns:104px minmax(0,1fr) 24px!important;gap:8px!important}.p34Lead{gap:6px}.p34Icon{width:30px;height:30px}.p34Time{font-size:.7rem}.p34Search{margin-top:8px}.p34SearchResult{align-items:flex-start;flex-direction:column}.p34SearchActions{width:100%}.p34SearchActions button{flex:1}.p34Actions{scrollbar-width:none}.p34Actions::-webkit-scrollbar{display:none}}
@media(max-width:560px){.p34Card{grid-template-columns:92px minmax(0,1fr) 22px!important;padding:9px 10px!important}.p34TitleRow .title{font-size:.9rem}.p34Desc,.p34Travel{font-size:.68rem}.p34Search>div:first-child{display:grid;gap:2px}.p34SearchRow{grid-template-columns:1fr auto}}

/* Patch 0036 — full-width itinerary action bar; no horizontal card scrolling */
.p34Actions{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
  max-width:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  margin-top:9px!important;
  padding-top:9px!important;
  border-top:1px solid #e6eeec!important;
}
.p34Actions .quickBtn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  white-space:nowrap!important;
  text-align:center!important;
  padding:7px 6px!important;
  min-height:34px!important;
  font-size:.67rem!important;
}
.avNextDirections{background:#fff!important;color:#173f47!important;border-color:#c8ddda!important;opacity:1!important;box-shadow:0 2px 8px rgba(15,57,64,.08)!important}
.tripLocationPrompt{display:grid;gap:6px;margin-top:9px}.tripLocationPrompt small{color:var(--muted);font-size:.68rem;line-height:1.35}.tripLocationPrompt .quickBtn{justify-self:start}
@media(max-width:720px){
  .p34Actions{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important;gap:6px!important}
  .p34Actions .quickBtn{font-size:.62rem!important;padding:6px 4px!important}
}
@media(max-width:430px){
  .p34Actions{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important}
  .p34Actions .quickBtn{font-size:.59rem!important}
}

/* Patch 0038 — mobile map mode + sticky masthead + roomy full-width card actions */
.mobileMapToggle{display:none}
.p34Card.expanded .p34Actions{grid-column:1/-1!important}
.p34Actions{grid-template-columns:repeat(5,minmax(88px,1fr))!important}
.p34Actions .quickBtn{font-size:.72rem!important;line-height:1.15!important;padding:8px 7px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

@media(max-width:850px){
  .heroHeader{position:sticky!important;top:0!important;z-index:80!important;box-shadow:0 7px 22px rgba(8,34,40,.16)!important}
  main{padding-top:8px!important}
  .mapPane{display:none!important;position:relative!important;top:auto!important;height:auto!important;min-height:0!important;margin:0!important}
  .mobileMapToggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;border:1px solid #cfe0dd;background:linear-gradient(135deg,#fff,#eef8f6);color:var(--teal);border-radius:14px;margin:0 0 9px;padding:9px 13px;font-weight:900;box-shadow:0 7px 18px rgba(13,48,57,.06);cursor:pointer}
  .mobileMapToggle>span{font-size:1.05rem}
  .plannerToolbar{position:relative!important;top:auto!important}
  .p34Actions{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))!important}
  .p34Actions .quickBtn{font-size:.65rem!important;padding:7px 5px!important}
  body.mobileMapOpen{overflow:hidden!important;background:#eef5f3}
  body.mobileMapOpen .heroHeader{display:none!important}
  body.mobileMapOpen main{padding:0!important;margin:0!important;max-width:none!important}
  body.mobileMapOpen .panel{display:none!important}
  body.mobileMapOpen .mapPane{display:block!important;position:fixed!important;inset:0!important;z-index:100!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important;background:#e9f2ef}
  body.mobileMapOpen .mapPane #map{height:100%!important;min-height:100%!important}
  body.mobileMapOpen .mapPane #mapCaption{position:absolute!important;left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;z-index:700!important;height:auto!important;min-height:36px!important;border-radius:12px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 8px 24px rgba(13,48,57,.18)!important;backdrop-filter:blur(10px)!important;padding:8px 12px!important}
  body.mobileMapOpen .mobileMapToggle{position:fixed!important;top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;left:auto!important;z-index:900!important;width:auto!important;min-width:142px!important;margin:0!important;background:rgba(20,49,59,.92)!important;color:#fff!important;border-color:rgba(255,255,255,.35)!important;box-shadow:0 10px 28px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)!important}
}
@media(max-width:430px){
  .p34Actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .p34Actions .quickBtn:last-child{grid-column:1/-1}
}

/* Patch 0039 — locked mobile masthead + compact planner controls + responsive Ideas */
@media(max-width:850px){
  :root{--mobile-masthead-h:210px}
  body:not(.mobileMapOpen){padding-top:var(--mobile-masthead-h)!important}
  body:not(.mobileMapOpen) .heroHeader{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:120!important;
    margin:0!important;
    box-shadow:0 8px 24px rgba(8,34,40,.18)!important;
    transform:translateZ(0);
    -webkit-transform:translateZ(0);
  }
  body:not(.mobileMapOpen) main{margin-top:0!important}
  body.mobileMapOpen{padding-top:0!important}

  /* Keep the date selector full width; Ideas + AI share one compact row. */
  .p34Toolbar,
  .plannerToolbar.v14Toolbar.p34Toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "view view"
      "ideas ai"!important;
    align-items:stretch!important;
    gap:7px!important;
    padding:9px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .p34Toolbar .planSelectLabel{grid-area:view!important;min-width:0!important}
  .p34Toolbar #proposalToggle{grid-area:ideas!important;width:100%!important;min-width:0!important}
  .p34Toolbar #pageAi{grid-area:ai!important;width:100%!important;min-width:0!important}
  .p34Toolbar .plannerTool{
    height:40px!important;
    padding:0 9px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    white-space:normal!important;
    overflow:hidden!important;
  }
  .p34Toolbar .plannerTool .toolIcon{flex:0 0 auto!important}
  .p34Toolbar .plannerTool span:last-child{min-width:0!important;line-height:1.05!important}
  .p34Toolbar .plannerTool b{font-size:.72rem!important;white-space:nowrap!important}
  .p34Toolbar .plannerTool small{display:none!important}
  .p34Toolbar .aiPlanButton{font-size:.72rem!important}

  /* Ideas must never be wider than the planner column. */
  .p34MixedTimeline,
  .unifiedIdeaList,
  .unifiedIdeaCard,
  .proposalToggleCard,
  .proposalBody{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .unifiedIdeaCard,
  .proposalToggleCard{overflow:hidden!important}
  .unifiedIdeaCard .proposalBody{
    box-sizing:border-box!important;
    padding:10px 50px 10px 11px!important;
    overflow:hidden!important;
  }
  .unifiedIdeaCard .proposalMeta{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    min-width:0!important;
    padding-right:0!important;
  }
  .unifiedIdeaCard .proposalKind,
  .unifiedIdeaCard .proposalTime{
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.15!important;
  }
  .unifiedIdeaCard .fitHereBadge{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    border-radius:11px!important;
    line-height:1.25!important;
    margin:6px 0 8px!important;
  }
  .unifiedIdeaCard .title{
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.18!important;
  }
  .unifiedIdeaCard .note{
    max-width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.35!important;
  }
  .unifiedIdeaCard .proposalFavoriteTop{
    top:8px!important;
    right:8px!important;
    width:36px!important;
    height:36px!important;
    font-size:1.2rem!important;
  }
  .unifiedIdeaCard .proposalActions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .unifiedIdeaCard .proposalActions button{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    line-height:1.15!important;
    padding:8px 6px!important;
  }

  /* Keep expanded travel-card controls clean and contained. */
  .p34Card.expanded .p34Actions{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .p34Actions .quickBtn{min-width:0!important;max-width:100%!important}
}

@media(max-width:430px){
  .p34Toolbar .plannerTool{height:38px!important;padding:0 7px!important;gap:5px!important}
  .p34Toolbar .plannerTool b{font-size:.68rem!important}
  .unifiedIdeaCard .proposalBody{padding-right:47px!important}
}

/* Patch 0040 — contain desktop card actions, dynamic mobile masthead spacing, map-view placement */
@media(min-width:851px){
  .p34Card.expanded .p34Actions{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  .p34Actions .quickBtn{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding:8px 4px!important;
    font-size:clamp(.60rem,.72vw,.72rem)!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
}

@media(max-width:850px){
  :root{--mobile-masthead-h:0px}
  body:not(.mobileMapOpen){padding-top:var(--mobile-masthead-h)!important}
  body:not(.mobileMapOpen) main{
    padding-top:10px!important;
    margin-top:0!important;
  }
  body:not(.mobileMapOpen) .mobileMapToggle{
    position:relative!important;
    z-index:20!important;
    margin:8px 0 10px!important;
  }
}

/* Avelune unified shell */
:root{--avelune-midnight:var(--avelune-blue);--avelune-line:var(--avelune-border-standard)}
body:not(.aveluneTripMode){background:var(--avelune-cream)}
.aveluneAuthView{min-height:100dvh;display:grid;grid-template-columns:1fr minmax(340px,520px);gap:70px;align-items:center;padding:7vw;background:radial-gradient(circle at 12% 20%,#173b42 0,#071f2a 45%,#04151d 100%);color:white}.authBrand{display:flex;align-items:center;gap:20px}.authBrand h1{font-family:Georgia,serif;font-size:64px;margin:0;color:#fff}.authBrand p{margin:4px 0 0;letter-spacing:.16em;text-transform:uppercase;color:#e3c18c}.aveluneA{font-family:Georgia,serif;font-size:82px;line-height:.8;color:var(--avelune-gold);font-style:italic}.authCard{background:#fff;color:#132630;border-radius:28px;padding:38px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.authCard h2,.dashboardIntro h2,.createTripCard h2{font-family:Georgia,serif;font-size:38px;margin:8px 0}.authCard label,.createTripCard label{display:grid;gap:6px;font-weight:700;margin:12px 0}.authCard input,.createTripCard input,.createTripCard select{border:1px solid var(--avelune-line);border-radius:12px;padding:13px;font:inherit}.authNameRow{display:grid;grid-template-columns:1fr 1fr;gap:10px}.avelunePrimary,.aveluneGhost,.aveluneBack,.aveluneAccount,.aveluneTextButton{border:0;border-radius:12px;padding:12px 16px;font:inherit;cursor:pointer}.avelunePrimary{background:var(--avelune-midnight);color:white}.aveluneGhost,.aveluneBack,.aveluneAccount{background:#fff;border:1px solid var(--avelune-line);color:var(--avelune-midnight)}.aveluneTextButton{display:block;background:transparent;color:#5c746a;margin:8px auto 0}.authCard>.avelunePrimary{width:100%;margin-top:10px}.authError{min-height:20px;color:#984d3f;font-size:13px}.aveluneDashboard{min-height:100dvh;padding:28px clamp(20px,5vw,70px) 80px;background:var(--avelune-cream);color:#102832}.dashboardHeader{display:flex;justify-content:space-between;align-items:center}.authBrand.compact .aveluneA{font-size:52px}.authBrand.compact h1{font-size:36px;color:var(--avelune-midnight)}.authBrand.compact p{font-size:9px;color:#9b7648}.dashboardActions{display:flex;gap:8px}.dashboardIntro{max-width:720px;margin:70px 0 28px}.dashboardIntro h2{font-size:52px}.dashboardIntro p{color:#6b7475}.aveluneTripGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.aveluneTripCard{background:white;border:1px solid var(--avelune-line);border-radius:22px;overflow:hidden;box-shadow:0 10px 30px rgba(11,31,42,.06)}.tripCardVisual{min-height:250px;padding:28px;background:linear-gradient(120deg,#082532,#4f6d64 65%,#c5a36b);color:white;background-size:cover;background-position:center}.tripCardVisual span{font-size:10px;letter-spacing:.18em}.tripCardVisual h3{font-family:Georgia,serif;font-size:36px;margin:52px 0 5px}.tripCardVisual p{font-size:20px}.tripCardFooter{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:16px 18px;color:#6d7779}.emptyTrips{grid-column:1/-1;text-align:center;border:1px dashed #d6c7b4;border-radius:24px;padding:70px;background:white}.aveluneTripBar{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:rgba(7,31,42,.97);color:white;border-bottom:1px solid rgba(255,255,255,.1)}.aveluneMiniBrand{display:flex;align-items:center;gap:8px}.aveluneMiniBrand .aveluneA{font-size:34px}.aveluneMiniBrand b{font-family:Georgia,serif;font-size:23px}.aveluneMiniBrand small{display:block;font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:#d9b77f}.aveluneBack,.aveluneAccount{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:white}.genericTripHero{background:linear-gradient(130deg,#0a2934,#71877a 60%,#c7a56d)}.genericTripHero:after{content:"AVELUNE";position:absolute;inset:auto 10% 12%;font-family:Georgia,serif;font-size:clamp(50px,8vw,120px);color:rgba(255,255,255,.2);letter-spacing:.08em}.aveluneCreateDialog{border:0;border-radius:24px;padding:0;box-shadow:0 30px 80px rgba(0,0,0,.24)}.aveluneCreateDialog::backdrop{background:rgba(7,31,42,.65)}.createTripCard{position:relative;width:min(560px,90vw);padding:30px}.createTripCard .x{position:absolute;right:18px;top:16px;border:0;background:transparent;font-size:28px}.eyebrow{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#88714d}
@media(max-width:760px){.aveluneAuthView{grid-template-columns:1fr;padding:28px 18px}.authBrand:not(.compact){display:none}.authCard{padding:28px 20px}.dashboardHeader{align-items:flex-start}.dashboardActions .aveluneGhost{display:none}.dashboardIntro{margin:42px 0 22px}.dashboardIntro h2{font-size:38px}.aveluneTripGrid{grid-template-columns:1fr}.aveluneTripBar{padding-top:calc(8px + env(safe-area-inset-top))}.aveluneMiniBrand small{display:none}.aveluneMiniBrand b{font-size:20px}.authNameRow{grid-template-columns:1fr}.tripCardVisual{min-height:230px}}
.aveluneAuthView.guestAveluneView{display:block;padding:0;background:#071f2a;color:#102832;overflow:auto}.guestAveluneView>.authBrand{display:none}.guestAveluneShell{max-width:none!important;width:100%!important;padding:0!important;border-radius:0!important;background:#f8f3e9!important;box-shadow:none!important}.guestHero{min-height:300px;padding:clamp(34px,7vw,82px) clamp(22px,8vw,110px);background:linear-gradient(135deg,#061c2a,#123b48 68%,#9b7b46);color:#fff}.guestBrand{display:block;margin-bottom:46px;font-family:Georgia,serif;font-size:23px;letter-spacing:.16em;color:#d8b36d}.guestHero .eyebrow{color:#e2c58e!important}.guestHero h1{margin:8px 0!important;font-family:Georgia,serif;font-size:clamp(44px,7vw,78px)!important;color:#fff}.guestHero p{margin:0 0 20px!important;color:#f4eee2!important}.guestHero small{color:#dfd5c4}.guestTripMain{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:34px 0 70px}.guestSection{margin:0 0 22px;padding:24px;border:1px solid #e3d8c6;border-radius:20px;background:#fff}.guestSection>.eyebrow{color:#9c7336!important}.guestSection h2,.guestSection h3,.guestSection h4{font-family:Georgia,serif;color:#102832}.guestUpNext{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:20px;border-radius:16px;background:#0b2a38;color:#fff}.guestUpNext time{font-weight:850;color:#dfbd7b}.guestUpNext h3{margin:0!important;color:#fff}.guestCardActions,.guestIdeaActions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.guestCardActions a{text-decoration:none}.guestDay>h3{position:sticky;top:0;z-index:1;margin:18px 0 8px!important;padding:9px 0;background:#fff}.guestItineraryCard,.guestIdeaCard,.guestAskResult{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #ede4d6}.guestItineraryCard time{font-weight:850;color:#9a7137}.guestItineraryCard h4,.guestIdeaCard h4,.guestAskResult h4{margin:0!important;font-size:18px}.guestItineraryCard p,.guestIdeaCard p,.guestAskResult p{margin:3px 0!important;color:#6b7778;font-size:13px}.guestIdeaCard,.guestAskResult{grid-template-columns:minmax(0,1fr) auto}.guestCardKind,.guestIdeaStatus{display:block;color:#8a7048;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.guestAskBar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.guestAskBar input{height:48px;border:1px solid #d8cbb8;border-radius:12px;padding:0 14px;font:inherit}.guestAskAnswer,.guestNotifications{margin-top:12px;padding:14px;border-radius:14px;background:#f7f1e7}.guestNotifications p{margin:5px 0!important}.guestEmpty{color:#718082!important}.guestUpgrade{text-align:center;background:linear-gradient(140deg,#fff,#f3e7d2)}.guestUpgrade .avelunePrimary{display:block;margin:16px auto 4px;min-width:220px}.guestUpgrade .aveluneTextButton{margin:auto}.guestIdeaCard:first-child,.guestAskResult:first-child{border-top:0}@media(max-width:700px){.guestHero{min-height:230px;padding:30px 20px}.guestBrand{margin-bottom:34px}.guestTripMain{width:min(100% - 20px,1120px);padding-top:18px}.guestSection{padding:18px}.guestUpNext,.guestItineraryCard{grid-template-columns:1fr;gap:8px}.guestAskBar{grid-template-columns:1fr}.guestCardActions{justify-content:flex-start}.guestDay>h3{top:0}}


/* Avelune unified v0.2 — auth polish and resilient post-signup transition */
.aveluneAuthView{
  grid-template-columns:minmax(300px,1fr) minmax(420px,560px);
  gap:clamp(40px,6vw,90px);
  padding:clamp(28px,6vw,84px);
  overflow-x:hidden;
}
.authBrand:not(.compact){max-width:560px;justify-self:end}
.authBrand:not(.compact) h1{font-size:clamp(56px,6vw,86px);line-height:.95}
.authBrand:not(.compact) p{max-width:430px;font-size:clamp(12px,1.15vw,17px);line-height:1.35}
.authCard{width:100%;max-width:560px;box-sizing:border-box;padding:clamp(28px,3vw,44px);justify-self:start}
.authCard *{box-sizing:border-box}
.authCard h2{font-size:clamp(38px,4vw,58px);line-height:1.02;margin:10px 0 20px;max-width:480px}
.authCard>p{font-size:17px;line-height:1.35;color:#536066;margin:0 0 24px;max-width:430px}
.authCard label{min-width:0;font-size:14px;margin:12px 0}
.authCard input{display:block;width:100%;min-width:0;height:52px;padding:12px 14px;background:#fff}
.authNameRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.authNameRow>label{min-width:0}
.authCard>.avelunePrimary{height:52px;border-radius:14px;font-weight:700}
.authCard>.avelunePrimary:disabled{opacity:.7;cursor:wait}
.authError{margin-top:8px;line-height:1.35}
.authError.authSuccess{color:#4e7466}
.inlineSignIn{border:0;background:transparent;color:#315f54;text-decoration:underline;font:inherit;font-weight:700;cursor:pointer;padding:0 2px}
.dashboardLoading,.dashboardLoadError{grid-column:1/-1;background:#fff;border:1px solid var(--avelune-line);border-radius:22px;padding:42px;text-align:center}
.dashboardLoading{display:flex;align-items:center;justify-content:center;gap:12px;color:#607074}
.dashboardLoading span{width:18px;height:18px;border:2px solid #d9d0c3;border-top-color:var(--avelune-midnight);border-radius:50%;animation:aveluneSpin .8s linear infinite}
.dashboardLoadError h3{font-family:Georgia,serif;font-size:28px;margin:8px 0}
.dashboardLoadError p{color:#7b6863}
@keyframes aveluneSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){
  .aveluneAuthView{grid-template-columns:1fr;place-items:center;padding:32px 18px}
  .authBrand:not(.compact){display:none}
  .authCard{justify-self:center;max-width:560px}
}
@media(max-width:560px){
  .authCard{border-radius:24px;padding:26px 20px}
  .authCard h2{font-size:38px}
  .authNameRow{grid-template-columns:1fr}
}

/* v0.3 auth transition hardening */
.authSuccess{color:#3f6c5b}.authCard button:disabled{opacity:.62;cursor:wait}

/* v0.3.3 root-cause fix: respect application view visibility.
   The author-level display:grid rules on .aveluneAuthView/.aveluneDashboard
   were overriding the browser's built-in [hidden] rule, so successful login
   actually opened the dashboard underneath the still-visible auth screen. */
.aveluneAuthView[hidden],
.aveluneDashboard[hidden],
.tripWorkspace[hidden]{display:none!important}


/* Avelune v0.3.4 — luxury navy/gold shell + Google place detail polish */
:root{
  --avelune-midnight:var(--avelune-blue);
  --avelune-navy:var(--avelune-blue);
  --avelune-navy-2:var(--avelune-dark-navy);
  --avelune-gold-light:var(--avelune-cream);
  --avelune-line:var(--avelune-border-standard);
}
.aveluneA{
  display:block!important;
  width:92px!important;height:92px!important;
  flex:0 0 92px!important;
  font-size:0!important;
  background:url("/brand/avelune-logo-square-dark.svg") center/contain no-repeat!important;
}
.authBrand.compact .aveluneA{width:60px!important;height:60px!important;flex-basis:60px!important}
.aveluneMiniBrand .aveluneA{width:42px!important;height:42px!important;flex-basis:42px!important}
.aveluneAuthView{
  background:
    radial-gradient(circle at 18% 20%,rgb(var(--avelune-gold-rgb)/.10),transparent 32%),
    var(--avelune-surface-dark)!important;
}
.authBrand:not(.compact) h1{color:var(--avelune-text-inverse)!important;letter-spacing:.01em}
.authBrand:not(.compact) p{color:var(--avelune-gold-light)!important}
.authCard{
  background:rgba(255,253,248,.99)!important;
  border:1px solid rgba(212,163,82,.24)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.34)!important;
}
.authCard .eyebrow,.createTripCard .eyebrow{color:#a97528!important}
.avelunePrimary{
  background:var(--avelune-action-primary-bg)!important;
  color:var(--avelune-action-primary-text)!important;
  border:1px solid var(--avelune-border-accent)!important;
  box-shadow:0 7px 18px rgb(var(--avelune-blue-rgb)/.13);
}
.avelunePrimary:hover{filter:brightness(1.08)}
.aveluneGhost{background:var(--avelune-action-secondary-bg)!important;border-color:var(--avelune-border-accent)!important}
.aveluneDashboard{background:var(--avelune-surface-secondary)!important}
.dashboardHeader{
  margin:-28px clamp(-20px,-5vw,-70px) 0!important;
  padding:18px clamp(20px,5vw,70px)!important;
  background:var(--avelune-surface-dark)!important;
  border-bottom:1px solid rgb(var(--avelune-gold-rgb)/.3);
}
.dashboardHeader .authBrand.compact h1{color:var(--avelune-text-inverse)!important}
.dashboardHeader .authBrand.compact p{color:var(--avelune-gold-light)!important}
.dashboardHeader .aveluneGhost{color:var(--avelune-text-inverse)!important;background:transparent!important;border-color:var(--avelune-border-accent)!important}
.dashboardHeader .avelunePrimary{background:var(--avelune-gold)!important;color:var(--avelune-blue)!important;border-color:var(--avelune-gold)!important}
.dashboardIntro .eyebrow{color:var(--avelune-text-accent)!important}
.dashboardIntro h2{color:var(--avelune-blue)!important}
.aveluneTripCard{border-color:#e1d4c0!important;box-shadow:0 12px 32px rgba(3,24,39,.07)!important}
.tripCardVisual{background:linear-gradient(120deg,#031827,#234858 65%,#bd8d43)!important}

/* New trip dialog: readable, luxurious, and contained */
.aveluneCreateDialog{
  width:min(620px,calc(100vw - 32px))!important;
  max-width:620px!important;
  max-height:min(90dvh,820px)!important;
  background:transparent!important;
  overflow:visible!important;
}
.aveluneCreateDialog::backdrop{
  background:rgba(3,24,39,.72)!important;
  backdrop-filter:blur(5px);
}
.createTripCard{
  width:100%!important;
  max-height:min(90dvh,820px)!important;
  overflow:auto!important;
  padding:34px 36px 30px!important;
  color:#071f2a!important;
  background:linear-gradient(180deg,#fffdf9,#fff8ed)!important;
  border:1px solid #e8d8bd!important;
  border-radius:24px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.26)!important;
}
.createTripCard h2{color:#031827!important;font-size:44px!important;line-height:1.02!important;margin:6px 0 8px!important}
.createTripIntro{margin:0 0 18px;color:#64727a;line-height:1.45;font-size:14px}
.createTripCard label{color:#102b39!important;margin:10px 0!important;gap:6px!important}
.createTripCard label small{font-size:11px;color:#78858a;font-weight:500}
.createTripCard input,.createTripCard select{
  color:#092331!important;
  background:#fff!important;
  border:1px solid #d9c9b2!important;
  box-shadow:0 1px 0 rgba(3,24,39,.02)!important;
  height:50px!important;
  outline:none!important;
}
.createTripCard input::placeholder{color:#98a0a2!important;opacity:1!important}
.createTripCard input:focus,.createTripCard select:focus{
  border-color:#c18b37!important;
  box-shadow:0 0 0 3px rgba(212,163,82,.15)!important;
}
.createTripCard .x{
  width:42px;height:42px;border-radius:50%!important;
  display:grid;place-items:center;
  color:#031827!important;background:#f4eadc!important;
  font-size:26px!important;line-height:1!important;
}
.createTripCard>.avelunePrimary{width:100%;height:52px;margin-top:10px;font-weight:800}
.createTripFoot{text-align:center;color:#7f725f;font-size:11px;margin-top:12px}

/* Account creation: fit normal laptop height without clipped action */
@media(min-width:761px){
  .aveluneAuthView{padding:28px 5vw!important;gap:48px!important}
  .authCard{
    padding:24px 30px 20px!important;
    max-height:calc(100dvh - 48px)!important;
    overflow:auto!important;
    scrollbar-width:thin;
  }
  .authCard h2{font-size:44px!important;margin:5px 0 8px!important}
  .authCard>p{font-size:14px!important;margin-bottom:12px!important}
  .authCard label{margin:7px 0!important;font-size:12px!important;gap:4px!important}
  .authCard input{height:44px!important;padding:9px 12px!important}
  .authCard>.avelunePrimary{height:46px!important;margin-top:7px!important}
  .aveluneTextButton{padding:6px 12px!important;margin-top:2px!important}
  .authError{min-height:14px!important}
  .authNameRow{gap:10px!important}
}
@media(max-width:760px){
  .createTripCard{padding:26px 20px 24px!important}
  .createTripCard h2{font-size:36px!important}
  .aveluneA{width:62px!important;height:62px!important;flex-basis:62px!important}
  .authCard{max-height:calc(100dvh - 36px)!important;overflow:auto!important}
}

/* Place details: premium sheet + native direction action */
#placeDialog{padding:0;border:0;background:transparent;max-width:min(980px,96vw);width:min(980px,96vw)}
#placeDialog::backdrop{background:rgba(3,24,39,.72);backdrop-filter:blur(5px)}
#placeDialog .sheet.detail{
  position:relative;
  background:#fffdf9!important;
  border-radius:24px!important;
  padding:18px 22px 22px!important;
  max-height:92dvh!important;
  overflow:auto!important;
  box-shadow:0 32px 90px rgba(0,0,0,.32)!important;
}
#placeDialog .detailGallery{border-radius:18px!important;overflow:hidden;background:#edf2f1}
#placeDialog .detailGallery img{display:block;width:100%;max-height:55dvh;object-fit:cover}
#placeDialog h2{font-family:Georgia,serif;color:#031827;font-size:34px;margin:8px 0}
#placeDialog .rating{color:#a56b08;font-weight:800}
#placeDialog .links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#placeDialog .bigDirections{background:linear-gradient(135deg,#031827,#082f45)!important;color:#fff!important;border:0!important}
#placeDialog .linkBtn{background:#fff!important;border-color:#ddcfba!important;color:#092331!important}
#placeDialog details{margin:10px 0}
#placeDialog details summary{font-weight:800;color:#102b39;cursor:pointer}
#placeDialog .reservation{border-left-color:#d4a352!important;background:#fff8ed!important}

/* v0.3.5 — Google Maps rendering */
#map .gm-style{font-family:inherit}
#map .gm-style .gm-style-iw{color:#071f2a}
.aveluneGoogleOverlayMarker{user-select:none;-webkit-user-select:none}
.aveluneGoogleOverlayMarker .marker,.aveluneGoogleOverlayMarker .proposalMapMarker{filter:drop-shadow(0 3px 5px rgba(3,24,39,.24))}
#map .mapLegend{margin:0 0 12px 12px;background:rgba(255,253,248,.97);border:1px solid rgba(212,163,82,.32);border-radius:13px;box-shadow:0 8px 22px rgba(3,24,39,.14)}


/* v0.3.6 — Avelune full luxury shell */
html,body{background:var(--avelune-blue)!important}
body{color:var(--avelune-ivory)}
#aveluneShell{background:var(--avelune-blue);min-height:100dvh}
.shellPreflight{visibility:hidden}
.aveluneBoot{
  position:fixed;inset:0;z-index:99999;
  display:grid;place-content:center;justify-items:center;
  background:
    radial-gradient(circle at 50% 35%,rgb(var(--avelune-gold-rgb)/.12),transparent 30%),
    var(--avelune-blue);
  color:var(--avelune-ivory);transition:opacity .22s ease;
}
.aveluneBoot.done{opacity:0;pointer-events:none}
.bootMark .aveluneA{width:96px!important;height:96px!important;flex-basis:96px!important}
.bootWord{font:600 44px/1 var(--avelune-font-display);letter-spacing:.02em;margin-top:8px}
.bootTag{color:var(--avelune-gold);font-size:10px;letter-spacing:.24em;font-weight:800;margin-top:10px}

.aveluneDashboard{
  background:
    radial-gradient(circle at 78% 10%,rgb(var(--avelune-gold-rgb)/.08),transparent 24%),
    var(--avelune-blue)!important;
  color:var(--avelune-ivory)!important;
  min-height:100dvh;
}
.dashboardIntro h2,.dashboardIntro p{color:var(--avelune-ivory)!important}
.dashboardIntro p{opacity:.72}
.dashboardIntro .eyebrow{color:var(--avelune-gold)!important}
.aveluneTripCard{background:var(--avelune-ivory)!important;border-color:rgb(var(--avelune-gold-rgb)/.28)!important}
.tripCardFooter{color:#374854!important}
.tripCardVisual{min-height:230px!important}
.tripCardVisual span,.tripCardVisual h3,.tripCardVisual p,.tripCardVisual div{color:var(--avelune-ivory)!important}

.tripWorkspace{
  background:
    var(--avelune-blue)!important;
  color:var(--avelune-ivory)!important;
}
.aveluneTripBar{
  background:rgb(var(--avelune-blue-rgb)/.96)!important;
  border-bottom:1px solid rgb(var(--avelune-gold-rgb)/.30)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}
.aveluneMiniBrand b{color:var(--avelune-ivory)!important}
.aveluneMiniBrand small{color:var(--avelune-gold)!important}
.aveluneBack,.aveluneAccount,.aveluneTripEdit{
  background:rgba(255,250,240,.05)!important;
  border:1px solid rgba(212,163,82,.45)!important;
  color:#fffaf0!important;
  border-radius:12px;padding:10px 14px;font-weight:800;
}
.aveluneTripEdit{color:#e7c37e!important}
.tripBarActions{display:flex;gap:8px;align-items:center}
.heroHeader{
  background:linear-gradient(110deg,#031827,#0b3448)!important;
  border-bottom:1px solid rgba(212,163,82,.22);
}




.tripWorkspace main{background:var(--avelune-blue)!important}
.mapPane,.panel{
  background:#fffaf0!important;
  border-color:rgba(212,163,82,.28)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.18)!important;
}
#mapCaption{background:#fffaf0!important;color:#58666d!important}
.panel{color:#102b39!important}
.plannerToolbar,.searchPanel,.planDay,.proposal,.loadingCard,.emptyPlan{
  background:#fffdf9!important;
  border-color:#e4d5bf!important;
}
.plannerToolbar{box-shadow:0 10px 26px rgba(3,24,39,.08)}
.drawerEyebrow,.eyebrow{color:#9c702d!important}
.confirm,.aiPlanButton,.searchPanel button,#searchBtn{
  background:#073149!important;color:#fffaf0!important;border-color:#0b4864!important;
}
.ghost,.plannerTool,.linkBtn{background:#fffaf0!important;color:#102b39!important;border-color:#dacdb9!important}
.sideMenu .sheet,.actionDialog .sheet,#placeDialog .sheet{
  background:#fffaf0!important;color:#102b39!important;
}

/* edit trip preview */
.editHeroPreview{
  min-height:82px;border:1px dashed #d8c3a3;border-radius:14px;
  background:#f7efe2;display:grid;place-items:center;overflow:hidden;
  color:#7a6c58;font-size:12px;margin-top:4px;
}
.editHeroPreview img{display:block;width:100%;height:140px;object-fit:cover}
.editHeroPreview.bad:after{content:"Image could not be previewed.";padding:20px}
.editHeroPreview.bad img{display:none}

/* Map authorization diagnostic */
.mapFallback{
  height:100%;min-height:360px;display:grid;place-content:center;text-align:center;
  padding:32px;color:#102b39;background:linear-gradient(180deg,#f8f2e7,#eee4d4);
}
.mapFallback b{font:700 30px/1.1 Georgia,serif;color:#031827;margin-bottom:10px}
.mapFallback div{max-width:540px;line-height:1.5}
.mapFallback small{display:block;margin-top:14px;color:#8d6a31;font-weight:700}

@media(max-width:760px){
  .tripBarActions{gap:5px}
  .aveluneTripEdit,.aveluneAccount{padding:8px 9px;font-size:11px}
  .bootWord{font-size:36px}
}

.detailGallery.photoFailed{min-height:250px;background:linear-gradient(135deg,#e8efee,#f6f1e7);display:grid;place-items:center}
.detailGallery.photoFailed:after{content:"Google Places photo temporarily unavailable";color:#64747a;font-weight:700;font-size:13px}
.detailGallery.photoFailed img{display:none}
.directionsChooserDialog{border:0;padding:0;background:transparent;width:min(520px,calc(100vw - 28px))}
.directionsChooserDialog::backdrop{background:rgba(3,24,39,.70);backdrop-filter:blur(5px)}
.directionsChooserCard{position:relative;background:#fffaf0;color:#102b39;border-radius:22px;padding:28px;border:1px solid #e2cfaf;box-shadow:0 28px 80px rgba(0,0,0,.30)}
.directionsChooserCard h3{font:700 31px/1.1 Georgia,serif;margin:5px 0;color:#031827}
.directionsChooserCard p{color:#66757b;margin:6px 0 18px}
.directionClose{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:50%;border:1px solid #ddceb8;background:#fff;color:#031827;font-size:22px}
.directionChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.directionChoice{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;text-decoration:none;color:#102b39;border:1px solid #dccbad;background:white;border-radius:15px;padding:15px}
.directionChoice>span{grid-row:1/3;font-size:26px;font-weight:900}.directionChoice b{font-size:14px}.directionChoice small{color:#778288;font-size:10px}.directionChoice.google>span{color:#4285f4}.directionChoice.apple>span{color:#111}
.bannerEditor{margin:10px 0;padding:14px;border-radius:16px;border:1px solid #e0d0b9;background:#fbf5eb}
.bannerEditorHead{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:8px}.bannerEditorHead label{font-weight:800!important;margin:0!important}.bannerEditorHead small{font-size:10px;color:#748087;text-align:right;max-width:290px}
.bannerActions{display:flex;gap:8px;margin-top:9px}
.bannerUploadBtn{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:0 15px!important;margin:0!important;border-radius:11px;border:1px solid #c99342!important;background:#fffaf0;color:#102b39!important;cursor:pointer;font-size:12px!important;font-weight:800!important}
.bannerPromptLabel{margin-top:10px!important;font-size:11px!important}.bannerPromptLabel input{height:42px!important}
.editHeroPreview.generating{position:relative;opacity:.7}.editHeroPreview.generating:after{content:"Avelune is creating your trip banner…";position:absolute;inset:0;display:grid;place-items:center;background:rgba(3,24,39,.72);color:#fffaf0;font-weight:800}
#map .gm-style-mtc button{font-family:inherit!important}
@media(max-width:600px){.directionChoices{grid-template-columns:1fr}.bannerEditorHead{display:block}.bannerEditorHead small{display:block;text-align:left;margin-top:3px}.bannerActions{display:grid;grid-template-columns:1fr 1fr}}


/* v0.3.8 — planner polish, calendar view, Explore & Add */
.p38Toolbar{
  display:grid!important;
  grid-template-columns:minmax(190px,1.35fr) repeat(3,minmax(128px,.85fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.p38Toolbar>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.planViewButton,.p38Toolbar .plannerTool{
  min-height:74px!important;
  border-radius:17px!important;
  border:1px solid #d9cbb6!important;
  background:#fffaf0!important;
  color:#102b39!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  text-align:left!important;
}
.planViewButton span:first-child{display:grid;gap:3px;min-width:0}
.planViewButton small{font-size:10px;letter-spacing:.14em;color:#8a6f46;font-weight:900}
.planViewButton b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendarGlyph{font-size:25px;color:#b07a2c}
.p38Toolbar .plannerTool>span:last-child{min-width:0}
.p38Toolbar .plannerTool b,.p38Toolbar .plannerTool small{display:block;white-space:normal;overflow-wrap:anywhere}
.p38Toolbar .plannerTool small{line-height:1.15}
.p38Toolbar .aiPlanButton:disabled{opacity:.55!important}
.exploreAddButton{border-color:#cda65e!important;background:linear-gradient(180deg,#fffaf0,#f8efdf)!important}
.exploreAddButton .toolIcon{color:#a56d1d!important}

/* Ideas: stay contained like itinerary cards */
.unifiedIdeaList{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:0!important;
}
.unifiedIdeaCard,.proposalToggleCard{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  margin-left:0!important;
  margin-right:0!important;
}
.unifiedIdeaCard .proposalBody{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding-right:18px!important;
}
.unifiedIdeaCard .title,.unifiedIdeaCard .note,.unifiedIdeaCard .fitHereBadge{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.unifiedIdeaCard .fitHereBadge{
  display:block!important;
  white-space:normal!important;
  line-height:1.25!important;
}
.unifiedIdeaCard .proposalActions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  max-width:100%!important;
}
.unifiedIdeaCard .proposalActions button{
  max-width:100%!important;
  white-space:normal!important;
}
.planDay,.dayItems,.proposalList{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

/* Calendar dialog */
.tripCalendarDialog,.exploreAddDialog{
  border:0;padding:0;background:transparent;
  width:min(760px,calc(100vw - 28px));
  max-height:92dvh;
}
.tripCalendarDialog::backdrop,.exploreAddDialog::backdrop{background:rgba(3,24,39,.76);backdrop-filter:blur(6px)}
.tripCalendarCard,.exploreAddCard{
  position:relative;
  max-height:90dvh;overflow:auto;
  border-radius:24px;padding:28px;
  background:linear-gradient(180deg,#fffdf8,#fff8ed);
  border:1px solid #e1cfaf;box-shadow:0 30px 90px rgba(0,0,0,.34);
  color:#102b39;
}
.tripCalendarCard h3,.exploreAddCard h3{font:700 34px/1.05 Georgia,serif;color:#031827;margin:5px 0}
.tripCalendarCard p,.exploreAddCard p{color:#6d797d;margin:4px 0 14px}
.calendarClose,.exploreClose{
  position:absolute;right:16px;top:14px;width:40px;height:40px;border-radius:50%;
  border:1px solid #d9c8ad;background:#fff;color:#031827;font-size:23px
}
.calendarHeader{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.calendarAll{border:1px solid #cda65e;background:#fffaf0;color:#102b39;border-radius:12px;padding:10px 14px;font-weight:800}
.calendarAll.active{background:#031827;color:#fffaf0;border-color:#031827}
.calendarMonths{display:grid;gap:18px}
.tripMonth{border:1px solid #e6d8c3;border-radius:18px;padding:14px;background:#fff}
.tripMonth h4{font:700 21px/1.1 Georgia,serif;color:#031827;margin:0 0 10px}
.calendarWeekHead,.calendarGrid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.calendarWeekHead span{text-align:center;font-size:10px;font-weight:900;color:#9a835e}
.calendarDay,.calendarBlank{aspect-ratio:1/1;min-width:0}
.calendarDay{
  border-radius:12px;border:1px solid #e5dac8;background:#faf7f1;color:#788084;
  display:grid;place-content:center;gap:2px;padding:3px
}
.calendarDay.inTrip{background:#fffaf0;color:#102b39;border-color:#d9bf91;cursor:pointer}
.calendarDay.inTrip:hover{border-color:#b47b25;box-shadow:0 0 0 2px rgba(212,163,82,.12)}
.calendarDay.selected{background:#031827;color:#fffaf0;border-color:#031827}
.calendarNum{font-weight:900;font-size:14px}
.calendarCounts{font-size:8px;white-space:nowrap;opacity:.78}
.calendarLegend{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;color:#7b756c;font-size:10px}

/* Explore & Add modal */
.exploreDayPick{display:grid;gap:5px;font-size:11px;font-weight:900;color:#7c633f;margin:12px 0}
.exploreDayPick select{height:46px;border:1px solid #d9cab2;border-radius:11px;background:#fff;padding:0 12px;color:#102b39}
.exploreSearchRow{display:grid;grid-template-columns:1fr auto;gap:8px}
.exploreSearchRow input{height:50px;border:1px solid #d8c7ad;border-radius:12px;background:#fff;padding:0 14px;font-size:15px}
.exploreSearchRow button{min-width:92px;border-radius:12px}
.exploreResults{display:grid;gap:8px;margin-top:14px}
.exploreResultCard{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;
  align-items:center!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;padding:13px 0!important;border-bottom:1px solid #eadfce!important;
}
.exploreResultCopy{min-width:0;display:grid;gap:3px}
.exploreResultCopy b,.exploreResultCopy small{overflow-wrap:anywhere}
.p34SearchActions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-end}

@media(max-width:920px){
  .p38Toolbar{grid-template-columns:1fr 1fr!important}
}
@media(max-width:600px){
  .p38Toolbar{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .planViewButton,.p38Toolbar .plannerTool{min-height:66px!important;padding:9px 10px!important}
  .p38Toolbar .plannerTool small{font-size:9px!important}
  .tripCalendarCard,.exploreAddCard{padding:24px 16px 18px}
  .calendarHeader{display:block}
  .calendarAll{margin-top:10px;width:100%}
  .calendarWeekHead,.calendarGrid{gap:3px}
  .calendarDay{border-radius:9px}
  .calendarCounts{font-size:7px}
  .exploreSearchRow{grid-template-columns:1fr}
  .exploreSearchRow button{width:100%}
  .exploreResultCard{grid-template-columns:1fr!important}
  .p34SearchActions{justify-content:flex-start!important}
}


/* v0.3.9 — natural itinerary flow, top Explore & Add, timeline calendar */
.aveluneTripExplore{
  background:linear-gradient(135deg,#d6aa5e,#bd8330)!important;
  color:#031827!important;border:1px solid #e6c37f!important;
  border-radius:12px;padding:10px 14px;font-weight:900;
}
.tripWorkspace main{
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  width:100%!important;height:auto!important;max-width:1480px!important;
  margin:0 auto!important;padding:14px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
  gap:14px!important;align-items:start!important;
  overflow:visible!important;
}
.tripWorkspace .panel{
  height:auto!important;min-height:0!important;
  overflow:visible!important;display:block!important;
}
.tripWorkspace #content{
  height:auto!important;max-height:none!important;
  overflow:visible!important;overscroll-behavior:auto!important;
  scrollbar-gutter:auto!important;
}
.tripWorkspace .mapPane{
  position:sticky!important;top:12px!important;
  height:calc(100vh - 26px)!important;min-height:560px!important;
  align-self:start!important;
}
.p39Toolbar{
  display:grid!important;
  grid-template-columns:minmax(190px,1.35fr) minmax(130px,.8fr) minmax(150px,.95fr)!important;
  gap:9px!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
.p39Toolbar>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.p39Toolbar .plannerTool{min-height:70px!important}
.p39Toolbar .plannerTool b,.p39Toolbar .plannerTool small{
  max-width:100%!important;overflow-wrap:anywhere!important;
}
.p39Toolbar .aiPlanButton:disabled{opacity:.55!important}

/* Calendar / timeline mode */
.tripCalendarDialog{width:min(1180px,calc(100vw - 30px))!important}
.p39CalendarCard{padding:28px 28px 24px!important}
.calendarModeTabs{
  display:inline-flex;gap:4px;padding:4px;margin:0 0 14px;
  border-radius:13px;background:#f0e7d8;border:1px solid #e1d1b7;
}
.calendarModeTabs button{
  border:0;background:transparent;color:#665c4f;border-radius:9px;
  padding:9px 14px;font-weight:900;font-size:12px;
}
.calendarModeTabs button.active{background:#031827;color:#fffaf0;box-shadow:0 4px 12px rgba(3,24,39,.16)}
.tripTimelineRail{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(160px,1fr);
  gap:8px;overflow-x:auto;padding:2px 2px 12px;
  scroll-snap-type:x proximity;
}
.tripTimelineDay{
  min-height:360px;border:1px solid #e1d4c0;border-radius:15px;background:#fff;
  overflow:hidden;scroll-snap-align:start;
}
.tripTimelineDay.selected{border-color:#c58c37;box-shadow:0 0 0 2px rgba(212,163,82,.13)}
.timelineDayHead{
  width:100%;border:0;border-bottom:1px solid #eadfce;background:#faf5eb;
  padding:12px;text-align:left;color:#102b39;display:grid;gap:2px;
}
.timelineDayHead span{font-size:9px;letter-spacing:.13em;color:#9b7440;font-weight:900}
.timelineDayHead b{font:700 17px/1.1 Georgia,serif;color:#031827}
.timelineDayItems{display:grid;gap:7px;padding:9px}
.timelineEvent{
  width:100%;border:1px solid #d9e4e3;background:#f7fbfa;color:#102b39;
  border-radius:10px;padding:9px 10px;text-align:left;display:grid;gap:3px;
}
.timelineEvent span{font-size:9px;color:#9a702f;font-weight:900;letter-spacing:.04em}
.timelineEvent b{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.timelineEvent:hover{border-color:#c39243;background:#fff8eb}
.timelineEmpty{font-size:10px;color:#8a9294;padding:12px 5px;font-style:italic}

/* Keep trip cards and idea cards fully inside the itinerary width */
.planDay,.dayItems,.item,.itineraryCard,.unifiedIdeaList,.unifiedIdeaCard{
  width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
.itemMain,.proposalBody{min-width:0!important}
.item .title,.item .note,.unifiedIdeaCard .title,.unifiedIdeaCard .note{overflow-wrap:anywhere!important}

/* Hero Up Next is independent of selected plan day */


@media(max-width:980px){
  .tripWorkspace main{display:block!important;padding:10px!important}
  .tripWorkspace .mapPane{position:relative!important;top:auto!important;height:46vh!important;min-height:360px!important;margin-bottom:10px!important}
  .p39Toolbar{grid-template-columns:1.15fr .85fr .95fr!important}
}
@media(max-width:700px){
  .tripBarActions{gap:4px!important}
  .aveluneTripExplore,.aveluneTripEdit,.aveluneAccount{padding:8px 8px!important;font-size:10px!important}
  .p39Toolbar{grid-template-columns:1fr 1fr!important}
  .p39Toolbar .planViewButton{grid-column:1/-1}
  .tripTimelineRail{grid-auto-columns:minmax(148px,72vw)}
}


/* v0.3.10 — critical trip layout correction
   Vertical scrolling is intentional. Horizontal scrolling is never allowed. */

html,body{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
#aveluneShell,.tripWorkspace{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
.aveluneTripBar{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.tripBarActions{
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  min-width:0!important;
  max-width:55vw!important;
}
.aveluneTripExplore,
.aveluneTripEdit,
.aveluneAccount{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.aveluneTripExplore{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  background:linear-gradient(135deg,#d6aa5e,#bd8330)!important;
  color:#031827!important;
  border:1px solid #e6c37f!important;
  border-radius:12px!important;
  padding:10px 13px!important;
  font-weight:900!important;
}
.aveluneTripExplore b{font:inherit!important}

/* Main desktop workspace: stable two-column layout, page scroll only. */
.tripWorkspace main{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr)!important;
  align-items:start!important;
  gap:14px!important;
  width:min(1480px,100%)!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:14px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.tripWorkspace .mapPane{
  position:sticky!important;
  top:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:calc(100vh - 26px)!important;
  min-height:540px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.tripWorkspace .panel{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  display:block!important;
  box-sizing:border-box!important;
}
.tripWorkspace #content{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
.tripWorkspace .planDay,
.tripWorkspace .dayItems,
.tripWorkspace .proposalList,
.tripWorkspace .item,
.tripWorkspace .itineraryCard,
.tripWorkspace .unifiedIdeaList,
.tripWorkspace .unifiedIdeaCard,
.tripWorkspace .proposalToggleCard{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.tripWorkspace .itemMain,
.tripWorkspace .proposalBody,
.tripWorkspace .title,
.tripWorkspace .note,
.tripWorkspace .fitHereBadge{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* Planner controls stay fully inside the itinerary column. */
.p39Toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr) minmax(0,.95fr)!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.p39Toolbar>*{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.p39Toolbar .planViewButton,
.p39Toolbar .plannerTool{
  min-width:0!important;
  overflow:hidden!important;
}
.p39Toolbar b,
.p39Toolbar small{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.p39Toolbar small{white-space:normal!important}

/* Timeline may scroll horizontally only INSIDE its popup, never the itinerary page. */
.tripCalendarDialog{
  max-width:calc(100vw - 24px)!important;
}
.tripTimelineRail{
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
}

/* Tablet: stack map + itinerary so nothing can run offscreen. */
@media(max-width:1100px){
  .tripWorkspace main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:10px!important;
  }
  .tripWorkspace .mapPane{
    position:relative!important;
    top:auto!important;
    height:46vh!important;
    min-height:360px!important;
    margin-bottom:10px!important;
  }
  .tripWorkspace .panel{
    width:100%!important;
    max-width:100%!important;
  }
  .p39Toolbar{
    grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.9fr)!important;
  }
}

/* Mobile top bar + planner controls. */
@media(max-width:760px){
  .aveluneTripBar{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .tripBarActions{
    gap:4px!important;
    max-width:68vw!important;
  }
  .aveluneTripExplore,
  .aveluneTripEdit,
  .aveluneAccount{
    padding:8px 8px!important;
    font-size:10px!important;
    border-radius:10px!important;
  }
  .aveluneTripExplore b{display:none!important}
  .aveluneTripExplore{width:38px!important;justify-content:center!important}
  .p39Toolbar{
    grid-template-columns:1fr 1fr!important;
  }
  .p39Toolbar .planViewButton{
    grid-column:1/-1!important;
  }
}

/* Very narrow screens: account remains accessible, no horizontal clipping. */
@media(max-width:430px){
  .tripBarActions{max-width:72vw!important}
  .aveluneAccount{padding-left:7px!important;padding-right:7px!important}
}


/* v0.3.13 — simplified masthead + pill planner controls */
.aveluneHiddenHook{display:none!important}

.aveluneTodayTop{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;padding:0 18px!important;border-radius:999px!important;
  border:1px solid #d8c59e!important;background:#fffaf0!important;color:#102b39!important;
  font-weight:900!important;box-shadow:0 4px 12px rgba(3,24,39,.09)!important;
}
.aveluneTopMenu{
  position:relative!important;inset:auto!important;display:inline-flex!important;
  width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;
  border:1px solid rgba(212,163,82,.55)!important;background:#fffaf0!important;
}
.aveluneTopMenu span{background:#031827!important}







/* Planner control cards become even pills. */
.p39Toolbar{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  padding:8px!important;
  border-radius:18px!important;
  background:#fffaf0!important;
}
.p39Toolbar .planViewButton,
.p39Toolbar .plannerTool{
  min-height:52px!important;height:52px!important;
  border-radius:999px!important;
  padding:7px 14px!important;
  background:#fff!important;
  border:1px solid #d9c8aa!important;
  box-shadow:none!important;
}
.p39Toolbar .planViewButton{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
}
.p39Toolbar .planViewButton small{font-size:8px!important}
.p39Toolbar .planViewButton b{font-size:13px!important}
.p39Toolbar .plannerTool{
  justify-content:center!important;
}
.p39Toolbar .plannerTool .toolIcon{
  width:30px!important;height:30px!important;flex-basis:30px!important;
}
.p39Toolbar .plannerTool b{font-size:12px!important;line-height:1.05!important}
.p39Toolbar .plannerTool small{font-size:8px!important;line-height:1.05!important}
.p39Toolbar .aiPlanButton:disabled{opacity:.58!important}

/* Consolidated menu + shared user modal */
.sideMenu .sheet{max-width:430px!important}
.menuList{display:grid!important;gap:6px!important}
.menuList button{border-radius:14px!important}
.sharedInviteForm{
  display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:8px;align-items:end;margin:14px 0;
}
.sharedInviteForm label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#65747a}
.sharedInviteForm input,.sharedInviteForm select{height:44px;border:1px solid #d8cab4;border-radius:11px;background:#fff;padding:0 11px}
.sharedInviteForm button{height:44px;border-radius:999px;padding:0 16px}
.sharedUserList{display:grid;gap:7px;margin-top:12px}
.sharedUserRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e2d5c2;border-radius:13px;padding:11px 12px;background:#fff}
.sharedUserRow div{display:grid;gap:2px;min-width:0}.sharedUserRow b,.sharedUserRow small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sharedUserRow small{color:#718087}
.sharedRole{text-transform:capitalize;font-size:9px;font-weight:900;letter-spacing:.08em;color:#9a6e2c;background:#faf1df;border-radius:999px;padding:6px 9px}

/* Calendar popup: smaller overall; timeline remains horizontally scrollable inside it. */
.tripCalendarDialog{width:min(900px,calc(100vw - 28px))!important}
.p39CalendarCard{max-height:86dvh!important}

@media(max-width:760px){
  .aveluneTodayTop{min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:10px!important}
  .aveluneTopMenu{width:36px!important;height:36px!important;min-width:36px!important}
  .p39Toolbar{grid-template-columns:1fr 1fr!important}
  .p39Toolbar .planViewButton{grid-column:1/-1!important}
  .sharedInviteForm{grid-template-columns:1fr}
}

/* v0.3.32 — invisible scrollbars site-wide; scrolling still works */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;background:transparent!important}


/* ===== consolidated from layout-v0311.css ===== */

/* Avelune v0.3.11 — recovery layout
   This file intentionally owns trip workspace geometry.
   Vertical itinerary scrolling: YES.
   Horizontal page/itinerary scrolling: NEVER. */

html, body {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
}

body, #aveluneShell, .tripWorkspace {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.tripWorkspace {
  min-height: 100dvh !important;
}

/* Top trip bar */
.aveluneTripBar {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.aveluneMiniBrand {
  min-width: 0 !important;
  overflow: hidden !important;
}

.tripBarActions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.aveluneTripExplore,
.aveluneTripEdit,
.aveluneAccount {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.aveluneTripExplore {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 13px !important;
  border-radius: 12px !important;
  border: 1px solid #e5bf75 !important;
  background: linear-gradient(135deg,#d9ad62,#bd8230) !important;
  color: #031827 !important;
  font-weight: 900 !important;
}

/* Desktop: map left, independently VERTICAL-scrollable itinerary right.
   This restores the stable interaction model from before v0.3.9. */
.tripWorkspace main {
  position: relative !important;
  inset: auto !important;
  width: min(1480px, 100%) !important;
  max-width: 100% !important;
  height: calc(100dvh - 220px) !important;
  min-height: 560px !important;
  margin: 0 auto !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.tripWorkspace .mapPane {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.tripWorkspace #map {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.tripWorkspace .panel {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.tripWorkspace #content {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain !important;
  scrollbar-gutter: stable !important;
}

/* Every itinerary object must stay inside the right column. */
.tripWorkspace .plannerToolbar,
.tripWorkspace .planDay,
.tripWorkspace .dayHead,
.tripWorkspace .dayItems,
.tripWorkspace .item,
.tripWorkspace .itineraryCard,
.tripWorkspace .proposalList,
.tripWorkspace .unifiedIdeaList,
.tripWorkspace .unifiedIdeaCard,
.tripWorkspace .proposalToggleCard,
.tripWorkspace .proposalBody,
.tripWorkspace .itemMain {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.tripWorkspace .planDay,
.tripWorkspace .dayItems,
.tripWorkspace .proposalList,
.tripWorkspace .unifiedIdeaList {
  width: 100% !important;
  overflow-x: hidden !important;
}

.tripWorkspace .item,
.tripWorkspace .itineraryCard,
.tripWorkspace .unifiedIdeaCard,
.tripWorkspace .proposalToggleCard {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
}

.tripWorkspace .title,
.tripWorkspace .note,
.tripWorkspace .fitHereBadge,
.tripWorkspace .proposalMeta,
.tripWorkspace .proposalActions {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

/* Planner header: exactly 3 controls and no side overflow. */
.p39Toolbar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr) minmax(0,.92fr) !important;
  gap: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.p39Toolbar > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.p39Toolbar b,
.p39Toolbar small {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.p39Toolbar small {
  white-space: normal !important;
}

/* Timeline horizontal movement is permitted ONLY inside its popup. */
.tripCalendarDialog {
  max-width: calc(100vw - 24px) !important;
}

.tripTimelineRail {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

/* Tablet/mobile: stacked layout with vertical page scroll, still zero horizontal overflow. */
@media (max-width: 1040px) {
  html, body {
    height: auto !important;
    overflow-y: auto !important;
  }

  .tripWorkspace main {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  .tripWorkspace .mapPane {
    height: 45vh !important;
    min-height: 340px !important;
    margin-bottom: 10px !important;
  }

  .tripWorkspace .panel {
    height: auto !important;
    overflow: visible !important;
  }

  .tripWorkspace #content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    scrollbar-gutter: auto !important;
  }
}

@media (max-width: 760px) {
  .aveluneTripBar {
    grid-template-columns: auto minmax(0,1fr) auto !important;
    gap: 5px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .aveluneMiniBrand small {
    display: none !important;
  }

  .tripBarActions {
    gap: 4px !important;
  }

  .aveluneTripExplore,
  .aveluneTripEdit,
  .aveluneAccount {
    padding: 8px 7px !important;
    font-size: 10px !important;
  }

  .aveluneTripExplore b {
    display: none !important;
  }

  .aveluneTripExplore {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }

  .p39Toolbar {
    grid-template-columns: 1fr 1fr !important;
  }

  .p39Toolbar .planViewButton {
    grid-column: 1 / -1 !important;
  }
}


/* v0.3.12 — desktop vertical frame correction
   The previous recovery layout sized the workspace against the hero only.
   Avelune actually has TWO fixed masthead rows: trip bar + hero.
   These rules make the three rows meet exactly with no overlap or dead space. */

@media (min-width:1041px) {
  :root{
    --avelune-tripbar-h:64px;
    --avelune-hero-h:220px;
    --avelune-masthead-h:284px;
  }

  html,body{
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  .tripWorkspace{
    position:relative!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  .aveluneTripBar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:140!important;
    height:var(--avelune-tripbar-h)!important;
    min-height:var(--avelune-tripbar-h)!important;
    max-height:var(--avelune-tripbar-h)!important;
    padding:8px 14px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .heroHeader{
    position:fixed!important;
    top:var(--avelune-tripbar-h)!important;
    left:0!important;
    right:0!important;
    z-index:120!important;
    width:100%!important;
    height:var(--avelune-hero-h)!important;
    min-height:var(--avelune-hero-h)!important;
    max-height:var(--avelune-hero-h)!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  

  .tripWorkspace main{
    position:fixed!important;
    top:var(--avelune-masthead-h)!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:min(1480px,100%)!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:14px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr)!important;
    gap:14px!important;
    align-items:stretch!important;
    overflow:hidden!important;
  }

  .tripWorkspace .mapPane,
  .tripWorkspace .panel{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .tripWorkspace .mapPane{
    position:relative!important;
    top:auto!important;
    overflow:hidden!important;
  }

  .tripWorkspace .panel{
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  .tripWorkspace #content{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:12px!important;
    box-sizing:border-box!important;
    scroll-padding-top:12px!important;
  }
}

/* Slightly shorter masthead on mid-size desktop/tablet landscape. */
@media (min-width:1041px) and (max-height:820px){
  :root{
    --avelune-tripbar-h:58px;
    --avelune-hero-h:190px;
    --avelune-masthead-h:248px;
  }
}


/* v0.3.13 top action fit */
@media(min-width:1041px){
  .tripBarActions{gap:8px!important}
  .aveluneTripExplore{min-height:42px!important;height:42px!important;padding:0 17px!important;border-radius:999px!important}
}


/* ===== consolidated from ui-v0314.css ===== */

/* Avelune v0.3.14 — final UI cleanup
   This file intentionally wins over historical patch CSS. */

:root{
  --av-navy:var(--avelune-blue);
  --av-navy-2:var(--avelune-dark-navy);
  --av-gold:var(--avelune-gold);
  --av-gold-deep:var(--avelune-text-accent);
  --av-ivory:var(--avelune-ivory);
  --av-ivory-2:var(--avelune-surface-elevated);
  --av-ink:var(--avelune-text-primary);
  --av-line:var(--avelune-border-standard);
  --av-soft:var(--avelune-surface-secondary);
}

/* Top nav */
.aveluneTripBar{
  background:rgba(3,24,39,.98)!important;
  border-bottom:1px solid rgba(215,168,86,.35)!important;
}
.tripBarActions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
}
.aveluneTripExplore,
.aveluneTodayTop{
  border-radius:999px!important;
  min-height:42px!important;
  height:42px!important;
  padding:0 18px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
.aveluneTripExplore{
  background:linear-gradient(135deg,#e0b461,#c7872e)!important;
  color:var(--av-navy)!important;
  border:1px solid #e8c57c!important;
}
.aveluneTodayTop{
  background:var(--av-ivory)!important;
  color:var(--av-ink)!important;
  border:1px solid var(--av-line)!important;
}
.aveluneTopMenu{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:transparent!important;
  border:1.5px solid var(--av-gold)!important;
  box-shadow:none!important;
}
.aveluneTopMenu span{
  display:block!important;
  width:17px!important;
  height:2px!important;
  margin:2px 0!important;
  border-radius:3px!important;
  background:var(--av-gold)!important;
}
.aveluneTopMenu:hover{
  background:rgba(215,168,86,.08)!important;
}

/* Hero: crisp, no duplicated metadata, content contained */






/* Planner top controls:
   no outer rectangle, no doubled outlines, 3 evenly centered luxury pills */
.tripWorkspace #content > .plannerToolbar,
.tripWorkspace #content > .p39Toolbar,
.p39Toolbar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 18px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}
.p39Toolbar::before,.p39Toolbar::after,
.plannerToolbar::before,.plannerToolbar::after{
  display:none!important;
  content:none!important;
}
.p39Toolbar .planViewButton,
.p39Toolbar .plannerTool,
.tripWorkspace #content > .plannerToolbar .planViewButton,
.tripWorkspace #content > .plannerToolbar .plannerTool{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:56px!important;
  min-height:56px!important;
  padding:8px 16px!important;
  border-radius:999px!important;
  border:1px solid #d8c7aa!important;
  background:linear-gradient(180deg,#fff,#fffaf3)!important;
  box-shadow:0 4px 12px rgba(3,24,39,.055)!important;
  outline:0!important;
  overflow:hidden!important;
}
.p39Toolbar .planViewButton{
  justify-content:space-between!important;
}
.p39Toolbar .plannerTool{
  justify-content:center!important;
}
.p39Toolbar .plannerTool .toolIcon{
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  flex-basis:31px!important;
  border-radius:50%!important;
}
.p39Toolbar .planViewButton b,
.p39Toolbar .plannerTool b{
  font-size:13px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.p39Toolbar .planViewButton small,
.p39Toolbar .plannerTool small{
  font-size:8.5px!important;
  line-height:1.05!important;
}
.p39Toolbar .aiPlanButton:disabled{
  opacity:.50!important;
  background:#fbf8f3!important;
}
.p39Toolbar .proposalToggle.on{
  border-color:#b8d9d5!important;
}

/* Clean itinerary spacing; no visual stacking behind cards/buttons */
.planDay{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0 0 28px!important;
}
.dayHead{
  margin:0 4px 12px!important;
}
.dayItems{
  display:grid!important;
  gap:12px!important;
}
.item.itineraryCard,
.unifiedIdeaCard,
.proposalToggleCard{
  margin:0!important;
  border-radius:18px!important;
  border:1px solid #d7e4e2!important;
  background:#fff!important;
  box-shadow:none!important;
}
.item.itineraryCard::before,
.item.itineraryCard::after,
.unifiedIdeaCard::before,
.unifiedIdeaCard::after{
  display:none!important;
  content:none!important;
}
.item.itineraryCard .info,
.item.itineraryCard .expand,
.item.itineraryCard button{
  position:relative!important;
  z-index:1!important;
}
.item.itineraryCard .info,
.item.itineraryCard .expand{
  border-radius:50%!important;
  box-shadow:none!important;
}
.proposalActions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding-top:10px!important;
}
.proposalActions button,
.itemActions button{
  border-radius:999px!important;
}

/* ALL menus use the same centered popup language as Explore & Add */
.sideMenu,
.actionDialog,
#placeDialog,
.tripCalendarDialog,
.exploreAddDialog,
.directionsChooserDialog{
  border:0!important;
  padding:0!important;
  background:transparent!important;
}
.sideMenu::backdrop,
.actionDialog::backdrop,
#placeDialog::backdrop,
.tripCalendarDialog::backdrop,
.exploreAddDialog::backdrop,
.directionsChooserDialog::backdrop{
  background:rgba(3,24,39,.70)!important;
  backdrop-filter:blur(6px)!important;
}
.sideMenu{
  width:min(560px,calc(100vw - 28px))!important;
  max-width:560px!important;
  max-height:88dvh!important;
  margin:auto!important;
}
.sideMenu .sheet{
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  max-height:86dvh!important;
  overflow:auto!important;
  margin:0!important;
  padding:26px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#fffdf8,#fff8ed)!important;
  color:var(--av-ink)!important;
  border:1px solid #e1cfaf!important;
  box-shadow:0 30px 90px rgba(0,0,0,.30)!important;
  transform:none!important;
}
.sideMenu .drawerHead{
  position:relative!important;
  padding:0 46px 15px 0!important;
  border-bottom:1px solid #eadfce!important;
}
.sideMenu .drawerHead h2{
  margin:3px 0 0!important;
  font:700 32px/1.05 Georgia,serif!important;
  color:var(--av-navy)!important;
}
.sideMenu .x{
  position:absolute!important;
  right:0!important;
  top:0!important;
  width:40px!important;
  height:40px!important;
  border-radius:50%!important;
  border:1px solid #d7c7af!important;
  background:#fff!important;
  color:var(--av-ink)!important;
}
.sideMenu .menuList{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  padding:14px 0 0!important;
}
.sideMenu .menuList button{
  width:100%!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:11px!important;
  align-items:center!important;
  padding:12px 13px!important;
  border-radius:14px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:var(--av-ink)!important;
  text-align:left!important;
}
.sideMenu .menuList button:hover{
  background:#f7efe2!important;
  border-color:#eadbc4!important;
}
.sideMenu .menuList button > span{
  width:30px!important;height:30px!important;
  display:grid!important;place-items:center!important;
  border-radius:50%!important;
  background:#f3eadb!important;
}
.sideMenu .menuList button b{font-size:13px!important}
.sideMenu .menuList button small{display:block!important;color:#708086!important;font-size:10px!important;margin-top:2px!important}
.sideMenu .autoGoogleNote{margin-top:14px!important;border-radius:14px!important}

/* Action dialog now matches same popout card family */
.actionDialog{
  width:min(720px,calc(100vw - 28px))!important;
  max-width:720px!important;
  max-height:90dvh!important;
  margin:auto!important;
}
.actionDialog .sheet{
  width:100%!important;
  max-width:none!important;
  max-height:88dvh!important;
  overflow:auto!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#fffdf8,#fff8ed)!important;
  color:var(--av-ink)!important;
  border:1px solid #e1cfaf!important;
  box-shadow:0 30px 90px rgba(0,0,0,.30)!important;
}
.actionDialog .x{
  border-radius:50%!important;
}

/* Smaller calendar; timeline retained */
.tripCalendarDialog{
  width:min(820px,calc(100vw - 28px))!important;
  max-width:820px!important;
}
.tripCalendarCard{
  max-height:84dvh!important;
}

/* Responsive */
@media(max-width:760px){
  .tripBarActions{gap:5px!important}
  .aveluneTripExplore{padding:0 11px!important}
  .aveluneTodayTop{padding:0 10px!important}
  .p39Toolbar{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .p39Toolbar .planViewButton{
    grid-column:1/-1!important;
  }
  .sideMenu .sheet{padding:20px 16px!important}
  .sideMenu .drawerHead h2{font-size:27px!important}
}


/* v0.3.16 — simplified trip menu + native invitation */
.sideMenu .menuList{padding-bottom:14px!important}
.sideMenu .menuFooter{
  margin-top:8px!important;
  padding-top:14px!important;
  border-top:1px solid #eadfce!important;
}
.menuSignOut{
  width:100%!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:11px!important;
  align-items:center!important;
  padding:12px 13px!important;
  border-radius:14px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:#9b3d31!important;
  text-align:left!important;
}
.menuSignOut:hover{
  background:#fff0eb!important;
  border-color:#efc9bf!important;
}
.menuSignOut>span{
  width:30px!important;height:30px!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;background:#fff0eb!important;
}
.menuSignOut b{font-size:13px!important}
.menuSignOut small{display:block!important;font-size:10px!important;color:#8b746d!important;margin-top:2px!important}

.inviteLinkPopup{max-width:620px!important}
.inviteRoleLabel{
  display:grid!important;gap:6px!important;margin:16px 0 12px!important;
  font-size:11px!important;font-weight:900!important;color:#745f43!important;
}
.inviteRoleLabel select{
  height:46px!important;border:1px solid #d8c8af!important;border-radius:12px!important;
  background:#fff!important;color:#102b39!important;padding:0 12px!important;
}
.inviteLinkBox{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
.inviteLinkBox input{
  min-width:0!important;height:48px!important;
  border:1px solid #d8c8af!important;border-radius:12px!important;
  background:#fff!important;color:#485c64!important;padding:0 12px!important;
  font-size:12px!important;
}
.inviteLinkBox button{
  height:48px!important;border-radius:999px!important;padding:0 16px!important;
}
.nativeShareTrip{
  width:100%!important;height:50px!important;border-radius:999px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  font-weight:900!important;
}
.inviteFinePrint{font-size:10px!important;line-height:1.45!important;color:#78858a!important;margin-top:12px!important}

@media(max-width:600px){
  .inviteLinkBox{grid-template-columns:1fr!important}
  .inviteLinkBox button{width:100%!important}
}


/* v0.3.17 — mobile trip workspace */
.aveluneMapLayerControl{
  margin:10px 0 0 10px;
}
.aveluneMapLayerControl select{
  height:38px;
  min-width:92px;
  border:1px solid #d9cab3;
  border-radius:10px;
  background:#fffaf0;
  color:#102b39;
  padding:0 30px 0 11px;
  font:800 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 4px 14px rgba(3,24,39,.12);
}

@media(max-width:850px){
  :root{
    --av-mobile-topbar-h:64px;
    --av-mobile-explore-h:64px;
  }

  /* The trip navigation stays locked at the top while itinerary scrolls. */
  .aveluneTripBar{
    position:sticky!important;
    top:0!important;
    z-index:1600!important;
    min-height:var(--av-mobile-topbar-h)!important;
    height:var(--av-mobile-topbar-h)!important;
    max-height:var(--av-mobile-topbar-h)!important;
    padding:7px 12px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    gap:8px!important;
    overflow:visible!important;
  }
  .aveluneBack{
    min-height:42px!important;
    height:42px!important;
    padding:0 12px!important;
    border-radius:13px!important;
    white-space:nowrap!important;
    font-size:14px!important;
  }
  .aveluneMiniBrand{
    justify-self:start!important;
    min-width:0!important;
  }
  .aveluneMiniBrand .aveluneA{
    font-size:30px!important;
  }
  .aveluneMiniBrand b{
    font-size:20px!important;
    white-space:nowrap!important;
  }
  .aveluneMiniBrand small{display:none!important}

  .tripBarActions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
  }
  .aveluneTodayTop{
    min-height:40px!important;
    height:40px!important;
    padding:0 12px!important;
    font-size:12px!important;
  }
  .aveluneTopMenu{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }

  /* Explore & Add becomes a true mobile footer CTA. */
  .aveluneTripExplore{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:1700!important;
    width:auto!important;
    height:52px!important;
    min-height:52px!important;
    padding:0 18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    border-radius:999px!important;
    box-shadow:0 12px 30px rgba(3,24,39,.28)!important;
  }
  .aveluneTripExplore b{
    display:block!important;
    font-size:14px!important;
  }

  body:not(.mobileMapOpen) .tripWorkspace{
    padding-bottom:calc(var(--av-mobile-explore-h) + env(safe-area-inset-bottom))!important;
  }

  /* Compact planner: Plan View full width, Ideas + small AI side-by-side. */
  .p39Toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(112px,.65fr)!important;
    grid-template-areas:
      "view view"
      "ideas ai"!important;
    gap:8px!important;
    margin:0 0 14px!important;
  }
  .p39Toolbar .planViewButton{
    grid-area:view!important;
    height:48px!important;
    min-height:48px!important;
  }
  .p39Toolbar #proposalToggle{
    grid-area:ideas!important;
    height:44px!important;
    min-height:44px!important;
  }
  .p39Toolbar #pageAi{
    grid-area:ai!important;
    height:44px!important;
    min-height:44px!important;
    padding:5px 9px!important;
  }
  .p39Toolbar #pageAi .toolIcon{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    flex-basis:26px!important;
  }
  .p39Toolbar #pageAi b{
    font-size:10px!important;
  }
  .p39Toolbar #pageAi small{
    display:none!important;
  }
  .p39Toolbar #proposalToggle b{font-size:12px!important}

  /* Full-screen map keeps the locked trip bar visible. */
  body.mobileMapOpen .aveluneTripBar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:1900!important;
  }
  body.mobileMapOpen .mapPane{
    top:var(--av-mobile-topbar-h)!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    inset:auto 0 0 0!important;
    height:calc(100dvh - var(--av-mobile-topbar-h))!important;
    min-height:0!important;
  }
  body.mobileMapOpen .mobileMapToggle{
    top:calc(var(--av-mobile-topbar-h) + 10px)!important;
    z-index:1850!important;
  }
  body.mobileMapOpen .aveluneTripExplore{
    display:none!important;
  }

  /* Exactly one map legend, raised above the bottom caption. */
  body.mobileMapOpen #map .mapLegend{
    margin:0 0 86px 12px!important;
    max-height:180px!important;
    overflow:hidden!important;
    transform:scale(.88)!important;
    transform-origin:left bottom!important;
  }
  body.mobileMapOpen #map .mapLegend ~ .mapLegend{
    display:none!important;
  }
  body.mobileMapOpen .mapPane #mapCaption{
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:750!important;
  }

  .aveluneMapLayerControl{
    margin:10px 0 0 10px!important;
  }
  .aveluneMapLayerControl select{
    height:36px!important;
    min-width:88px!important;
    font-size:11px!important;
  }
}

@media(max-width:520px){
  :root{--av-mobile-topbar-h:62px}
  .aveluneTripBar{padding-left:8px!important;padding-right:8px!important;gap:5px!important}
  .aveluneBack{padding:0 9px!important;font-size:13px!important}
  .aveluneMiniBrand .aveluneA{font-size:27px!important}
  .aveluneMiniBrand b{font-size:18px!important}
  .tripBarActions{gap:4px!important}
  .aveluneTodayTop{padding:0 9px!important;font-size:11px!important}
  .aveluneTopMenu{width:38px!important;height:38px!important;min-width:38px!important}
}


/* v0.3.18 — mobile trip layout correction */
@media(max-width:850px){
  :root{
    --av-mobile-nav-h:64px;
  }

  html,body{
    overflow-x:hidden!important;
  }

  body:not(.mobileMapOpen){
    padding-top:0!important;
  }

  .tripWorkspace{
    position:relative!important;
    padding-top:var(--av-mobile-nav-h)!important;
    min-height:100dvh!important;
  }

  /* Lock the navigation bar to the top of the phone viewport. */
  .aveluneTripBar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:3000!important;
    height:var(--av-mobile-nav-h)!important;
    min-height:var(--av-mobile-nav-h)!important;
    max-height:var(--av-mobile-nav-h)!important;
    padding:7px 10px!important;
    margin:0!important;
    box-sizing:border-box!important;
    transform:none!important;
  }

  /* Mobile does not show the trip banner image. */
  .heroHeader{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    z-index:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    transform:none!important;
    box-shadow:none!important;
  }
  .heroArtwork{
    display:none!important;
  }
  
  

  /* Top bar sizing and balance. */
  .aveluneBack{
    min-width:auto!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 10px!important;
    border-radius:13px!important;
    font-size:13px!important;
  }
  .aveluneMiniBrand{
    min-width:0!important;
  }
  .aveluneMiniBrand .aveluneA{
    font-size:28px!important;
  }
  .aveluneMiniBrand b{
    font-size:18px!important;
  }
  .tripBarActions{
    gap:5px!important;
  }
  .aveluneTodayTop{
    height:40px!important;
    min-height:40px!important;
    padding:0 10px!important;
    font-size:11px!important;
  }
  .aveluneTopMenu{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }

  /* Main planner flows normally under the hero info. */
  .tripWorkspace main{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:10px 10px calc(76px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }
  .tripWorkspace .panel{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .tripWorkspace #content{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:0!important;
    overflow:visible!important;
  }

  /* Clean two-row planner controls. */
  .tripWorkspace #content > .p39Toolbar,
  .p39Toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:
      "view view"
      "ideas ai"!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 16px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .p39Toolbar .planViewButton{
    grid-area:view!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:7px 14px!important;
  }
  .p39Toolbar #proposalToggle{
    grid-area:ideas!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:5px 10px!important;
  }
  .p39Toolbar #pageAi{
    grid-area:ai!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:5px 9px!important;
  }
  .p39Toolbar #proposalToggle .toolIcon,
  .p39Toolbar #pageAi .toolIcon{
    width:27px!important;
    height:27px!important;
    min-width:27px!important;
    flex-basis:27px!important;
  }
  .p39Toolbar #proposalToggle b,
  .p39Toolbar #pageAi b{
    font-size:11px!important;
    white-space:nowrap!important;
  }
  .p39Toolbar #proposalToggle small,
  .p39Toolbar #pageAi small{
    display:none!important;
  }

  /* Explore & Add stays a mobile footer CTA. */
  .aveluneTripExplore{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:3100!important;
    height:52px!important;
    min-height:52px!important;
    width:auto!important;
    border-radius:999px!important;
  }

  /* Full-screen map: top bar remains fixed; map begins underneath it. */
  body.mobileMapOpen{
    padding-top:0!important;
    overflow:hidden!important;
  }
  body.mobileMapOpen .tripWorkspace{
    padding-top:var(--av-mobile-nav-h)!important;
  }
  body.mobileMapOpen .heroHeader,
  body.mobileMapOpen .panel,
  body.mobileMapOpen .aveluneTripExplore{
    display:none!important;
  }
  body.mobileMapOpen main{
    position:fixed!important;
    top:var(--av-mobile-nav-h)!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    height:auto!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body.mobileMapOpen .mapPane{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
  }

  /* Explicit Close map control returning to the itinerary. */
  body.mobileMapOpen .mobileMapToggle{
    display:flex!important;
    position:fixed!important;
    top:calc(var(--av-mobile-nav-h) + 10px)!important;
    right:10px!important;
    left:auto!important;
    z-index:3200!important;
    width:auto!important;
    min-width:112px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 14px!important;
    border-radius:999px!important;
    background:#031827!important;
    color:#fffaf0!important;
    border:1px solid rgba(215,168,86,.75)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  }
  body.mobileMapOpen .mobileMapToggle > span{
    font-size:0!important;
  }
  body.mobileMapOpen .mobileMapToggle > span::before{
    content:"×"!important;
    font-size:19px!important;
    line-height:1!important;
  }

  /* One legend only, always above the bottom caption. */
  body.mobileMapOpen #map .mapLegend{
    margin:0 0 88px 10px!important;
    transform:scale(.86)!important;
    transform-origin:left bottom!important;
  }
  body.mobileMapOpen #map .mapLegend ~ .mapLegend{
    display:none!important;
  }
  body.mobileMapOpen .mapPane #mapCaption{
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
}

@media(max-width:520px){
  :root{--av-mobile-nav-h:62px}
  .aveluneTripBar{
    padding-left:7px!important;
    padding-right:7px!important;
    gap:4px!important;
  }
  .aveluneBack{
    padding:0 8px!important;
    font-size:12px!important;
  }
  .aveluneMiniBrand .aveluneA{
    font-size:25px!important;
  }
  .aveluneMiniBrand b{
    font-size:17px!important;
  }
  .aveluneTodayTop{
    padding:0 8px!important;
    font-size:10px!important;
  }
  .aveluneTopMenu{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
}


/* v0.3.19 — mobile header / logo / map-access correction */
@media(max-width:850px){
  :root{
    --av-mobile-nav-h:64px;
  }

  /* Fixed top navigation. The trip content itself starts below it. */
  .tripWorkspace{
    padding-top:0!important;
  }
  .aveluneTripBar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:4000!important;
    width:100%!important;
    height:var(--av-mobile-nav-h)!important;
    min-height:var(--av-mobile-nav-h)!important;
    max-height:var(--av-mobile-nav-h)!important;
    margin:0!important;
    transform:none!important;
  }

  /* Use exactly the same Avelune mark as desktop.
     Older mobile rules accidentally restored the literal "A" on top of the SVG. */
  .aveluneMiniBrand .aveluneA{
    display:block!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    flex:0 0 42px!important;
    font-size:0!important;
    line-height:0!important;
    color:transparent!important;
    background:url("/brand/avelune-logo-square-dark.svg") center/contain no-repeat!important;
  }

  /* Hide mobile artwork, but keep BOTH Up Next and Weather visible below nav. */
  .heroHeader{
    display:block!important;
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:var(--av-mobile-nav-h) 0 0!important;
    padding:0!important;
    transform:none!important;
    z-index:1!important;
  }
  .heroArtwork{
    display:none!important;
  }
  
  

  /* Main content follows the masthead normally. */
  .tripWorkspace main{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:10px 10px calc(78px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }

  /* Map View is a clear button directly below Weather, never underneath it. */
  body:not(.mobileMapOpen) .mobileMapToggle{
    display:flex!important;
    position:relative!important;
    inset:auto!important;
    z-index:20!important;
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0 0 10px!important;
    padding:0 16px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border-radius:999px!important;
    border:1px solid rgba(215,168,86,.75)!important;
    background:#08283a!important;
    color:#fffaf0!important;
    box-shadow:none!important;
  }
  body:not(.mobileMapOpen) .mobileMapToggle b{
    font-size:13px!important;
  }

  /* Plan controls remain orderly: Plan View, then Ideas + compact AI. */
  .tripWorkspace #content > .p39Toolbar,
  .p39Toolbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:
      "view view"
      "ideas ai"!important;
    gap:8px!important;
    margin:0 0 16px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  .p39Toolbar .planViewButton{
    grid-area:view!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
  }
  .p39Toolbar #proposalToggle{
    grid-area:ideas!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
  }
  .p39Toolbar #pageAi{
    grid-area:ai!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
  }
  .p39Toolbar #proposalToggle small,
  .p39Toolbar #pageAi small{
    display:none!important;
  }

  /* Explore & Add remains the only fixed footer CTA in itinerary mode. */
  body:not(.mobileMapOpen) .aveluneTripExplore{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:4100!important;
    width:auto!important;
    height:52px!important;
    min-height:52px!important;
  }

  /* Full mobile map: nav stays fixed; explicit Close map returns to trip. */
  body.mobileMapOpen{
    overflow:hidden!important;
  }
  body.mobileMapOpen .heroHeader,
  body.mobileMapOpen .panel,
  body.mobileMapOpen .aveluneTripExplore{
    display:none!important;
  }
  body.mobileMapOpen main{
    position:fixed!important;
    top:var(--av-mobile-nav-h)!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    z-index:1000!important;
  }
  body.mobileMapOpen .mapPane{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
  }
  body.mobileMapOpen .mobileMapToggle{
    display:flex!important;
    position:fixed!important;
    top:calc(var(--av-mobile-nav-h) + 10px)!important;
    right:10px!important;
    left:auto!important;
    z-index:4200!important;
    width:auto!important;
    min-width:118px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 15px!important;
    border-radius:999px!important;
    background:#031827!important;
    color:#fffaf0!important;
    border:1px solid #d7a856!important;
    box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  }
  body.mobileMapOpen .mobileMapToggle > span{
    font-size:0!important;
  }
  body.mobileMapOpen .mobileMapToggle > span::before{
    content:"×"!important;
    font-size:20px!important;
    line-height:1!important;
  }

  /* One legend; keep it above the bottom map caption. */
  body.mobileMapOpen #map .mapLegend{
    margin:0 0 88px 10px!important;
  }
  body.mobileMapOpen #map .mapLegend ~ .mapLegend{
    display:none!important;
  }
}

@media(max-width:520px){
  :root{
    --av-mobile-nav-h:62px;
  }
  .aveluneMiniBrand .aveluneA{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    flex-basis:38px!important;
    font-size:0!important;
  }
}

/* v0.3.27 Google travel import */
.googleConnected{color:#147a67!important}.googleImportState{display:grid;gap:12px;margin-top:16px}
.googleConnectTrip,.googleImportConnected,.googleImportSummary{border:1px solid #e2d4bd;border-radius:16px;background:#fff;padding:15px}
.googleConnectTrip p{margin:5px 0 12px;color:#718087}.googleImportConnected{display:flex;align-items:center;gap:10px}.googleImportConnected div{display:grid;gap:2px}
.googleImportConnected small,.googleImportSummary small{color:#748087}.googleImportSummary{display:grid;gap:3px}
.googleTravelResults{display:grid;gap:8px;max-height:50dvh;overflow:auto;padding-right:3px}
.googleTravelResult{display:grid;grid-template-columns:auto 36px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #dfd6c7;border-radius:15px;background:#fff;padding:12px;cursor:pointer}
.googleTravelResult input{width:18px;height:18px}.googleTravelIcon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f3ecdf}
.googleTravelCopy{display:grid;gap:3px;min-width:0}.googleTravelCopy b{color:#102b39}.googleTravelCopy small{color:#6e7f86;line-height:1.35}
.googleImportActions{display:flex;gap:8px;flex-wrap:wrap}.googleImportActions button{border-radius:999px!important}

/* v0.3.30 — sharing, requests and collaboration */
.sharedTripState{display:grid;gap:12px;margin-top:10px}
.sharedSection{display:grid;gap:9px;padding:14px;border:1px solid #dfd4c2;border-radius:17px;background:#fff}
.sharedSectionHead{display:flex;align-items:end;justify-content:space-between;gap:12px}
.sharedSectionHead h4{margin:2px 0 0;font-size:17px;color:#102b39}
.sharedPersonRow,.inviteStatusRow,.familyQuickRow{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #efe7db}
.sharedPersonRow:first-of-type{border-top:0}
.sharedAvatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#08283a;color:#e4b55f;font-weight:900}
.sharedPersonCopy{display:grid;gap:2px}.sharedPersonCopy small,.inviteStatusRow small,.familyQuickRow small,.requestRow small{color:#708087}
.sharedRole,.inviteStatusRow select{height:34px;border:1px solid #d9cbb5;border-radius:999px;background:#fffaf0;padding:0 10px;color:#102b39;font-weight:800}
.sharedRemove,.familyRemove{width:32px;height:32px;border-radius:50%;border:1px solid #e7cec6;background:#fff7f4;color:#a64a38;font-size:19px}
.accessPill,.requestStatus{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;background:#edf5f3;color:#126f70;font-size:10px;font-weight:900;text-transform:uppercase}
.accessPill.owner{background:#fff3d8;color:#8f641d}
.inviteCreateRow{display:grid;grid-template-columns:1fr auto;gap:8px}.inviteCreateRow select{height:42px;border:1px solid #d9cbb5;border-radius:999px;background:#fffaf0;padding:0 12px}
.smartInviteForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.smartInviteForm label{display:grid;gap:4px;color:#65747a;font-size:10px;font-weight:850}.smartInviteForm input,.smartInviteForm select{height:42px;border:1px solid #d9cbb5;border-radius:11px;background:#fffaf0;padding:0 11px}.smartInviteForm button{grid-column:1/-1}
.permissionGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:10px 0}.permissionGrid label{display:flex;align-items:center;gap:8px;margin:0;color:#38505a;font-size:12px;font-weight:750;line-height:1.25}.permissionGrid input{width:16px;height:16px;margin:0;accent-color:#0e5660}.tripSharePanel{display:grid;gap:10px;margin-top:10px;padding:14px;border:1px solid #e6d8c2;border-radius:14px;background:#fffaf0}.tripSharePanel label{display:grid;gap:5px;color:#65747a;font-size:10px;font-weight:850}.tripSharePanel input{height:42px;border:1px solid #d9cbb5;border-radius:11px;background:#fff;padding:0 11px;color:#38505a}.tripShareActions{display:flex;gap:8px;flex-wrap:wrap}.tripMenuBack{margin:0 0 12px;padding:0;border:0;background:transparent;color:#38505a;font-weight:800;text-align:left}
.travelerAccessRow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #efe7db}.travelerAccessRow:first-of-type{border-top:0}.travelerAccessActions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.travelerAccessActions .ghost,.travelerAccessActions .confirm{min-height:34px}.accessPill.none{background:#f2eee8;color:#66747b}.accessPill.pending{background:#fff2d8;color:#80602d}.accessPill.guest{background:#edf3f1;color:#35615d}.travelAccessChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:8px}.travelAccessChoices .shareCard{min-height:100px;text-align:left}
.inviteStatusRow{grid-template-columns:minmax(0,1fr) auto auto}
.requestRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #efe7db}.requestRow>div:first-child{display:grid;gap:3px}.requestActions{display:flex;gap:6px}
.requestStatus.pending{background:#fff3d8;color:#8f641d}.requestStatus.approved{background:#e8f5ef;color:#17745e}.requestStatus.declined{background:#f8ece9;color:#a64a38}
.requestComposer{display:grid;gap:8px;margin-top:8px;padding:12px;border-radius:14px;background:#fbf7ef}.requestComposer input{height:42px;border:1px solid #d9cbb5;border-radius:11px;padding:0 11px}.requestComposerGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.familyQuickRow{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:650px){.sharedPersonRow,.travelerAccessRow{grid-template-columns:auto minmax(0,1fr)}.sharedPersonRow .sharedRemove{grid-column:3}.sharedPersonRow .sharedRole{grid-column:2/4;width:100%}.travelerAccessActions{grid-column:1/-1;justify-content:flex-start}.inviteStatusRow{grid-template-columns:1fr auto}.inviteStatusRow select{grid-column:1}.smartInviteForm,.travelAccessChoices,.permissionGrid{grid-template-columns:1fr}.requestRow{align-items:flex-start;flex-direction:column}.requestActions{width:100%}.requestActions button{flex:1}.requestComposerGrid{grid-template-columns:1fr}}


/* v0.3.31 — Map View planner control is mobile only */
@media(min-width:851px){
  #mobilePlannerMap,
  .mobilePlannerMap{
    display:none!important;
  }
}

/* v0.3.42 — trip-location weather + weekly forecast */



.weeklyWeatherHeader h3{margin:3px 0 4px;color:#102b39}
.weeklyWeatherList{display:grid;gap:7px;margin-top:12px}
.weeklyWeatherDay{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border:1px solid #e3d8c7;
  border-radius:14px;
  background:#fffdf9;
}
.weeklyWeatherDay>div:first-child{display:grid;gap:2px}
.weeklyWeatherDay small{color:#718087}
.weeklyWeatherRain{font-size:11px;color:#54707a;white-space:nowrap}
.weeklyWeatherTemps{display:flex;gap:7px;align-items:baseline;min-width:72px;justify-content:flex-end}
.weeklyWeatherTemps strong{font-size:18px;color:#102b39}
.weeklyWeatherTemps span{font-size:13px;color:#7a8a8f}
@media(max-width:600px){
  .weeklyWeatherDay{grid-template-columns:minmax(0,1fr) auto}
  .weeklyWeatherRain{grid-column:1}
  .weeklyWeatherTemps{grid-column:2;grid-row:1/3}
}

/* v0.3.43 — address autocomplete + delete trip */
.exploreSearchWrap{position:relative}
.addressSuggestions{
  position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:50;
  display:grid;gap:4px;padding:7px;border:1px solid #dbcba9;border-radius:14px;
  background:#fffdf8;box-shadow:0 18px 42px rgba(6,32,45,.18)
}
.addressSuggestions[hidden]{display:none!important}
.addressSuggestion{
  width:100%;display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:center;
  text-align:left;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:#102b39
}
.addressSuggestion:hover,.addressSuggestion:focus{background:#f4eee2}
.addressSuggestion>span:last-child{display:grid;gap:2px}
.addressSuggestion small{color:#728087;font-size:10px}
.p43ResultType{display:block;margin-top:3px;text-transform:uppercase;letter-spacing:.08em;color:#a07833!important;font-size:9px!important}
.deleteTripPanel{display:grid;gap:14px}
.deleteTripPanel h3{margin:0;color:#102b39}
.deleteTripPanel p{margin:0;color:#5f737b;line-height:1.45}
.deleteTripWarning{padding:12px 14px;border:1px solid #e3b9aa;border-radius:12px;background:#fff3ef;color:#a13f2e;font-weight:800}
.deleteTripPanel label{display:grid;gap:6px;font-weight:750;color:#102b39}
.deleteTripPanel input{height:44px;border:1px solid #d9ccb8;border-radius:11px;padding:0 12px;background:#fff}
.deleteTripPanel .danger:disabled{opacity:.45;cursor:not-allowed}
.menuList [data-view="delete"]{margin-top:8px;border-color:rgba(177,72,49,.22)!important}
.menuList [data-view="delete"] b{color:#a74835}


/* v0.3.51 — unified trip-shell navy */
:root{--avelune-page:var(--avelune-blue)}

.aveluneTripBar{
  border-bottom:1px solid rgba(215,168,86,.34)!important;
}
.heroHeader{
  border-bottom:1px solid rgba(215,168,86,.22)!important;
}
.heroArtwork.genericTripHero{
  background:var(--avelune-page)!important;
}
.heroArtwork.genericTripHero::after{
  display:none!important;
  content:none!important;
}
.heroArtwork.hasTripHero{
  background:var(--avelune-page)!important;
}
.heroImage{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
.heroImage[hidden]{display:none!important}

@media(max-width:760px){
  body.aveluneTripMode .tripWorkspace .heroHeader{
    background:var(--avelune-page)!important;
  }
}


/* v0.3.53 — adaptive trip hero foundation */
@media (min-width:761px){
  .tripWorkspace .heroHeader{
    width:100%!important;
    background:#031827!important;
    border-bottom:1px solid rgba(215,168,86,.22)!important;
    overflow:hidden!important;
  }

  .tripWorkspace .heroArtwork{
    display:block!important;
    min-width:0!important;
    background:#031827!important;
    overflow:hidden!important;
  }

  .tripWorkspace .heroArtwork .heroImage{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    object-fit:cover!important;
    object-position:50% 50%!important;
    background:#031827!important;
  }

  /* Wide/banner-shaped photos: photo left, status cards stacked at right. */
  .tripWorkspace .heroHeader.heroPhotoWide{
    display:grid!important;
    grid-template-columns:minmax(0,2.15fr) minmax(310px,.85fr)!important;
    grid-template-rows:minmax(230px,18vw)!important;
    align-items:stretch!important;
  }
  .tripWorkspace .heroHeader.heroPhotoWide .heroArtwork{
    height:100%!important;
  }
  

  /* Standard or taller photos: give the image more vertical room, then put
     Up Next + Weather side-by-side below it to use the width cleanly. */
  .tripWorkspace .heroHeader.heroPhotoStandard,
  .tripWorkspace .heroHeader.heroPhotoTall{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto!important;
  }
  .tripWorkspace .heroHeader.heroPhotoStandard .heroArtwork,
  .tripWorkspace .heroHeader.heroPhotoTall .heroArtwork{
    width:min(100%,1440px)!important;
    justify-self:center!important;
    aspect-ratio:var(--trip-hero-ratio,1.6)!important;
    min-height:250px!important;
    max-height:430px!important;
  }
  
  

  /* Clean navy fallback if no image is available. */
  .tripWorkspace .heroHeader.heroNoPhoto{
    display:block!important;
    background:#031827!important;
  }
  .tripWorkspace .heroHeader.heroNoPhoto .heroArtwork{
    display:none!important;
  }
  

  
}

/* Mobile keeps the existing image-hidden/status-stack layout. */
@media (max-width:760px){
  .tripWorkspace .heroHeader,
  .tripWorkspace .heroHeader.heroPhotoWide,
  .tripWorkspace .heroHeader.heroPhotoStandard,
  .tripWorkspace .heroHeader.heroPhotoTall,
  .tripWorkspace .heroHeader.heroNoPhoto{
    display:block!important;
  }
  .tripWorkspace .heroArtwork{
    display:none!important;
  }
}

/* v0.3.52 — visible route time between stops */
.driveTimeBetween{
  position:relative!important;
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  margin:-2px 16px 4px!important;
  padding:6px 12px!important;
  border-left:1px dashed rgba(15,112,120,.35)!important;
  color:#42606b!important;
  background:transparent!important;
}
.driveTimeBetween>span{
  width:28px!important;height:28px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;
  background:#eef6f5!important;
  font-size:13px!important;
}
.driveTimeBetween>div{display:grid!important;gap:1px!important}
.driveTimeBetween b{font-size:10px!important;color:#214653!important}
.driveTimeBetween small{font-size:9px!important;color:#72858c!important;line-height:1.2!important}


/* ==========================================================
   v0.3.54 — DESKTOP TRIP HERO FOUNDATION
   One stable composition. No aspect-ratio mode switching.
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,3fr) minmax(330px,1fr)!important;
    grid-template-rows:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    background:#031827!important;
    overflow:hidden!important;
    align-items:stretch!important;
    border-bottom:1px solid rgba(215,168,86,.24)!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto .heroArtwork{
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:230px!important;
    max-height:430px!important;
    aspect-ratio:var(--trip-hero-ratio,2.15)!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:0!important;
    background:#031827!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork .heroImage{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:cover!important;
    object-position:50% 50%!important;
    background:#031827!important;
    transform:none!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork.genericTripHero{
    display:none!important;
  }

  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    grid-template-columns:1fr!important;
  }

  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto .heroArtwork{
    display:none!important;
  }

  

  

  

  

  

  
}

/* Mobile remains exactly as the existing mobile trip layout expects. */
@media (max-width:760px){
  body.aveluneTripMode .tripWorkspace .heroArtwork{
    display:none!important;
  }
}


/* ==========================================================
   v0.3.55 — compact trip banner restored
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall{
    display:grid!important;
    grid-template-columns:minmax(0,3fr) minmax(330px,1fr)!important;
    grid-template-rows:250px!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    width:100%!important;
    background:#031827!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall .heroArtwork{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    aspect-ratio:auto!important;
    background:#031827!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork .heroImage{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    object-fit:cover!important;
    object-position:50% 50%!important;
    background:#031827!important;
    transform:none!important;
  }

  

  

  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    display:grid!important;
    grid-template-columns:1fr!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  
}

/* Mobile remains unchanged. */
@media (max-width:760px){
  body.aveluneTripMode .tripWorkspace .heroArtwork{
    display:none!important;
  }
}


/* ==========================================================
   v0.3.56 — COMPACT NON-CROPPING DESKTOP TRIP BANNER
   Keep map + itinerary tall; banner stays intentionally shallow.
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall{
    display:grid!important;
    grid-template-columns:minmax(0,72%) minmax(300px,28%)!important;
    grid-template-rows:176px!important;
    width:100%!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
    margin:0!important;
    padding:0!important;
    background:#031827!important;
    border-bottom:1px solid rgba(215,168,86,.24)!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }

  /* Dedicated image bay.  Image is scaled by HEIGHT, never enlarged beyond
     the banner height, and left aligned.  Empty space remains Avelune navy.
     If the scaled image is too wide for the bay, only the RIGHT edge clips. */
  body.aveluneTripMode .tripWorkspace .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard .heroArtwork,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall .heroArtwork{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
    margin:0!important;
    padding:0!important;
    aspect-ratio:auto!important;
    background:#031827!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork .heroImage{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left center!important;
    background:transparent!important;
    transform:none!important;
  }

  /* Status bay is fully isolated from the image bay, so the banner can never
     cover Up Next / Weather or push down the map and itinerary. */
  

  

  

  

  

  /* No image: remove the empty image bay and keep only the compact status row. */
  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }

  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto .heroArtwork{
    display:none!important;
  }

  
}

/* Mobile remains exactly as before. */
@media (max-width:760px){
  body.aveluneTripMode .tripWorkspace .heroArtwork{
    display:none!important;
  }
}


/* ==========================================================
   v0.3.57 — desktop hero status cards side-by-side
   ========================================================== */
@media (min-width:761px){
  

  

  

  

  /* No-photo layout uses the same horizontal card treatment. */
  
}

/* Mobile remains stacked. */
@media (max-width:760px){
  
}


/* ==========================================================
   v0.3.58 — desktop hero status cards rebuilt
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall{
    grid-template-columns:minmax(0,58%) minmax(0,42%)!important;
    grid-template-rows:176px!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
  }

  

  

  

  

  

  

  

  /* No-photo header still uses the same two premium cards. */
  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    grid-template-columns:1fr!important;
    grid-template-rows:176px!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
  }
  
}

@media (max-width:760px){
  
}


/* ==========================================================
   v0.3.59 — premium desktop hero status layout
   Up Next dominant; Weather compact; both same height.
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall{
    grid-template-columns:minmax(0,54%) minmax(0,46%)!important;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  /* Forecast-coming-soon state keeps the same compact weather width. */
  

  /* Image area is a separate grid column. It can never cover these cards. */
  body.aveluneTripMode .tripWorkspace .heroArtwork{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  
}

@media (max-width:760px){
  
  
}


/* ==========================================================
   v0.3.60 — FINAL DESKTOP HERO STATUS FOUNDATION
   Equal cards. Flex, not grid. Intrinsic content cannot resize tracks.
   ========================================================== */
@media (min-width:761px){
  body.aveluneTripMode .tripWorkspace .heroHeader,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroHasPhoto,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoWide,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoStandard,
  body.aveluneTripMode .tripWorkspace .heroHeader.heroPhotoTall{
    grid-template-columns:minmax(0,52%) minmax(0,48%)!important;
    grid-template-rows:176px!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  

  

  

  

  /* ---- Up Next: readable, never squeezed ---- */
  

  

  

  

  

  

  

  /* Empty Up Next state */
  
  

  /* ---- Weather: compact illustration + wrapping copy ---- */
  

  

  

  

  

  

  

  

  /* No image: still use the same equal-card foundation. */
  body.aveluneTripMode .tripWorkspace .heroHeader.heroNoPhoto{
    grid-template-columns:1fr!important;
    grid-template-rows:176px!important;
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
  }
  
}

@media (max-width:760px){
  
  
  
}

/* ==========================================================
   END v0.3.60 desktop hero status foundation
   ========================================================== */


/* ===== consolidated from mobile-trip-v0323.css ===== */

/* Avelune v0.3.23 — canonical mobile trip geometry
   MOBILE CONTRACT
   1. fixed navigation
   2. fixed Up Next
   3. fixed Forecast
   4. independently scrolling planner + itinerary
   5. fixed Explore & Add footer
*/
@media (max-width:850px){
  :root{
    --av23-nav-h:64px;
    --av23-status-h:196px;
    --av23-chrome-h:260px;
    --av23-footer-h:70px;
  }

  html,body{
    width:100%!important;
    max-width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode,
  #aveluneShell,
  .tripWorkspace{
    width:100%!important;
    max-width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* ---------- ROW 1: FIXED HEADER ---------- */
  body.aveluneTripMode .tripWorkspace .aveluneTripBar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    z-index:10000!important;
    width:100%!important;
    height:var(--av23-nav-h)!important;
    min-height:var(--av23-nav-h)!important;
    max-height:var(--av23-nav-h)!important;
    margin:0!important;
    padding:7px 9px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:6px!important;
    overflow:hidden!important;
    transform:none!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneBack{
    width:auto!important;
    min-width:0!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    margin:0!important;
    padding:0 9px!important;
    font-size:12px!important;
    white-space:nowrap!important;
    border-radius:13px!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneMiniBrand{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneMiniBrand .aveluneA{
    display:block!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    flex:0 0 38px!important;
    font-size:0!important;
    line-height:0!important;
    color:transparent!important;
    background:url("/brand/avelune-logo-square-dark.svg") center/contain no-repeat!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneMiniBrand b{
    display:block!important;
    font-size:17px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneMiniBrand small{
    display:none!important;
  }

  body.aveluneTripMode .tripWorkspace .tripBarActions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:4px!important;
    min-width:0!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneTodayTop{
    width:auto!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0 8px!important;
    font-size:10px!important;
  }

  body.aveluneTripMode .tripWorkspace .aveluneTopMenu{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
  }

  /* ---------- ROWS 2 + 3: FIXED STATUS ---------- */
  body.aveluneTripMode .tripWorkspace .heroHeader{
    position:fixed!important;
    top:var(--av23-nav-h)!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    z-index:9900!important;
    display:block!important;
    width:100%!important;
    height:var(--av23-status-h)!important;
    min-height:var(--av23-status-h)!important;
    max-height:var(--av23-status-h)!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    transform:none!important;
    background:#0f4654!important;
  }

  body.aveluneTripMode .tripWorkspace .heroArtwork{
    display:none!important;
  }

  

  

  

  

  

  

  /* ---------- SCROLLING ITINERARY AREA ---------- */
  body.aveluneTripMode .tripWorkspace main{
    position:fixed!important;
    top:var(--av23-chrome-h)!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:100!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    transform:none!important;
  }

  body:not(.mobileMapOpen).aveluneTripMode .tripWorkspace .mapPane{
    display:none!important;
  }

  /* Original control is ONLY the Close Map control in map mode. */
  body:not(.mobileMapOpen).aveluneTripMode .tripWorkspace #mobileMapToggle{
    display:none!important;
  }

  body.aveluneTripMode .tripWorkspace .panel{
    position:absolute!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:1!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  body.aveluneTripMode .tripWorkspace #content{
    position:absolute!important;
    top:0!important;
    left:10px!important;
    right:10px!important;
    bottom:0!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:10px 0 calc(var(--av23-footer-h) + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    scrollbar-gutter:auto!important;
  }

  /* ---------- EXACT 2 x 2 BUTTON GRID ---------- */
  body.aveluneTripMode .tripWorkspace #content .p39Toolbar{
    position:static!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:44px 44px!important;
    grid-template-areas:
      "view map"
      "ideas ai"!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:96px!important;
    margin:0 0 14px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    overflow:visible!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar > button{
    position:static!important;
    inset:auto!important;
    float:none!important;
    transform:none!important;
    justify-self:stretch!important;
    align-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:5px 10px!important;
    box-sizing:border-box!important;
    border-radius:999px!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar #planCalendarBtn{
    grid-area:view!important;
    grid-column:1!important;
    grid-row:1!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar #mobilePlannerMap{
    grid-area:map!important;
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar #proposalToggle{
    grid-area:ideas!important;
    grid-column:1!important;
    grid-row:2!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar #pageAi{
    grid-area:ai!important;
    grid-column:2!important;
    grid-row:2!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar .toolIcon{
    width:26px!important;
    min-width:26px!important;
    height:26px!important;
    flex:0 0 26px!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar b{
    font-size:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar small{
    display:none!important;
  }

  body.aveluneTripMode .tripWorkspace #content .p39Toolbar .calendarGlyph{
    font-size:17px!important;
  }

  /* ---------- FIXED FOOTER CTA ---------- */
  body:not(.mobileMapOpen).aveluneTripMode .tripWorkspace .aveluneTripExplore{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    z-index:11000!important;
    display:flex!important;
    width:auto!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    margin:0!important;
    padding:0 18px!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
  }

  body:not(.mobileMapOpen).aveluneTripMode .tripWorkspace .aveluneTripExplore b{
    display:inline!important;
  }

  /* ---------- FULL SCREEN MAP ---------- */
  body.mobileMapOpen.aveluneTripMode .tripWorkspace .heroHeader,
  body.mobileMapOpen.aveluneTripMode .tripWorkspace .panel,
  body.mobileMapOpen.aveluneTripMode .tripWorkspace .aveluneTripExplore{
    display:none!important;
  }

  body.mobileMapOpen.aveluneTripMode .tripWorkspace main{
    top:var(--av23-nav-h)!important;
    bottom:0!important;
  }

  body.mobileMapOpen.aveluneTripMode .tripWorkspace .mapPane{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:hidden!important;
  }

  body.mobileMapOpen.aveluneTripMode .tripWorkspace #mobileMapToggle{
    display:flex!important;
    position:fixed!important;
    top:calc(var(--av23-nav-h) + 10px)!important;
    right:10px!important;
    left:auto!important;
    bottom:auto!important;
    z-index:12000!important;
    width:auto!important;
    min-width:118px!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    margin:0!important;
    padding:0 14px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border-radius:999px!important;
    background:#031827!important;
    color:#fffaf0!important;
    border:1px solid #d7a856!important;
  }

  body.mobileMapOpen.aveluneTripMode .tripWorkspace #mobileMapToggle > span{
    font-size:0!important;
  }

  body.mobileMapOpen.aveluneTripMode .tripWorkspace #mobileMapToggle > span::before{
    content:"×"!important;
    font-size:20px!important;
    line-height:1!important;
  }

  body.mobileMapOpen #map .mapLegend{
    margin:0 0 88px 10px!important;
  }

  body.mobileMapOpen #map .mapLegend ~ .mapLegend{
    display:none!important;
  }

  body.mobileMapOpen .mapPane #mapCaption{
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:520px){
  :root{
    --av23-nav-h:62px;
    --av23-status-h:196px;
    --av23-chrome-h:258px;
  }
}



/* v0.4.1 — Google reservation ingestion review */
.googleTravelTopline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.googleTravelTopline b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.googleTravelTopline em{flex:0 0 auto;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9e7228;background:#fff8e9;border:1px solid #ead7af;border-radius:999px;padding:3px 7px}
.googleTravelSource{display:block;margin-top:5px;font-size:9px;font-weight:750;color:#6d8189}
.googleTravelEvidence{display:block;margin-top:3px;font-size:9px;line-height:1.3;color:#8a969b}
.googleTravelDuplicate{opacity:.72;background:#faf7f0!important}
.googleTravelDuplicate .googleTravelSource{color:#a06a2b}
@media(max-width:760px){.googleTravelTopline{align-items:flex-start}.googleTravelTopline b{white-space:normal}.googleTravelTopline em{font-size:8px}}


/* v0.14.2 — compact no-scroll place details */
#placeDialog{
  width:min(900px,90vw)!important;
  max-width:min(900px,90vw)!important;
  height:auto!important;
  max-height:90dvh!important;
}
#placeDialog .sheet.detail{
  height:min(86dvh,760px)!important;
  max-height:min(86dvh,760px)!important;
  overflow:hidden!important;
  padding:14px 18px 16px!important;
  border-radius:22px!important;
}
#placeDialog #placeBody{
  height:100%;
  min-height:0;
}
#placeDialog .placeDetailFit{
  position:relative;
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:9px;
}
#placeDialog .detailGallery{
  min-height:0!important;
  height:100%;
  max-height:none!important;
  margin:0!important;
  border-radius:16px!important;
}
#placeDialog .detailGallery img{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
}
#placeDialog .photoCredit{
  position:absolute;
  left:8px;
  bottom:-1px;
  margin:0!important;
  z-index:2;
  padding:4px 7px;
  border-radius:8px;
  color:#f8f2e8!important;
  background:rgba(3,24,39,.68);
  backdrop-filter:blur(6px);
  font-size:9px!important;
  max-width:70%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#placeDialog .placeDetailInfo{
  min-height:0;
}
#placeDialog .placeDetailInfo h2{
  font-size:clamp(24px,3vw,31px)!important;
  line-height:1.02;
  margin:5px 0 4px!important;
}
#placeDialog .placeDetailInfo .tag{
  margin-bottom:0!important;
}
#placeDialog .rating{
  font-size:13px;
  line-height:1.2;
}
#placeDialog .placeSummary{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:7px 0!important;
  font-size:13px;
  line-height:1.35;
}
#placeDialog .placeDetailInfo>.meta{
  margin:5px 0!important;
  font-size:12px;
  line-height:1.25;
}
#placeDialog .placePhone{display:inline-block;margin-right:12px!important}
#placeDialog .placeHours{
  display:inline-block;
  margin:4px 0!important;
  vertical-align:middle;
}
#placeDialog .placeHours[open]{
  position:absolute;
  right:16px;
  bottom:64px;
  z-index:15;
  width:min(320px,70%);
  padding:10px 12px;
  border:1px solid #ddcfba;
  border-radius:12px;
  background:#fffdf9;
  box-shadow:0 14px 36px rgba(3,24,39,.16);
}
#placeDialog .placePrimaryActions{
  gap:7px!important;
  margin-top:8px!important;
  flex-wrap:nowrap!important;
  align-items:center;
}
#placeDialog .placePrimaryActions>*{
  min-width:0;
  padding:9px 11px!important;
  font-size:11px!important;
  white-space:nowrap;
}
#placeDialog .placeBookingAction{
  border-color:#c99a47!important;
  color:#80581b!important;
  background:#fff8e9!important;
}
#placeDialog .favoriteHeart{
  flex:0 0 36px;
  width:36px!important;
  height:36px!important;
}
#placeDialog>.sheet>.x,
#placeDialog .sheet>.x{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:40px!important;
  height:40px!important;
  z-index:40!important;
}

/* In-place subviews: reviews and provider booking */
#placeDialog .placeSubview{
  position:absolute;
  inset:0;
  z-index:30;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(255,253,249,.93);
  backdrop-filter:blur(12px);
}
#placeDialog .placeSubview[hidden]{display:none!important}
#placeDialog .placeSubviewCard{
  width:min(760px,96%);
  max-height:100%;
  overflow:hidden;
  border:1px solid #dfd1ba;
  border-radius:20px;
  background:#fffdf9;
  padding:18px;
  box-shadow:0 24px 70px rgba(3,24,39,.22);
}
#placeDialog .placeSubviewHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}
#placeDialog .placeSubviewHead h3{
  margin:3px 0 0;
  font:700 clamp(22px,3vw,30px)/1.05 Georgia,serif;
  color:#082333;
}
#placeDialog .placeSubviewClose{
  flex:0 0 36px;
  width:36px;height:36px;
  border:0;border-radius:50%;
  background:#12323d;color:white;
  font-size:24px;line-height:1;
}
#placeDialog .placeReviewSummary{
  padding:10px 12px;
  border-radius:13px;
  background:#f4f8f6;
  margin-bottom:10px;
}
#placeDialog .placeReviewSummary b,
#placeDialog .placeReviewSummary small{display:block}
#placeDialog .placeReviewSummary p{
  margin:4px 0;
  font-size:12px;
  line-height:1.35;
}
#placeDialog .placeReviewSummary small{font-size:9px;color:#76878e}
#placeDialog .placeReviewGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}
#placeDialog .placeReviewCard{
  min-width:0;
  padding:11px;
  border:1px solid #e5dac8;
  border-radius:14px;
  background:white;
}
#placeDialog .placeReviewHead{
  display:grid;
  grid-template-columns:30px 1fr auto;
  gap:7px;
  align-items:center;
}
#placeDialog .placeReviewHead img,
#placeDialog .reviewAvatar{
  width:30px;height:30px;border-radius:50%;
  object-fit:cover;
  display:grid;place-items:center;
  background:#edf5f3;color:#0f7078;font-weight:900;
}
#placeDialog .placeReviewHead b,
#placeDialog .placeReviewHead small{display:block}
#placeDialog .placeReviewHead b{font-size:10px}
#placeDialog .placeReviewHead small{font-size:8px;color:#7c8a90}
#placeDialog .reviewStars{font-size:9px;color:#a56b08;font-weight:850}
#placeDialog .placeReviewCard p{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:8px 0 0;
  font-size:10px;
  line-height:1.38;
  color:#526873;
}
#placeDialog .placeReviewAll{
  display:inline-flex;
  margin-top:11px;
}
#placeDialog .placeReviewEmpty{
  grid-column:1/-1;
  padding:22px;
  text-align:center;
  color:#6f8189;
}

/* Provider booking inside the app when the provider permits framing. */
#placeDialog .placeBookingCard{
  width:min(820px,98%);
  height:min(70dvh,620px);
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
}
#placeDialog .placeBookingIntro{
  margin:0 0 9px;
  color:#637983;
  font-size:11px;
}
#placeDialog .placeBookingFrameWrap{
  position:relative;
  min-height:0;
  border:1px solid #e2d5bf;
  border-radius:14px;
  overflow:hidden;
  background:#f4f4f1;
}
#placeDialog .placeBookingFrameWrap iframe{
  width:100%;height:100%;
  border:0;
  background:white;
}
#placeDialog .placeBookingFallback{
  position:absolute;
  right:8px;
  bottom:8px;
  display:flex;
  align-items:center;
  gap:7px;
  max-width:72%;
  padding:6px 7px;
  border-radius:10px;
  background:rgba(255,253,249,.93);
  box-shadow:0 5px 18px rgba(3,24,39,.14);
}
#placeDialog .placeBookingFallback small{
  color:#75858d;font-size:8px;line-height:1.2;
}
#placeDialog .placeBookingFallback .linkBtn{
  padding:7px 8px!important;
  font-size:9px!important;
  white-space:nowrap;
}

@media(max-width:700px){
  #placeDialog{
    width:94vw!important;
    max-width:94vw!important;
    max-height:92dvh!important;
  }
  #placeDialog .sheet.detail{
    height:88dvh!important;
    max-height:88dvh!important;
    padding:12px!important;
  }
  #placeDialog .placeDetailFit{
    grid-template-rows:minmax(170px,42dvh) auto;
    gap:7px;
  }
  #placeDialog .placeDetailInfo h2{
    font-size:clamp(21px,7vw,27px)!important;
    padding-right:38px;
  }
  #placeDialog .placeSummary{
    -webkit-line-clamp:1;
    font-size:11px;
    margin:5px 0!important;
  }
  #placeDialog .placeDetailInfo>.meta{
    font-size:10px;
    margin:4px 0!important;
  }
  #placeDialog .rating{font-size:11px}
  #placeDialog .placePrimaryActions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #placeDialog .placePrimaryActions>*{
    width:100%;
    justify-content:center;
  }
  #placeDialog .favoriteHeart{
    width:100%!important;
  }
  #placeDialog .placeReviewGrid{
    grid-template-columns:1fr;
  }
  #placeDialog .placeReviewGrid .placeReviewCard:nth-child(n+3){
    display:none;
  }
  #placeDialog .placeReviewCard p{
    -webkit-line-clamp:3;
  }
  #placeDialog .placeBookingCard{
    height:76dvh;
  }
  #placeDialog .placeBookingFallback{
    max-width:calc(100% - 16px);
    left:8px;
    right:8px;
  }
}


/* v0.14.3 — place popup + Up Next cleanup */
#placeDialog .photoCredit{display:none!important}

/* Up Next: cleaner hierarchy, no itinerary-number bubble, no map action. */
.nextNumber,.upNextNumber,.nextIndex,.upNextIndex,
.nextCard [data-next-map],.nextCard .viewOnMap,
.todayHero [data-next-map],.todayHero .viewOnMap{
  display:none!important;
}
.nextCard,.todayHero{
  color:#f7f0e4;
}
.nextCard .travelTime,
.nextCard .transitTime,
.nextCard .driveTime,
.nextCard .travelDuration,
.nextCard .leaveBy,
.todayHero .travelTime,
.todayHero .transitTime,
.todayHero .driveTime,
.todayHero .travelDuration,
.todayHero .leaveBy{
  opacity:1!important;
  font-weight:800!important;
}
.nextCard .travelTime,
.nextCard .transitTime,
.nextCard .driveTime,
.nextCard .travelDuration,
.todayHero .travelTime,
.todayHero .transitTime,
.todayHero .driveTime,
.todayHero .travelDuration{
  color:#dce7e6!important;
}
.nextCard .leaveBy,
.todayHero .leaveBy{
  color:#d4a352!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
}

/* v0.14.4 — hard cleanup for old Up Next number/map remnants */
#heroNext .avNextNumber,
#heroNext .viewOnMap,
#heroNext [data-next-map]{display:none!important}

/* ================================================================
   Avelune v0.16.0 — consolidated luxury refinement layer
   Uses shared tokens above rather than introducing new one-off colors.
   ================================================================ */
body{font-family:var(--avelune-sans);color:var(--avelune-text);background:var(--avelune-cream)}
main{gap:20px;padding:20px}
.mapPane,.panel{background:var(--avelune-ivory);border-color:var(--avelune-line);border-radius:var(--avelune-radius-lg);box-shadow:var(--avelune-shadow-soft)}
#content{padding:18px 19px 24px}
.day{padding:15px 0;border-bottom-color:var(--avelune-line)}
.day:last-child{border-bottom:0}
.item,.proposal,.maybeCard,.historyCard,.todayCard,.weatherCard,.nextCard{background:var(--avelune-ivory-raised);border-color:var(--avelune-line);border-radius:var(--avelune-radius-md);box-shadow:none}
.item:hover{background:var(--avelune-ivory);box-shadow:0 8px 24px rgba(3,24,39,.055)}
.primary,.confirm,.avelunePrimary{background:var(--avelune-gold)!important;color:var(--avelune-navy)!important;border-color:var(--avelune-gold)!important;font-weight:850}
.linkBtn,.ghost,.smallBtn,.headerGhost{border-color:var(--avelune-line);background:rgba(255,253,248,.72);color:var(--avelune-text)}
.linkBtn:hover,.ghost:hover,.smallBtn:hover{background:var(--avelune-ivory);border-color:rgba(16,43,57,.22)}
.tag{background:rgba(124,143,122,.12);color:#516552;padding:3px 6px}
dialog::backdrop{background:rgba(3,24,39,.68);backdrop-filter:blur(7px)}
.sheet,.dashboardPopoutCard{background:var(--avelune-ivory)!important;border-radius:var(--avelune-radius-modal)!important;box-shadow:var(--avelune-shadow-modal)!important;border:1px solid rgba(255,255,255,.18)!important}
.x{background:var(--avelune-navy-soft);box-shadow:0 6px 16px rgba(3,24,39,.12)}
.form input,.form select,.form textarea{background:var(--avelune-ivory-raised);border-color:var(--avelune-line);border-radius:var(--avelune-radius-sm)}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid rgba(215,168,86,.22);border-color:rgba(158,114,40,.45)}
.detail{padding:18px 20px 22px}
.detailGallery{background:#eee9df;border-radius:22px;margin:-2px 0 18px;min-height:210px}
.detailGallery img{width:100%;max-height:min(50vh,540px);object-fit:cover}
.detail h2{font-family:var(--avelune-serif);font-size:clamp(26px,3.2vw,38px);line-height:1.03;margin:7px 0 8px;color:var(--avelune-navy-soft)}
.placeDetailInfo>.tag{background:transparent;padding:0;color:var(--avelune-gold-deep);letter-spacing:.11em;text-transform:uppercase;font-size:9px}
.placeSummary{font-size:13px;line-height:1.55;max-width:62ch;color:#536a74}
.placePrimaryActions{margin-top:16px;gap:8px}
.placePrimaryActions .favoriteHeart{margin-left:auto}
.photoNav button{background:rgba(3,24,39,.76);backdrop-filter:blur(8px);transition:transform .18s ease,background .18s ease}
.photoNav button:hover{transform:scale(1.04);background:rgba(3,24,39,.9)}
.loadingCard{background:var(--avelune-ivory-raised)!important;border-color:var(--avelune-line)!important;box-shadow:none!important}
#toast{background:var(--avelune-navy-soft);border-radius:var(--avelune-radius-sm);box-shadow:var(--avelune-shadow-soft)}
@media(max-width:850px){main{padding:10px;gap:12px}.panel,.mapPane{border-radius:20px}.sheet{padding:18px}.detail{padding:12px 14px 18px}}


/* Avelune v0.16.2 — final shell consistency fallback */
body.aveluneTripMode{background:var(--avelune-blue)!important}
body.aveluneTripMode .tripWorkspace main{background:var(--avelune-blue)!important}


/* v0.16.4 — shared hierarchy audit */
body{font-family:var(--avelune-sans,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important}
button,input,select,textarea,.meta,.time,.rating,.links{font-family:var(--avelune-sans,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)!important}
/* Serif is reserved for editorial names/headings. */
.dashboardIntro h2,.tripCardVisual h3,.avenueAiCard>h3,.avenueAiGapHead>div>b,.avenueAiRec h5,#placeDialog h2{font-family:var(--avelune-serif,Georgia,serif)!important}
/* Gold communicates hierarchy, not decoration. */
.timelineBadge:not(.selected),.tag:not(.selected){box-shadow:none!important}
/* Standard control geometry without making feature cards equally rounded. */
.confirm,.ghost,.linkBtn,.quickBtn,.avelunePrimary,.aveluneGhost{border-radius:var(--avelune-radius-control,12px)!important}


/* v0.16.5 — place details are one uninterrupted ivory surface. */
#placeDialog .sheet.detail{
  background:#fffdf9!important;
  border:1px solid rgba(255,253,249,.96)!important;
  box-shadow:0 30px 86px rgba(1,15,25,.24)!important;
}
#placeDialog .placeDetailFit{
  background:#fffdf9!important;
  box-shadow:none!important;
  border:0!important;
}

/* v0.20.46 — Booking Handoff V1 */
.bookingHandoffPrompt,.bookingConfirmationIntro{border:1px solid var(--line);background:linear-gradient(135deg,#f7fbfa,#fffaf1);border-radius:16px;padding:14px}.bookingHandoffPrompt p,.bookingConfirmationIntro p{margin:4px 0;line-height:1.45}.bookingUploadLabel{border:1px dashed #b8cfcc;border-radius:12px;padding:10px;background:#fbfdfd}.bookingUploadLabel small,.bookingExtractReady small{display:block;color:var(--muted);font-weight:500;line-height:1.4}.bookingExtractReady{border:1px solid #b9dad4;background:#eff9f7;border-radius:12px;padding:10px;color:var(--teal)}.bookingHandoffButton{border-color:#b9d7d2;background:#eff9f7;color:var(--teal)}.p34Status.bookingPending{background:#fff9ed}.p34Status.bookingConfirmed{background:#eff9f7}@media(max-width:560px){#bookingHandoffForm .actions>*{flex-basis:100%}}
