:root {
  color-scheme: light;
  --bg: #f7f6f0;
  --bg-deep: #ebe6d9;
  --surface: #fffdf8;
  --surface-soft: #f3efe4;
  --text: #153c3f;
  --text-strong: #072f35;
  --muted: #657273;
  --np-green: #2b8c4a;
  --np-blue: #0087c1;
  --np-yellow: #f4c542;
  --np-orange: #ee7c30;
  --np-red: #d84b3f;
  --np-teal: #009b9a;
  --parking: #2b8c4a;
  --boat: #0087c1;
  --line: rgba(7, 47, 53, 0.14);
  --shadow: 0 18px 48px rgba(7, 47, 53, 0.13);
  --soft-shadow: 0 10px 28px rgba(7, 47, 53, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 135, 193, 0.16), transparent 27rem),
    radial-gradient(circle at 92% 7%, rgba(244, 197, 66, 0.22), transparent 22rem),
    radial-gradient(circle at 22% 96%, rgba(238, 124, 48, 0.14), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--np-teal);
  color: var(--surface);
  font-size: 0.92rem;
  box-shadow: 0 12px 28px rgba(0, 155, 154, 0.24);
}

.hero {
  position: relative;
  display: block;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(7, 47, 53, 0.10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(244, 197, 66, 0.30), transparent 14rem),
    radial-gradient(circle at 6% 100%, rgba(0, 135, 193, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(240, 250, 247, 0.98));
  color: var(--text-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -58px;
  width: 172px;
  height: 172px;
  border-radius: 999px;
  background: conic-gradient(from 20deg, var(--np-green), var(--np-blue), var(--np-yellow), var(--np-orange), var(--np-red), var(--np-green));
  opacity: 0.14;
}

.hero-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 0;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(7, 47, 53, 0.08), 0 14px 30px rgba(7, 47, 53, 0.10);
}

.petal {
  position: absolute;
  left: 23px;
  top: 8px;
  width: 14px;
  height: 25px;
  border-radius: 999px 999px 999px 6px;
  transform-origin: 6px 21px;
}

.petal-green {
  background: var(--np-green);
  transform: rotate(0deg);
}

.petal-blue {
  background: var(--np-blue);
  transform: rotate(72deg);
}

.petal-yellow {
  background: var(--np-yellow);
  transform: rotate(144deg);
}

.petal-orange {
  background: var(--np-orange);
  transform: rotate(216deg);
}

.petal-red {
  background: var(--np-red);
  transform: rotate(288deg);
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--np-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.hero-copy {
  max-width: calc(100% - 76px);
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.45;
}

.hero-badge {
  display: none;
}

.map-panel {
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 14px 10px;
}

.filter-button,
.show-all-button {
  min-height: 40px;
  border: 1px solid rgba(7, 47, 53, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--text-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(7, 47, 53, 0.04);
}

.filter-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--np-green), var(--np-teal));
  color: #fffdf8;
}

.show-all-button {
  background: rgba(244, 197, 66, 0.20);
}

.show-all-button[hidden] {
  display: none;
}

.map-shell {
  padding: 0 14px 14px;
}

.map {
  width: 100%;
  height: min(42vh, 410px);
  min-height: 292px;
  border: 1px solid rgba(7, 47, 53, 0.10);
  border-radius: 24px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.45);
}

.locate-control {
  border: 0 !important;
  box-shadow: var(--soft-shadow) !important;
}

.locate-control-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: #fffdf8;
  color: var(--text-strong);
  cursor: pointer;
  font: 900 20px/1 Inter, system-ui, sans-serif;
}

.locate-control-button:hover,
.locate-control-button:focus {
  background: #f3efe4;
}

.locate-control-button.locating {
  color: var(--np-blue);
}

.locations-panel {
  padding: 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(43, 140, 74, 0.08), rgba(0, 135, 193, 0.08), rgba(244, 197, 66, 0.10), rgba(238, 124, 48, 0.08)),
    rgba(255, 253, 248, 0.96);
}

