/* One continuous drawing surface: the controls float above it, never crop it. */
.map-panel{display:block;height:calc(100dvh - var(--masthead-height,72px));min-height:500px;background:radial-gradient(ellipse at 50% 54%,#f7f5df 0,#e5eddb 50%,#d5e3d2 100%)}
.map-panel .map-stage{position:absolute;inset:0;overflow:visible}
.map-panel .map-heading{position:absolute;inset:0 0 auto;padding:18px 24px 12px;z-index:5;pointer-events:none;background:linear-gradient(#e7eedfed,#e7eedf99 68%,transparent)}
.map-heading a,.map-heading button{pointer-events:auto}
.map-panel .map-bottom{position:absolute;bottom:0;left:0;right:0;z-index:5;pointer-events:none;padding:14px 24px 13px;background:linear-gradient(transparent,#e1eadaaa 40%,#e1eadaee)}
.map-bottom .map-tools{pointer-events:auto;background:#fffdf1ed;box-shadow:0 8px 30px #24433116;backdrop-filter:blur(12px)}
.map-bottom .map-footer,.map-bottom .map-caption{font-size:10px}
.map-panel .map-heading h1{max-width:900px;text-wrap:balance}
.map-panel .map-stage .labels{z-index:4}
.map-tools button{transition:background .15s}
.hero-discover{display:inline-flex;align-items:center;gap:18px;margin-top:14px;padding:10px 14px;border:1px solid #82977955;border-radius:9px;background:#faf9ece6;font-size:12px;text-decoration:none;box-shadow:0 3px 12px #3f593010}
.hero-discover:hover{background:#fffdf3;border-color:#8d9f7d}
.hero-discover span{font-size:17px;line-height:1}

/* The first view gives the county the full width; the collection follows below. */
.county-opening{display:block;min-height:0}
.county-opening>.map-panel{position:relative;top:auto;height:calc(100dvh - var(--masthead-height,72px));min-height:560px;max-height:1100px}
.county-hero .map-heading{padding:16px clamp(22px,3.4vw,64px) 12px}
.county-hero .map-heading h1{font-size:clamp(30px,2.9vw,43px);line-height:1.08;letter-spacing:-1.3px;margin:7px 0 6px;max-width:none}
.county-hero .map-heading h1 br{display:none}.county-hero .map-heading h1 em{margin-left:0}
.county-hero .map-heading p{display:inline-block;max-width:540px;font-size:13px}
.county-hero .map-heading-top{position:absolute;top:17px;left:0;right:clamp(22px,3.4vw,64px);pointer-events:none}.county-hero .map-trail{visibility:hidden}
.county-hero .map-heading h1{padding-right:120px}
.county-hero .hero-discover{margin:3px 0 0 16px;padding:7px 11px;font-size:11px}
.county-hero .map-bottom{display:grid;grid-template-columns:1fr 1fr;padding:10px clamp(22px,3.4vw,64px) 12px;gap:10px}
.county-hero .map-tools{grid-column:1/-1;justify-self:center}.county-hero .map-caption{text-align:right}.county-hero .map-footer{max-width:550px}
.county-hero .map-tools{padding:6px;gap:6px}
.county-hero .map-tools button{padding:10px 15px;font-size:13px}
.county-opening>.guide{border-left:0;border-top:1px solid #cad7c2;padding:24px max(24px,calc((100% - 1160px)/2)) 0;scroll-margin-top:15px}
.county-opening>.guide .guide-top{padding:8px 0 30px}
.county-opening #guide-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 40px;align-items:start}
.county-opening #guide-content>.guide-intro{padding:0;grid-column:1;grid-row:1}
.county-opening .guide-intro h2{font-size:clamp(32px,3.2vw,44px)}
.county-opening #guide-content>.county-art{grid-column:2;grid-row:1/4;width:100%;height:300px;margin:0;border-radius:18px}
.county-opening #guide-content>.regions{grid-column:1;grid-row:2;padding:0;align-self:start}
.county-opening #guide-content>.day-teaser,.county-opening #guide-content>.discovery-catalog,.county-opening #guide-content>.list-title,.county-opening #guide-content>.town-list{grid-column:1/-1;margin:0;padding-left:0;padding-right:0}
.county-opening .discovery-catalog{border-top:1px solid var(--line);padding-top:28px}
.county-opening .catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
.county-opening .catalog-filters[hidden]{display:none}
.county-opening .catalog-filters label{margin:0;grid-row:1;position:static;width:auto;height:auto;clip:auto;overflow:visible}
.county-opening .catalog-filters input,.county-opening .catalog-filters select{grid-row:2;margin:0}
.county-opening .catalog-filters .filter-note{grid-column:1/-1;margin:0 0 12px}
.county-opening #catalog-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px}
.county-opening .more-discoveries{width:auto;padding:12px 22px}
.county-opening .town-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;padding-bottom:35px!important}
.county-opening .list-title{margin-top:20px!important}
.county-opening .guide-bottom{padding:25px 0}
.county-opening #guide-content>.day-teaser{padding:22px 24px}

#expanded-view .map-panel{display:block;height:100%;min-height:0}
#expanded-view .map-heading{position:absolute;padding:14px 24px 12px}
#expanded-view .map-bottom{position:absolute;padding-bottom:max(12px,env(safe-area-inset-bottom))}
#expanded-view .hero-discover{display:none}

@media(max-width:1050px){.county-opening #catalog-results,.county-opening .town-list{grid-template-columns:repeat(2,minmax(0,1fr))}.county-hero .map-heading h1{font-size:32px;padding-right:0}.county-hero .map-heading-top{position:static;pointer-events:auto}.county-hero .map-trail{visibility:visible}}
@media(max-width:760px){
 .map-panel,.map-panel[data-level=landmark]{display:block;height:min(760px,calc(100svh - var(--masthead-height,110px)));min-height:540px}
 .county-opening>.map-panel{height:calc(100svh - var(--masthead-height,110px));min-height:570px}
 .map-panel .map-heading,.county-hero .map-heading{padding:16px 20px 12px}
 .county-hero .map-heading h1{font-size:31px;letter-spacing:-1px;max-width:340px}
 .county-hero .map-heading h1 br{display:block}.county-hero .map-heading h1 em{margin-left:0}
 .county-hero .map-heading p{display:block;font-size:12px;max-width:310px}
 .hero-discover,.county-hero .hero-discover{font-size:11px;padding:8px 10px;margin:10px 0 0;gap:9px}
 .map-panel .map-bottom,.county-hero .map-bottom{display:flex;padding:10px 12px 12px;gap:7px}.county-hero .map-caption{text-align:left}
 .map-bottom .map-footer{font-size:9px;gap:8px}.map-bottom .map-caption{font-size:9px}
 .county-hero .map-tools,.map-tools{gap:1px;padding:4px}
 .county-hero .map-tools button,.map-tools button{font-size:11px;min-width:31px;padding:8px}
 .county-hero .map-tools button:first-child,.map-tools button:first-child{padding:8px}
 .county-opening>.guide{padding:24px 22px 0}
 .county-opening #guide-content{display:block}
 .county-opening #guide-content>.county-art{height:215px;margin:24px 0}
 .county-opening #guide-content>.regions{margin:0 0 24px}
 .county-opening #guide-content>.day-teaser{margin-bottom:24px}
 .county-opening .catalog-filters{display:block}
 .county-opening .catalog-filters label{display:block;margin:12px 0 7px}
 .county-opening .catalog-filters .filter-note{margin:12px 0}
 .county-opening #catalog-results,.county-opening .town-list{grid-template-columns:1fr}
 .county-opening .list-title{padding:24px 0 8px}
 #expanded-view .map-panel{height:100%;min-height:0}
 #expanded-view .map-heading{padding:10px 16px 8px}
}
@media(max-height:550px) and (min-width:761px){.county-opening>.map-panel,.map-panel{min-height:420px}.county-hero .map-heading h1{font-size:29px}.county-hero .map-heading h1 br{display:none}.county-hero .map-heading p{display:none}.county-hero .hero-discover{margin-top:6px}}
@media print{.county-opening #guide-content{display:block}}
