:root {
  --navy: #071a2d;
  --navy-soft: #0c2a45;
  --blue: #29a9df;
  --blue-light: #8bdcf6;
  --page: #f3f7f9;
  --white: #ffffff;
  --text: #142b3a;
  --muted: #607786;
  --border: #d7e1e7;
  --green: #1d7a51;
  --green-soft: #e5f5ed;
  --orange: #a25a18;
  --orange-soft: #fff0db;
  --shadow: 0 14px 38px rgba(7, 26, 45, 0.11);
}

* {
  box-sizing: border-box;
}

.admin-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  padding: .7rem 1rem;
  color: #173e42;
  background: #dff4ee;
  border-bottom: 1px solid #9bcfc2;
  font-size: .9rem;
}

.admin-preview-banner a {
  color: #0b5d56;
  font-weight: 800;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-drop {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  transform: rotate(45deg);
}

.brand-drop::first-letter {
  transform: rotate(-45deg);
}

.brand-drop {
  text-indent: 0;
}

.brand-drop > * {
  transform: rotate(-45deg);
}

.header-link {
  color: #d7ebf5;
  text-decoration: none;
  font-weight: 800;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb {
  padding: 20px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
}

.breadcrumb a {
  color: #167fa9;
  font-weight: 800;
  text-decoration: none;
}

.detail-hero {
  padding: 28px 0 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(74, 183, 226, 0.24), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 44px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.015em;
}

.badge-type {
  color: #dff6ff;
  background: rgba(41, 169, 223, 0.2);
  border: 1px solid rgba(139, 220, 246, 0.4);
}

.badge-verified {
  color: #d8f6e7;
  background: rgba(40, 171, 112, 0.17);
  border: 1px solid rgba(120, 223, 172, 0.35);
}

.badge-seasonal {
  color: #ffebce;
  background: rgba(206, 129, 50, 0.18);
  border: 1px solid rgba(245, 181, 112, 0.35);
}

.detail-hero h1 {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.01;
  letter-spacing: -0.05em;
}

.location-line {
  margin: 18px 0 0;
  color: #d9edf7;
  font-size: 1.06rem;
}

.operator-line {
  margin: 7px 0 0;
  color: #b8d3df;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-primary-photo,
.location-photo-thumbnail {
  margin: 0;
}

.location-photo-link {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #e8eef1;
  box-shadow: var(--shadow);
}

.location-photo-link:focus-visible {
  outline: 4px solid rgba(24, 142, 192, 0.38);
  outline-offset: 3px;
}

.location-primary-photo {
  margin-top: 22px;
}

.location-primary-photo .location-photo-link,
.location-photo-thumbnail .location-photo-link {
  border: 1px solid var(--border);
  box-shadow: none;
}

.location-primary-photo img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.location-primary-photo figcaption,
.location-photo-thumbnail figcaption {
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: .86rem;
}

.location-photo-thumbnails {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.location-photo-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .18s ease;
}

.location-photo-thumbnail .location-photo-link:hover img,
.location-photo-thumbnail .location-photo-link:focus-visible img {
  transform: scale(1.015);
}

.button {
  min-height: 46px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 900;
}

.button-primary {
  color: #04131d;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
}

.button-primary:hover,
.button-primary:focus-visible {
  filter: brightness(1.04);
  outline: 3px solid rgba(139, 220, 246, 0.28);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 3px solid rgba(255, 255, 255, 0.12);
}

.button-full {
  width: 100%;
}

.verification-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 7px;
  color: #2c8db5;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-hero .eyebrow,
.verification-card .eyebrow {
  color: #8bdcf6;
}

.verification-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.verification-card p {
  margin: 10px 0 0;
  color: #d5e6ee;
}

.verification-note {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
}

.detail-layout {
  margin-top: 28px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 24px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

.detail-sidebar {
  position: sticky;
  top: 18px;
}

.detail-card,
.map-card,
.report-card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-card {
  padding: 26px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.facts-grid {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.facts-grid > div {
  padding: 16px;
  border: 1px solid #e0e8ed;
  border-radius: 11px;
  background: #f8fbfc;
}

.facts-grid .facts-wide {
  grid-column: 1 / -1;
}

.facts-grid dt,
.detail-list dt {
  color: #557080;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts-grid dd,
.detail-list dd {
  margin: 5px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.detail-list {
  margin: 22px 0 0;
}

.detail-list > div {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid #e4ebef;
}

.detail-list > div:first-child {
  border-top: 0;
}

.detail-list dd {
  font-weight: 600;
}

.detail-list a {
  color: #137da7;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.instruction-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.instruction-list article {
  padding: 17px;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #f3f9fc;
}

.instruction-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.96rem;
}

.instruction-list p {
  margin: 7px 0 0;
  color: #405c6c;
}

#detail-map {
  width: 100%;
  height: 360px;
  background: #dfeaf0;
}

.detail-map-unavailable {
  min-height: 360px;
  padding: 24px;
  display: grid;
  place-items: center;
  color: #405c6c;
  background:
    radial-gradient(circle at 50% 40%, rgba(41, 169, 223, 0.14), transparent 16rem),
    #eaf2f5;
  text-align: center;
}

.detail-map-unavailable > div {
  max-width: 320px;
}

.detail-map-unavailable strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}

.detail-map-unavailable p {
  margin: 8px 0 0;
}

.map-card {
  position: relative;
}

.detail-map-style {
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 12px;
  padding: 4px;
  display: inline-flex;
  gap: 3px;
  border: 1px solid rgba(7, 26, 45, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(7, 26, 45, 0.2);
}

.detail-map-style button {
  min-height: 32px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  color: #405968;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 900;
}

.detail-map-style button.is-active {
  color: var(--white);
  background: var(--navy);
}

.map-card-footer {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.map-card-footer strong {
  color: var(--navy);
}

.map-card-footer span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-card {
  padding: 22px;
}

.report-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.report-card p {
  margin: 9px 0 14px;
  color: var(--muted);
}

.report-card a {
  color: #147fa9;
  font-weight: 900;
}

.nearby-section {
  padding: 62px 0 72px;
  border-top: 1px solid var(--border);
  background: #eaf1f4;
}

.nearby-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.nearby-card {
  min-height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #cfdae0;
  border-radius: 13px;
  color: var(--text);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(7, 26, 45, 0.07);
  text-decoration: none;
}

.nearby-card:hover,
.nearby-card:focus-visible {
  border-color: #68bfe2;
  box-shadow: 0 12px 28px rgba(7, 26, 45, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.nearby-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.nearby-card span {
  color: var(--muted);
}

.nearby-type {
  color: #2788ae !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nearby-distance {
  margin-top: auto;
  color: #177fa9 !important;
  font-weight: 900;
}

.site-footer {
  color: #b9d0dd;
  background: var(--navy);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.86rem;
}

.not-found {
  padding: 100px 0;
}

.not-found h1 {
  max-width: 700px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.not-found p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.maplibregl-popup-content {
  padding: 13px 15px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(7, 26, 45, 0.22);
}

.detail-location-marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 12%;
  color: var(--white);
  background: #188ec0;
  box-shadow: 0 4px 12px rgba(7, 26, 45, 0.35);
  transform: rotate(45deg);
}

.detail-location-marker span {
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .detail-hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .verification-card {
    max-width: 560px;
  }

  .detail-sidebar {
    position: static;
    grid-row: 1;
  }

  .nearby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-link {
    display: none;
  }

  .detail-hero {
    padding: 24px 0 36px;
  }

  .detail-hero-grid {
    gap: 26px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-layout {
    width: 100%;
    margin-top: 0;
    gap: 0;
  }

  .location-photo-thumbnails {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .map-card,
  .report-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .detail-card,
  .report-card {
    padding: 22px 16px;
  }

  .detail-main,
  .detail-sidebar {
    gap: 0;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid .facts-wide {
    grid-column: auto;
  }

  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #detail-map {
    height: 340px;
  }

  .nearby-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