.locations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.locations-heading h2 {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.location-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 17px 17px 17px 19px;
  border: 1px solid var(--line);
  border-left-width: 7px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(7, 47, 53, 0.06);
}

.location-card.parking-card {
  border-color: rgba(43, 140, 74, 0.18);
  border-left-color: var(--parking);
  background: linear-gradient(180deg, rgba(43, 140, 74, 0.07), rgba(255, 253, 248, 0.98));
}

.location-card.boat-card {
  border-color: rgba(0, 135, 193, 0.20);
  border-left-color: var(--boat);
  background: linear-gradient(180deg, rgba(0, 135, 193, 0.08), rgba(255, 253, 248, 0.98));
}

.location-card.selected-card {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(7, 47, 53, 0.14);
  outline: 3px solid rgba(244, 197, 66, 0.28);
}

.card-kicker {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.parking-card .card-kicker {
  color: var(--parking);
}

.boat-card .card-kicker {
  color: var(--boat);
}

.location-card h3 {
  margin-bottom: 7px;
  color: var(--text-strong);
  font-size: 1.04rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.address-link {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(101, 114, 115, 0.32);
  text-underline-offset: 3px;
}

.address-link:hover,
.address-link:focus {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}

.distance-copy {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(244, 197, 66, 0.24);
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.message-copy {
  padding: 8px 0 4px;
}

.directions-button {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--np-green);
  color: #fffdf8;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(43, 140, 74, 0.20);
}

.parking-card .directions-button {
  background: var(--parking);
}

.boat-card .directions-button {
  background: var(--boat);
  box-shadow: 0 12px 24px rgba(0, 135, 193, 0.20);
}

.custom-marker-wrapper {
  background: transparent;
  border: 0;
}

.parking-marker,
.boat-marker {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #fffdf8;
  border-radius: 999px;
  color: #fffdf8;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 47, 53, 0.28);
}

.parking-marker {
  background: var(--parking);
}

.boat-marker {
  background: var(--boat);
  font-size: 1.08rem;
  line-height: 1;
}

.selected-marker {
  width: 44px;
  height: 44px;
  outline: 4px solid rgba(255, 253, 248, 0.82);
  transform: translate(-4px, -4px);
}

.user-marker {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 4px solid #fffdf8;
  border-radius: 999px;
  background: #1f77ff;
  box-shadow: 0 0 0 8px rgba(31, 119, 255, 0.16), 0 10px 24px rgba(7, 47, 53, 0.24);
}

.user-accuracy {
  fill: #1f77ff;
  fill-opacity: 0.1;
  stroke: #1f77ff;
  stroke-opacity: 0.34;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fffdf8;
  color: var(--text-strong);
}

.leaflet-popup-content {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 22px, 1040px);
  }

  .site-header {
    padding: 10px 0 8px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-mark {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    opacity: 0.82;
  }

  .petal {
    left: 16px;
    top: 6px;
    width: 10px;
    height: 18px;
    transform-origin: 5px 16px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  h1 {
    max-width: none;
    margin-bottom: 7px;
    font-size: clamp(1.68rem, 8vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
  }

  .hero-copy {
    max-width: calc(100% - 56px);
    font-size: 0.94rem;
    line-height: 1.34;
  }

  .map-panel {
    border-radius: 24px;
  }

  .toolbar {
    gap: 8px;
    padding: 12px 12px 8px;
  }

  .filter-button,
  .show-all-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .map-shell {
    padding: 0 10px 10px;
  }

  .map {
    height: 36vh;
    min-height: 250px;
    border-radius: 20px;
  }

  .locations-panel {
    padding: 15px;
  }

  .locations-heading {
    align-items: flex-start;
  }

  .locations-heading h2 {
    font-size: clamp(1.35rem, 6.5vw, 1.9rem);
  }

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

  .location-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 15px;
    border-radius: 20px;
  }

  .directions-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(100% - 18px, 1040px);
  }

  h1 {
    font-size: clamp(1.48rem, 7.4vw, 1.86rem);
    line-height: 1.02;
    letter-spacing: -0.044em;
  }

  .hero-copy {
    font-size: 0.9rem;
  }
}
