:root {
  --ink: #16241c;
  --forest: #173f2c;
  --forest-deep: #0d2a1d;
  --moss: #6e8d54;
  --lichen: #dce5cc;
  --paper: #f5f1e7;
  --cream: #fffdf7;
  --ember: #d86735;
  --booked: #bc3f3a;
  --available: #2f8b58;
  --held: #d69a28;
  --unavailable: #67726b;
  --line: rgba(22, 36, 28, .15);
  --shadow: 0 18px 50px rgba(13, 42, 29, .12);
}

html { font-size: 16px; min-height: 100%; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--forest); }
h1, h2, h3, strong { letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5.8vw, 5.5rem); line-height: .96; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.2rem); font-weight: 750; }

.site-header { position: relative; z-index: 20; background: var(--forest-deep); border-bottom: 1px solid rgba(255,255,255,.12); }
.navbar { min-height: 78px; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; color: white; }
.navbar-brand:hover, .navbar-brand:focus { color: white; }
.navbar-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.navbar-brand small { margin-top: .25rem; color: #bcd0bf; font-size: .65rem; text-transform: uppercase; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c6d5b9; border-radius: 50% 48% 44% 50%; color: var(--forest-deep); background: var(--lichen); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 900; transform: rotate(-6deg); }
.navbar .nav-link { color: #edf3e9; }
.navbar .nav-link:hover { color: #fff; }
.navbar-toggler { border-color: rgba(255,255,255,.4); filter: invert(1); }

.hero { color: white; background: radial-gradient(circle at 75% 20%, rgba(151,178,120,.25), transparent 24rem), linear-gradient(125deg, #0d2a1d, #1d4934 64%, #2c5e42); overflow: hidden; }
.compact-hero { padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.hero-copy { max-width: 680px; }
.hero h1 { max-width: 850px; }
.hero .lead, .reservation-instructions { max-width: 650px; margin: 1.5rem 0 0; color: #d9e6d6; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.62; }
.reservation-instructions p { margin: 0; }
.reservation-steps { display: grid; gap: .85rem; margin-top: 1.75rem; }
.reservation-steps span { white-space: nowrap; }
.eyebrow { margin: 0 0 .8rem; color: var(--ember); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.hero .eyebrow { color: #e6a07c; }
.trail-cards { display: grid; justify-self: end; gap: 1rem; width: min(100%, 320px); margin-top: clamp(13rem, 18vw, 15rem); padding-block: .25rem; }
.trail-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px); }
.trail-card span, .trail-card small { color: #cfddcc; }
.trail-card strong { font-size: 1.5rem; }

.map-section, .page-section, .rules-section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.page-heading { align-items: center; }
.page-heading h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); }
.page-heading p:last-child { max-width: 720px; margin: .7rem 0 0; color: #536158; }
.availability-counts { display: flex; flex-wrap: wrap; gap: .7rem; }
.availability-counts > span { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--cream); font-size: .84rem; }
.legend-dot { display: inline-block; width: .72rem; height: .72rem; border-radius: 50%; }
.legend-dot.available { background: var(--available); }
.legend-dot.reserved { background: var(--booked); }
.legend-dot.unavailable { background: var(--unavailable); }
.notice-card { margin-bottom: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--held); background: #fff8e8; }

.map-overview { max-width: 1320px; margin-inline: auto; }
.map-detail-heading { margin: 2.5rem 0 1rem; }
.map-detail-heading h3 { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
.map-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.map-detail-grid .map-panel:last-child { grid-column: 1 / -1; }
.map-panel { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: white; box-shadow: var(--shadow); }
.map-panel figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fbf7ee; }
.map-panel figcaption strong { color: var(--forest); }
.map-panel figcaption span { color: #5b675f; font-size: .86rem; text-align: right; }
.map-svg { display: block; width: 100%; height: auto; background: #fbf7f2; }
.public-map .svg-site { pointer-events: none; user-select: none; }
.site-shape { stroke: rgba(255,255,255,.95); stroke-width: 1.25; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.svg-site.available .site-shape { fill: rgba(39,143,83,.92); }
.svg-site.reserved .site-shape { fill: rgba(193,52,48,.95); }
.svg-site.held .site-shape { fill: rgba(214,154,40,.95); }
.svg-site.blocked .site-shape, .svg-site.maintenance .site-shape { fill: rgba(103,114,107,.95); }
.site-label { fill: #edf0ed; stroke: rgba(25,42,32,.6); stroke-width: 1.2px; paint-order: stroke fill; font-family: Arial, sans-serif; font-size: 7px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.admin-map .svg-site { cursor: pointer; }
.admin-map .svg-site:hover .site-shape, .admin-map .svg-site:focus .site-shape { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 3px rgba(0,0,0,.75)); }
.admin-map .svg-site:focus { outline: none; }
.map-caption { margin: 1rem 0 0; color: #536158; font-size: .91rem; }

.contact-band { padding: clamp(2.5rem, 6vw, 5rem) 0; color: white; background: var(--forest); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.contact-band .eyebrow { color: #efad8c; }
.contact-details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; padding: 1.4rem; border: 1px solid rgba(255,255,255,.22); }
.contact-details span { color: #bcd0bf; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rule-grid article { padding: 1.8rem; border-top: 3px solid var(--moss); background: var(--cream); }
.rule-grid article > span { color: var(--ember); font-weight: 800; }
.rule-grid h3 { margin: 1.5rem 0 .7rem; font-size: 1.25rem; }
.rule-grid p { margin: 0; color: #536158; }

.site-footer { padding: 2.5rem 0; color: #dce8d9; background: #081b12; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-grid > div { display: flex; flex-direction: column; }
.footer-grid > div:last-child { text-align: right; }
.site-footer a { color: white; }

.btn-forest { color: white; background: var(--forest); border-color: var(--forest); }
.btn-forest:hover, .btn-forest:focus { color: white; background: var(--forest-deep); border-color: var(--forest-deep); }
.panel { border: 1px solid var(--line); border-radius: 4px; background: var(--cream); box-shadow: 0 8px 30px rgba(13,42,29,.06); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-grid a { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); color: var(--ink); background: var(--cream); text-decoration: none; }
.metric-grid a:hover { border-color: var(--moss); transform: translateY(-2px); }
.metric-grid span { color: #607066; font-size: .83rem; text-transform: uppercase; letter-spacing: .08em; }
.metric-grid strong { margin-top: .4rem; font-size: 2.6rem; }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.action-card { display: flex; flex-direction: column; padding: 1.5rem; color: white; background: var(--forest); text-decoration: none; }
.action-card:hover { color: white; background: var(--forest-deep); }
.action-card span, .action-card small { color: #bdd0bf; }
.action-card strong { margin: .8rem 0 .3rem; font-size: 1.25rem; }
.roster-section { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.roster-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.roster-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.roster-heading > p { max-width: 540px; margin: 0; color: #536158; }
.reservation-roster { max-height: 30rem; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.reservation-roster:focus { outline: 3px solid rgba(110,141,84,.42); outline-offset: 3px; }
.roster-table { min-width: 1080px; }
.roster-table thead th { position: sticky; z-index: 2; top: 0; padding-block: .85rem; color: white; background: var(--forest); box-shadow: inset 0 -1px rgba(255,255,255,.22); white-space: nowrap; }
.roster-table tbody td { white-space: nowrap; }
.roster-table tbody a { font-weight: 700; text-underline-offset: 2px; }
.wide-container { max-width: 1500px; }
.form-width { max-width: 1050px; }
.form-panel { padding: clamp(1.2rem, 4vw, 2.5rem); }
.form-panel fieldset + fieldset { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form-panel legend { margin-bottom: 1.2rem; font-size: 1.25rem; font-weight: 750; }
.form-panel label:not(.site-choice):not(.form-check) { margin-bottom: .35rem; font-size: .83rem; font-weight: 700; }
.site-choice-heading { margin: 1rem 0 .65rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .45rem; }
.site-choice input { position: absolute; opacity: 0; }
.site-choice span { display: flex; flex-direction: column; align-items: center; padding: .6rem .4rem; border: 1px solid var(--line); border-radius: 3px; background: white; cursor: pointer; }
.site-choice input:checked + span { color: white; border-color: var(--forest); background: var(--forest); }
.site-choice small { font-size: .57rem; text-transform: uppercase; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 2.5rem; }
.empty-state { padding: 3rem !important; text-align: center; color: #627067; }
.status-pill { display: inline-block; padding: .25rem .55rem; border-radius: 99px; color: var(--forest-deep); background: var(--lichen); font-size: .72rem; font-weight: 800; }
.inbox-list { display: grid; gap: 1rem; }
.inbox-item { display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 2rem; align-items: center; padding: 1.4rem; border-left: 5px solid var(--held); }
.inbox-item h2 { margin: .6rem 0 .3rem; font-size: 1.2rem; }
.inbox-item p { margin: 0; color: #5e6a62; }
.inbox-item dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0; font-size: .84rem; }
.inbox-item dt { color: #69766e; font-weight: 500; }
.inbox-item dd { margin: 0; font-weight: 700; }
.inbox-actions, .inbox-actions form { display: flex; gap: .45rem; }
.inbox-actions form { width: 280px; }
.severity-blocking { border-left-color: var(--booked); }
.severity-information { border-left-color: var(--available); }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: .7rem; }
.auth-page { display: grid; min-height: calc(100vh - 250px); place-items: center; padding: 4rem 1rem; }
.auth-card { width: min(100%, 430px); padding: 2rem; }
.auth-card h1 { font-size: 2.6rem; }
.confirmation-card { max-width: 750px; margin: 2rem auto; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.confirmation-card h1 { font-size: clamp(2rem, 5vw, 4rem); }
.confirmation-card p { margin: 1.5rem auto; color: #526057; font-size: 1.1rem; }
.embed-page { background: white; }
.embed-page .map-section { padding: .5rem; }
.embed-page .hero, .embed-page .contact-band, .embed-page .rules-section { display: none; }

@media (min-width: 992px) {
  .hero-grid { width: min(88%, 1140px); max-width: none; }
}

@media (max-width: 991px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trail-cards { justify-self: start; width: min(100%, 400px); margin-top: 0; }
  .trail-card { max-width: 400px; }
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid, .admin-actions { grid-template-columns: repeat(2, 1fr); }
  .roster-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .inbox-item { grid-template-columns: 1fr; gap: 1rem; }
  .inbox-actions { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .compact-hero { padding: 3.5rem 0; }
  .rule-grid, .metric-grid, .admin-actions, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { text-align: left; }
  .availability-counts { width: 100%; }
  .availability-counts > span { flex: 1; justify-content: center; }
  .map-detail-grid { grid-template-columns: 1fr; }
  .map-detail-grid .map-panel:last-child { grid-column: auto; }
  .map-panel figcaption { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .map-panel figcaption span { text-align: left; }
  .map-overview .map-svg { min-width: 680px; }
  .map-overview .map-panel { overflow-x: auto; }
  .contact-details { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .inbox-actions form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
