:root {
  --location-forest: #07271a;
  --location-forest-soft: #123b2a;
  --location-forest-ink: #173426;
  --location-cream: #f2ecda;
  --location-cream-soft: #fff8ea;
  --location-paper: #ece3cd;
  --location-gold: #c9a14e;
  --location-gold-soft: #eed7a2;
  --location-water: #9bcfda;
  --location-park: #b8d79d;
  --location-street: #fff9e9;
  --location-road: #dfcda8;
  --location-ink: #1c1a14;
  --location-muted: #6f6757;
  --location-radius: 18px;
  --location-display: "Cormorant Garamond", Georgia, serif;
  --location-body: "Mulish", system-ui, sans-serif;
}

.location-card {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(270px, 0.75fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(201, 161, 78, 0.34);
  border-radius: var(--location-radius);
  background: rgba(242, 236, 218, 0.052);
  color: var(--location-cream);
  font-family: var(--location-body);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.location-card * {
  box-sizing: border-box;
}

.location-illustration {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(238, 215, 162, 0.4);
  border-radius: calc(var(--location-radius) - 5px);
  background: var(--location-paper);
  color: var(--location-ink);
}

.location-map-live {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--location-paper);
}

.location-map-live .maplibregl-canvas {
  filter: saturate(0.78) contrast(0.96) sepia(0.08);
}

.location-map-live .maplibregl-ctrl-top-right {
  top: 14px;
  right: 14px;
}

.location-map-live .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(23, 52, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.location-map-live .maplibregl-ctrl-attrib {
  background: rgba(255, 248, 234, 0.8);
  color: rgba(28, 26, 20, 0.62);
  font-family: var(--location-body);
}

.location-map-credit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(201, 161, 78, 0.26);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.82);
  color: rgba(28, 26, 20, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.location-live-marker {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateY(-3px);
}

.location-live-marker::before {
  content: "";
  position: absolute;
  top: -18px;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(216, 72, 118, 0.28);
  border-radius: 999px;
  animation: location-pulse 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.location-live-marker-dot {
  width: 46px;
  height: 46px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--location-cream-soft);
  border-radius: 999px 999px 999px 12px;
  background: #d84876;
  box-shadow: 0 12px 28px rgba(92, 25, 44, 0.34);
  transform: rotate(-45deg);
}

.location-live-marker-dot::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--location-cream-soft);
}

.location-live-marker-label {
  position: relative;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(201, 161, 78, 0.4);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.92);
  color: var(--location-forest);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.13);
}

.location-note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  max-width: min(74%, 420px);
  padding: 11px 13px;
  border: 1px solid rgba(201, 161, 78, 0.42);
  border-radius: 12px;
  background: rgba(255, 248, 234, 0.9);
  color: var(--location-forest);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.location-note strong {
  font-family: var(--location-display);
  font-size: 24px;
  line-height: 1;
}

.location-note span {
  color: var(--location-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.location-details {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.location-eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(238, 215, 162, 0.38);
  border-radius: 999px;
  color: var(--location-gold-soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.location-details h2 {
  margin: 0;
  color: var(--location-cream-soft);
  font-family: var(--location-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 650;
  line-height: 0.9;
}

.location-address {
  display: grid;
  gap: 6px;
  padding: 15px 0;
  border-top: 1px solid rgba(201, 161, 78, 0.42);
  border-bottom: 1px solid rgba(201, 161, 78, 0.42);
}

.location-address strong {
  color: var(--location-cream-soft);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.18;
}

.location-address span {
  color: rgba(255, 248, 234, 0.74);
  font-size: 14px;
  font-weight: 800;
}

.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-chip {
  padding: 8px 10px;
  border: 1px solid rgba(238, 215, 162, 0.3);
  border-radius: 999px;
  background: rgba(242, 236, 218, 0.06);
  color: rgba(255, 248, 234, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(238, 215, 162, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.location-action-primary {
  background: var(--location-cream);
  color: var(--location-forest);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.location-action-secondary {
  color: var(--location-cream-soft);
  background: rgba(242, 236, 218, 0.045);
}

.location-disclaimer {
  color: rgba(255, 248, 234, 0.56);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

@keyframes location-pin-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  44% {
    transform: translateY(-4px) scale(1.03);
  }
}

@keyframes location-pulse {
  0%,
  18% {
    opacity: 0;
    transform: scale(0.45);
  }

  42% {
    opacity: 1;
    transform: scale(1);
  }

  82%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (max-width: 820px) {
  .location-card {
    grid-template-columns: 1fr;
  }

  .location-illustration {
    min-height: 380px;
  }

  .location-details {
    align-content: start;
  }
}

@media (max-width: 520px) {
  .location-card {
    padding: 10px;
  }

  .location-illustration {
    min-height: 340px;
  }

  .location-note {
    left: 12px;
    right: auto;
    bottom: 12px;
    max-width: none;
  }

  .location-map-credit {
    right: auto;
    left: 12px;
    top: 12px;
    bottom: auto;
  }

  .location-details h2 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .location-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-pin,
  .location-pin-pulse,
  .location-live-marker::before {
    animation: none;
  }
}
