
:root{
  --navy:#10263b;
  --navy-2:#18344f;
  --navy-3:#0b1b2a;
  --cream:#f3efe4;
  --gold:#c7a45a;
  --sage:#78866b;
  --white:#fff;
  --ink:#17212a;
  --text:#43505b;
  --muted:#73808b;
  --line:#dbe1e5;
  --panel:#f7f8f8;
  --shadow:0 14px 34px rgba(16,38,59,.12);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#eef1f3}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit}
.site-header{
  background:var(--navy);
  color:white;
  padding:18px clamp(18px,4vw,54px);
  border-bottom:3px solid var(--gold);
}
.brand-wrap{
  max-width:1480px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:22px
}
.brand{
  display:flex;align-items:center;gap:12px;text-decoration:none;font-size:20px;font-weight:800
}
.brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:64px;
  color:var(--gold);
  line-height:1;
}

.star-main{
  font-size:31px;
  line-height:1;
}

.star-small{
  font-size:18px;
  line-height:1;
}
.site-tagline{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#b7c5d0;font-weight:700}
.app-shell{max-width:1480px;margin:0 auto;padding:30px clamp(16px,3vw,38px) 38px}
.intro-panel{
  background:linear-gradient(135deg,var(--navy),var(--navy-2));color:white;border-radius:22px;padding:28px 32px;
  display:flex;justify-content:space-between;align-items:flex-end;gap:30px;box-shadow:var(--shadow)
}
.eyebrow{margin:0 0 8px;color:var(--gold);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.15em}
.eyebrow.small{font-size:10px;margin-bottom:5px}
h1{margin:0;font-size:clamp(31px,4vw,52px);letter-spacing:-.04em;line-height:1}
.intro-copy{max-width:760px;color:#d5dfe6;font-size:16px;line-height:1.6;margin:17px 0 0}
.intro-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-width:360px}
.intro-stats div{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.055);padding:15px;border-radius:14px}
.intro-stats strong{display:block;font-size:25px;color:var(--cream);line-height:1}
.intro-stats span{display:block;color:#aebdca;font-size:10px;line-height:1.35;text-transform:uppercase;letter-spacing:.08em;margin-top:6px}
.controls{
  display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(145px,.75fr)) auto auto;
  gap:12px;align-items:end;margin:18px 0
}
.controls label{display:grid;gap:6px;color:#55616b;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.controls input,.controls select{
  width:100%;height:44px;border:1px solid #cfd7dc;border-radius:10px;background:white;padding:0 12px;color:var(--ink);outline:none
}
.controls input:focus,.controls select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(199,164,90,.16)}
.primary-button,.secondary-button,.map-toolbar button{
  height:44px;border-radius:10px;padding:0 16px;font-weight:800;border:0
}
.primary-button{background:var(--navy);color:white}
.secondary-button{background:white;color:var(--navy);border:1px solid #cfd7dc}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:16px;min-height:680px}
.map-column,.results-column{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(16,38,59,.07)}
.map-column{display:flex;flex-direction:column}
.map-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)
}
.map-toolbar strong{color:var(--navy)}
.map-toolbar button{height:34px;background:#eef2f4;color:var(--navy);font-size:12px}
#map{flex:1;min-height:620px;background:#dfe6ea}
.results-column{display:flex;flex-direction:column}
.side-panel{height:100%;overflow:auto}
.panel-empty{padding:26px 22px;color:var(--muted);line-height:1.6}
.panel-empty h2{margin:0 0 10px;color:var(--navy);font-size:24px}
.panel-empty p{margin:0}
.detail-panel{padding:22px}
.detail-branch{display:inline-block;background:#eef2f4;color:#44525d;padding:5px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:800}
.detail-panel h2{margin:12px 0 8px;font-size:25px;line-height:1.15;color:var(--navy)}
.detail-subtitle{color:#6f7c87;font-size:13px;line-height:1.5;margin-bottom:18px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.detail-item{background:#f6f8f9;border:1px solid #e4e9ec;border-radius:11px;padding:11px}
.detail-item strong{display:block;color:var(--navy);font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}
.detail-item span{color:#5c6974;font-size:13px;line-height:1.4}
.detail-note{margin-top:14px;padding:11px 12px;border-radius:10px;background:#fff7df;border:1px solid #eedb9d;color:#6e5b2e;font-size:12px;line-height:1.45}
.detail-actions{display:grid;gap:9px;margin-top:18px}
.detail-actions a,.detail-actions button{display:block;text-align:center;text-decoration:none;border-radius:10px;padding:11px 12px;font-size:12px;font-weight:800}
.detail-primary{background:var(--navy);color:white}
.detail-secondary{background:white;color:var(--navy);border:1px solid #ccd5db}
.filter-results{padding:0}
.filter-results-header{padding:17px 18px 12px;border-bottom:1px solid var(--line)}
.filter-results-header h2{margin:3px 0 0;color:var(--navy);font-size:22px}
.filter-results-header p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.result-card{padding:14px 18px;border-bottom:1px solid #edf0f2;cursor:pointer;transition:background .15s ease}
.result-card:hover{background:#f7f8f7}
.result-top{display:flex;justify-content:space-between;gap:10px}
.result-card h3{font-size:14px;line-height:1.3;margin:0;color:var(--navy)}
.branch-pill{flex:0 0 auto;align-self:flex-start;background:#eef2f4;color:#44525d;padding:4px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.05em;font-size:9px;font-weight:800}
.result-meta{margin-top:6px;color:#71808a;font-size:12px;line-height:1.45}
.result-meta span+span:before{content:" • ";color:#a4aeb5}
.no-results{padding:28px 20px;color:var(--muted);line-height:1.55}
.site-note{
  margin-top:16px;background:#fff9ea;border:1px solid #eadba8;border-radius:14px;padding:14px 17px;
  display:flex;gap:7px;font-size:12px;color:#675b3f;line-height:1.5
}
footer{
  max-width:1480px;margin:0 auto;padding:0 clamp(16px,3vw,38px) 30px;color:#73808b;font-size:11px;line-height:1.5;
  display:flex;justify-content:space-between;gap:24px
}
/* Leaflet */
.leaflet-popup-content-wrapper{border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.22)}
.leaflet-popup-content{margin:15px 16px;min-width:230px}
.popup-branch{color:#7a8791;text-transform:uppercase;letter-spacing:.09em;font-size:9px;font-weight:800}
.popup-title{font-size:16px;font-weight:800;color:var(--navy);margin:4px 0 5px;line-height:1.25}
.popup-meta{font-size:12px;color:#66747f;line-height:1.45}
.popup-warning{margin-top:8px;font-size:10px;color:#8b6b27;background:#fff5d8;padding:6px 8px;border-radius:7px}
.popup-link{
  display:inline-block;margin-top:10px;background:var(--navy);color:white!important;text-decoration:none;
  font-size:11px;font-weight:800;padding:8px 10px;border-radius:8px
}
.camp-marker{
  width:28px;height:28px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);
  background:var(--navy);border:3px solid var(--gold);box-shadow:0 5px 12px rgba(0,0,0,.28)
}
.camp-marker span{
  display:grid;place-items:center;width:100%;height:100%;transform:rotate(45deg);color:white;font-size:8px;font-weight:900
}
.user-marker{
  width:18px;height:18px;border-radius:50%;background:#2879bf;border:4px solid white;box-shadow:0 0 0 3px rgba(40,121,191,.25)
}
@media(max-width:1050px){
  .intro-panel{align-items:flex-start;flex-direction:column}
  .intro-stats{min-width:0;width:100%}
  .controls{grid-template-columns:1.5fr 1fr 1fr}
  .controls button,.controls label:nth-of-type(4){grid-row:2}
  .workspace{grid-template-columns:1fr 330px}
}
@media(max-width:820px){
  .site-tagline{display:none}
  .controls{grid-template-columns:1fr 1fr}
  .controls label:first-child{grid-column:1/-1}
  .controls button,.controls label:nth-of-type(4){grid-row:auto}
  .workspace{grid-template-columns:1fr}
  #map{min-height:560px}
  .results-column{max-height:520px}
}
@media(max-width:540px){
  .site-header{padding:14px 16px}
  .brand{font-size:17px}
  .app-shell{padding:18px 12px 30px}
  .intro-panel{padding:23px 20px;border-radius:17px}
  .intro-stats{grid-template-columns:repeat(3,1fr)}
  .intro-stats strong{font-size:20px}
  .controls{grid-template-columns:1fr}
  .controls label:first-child{grid-column:auto}
  .workspace{min-height:0}
  #map{min-height:500px}
  .site-note{flex-direction:column}
  footer{flex-direction:column;padding:0 14px 25px}
}

/* V3 campground detail enhancements */
.detail-header-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.verified-badge{
  color:#596859;
  background:#edf3e9;
  border:1px solid #d5e2ce;
  border-radius:999px;
  padding:5px 8px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
}
.detail-subtitle{
  display:grid;
  gap:3px;
  color:#6f7c87;
  font-size:13px;
  line-height:1.45;
  margin-bottom:18px;
}
.detail-subtitle strong{
  color:#46545f;
  font-size:13px;
}
.detail-grid{
  grid-template-columns:1fr 1fr;
}
.detail-section{
  margin-top:14px;
  padding:14px;
  border:1px solid #e2e7ea;
  border-radius:11px;
  background:#fbfcfc;
}
.detail-section strong{
  display:block;
  color:var(--navy);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}
.detail-section p{
  margin:0;
  color:#5d6973;
  font-size:13px;
  line-height:1.5;
}
.detail-note.neutral{
  background:#f4f6f7;
  border-color:#dde4e8;
  color:#596670;
}
.detail-directions{
  background:#f2efe4;
  color:var(--navy);
  border:1px solid #d8ca9c;
}
.detail-actions a.detail-directions{
  display:block;
  text-align:center;
  text-decoration:none;
  border-radius:10px;
  padding:11px 12px;
  font-size:12px;
  font-weight:800;
}
@media(max-width:540px){
  .detail-grid{grid-template-columns:1fr}
}
/* ========================================
   SITE FOOTER
======================================== */

.site-footer {
  width: 100%;
  max-width: none;
  display: block;
  margin-top: 40px;
  padding: 24px 20px;
  background: #f3f4f7;
  color: #536178;
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Disclaimer section */
.footer-disclaimer {
  text-align: center;
  font-size: 12px;
}

.footer-disclaimer > div:first-child {
  max-width: 700px;
  margin: 0 auto;
}

.footer-map-credit {
  margin-top: 6px;
}

/* Divider */
.footer-divider {
  width: 70px;
  height: 1px;
  margin: 16px auto;
  background: #cfd4dc;
}

/* Copyright and credits */
.footer-credits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-credits a {
  color: #3f5f83;
  font-weight: 600;
  text-decoration: none;
}

.footer-credits a:hover {
  text-decoration: underline;
}

.footer-separator {
  color: #a5adb8;
}

/* Mobile */
@media (max-width: 700px) {
  .site-footer {
    padding: 22px 18px;
  }

  .footer-disclaimer > div:first-child {
    max-width: 100%;
  }

  .footer-map-credit {
    margin-top: 5px;
  }

  .footer-credits {
    flex-direction: column;
    gap: 5px;
  }

  .footer-separator {
    display: none;
  }
}

/* ========================================
   MOBILE EXPERIENCE ENHANCEMENTS
   These rules intentionally come last so
   they safely override earlier breakpoints.
======================================== */

/* General mobile/browser polish */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

button,
input,
select,
a,
.result-card {
  -webkit-tap-highlight-color: transparent;
}

button,
.primary-button,
.secondary-button,
.map-toolbar button,
.detail-actions a,
.detail-actions button,
.popup-link,
.result-card {
  touch-action: manipulation;
}

/* Clear keyboard focus for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.result-card:focus-visible {
  outline: 3px solid rgba(199,164,90,.55);
  outline-offset: 2px;
}

/* Tablet and phone layout */
@media (max-width: 820px) {
  .site-header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand-wrap,
  .brand,
  .intro-panel,
  .workspace,
  .map-column,
  .results-column {
    min-width: 0;
  }

  .app-shell {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  .intro-panel {
    gap: 18px;
  }

  .intro-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  /* Prevent iPhone Safari from zooming form fields on focus */
  .controls input,
  .controls select {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    min-height: 48px;
    height: 48px;
    font-size: 14px;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .map-column,
  .results-column {
    width: 100%;
    border-radius: 15px;
  }

  /* Use a useful amount of phone screen without making results unreachable */
  #map {
    flex: none;
    width: 100%;
    height: 52svh;
    min-height: 360px;
    max-height: 560px;
  }

  /* Avoid a nested scrolling panel on phones/tablets */
  .results-column {
    max-height: none;
  }

  .side-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .map-toolbar {
    min-height: 52px;
    padding: 10px 12px;
  }

  .map-toolbar button {
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
  }

  .result-card {
    padding: 16px 18px;
  }

  .detail-actions a,
  .detail-actions button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Larger Leaflet controls are easier to tap */
  .leaflet-control-zoom a,
  .leaflet-control-layers-toggle {
    min-width: 42px;
    min-height: 42px;
  }

  .leaflet-control-zoom a {
    width: 42px;
    height: 42px;
    line-height: 42px;
  }

  .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 42px);
  }

  .leaflet-popup-content {
    min-width: 0;
    max-width: 72vw;
    margin: 14px;
  }

  .popup-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
  }

  .site-footer {
    margin-top: 28px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

/* Phones */
@media (max-width: 540px) {
  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-wrap {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
    line-height: 1.15;
  }

  .brand-mark {
    min-width: 52px;
  }

  .star-main {
    font-size: 27px;
  }

  .star-small {
    font-size: 15px;
  }

  .app-shell {
    padding-top: 14px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .intro-panel {
    padding: 20px 16px;
    border-radius: 15px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.02;
  }

  .intro-copy {
    margin-top: 13px;
    font-size: 14px;
  }

  .intro-stats {
    gap: 6px;
  }

  .intro-stats div {
    padding: 11px 8px;
    border-radius: 11px;
  }

  .intro-stats strong {
    font-size: 20px;
  }

  .intro-stats span {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .05em;
  }

  .controls {
    gap: 10px;
    margin: 14px 0;
  }

  .controls label {
    gap: 5px;
  }

  .map-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .map-toolbar > * {
    min-width: 0;
  }

  #map {
    height: 48svh;
    min-height: 340px;
    max-height: 480px;
  }

  .panel-empty,
  .detail-panel {
    padding: 18px 16px;
  }

  .panel-empty h2,
  .detail-panel h2 {
    overflow-wrap: anywhere;
  }

  .detail-header-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .verified-badge {
    flex: 0 0 auto;
  }

  .filter-results-header {
    padding: 15px 16px 11px;
  }

  .result-card {
    padding: 15px 16px;
  }

  .result-top {
    align-items: flex-start;
  }

  .result-card h3 {
    font-size: 15px;
  }

  .result-meta {
    font-size: 12px;
  }

  .detail-item,
  .detail-section,
  .detail-note {
    overflow-wrap: anywhere;
  }

  .site-note {
    margin-top: 14px;
    padding: 13px 14px;
  }

  .footer-credits {
    line-height: 1.45;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    min-width: 46px;
  }

  .star-main {
    font-size: 24px;
  }

  .star-small {
    font-size: 13px;
  }

  .intro-panel {
    padding: 18px 14px;
  }

  .intro-stats div {
    padding: 9px 6px;
  }

  .intro-stats strong {
    font-size: 18px;
  }

  .intro-stats span {
    font-size: 8px;
    letter-spacing: .03em;
  }

  #map {
    min-height: 320px;
  }

  .leaflet-popup-content {
    max-width: 78vw;
  }
}

/* Short landscape phones: keep the map usable without consuming the whole page */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  #map {
    height: 68svh;
    min-height: 290px;
    max-height: 420px;
  }
}

/* Touch devices should not depend on hover-only feedback */
@media (hover: none) {
  .result-card:hover {
    background: white;
  }

  .result-card:active {
    background: #f2f5f6;
  }

  .primary-button:active,
  .secondary-button:active,
  .map-toolbar button:active,
  .detail-actions a:active,
  .popup-link:active {
    transform: translateY(1px);
  }
}

/* Respect users who disable animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================
   MOBILE CAMPGROUND DETAIL CARD
   JavaScript adds .mobile-detail-open only
   when campground details are open on a
   phone/tablet. Desktop remains unchanged.
======================================== */

.mobile-detail-close {
  display: none;
}

@media (max-width: 820px) {
  .results-column.mobile-detail-open {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 2000;
    width: auto;
    max-height: min(52svh, 540px);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 -10px 36px rgba(16, 38, 59, .24);
    overflow: hidden;
    animation: mobile-detail-card-in .18s ease-out;
  }

  .results-column.mobile-detail-open::before {
    content: "";
    flex: 0 0 auto;
    width: 44px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 999px;
    background: #c9d0d5;
  }

  .results-column.mobile-detail-open .side-panel {
    height: auto;
    max-height: calc(min(52svh, 540px) - 14px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .results-column.mobile-detail-open .detail-panel {
    position: relative;
    padding: 14px 16px 18px;
  }

  .mobile-detail-close {
    display: flex;
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d7dde1;
    border-radius: 50%;
    background: #f3f5f6;
    color: var(--navy);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-detail-close:active {
    transform: scale(.96);
    background: #e8ecef;
  }

  .results-column.mobile-detail-open .detail-header-row {
    padding-right: 44px;
  }

  .results-column.mobile-detail-open .detail-panel h2 {
    margin-top: 9px;
    font-size: 22px;
  }

  .results-column.mobile-detail-open .detail-subtitle {
    margin-bottom: 12px;
  }

  .results-column.mobile-detail-open .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
  }

  .results-column.mobile-detail-open .detail-item,
  .results-column.mobile-detail-open .detail-section {
    padding: 10px;
  }

  .results-column.mobile-detail-open .detail-section,
  .results-column.mobile-detail-open .detail-note {
    margin-top: 10px;
  }

  .results-column.mobile-detail-open .detail-actions {
    margin-top: 12px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* When the details are closed, the normal result list stays below the map. */
  .results-column:not(.mobile-detail-open) {
    position: static;
  }
}

@media (max-width: 540px) {
  .results-column.mobile-detail-open {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    max-height: 50svh;
    border-radius: 18px;
  }

  .results-column.mobile-detail-open .side-panel {
    max-height: calc(50svh - 14px);
  }

  .results-column.mobile-detail-open .detail-panel h2 {
    padding-right: 34px;
  }
}

/* Short landscape phones need a shallower card so the map remains usable. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .results-column.mobile-detail-open {
    max-height: 72svh;
  }

  .results-column.mobile-detail-open .side-panel {
    max-height: calc(72svh - 14px);
  }
}

@keyframes mobile-detail-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   CAMPGROUND REPORT FORM
======================================== */
.detail-report{
  background:#fffaf0;
  color:#765f2c;
  border:1px solid #d9c58e;
}

.report-modal[hidden]{display:none!important}
.report-modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:24px;
}
.report-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,27,42,.72);
  backdrop-filter:blur(2px);
}
.report-dialog{
  position:relative;
  z-index:1;
  width:min(640px,100%);
  max-height:min(88vh,820px);
  overflow:auto;
  background:#fff;
  border-radius:20px;
  padding:28px;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}
.report-close{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid #d7dde1;
  border-radius:50%;
  background:#f3f5f6;
  color:var(--navy);
  font-size:26px;
  line-height:1;
}
.report-dialog h2{
  margin:4px 48px 8px 0;
  color:var(--navy);
  font-size:27px;
}
.report-intro{
  margin:0 0 18px;
  color:var(--text);
  line-height:1.55;
  font-size:14px;
}
.report-campground-card{
  display:grid;
  gap:4px;
  margin-bottom:16px;
  padding:13px 14px;
  border:1px solid #e0e5e8;
  border-left:4px solid var(--gold);
  border-radius:10px;
  background:#f7f8f8;
}
.report-campground-card strong{color:var(--navy);font-size:14px}
.report-campground-card span{color:var(--muted);font-size:12px;line-height:1.4}
#report-form{display:grid;gap:14px}
#report-form label{display:grid;gap:6px}
#report-form label>span{
  color:#55616b;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:800;
}
#report-form label>span em{color:#8d6820;font-style:normal}
#report-form label>span small{color:#8a959e;font-size:9px;font-weight:700}
#report-form input,
#report-form select,
#report-form textarea{
  width:100%;
  border:1px solid #cfd7dc;
  border-radius:10px;
  background:#fff;
  padding:11px 12px;
  color:var(--ink);
  outline:none;
  font:inherit;
}
#report-form input,
#report-form select{height:46px}
#report-form textarea{resize:vertical;min-height:120px;line-height:1.5}
#report-form input:focus,
#report-form select:focus,
#report-form textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(199,164,90,.16);
}
.report-two-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.report-privacy{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.report-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:2px}
.report-form-actions button{min-width:130px}
.report-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
body.report-modal-open{overflow:hidden}

@media(max-width:540px){
  .report-modal{padding:10px}
  .report-dialog{
    max-height:94svh;
    border-radius:16px;
    padding:22px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .report-dialog h2{font-size:23px}
  .report-two-column{grid-template-columns:1fr}
  #report-form input,
  #report-form select,
  #report-form textarea{font-size:16px}
  .report-form-actions{display:grid;grid-template-columns:1fr 1fr}
  .report-form-actions button{min-width:0}
}
