/* Cream homepage. Scoped to discovery so the working search stays compact. */
body.discovery-page:not(.free-page){
  --bg:#f7f2e8;--surface:#fffcf6;--surface2:#eee7da;--surface3:#e9e2d5;
  --text:#302e27;--muted:#696458;--faint:#756e60;--border:#ded6c7;--border2:#c9c0af;
  --accent:#3d5942;--accent-strong:#2d4432;--accent-soft:#e9ecdf;--green:#3d5942;
  background:var(--bg);
}
.discovery-page:not(.free-page) .wrap{max-width:1200px;padding:0 40px 48px}
.discovery-page:not(.free-page) header.top{background:rgba(247,242,232,.96);border-color:var(--border);backdrop-filter:blur(12px)}
.discovery-page:not(.free-page) .topinner{max-width:1200px;padding:20px 40px;min-height:84px}
.discovery-page:not(.free-page) .logo{font-family:var(--disp);font-size:29px;font-weight:400;letter-spacing:-1.2px}
.discovery-page:not(.free-page) .logo .logodom{font-weight:400}
.discovery-page:not(.free-page) .logobar{font-size:12px;font-style:normal;letter-spacing:.02em;color:var(--muted)}
.discovery-page:not(.free-page) .topright{gap:20px}
.discovery-page:not(.free-page) #langSel.langsel{height:38px;border-color:transparent;background-color:transparent;border-radius:4px;color:var(--text)}
.discovery-page:not(.free-page) .savedHead{min-height:40px;min-width:44px}
.discovery-page:not(.free-page) .navfree{font-size:14px;color:var(--text);padding:10px 0}
.discovery-page:not(.free-page) .hero{max-width:none;padding:40px 0 26px;text-align:center;border-bottom:1px solid var(--border);margin-bottom:28px}
.discovery-page:not(.free-page) .hero h1{max-width:900px;margin:auto;font-size:clamp(36px,4.3vw,58px);font-weight:400;line-height:1.08;letter-spacing:-1.8px;text-wrap:balance}
.discovery-page:not(.free-page) .hero .sub{display:block;max-width:680px;margin:16px auto 0;font-size:16px;line-height:1.65;text-wrap:pretty}
.discovery-page:not(.free-page) .bar{max-width:1020px;margin:24px auto 0}
.discovery-page:not(.free-page) form.search{border-radius:12px;padding:7px;gap:4px;box-shadow:0 4px 18px #55452b06;grid-template-columns:minmax(180px,1fr) 220px 110px auto}
.discovery-page:not(.free-page) form.search:focus-within{box-shadow:0 0 0 3px #3d594214;border-color:var(--accent)}
.discovery-page:not(.free-page) form.search button.go{border-radius:7px;min-width:112px;height:52px}
.discovery-page:not(.free-page) .popular{justify-content:center;gap:4px 20px;margin:15px 0 0;min-height:34px;flex-wrap:wrap;overflow:visible;white-space:normal;font-size:13px}
.discovery-page:not(.free-page) .popular .pl{color:var(--muted)}
.discovery-page:not(.free-page) .popular a{padding:6px 0}
.discovery-page:not(.free-page) .sechead{display:block;margin:36px 0 20px}
.discovery-page:not(.free-page) .sechead h2.sec,.discovery-page:not(.free-page) h2.sec{font:400 30px/1.2 var(--disp);letter-spacing:-.65px;margin:42px 0 20px}
.discovery-page:not(.free-page) .sechead h2.sec{margin:0 0 7px}
.discovery-page:not(.free-page) .sechead .secsub{max-width:none;font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.home-price-info{font-size:13px;line-height:1.6;text-decoration:underline;text-underline-offset:3px;padding:4px 0}
.price-explanation{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 20px 70px #302e2726}
.price-explanation::backdrop{background:#302e2766}
.price-explanation h2{font:400 28px/1.2 var(--disp);margin:0 0 24px}
.price-explanation h3{font:600 14px/1.4 var(--ui);margin:20px 0 5px}
.price-explanation p{font:400 14px/1.65 var(--ui);color:var(--muted);margin:0}
.price-explanation button{margin-top:24px;min-height:44px;padding:8px 22px;font:600 14px var(--ui);cursor:pointer;background:var(--accent);color:var(--accent-ink);border:0}
.discovery-page:not(.free-page) .rowgrid,.discovery-page:not(.free-page) .rowgrid.wide{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 26px}
.discovery-page:not(.free-page) .mini{display:flex;flex-direction:column;gap:0;min-width:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--text);transform:none}
.mini-media{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;background:var(--surface2);border-radius:8px;overflow:hidden;margin-bottom:14px}
.mini-media img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .5s var(--ease-out)}
.mini-media img[hidden]{display:none}
.home-no-image{display:none;color:var(--muted);font-size:13px;text-align:center;padding:20px}
.mini-media.is-empty .home-no-image{display:block}
.discovery-page:not(.free-page) .mini .mini-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;margin:0 0 8px;font-size:16px;line-height:1.45;font-weight:500;color:var(--text);overflow-wrap:anywhere}
.discovery-page:not(.free-page) .mini .mp{margin:0;font-size:19px;line-height:1.4;font-weight:600;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.discovery-page:not(.free-page) .mini .mp .green{display:block;margin-top:4px;font-size:12px;line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted)}
.discovery-page:not(.free-page) .mini .ml{margin:8px 0 0;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.discovery-page:not(.free-page) .mini.col .mt{font:400 22px/1.4 var(--disp);overflow:visible;display:block!important}
.discovery-page:not(.free-page) .mini.col .cgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:0 0 14px;border-radius:8px;overflow:hidden;background:var(--surface2);aspect-ratio:4/3}
.discovery-page:not(.free-page) .mini.col .cgrid img{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:contain;margin:0;border-radius:0;max-height:none}
.discovery-page:not(.free-page) .mini.col .cgrid img:only-child{grid-column:1/-1;grid-row:1/3}
.discovery-page:not(.free-page) .mini.col .cbadge{display:block;width:fit-content;border:0;background:none;padding:0;margin:0 0 4px;font:500 10px/1.5 var(--ui);letter-spacing:.1em;color:var(--muted)}
.discovery-page:not(.free-page) .mini.col .noph{aspect-ratio:4/3;margin:0 0 14px;border:0;border-radius:8px;font-size:48px;background:var(--surface2)}
.discovery-page:not(.free-page) .mini.col .mp{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;margin-top:8px;font-size:15px;letter-spacing:0}
.discovery-page:not(.free-page) .mini.col .mp .green{display:inline;margin:0}
.discovery-page:not(.free-page) footer{border-top:1px solid var(--border);margin-top:56px;padding-top:26px;color:var(--muted);font-size:13px;line-height:1.7}
.discovery-page:not(.free-page) :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .discovery-page:not(.free-page) .mini:hover .mini-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
  .discovery-page:not(.free-page) .mini:hover .mini-media img{transform:scale(1.035)}
}
@media(max-width:1000px){
  .discovery-page:not(.free-page) .wrap{padding-left:28px;padding-right:28px}
  .discovery-page:not(.free-page) .topinner{padding:16px 28px;min-height:72px}
  .discovery-page:not(.free-page) .hero{padding-top:40px}
  .discovery-page:not(.free-page) form.search{grid-template-columns:minmax(140px,1fr) 180px 94px auto}
  .discovery-page:not(.free-page) .rowgrid,.discovery-page:not(.free-page) .rowgrid.wide{gap:28px 18px}
}
@media(max-width:760px){
  .discovery-page:not(.free-page) .rowgrid,.discovery-page:not(.free-page) .rowgrid.wide{grid-template-columns:repeat(2,minmax(0,1fr))}
  .discovery-page:not(.free-page) form.search{grid-template-columns:minmax(0,1fr) auto}
  .discovery-page:not(.free-page) form.search .field{grid-column:1;grid-row:1}
  .discovery-page:not(.free-page) form.search button.go{grid-column:2;grid-row:1;min-width:90px}
  .discovery-page:not(.free-page) form.search .citycur{display:flex;grid-column:1/-1;grid-row:2;gap:0;border-top:1px solid var(--border);padding-top:5px;margin-top:3px}
  .discovery-page:not(.free-page) form.search .citypick{flex:1;width:auto;border-left:0;min-width:0}
  .discovery-page:not(.free-page) form.search select.cur{width:110px;flex:none}
}
@media(max-width:660px){
  .discovery-page:not(.free-page) .wrap{padding:0 20px 32px}
  .discovery-page:not(.free-page) .topinner{padding:12px 20px;min-height:68px;flex-wrap:nowrap;gap:8px}
  .discovery-page:not(.free-page) .logo{font-size:25px;letter-spacing:-1px}
  .discovery-page:not(.free-page) .topright{gap:8px}
  .discovery-page:not(.free-page) .topright a.navfree{display:inline-block;font-size:12px}
  .discovery-page:not(.free-page) .menuBtn{min-height:44px;min-width:44px;justify-content:center;background:transparent;border-color:var(--border)}
  .discovery-page:not(.free-page) .hero{padding:30px 0 24px;margin-bottom:26px}
  .discovery-page:not(.free-page) .hero h1{font-size:38px;line-height:1.12;letter-spacing:-1.25px}
  .discovery-page:not(.free-page) .hero .sub{font-size:14px;line-height:1.6;margin:14px auto 0}
  .discovery-page:not(.free-page) .bar{margin-top:22px}
  .discovery-page:not(.free-page) form.search{padding:5px;border-radius:10px}
  .discovery-page:not(.free-page) form.search button.go{height:48px;min-width:66px;padding:0 12px}
  .discovery-page:not(.free-page) form.search .citycur{margin:3px 0 0;padding-top:4px}
  .discovery-page:not(.free-page) form.search select.cur{width:88px;flex:0 0 88px}
  .discovery-page:not(.free-page) .popular{gap:0 16px;margin-top:12px;font-size:12px}
  .discovery-page:not(.free-page) .popular a{padding:7px 0}
  .discovery-page:not(.free-page) .sechead{margin:28px 0 16px}
  .discovery-page:not(.free-page) .sechead h2.sec,.discovery-page:not(.free-page) h2.sec{font-size:25px;margin-top:32px}
  .discovery-page:not(.free-page) .sechead h2.sec{margin:0 0 7px}
  .discovery-page:not(.free-page) .sechead .secsub{display:block;font-size:13px}
  .discovery-page:not(.free-page) .rowgrid,.discovery-page:not(.free-page) .rowgrid.wide{gap:24px 14px}
  .mini-media{aspect-ratio:1;margin-bottom:10px;border-radius:6px}
  .discovery-page:not(.free-page) .mini .mini-title{font-size:14px;line-height:1.45;margin-bottom:7px}
  .discovery-page:not(.free-page) .mini .mp{font-size:17px}
  .discovery-page:not(.free-page) .mini .mp .green{font-size:11px}
  .discovery-page:not(.free-page) .mini .ml{font-size:11px;margin-top:6px}
  .discovery-page:not(.free-page) .mini.col .cgrid,.discovery-page:not(.free-page) .mini.col .noph{aspect-ratio:1}
  .discovery-page:not(.free-page) .mini.col .mt{font-size:20px}
}
@media(max-width:359px){
  .discovery-page:not(.free-page) .wrap{padding-left:16px;padding-right:16px}
  .discovery-page:not(.free-page) .topinner{padding-left:16px;padding-right:16px}
  .discovery-page:not(.free-page) .hero h1{font-size:33px}
}
@media(prefers-reduced-motion:reduce){.mini-media img{transition:none!important;transform:none!important}}

/* Keep the identity and navigation steady when moving into search or Free. */
body.results-page,body.free-page{
  --bg:#f7f2e8;--surface:#fffcf6;--surface2:#eee7da;--surface3:#e9e2d5;
  --text:#302e27;--muted:#696458;--faint:#756e60;--border:#ded6c7;--border2:#c9c0af;
  --accent:#3d5942;--accent-strong:#2d4432;--accent-soft:#e9ecdf;--green:#3d5942;
}
:is(.results-page,.free-page) header.top{background:rgba(247,242,232,.96)}
:is(.results-page,.free-page) .topinner{min-height:72px}
:is(.results-page,.free-page) .logo{font:400 29px var(--disp);letter-spacing:-1.2px}
:is(.results-page,.free-page) .logo .logodom{font-weight:400}
:is(.results-page,.free-page) .logobar{font-style:normal;color:var(--muted)}
:is(.results-page,.free-page) .savedHead{min-width:44px;min-height:44px}
:is(.results-page,.free-page) #langSel{height:38px;background-color:transparent;border-color:transparent}

/* Native panels live above the sticky header, with no off-screen tab stops. */
body:has(dialog:modal){overflow:hidden}
dialog.drawer,dialog.fdrawer{color:var(--text);background:var(--surface);padding:0;max-width:100%;max-height:100dvh;transition:none}
dialog.drawer:not([open]),dialog.fdrawer:not([open]){display:none}
dialog.drawer[open],dialog.fdrawer[open]{display:flex;transform:none}
dialog.drawer{inset:0 0 0 auto;margin:0;width:min(400px,94vw);height:100dvh;border:0;border-left:1px solid var(--border)}
dialog.fdrawer{inset:auto 0 0;margin:0 auto;width:min(640px,100%);max-height:min(80dvh,640px)}
dialog.drawer::backdrop,dialog.fdrawer::backdrop{background:#302e2766}
.saved-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border)}
.saved-heading h3{padding:0;border:0;font:400 25px/1.3 var(--disp)}
.panel-close,.fd-x{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;padding:0;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--text);font:400 25px/1 var(--ui);cursor:pointer}
.panel-close:hover,.fd-x:hover{background:var(--surface2)}
.drawer .body{min-height:0}
.drawer .empty2{padding:40px 12px;font-size:14px;line-height:1.6}
.drawer .footbar{padding-bottom:max(16px,env(safe-area-inset-bottom));flex-wrap:wrap}
.drawer .footbar button{min-height:44px}
.fdrawer .fd-body{min-height:0}
.fdrawer .fd-foot{padding-bottom:max(16px,env(safe-area-inset-bottom))}
@media(max-width:660px){
  :is(.results-page,.free-page) .topinner{padding:12px 20px;min-height:68px;flex-wrap:nowrap;gap:8px}
  :is(.results-page,.free-page) .logo{font-size:25px;letter-spacing:-1px}
  :is(.results-page,.free-page) .topright{gap:8px}
  :is(.results-page,.free-page) .topright a.navfree{display:inline-block;font-size:12px}
  :is(.results-page,.free-page) .menuBtn{min-width:44px;min-height:44px;justify-content:center;background:transparent}
}
@media(max-width:359px){:is(.results-page,.free-page) .topinner{padding-left:16px;padding-right:16px}}
