/* One search-led shell shared by Discover, Map, and My plans. */
.site-header,.map-is-active .site-header{display:block;position:sticky;top:0;height:100px;z-index:1200;background:var(--canvas);border:0}
.header-inner{max-width:1240px;padding:20px 48px;gap:24px;display:flex;height:100%}
.brand img{width:124px}.header-end{gap:12px;flex:none}.profile-button{width:44px;height:44px;min-height:44px}
.search-tools{display:flex;align-items:center;gap:6px;min-width:0;flex:1;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:6px;box-shadow:0 2px 5px #00000004}
.search-tools>.icon-button{width:44px;height:44px;min-width:44px;box-shadow:none;border-radius:16px;padding:0;background:transparent;position:relative}
.search-tools>.mode-toggle{background:var(--canvas);color:var(--red-dark)}
.search-form{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.search-symbol{display:flex;color:var(--muted)}.search-symbol .icon{width:18px;height:18px}
.search-form input{flex:1;min-width:0;width:100%;height:44px;border:0;background:transparent;color:var(--ink);outline-offset:0;font-size:15px}
.search-form input::placeholder{color:#79786f}.search-form input::-webkit-search-cancel-button{display:none}
.search-form .icon-button{width:36px;min-width:36px;height:44px;min-height:44px;border-radius:12px}
.search-form .search-submit{background:var(--ink);color:var(--paper);height:36px;min-height:36px;width:36px;position:relative}.search-submit::after{content:'';position:absolute;inset:-4px}
.filter-button .icon{width:20px;height:20px}.filter-button #filter-count{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;min-width:17px;width:17px;height:17px;font-size:10px}
.saved-plans{position:relative;background:var(--paper);border:1px solid var(--line)}.saved-plans.active{color:var(--red-dark);background:var(--blush)}.saved-plans .my-count{position:absolute;top:-4px;right:-4px;margin:0}
main{padding-top:24px;padding-bottom:36px}.page-heading{margin-bottom:24px;align-items:center;gap:20px}.page-heading h1{font-size:25px;line-height:1.3;letter-spacing:-.6px}.page-heading .location{font-size:13px;font-weight:500;gap:8px}.location .demo-label{font-size:10px;padding:2px 5px;line-height:1.2;margin-left:3px;font-weight:400}
.feed-heading{min-height:24px;margin-bottom:14px}.feed-heading h2{font-size:14px;font-weight:500;color:var(--muted)}.detail-panel{top:120px;margin-top:38px}
.card-top{margin-bottom:8px}.card-place{display:flex;align-items:flex-start;gap:7px;line-height:1.5}.card-place>.icon{width:16px;height:16px;margin-top:2px}.card-time{margin-top:8px}.metadata-separator{margin:0 2px}.plan-title{overflow-wrap:anywhere}.detail-banner h2{max-width:none;font-size:27px;line-height:1.25}
.person-copy{min-width:0;flex:1}.person-copy small{font-size:12px;line-height:1.5}.person .host-label{align-self:flex-start;margin-top:8px}.host-note{margin:20px 0 24px;font-size:14px}
#filter-dialog{width:min(640px,calc(100% - 32px));padding:0;max-height:90dvh;overflow:hidden}
#filter-form{display:flex;flex-direction:column;max-height:90dvh}
#filter-form>.dialog-heading{flex-direction:row;margin:0;padding:20px 24px 14px;border-bottom:1px solid var(--line);flex:none}
.filter-content{padding:24px;overflow:auto;overscroll-behavior:contain;min-height:0}
.filter-content fieldset{margin-bottom:24px}.filter-content legend{font-size:14px;margin-bottom:10px}
.choice-options{display:flex;flex-wrap:wrap;gap:8px}.choice-options label{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:12px;font-size:14px;cursor:pointer;background:var(--paper)}
.choice-options input{width:16px;height:16px;flex:none;margin:0}.choice-options label:has(:checked){border-color:var(--red);background:var(--blush);color:var(--red-dark)}
.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin:8px 0 24px}
.filter-grid>label{display:grid;gap:8px;font-weight:600;font-size:14px}
.filter-grid select{width:100%;min-width:0;height:46px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;font-weight:400}
select:focus-visible,textarea:focus-visible{outline:3px solid var(--red);outline-offset:2px}
#filter-form .filter-actions{margin:0;padding:16px 24px;border-top:1px solid var(--line);background:var(--paper);flex:none;align-items:center}
#filter-form .filter-actions .primary{min-width:120px}.filter-content .checkbox-row{padding-bottom:0}
.map-is-active .site-header{position:fixed;left:0;right:0;background:transparent;pointer-events:none}.map-is-active .header-inner>*{pointer-events:auto}
.map-is-active .search-tools,.map-is-active .header-end>button,.map-is-active .brand{box-shadow:0 2px 8px #00000010,0 6px 24px #00000008;background:var(--paper)}
.map-is-active .brand{padding:10px;border-radius:16px}.map-is-active .brand img{width:104px}
.map-is-active .map-sheet{top:108px;max-height:calc(100dvh - 132px)}
.map-is-active .map-controls{top:108px}.map-is-active .map-load-status{top:108px}
.map-is-active .map-person-profile p{font-size:14px;line-height:1.5;margin-top:14px}
.map-is-active .toast{bottom:24px}
@media(max-width:1050px){.header-inner{padding-inline:30px;gap:16px}.search-symbol{display:none}.brand img{width:100px}.map-is-active .brand img{width:80px}}
@media(max-width:800px){
 .site-header,.map-is-active .site-header{height:136px}.header-inner{padding:12px 20px 14px;display:grid;grid-template-columns:1fr auto;grid-template-rows:38px 58px;gap:12px}
 .brand{width:fit-content}.brand img,.map-is-active .brand img{width:92px}.map-is-active .brand{padding:6px 10px;margin-left:-10px}
 .header-end{grid-column:2;grid-row:1;gap:10px}.header-end .profile-button,.header-end .saved-plans{width:38px;height:38px;min-height:38px;position:relative}.header-end>button::after{content:'';position:absolute;inset:-3px}
 .search-tools{grid-column:1/-1;grid-row:2;gap:2px;padding:6px;border-radius:20px;height:58px;width:100%}.search-form{gap:2px}.search-form input{font-size:14px}.search-form .search-submit{display:none}.search-form:focus-within .search-submit{display:flex}.search-form #clear-search{width:28px;min-width:28px}
 main{padding:16px 20px 32px}.page-heading{margin-bottom:20px;gap:12px}.page-heading h1{font-size:23px}.page-heading .location{font-size:12px}.location .demo-label{display:none}.location .icon{width:14px;height:14px}
 .map-is-active .map-controls{top:154px;right:16px}.map-is-active .leaflet-bottom.leaflet-right{top:auto;bottom:0}.map-is-active .leaflet-control-attribution{font-size:9px!important}
 .map-is-active .map-sheet{top:auto;bottom:calc(env(safe-area-inset-bottom) + 24px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 180px)}
 .map-is-active .map-sheet.sheet-open{height:48dvh}.map-is-active .map-sheet.sheet-large{height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 180px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 180px)}
 .map-is-active .mini-map{bottom:calc(env(safe-area-inset-bottom) + 112px)}.map-is-active .map-load-status{top:142px}.toast,.map-is-active .toast{bottom:20px}
 .plan-dialog .detail-banner h2{font-size:27px}.card-place,.card-time{font-size:13px;line-height:1.5}.plan-title{font-size:23px}.card-time .icon{margin-top:2px;align-self:flex-start}.card-people{flex-wrap:wrap}.slot-count{margin-left:auto}
}
@media(max-width:400px){.header-inner{padding-inline:12px}.search-form input{font-size:13px}.page-heading .demo-label{display:none}.plan-title{font-size:21px}.filter-content{padding:20px 16px}.filter-grid{gap:18px 12px}.choice-options{gap:6px}.choice-options label{padding-inline:10px;font-size:13px}.filter-grid>label,.filter-grid select{font-size:13px}#filter-form>.dialog-heading,#filter-form .filter-actions{padding-inline:16px}}
@media(max-width:800px) and (max-height:550px){.site-header,.map-is-active .site-header{height:80px}.header-inner{display:flex;gap:12px;padding:12px 16px}.brand{display:none}.search-tools{flex:1}.map-is-active .map-sheet{top:94px;bottom:auto;max-height:calc(100dvh - 110px)}.map-is-active .map-sheet.sheet-open,.map-is-active .map-sheet.sheet-large{height:calc(100dvh - 110px);max-height:calc(100dvh - 110px)}.map-is-active .map-controls{top:94px}}

/* Card backgrounds and metadata select the plan; buttons keep their own actions. */
.plan-card{cursor:pointer}
.plan-card:has(.plan-title:focus-visible){outline:3px solid var(--red);outline-offset:4px}
.plan-card .plan-title:focus-visible{outline:none}
