.lb-coast-map {
  --cm-water: #2a5574;
  --cm-pin: #3f6f32;
  --cm-dot: #e08a2a;
  --cm-box: #e8a23a;
  position: relative;
  width: 100%;
  min-width: 0;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}

.lb-coast-map__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.lb-coast-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.lb-coast-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lb-coast-map__swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-coast-map__swatch--pin::before {
  content: "";
  width: 14px;
  height: 18px;
  background: var(--cm-pin);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: inset 0 0 0 3px var(--cm-pin), inset 0 0 0 5px #fff;
}

.lb-coast-map__swatch--dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cm-dot);
  box-shadow: 0 0 0 2px #fff;
}

.lb-coast-map__swatch--box::before {
  content: "";
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: var(--cm-box);
}

.lb-coast-map__toggles {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.lb-coast-map__toggles button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: 600 11px/1 'DM Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

.lb-coast-map__toggles button.is-active {
  background: var(--kelp, #6d7604);
  color: #fff;
}

.lb-coast-map__stage {
  position: relative;
  background: var(--cm-water);
  overflow: hidden;
}

.lb-coast-map__illustrated,
.lb-coast-map__geo {
  position: relative;
  width: 100%;
}

.lb-coast-map__canvas {
  position: relative;
  width: 100%;
}

.lb-coast-map__art {
  display: block;
  width: 100%;
  height: auto;
}

.lb-coast-map__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-coast-map__place {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 2px;
  margin: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  z-index: 2;
  min-height: 28px;
}

.lb-coast-map__place.is-active { z-index: 6; }

.lb-coast-map__place[data-side="water"] {
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(0, -50%);
}

.lb-coast-map__place[data-side="land"] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-coast-map__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.lb-coast-map__place-label {
  display: block;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.lb-coast-map__place[data-side="water"],
.lb-coast-map__place[data-side="water"] .lb-coast-map__meta,
.lb-coast-map__place[data-side="water"] .lb-coast-map__place-label {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.lb-coast-map__place[data-side="land"] .lb-coast-map__place-label {
  color: #f7f4ea;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lb-coast-map__place[data-script="1"] .lb-coast-map__place-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 22px);
  color: #fff !important;
}

.lb-coast-map__mark {
  display: block;
  flex-shrink: 0;
}

.lb-coast-map__mark--pin {
  width: 18px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.lb-coast-map__mark--dot {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.lb-coast-map__mark--box {
  min-width: 58px;
  padding: 5px 9px;
  background: var(--cm-box);
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.lb-coast-map__mark--arrow {
  width: 16px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.lb-coast-map__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lb-coast-map__icons .lb-ico {
  width: 18px;
  height: 18px;
  color: #fff;
}

.lb-coast-map__place:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lb-coast-map__place:hover .lb-coast-map__place-label,
.lb-coast-map__place.is-active .lb-coast-map__place-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lb-coast-map__leaflet {
  width: 100%;
  height: min(68vh, 640px);
  min-height: 380px;
  z-index: 1;
}

.lb-coast-map__popup {
  position: absolute;
  z-index: 8;
  width: min(300px, calc(100% - 24px));
  padding: 18px 18px 16px;
  background: #fff;
  color: var(--navy, #1c2430);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  border-top: 3px solid var(--kelp, #6d7604);
}

.lb-coast-map__popup[hidden] { display: none; }

.lb-coast-map__popup-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelp, #6d7604);
  margin-bottom: 4px;
}

.lb-coast-map__popup h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 28px 8px 0;
  color: var(--navy, #1c2430);
}

.lb-coast-map__popup p {
  font-size: 13px;
  line-height: 1.55;
  color: oklch(42% 0.02 220);
  margin: 0 0 10px;
}

.lb-coast-map__coords {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: oklch(32% 0.02 220);
  margin-bottom: 12px;
}

.lb-coast-map__popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lb-coast-map__popup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--kelp, #6d7604);
  padding: 8px 12px;
}

.lb-coast-map__popup-actions a.lb-coast-map__link-ghost {
  background: transparent;
  color: var(--kelp, #6d7604);
  border: 1px solid color-mix(in srgb, var(--kelp, #6d7604) 45%, white);
}

.lb-coast-map__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #334;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lb-coast-map__hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.lb-coast-map__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.lb-coast-map__list li { min-width: 0; }

.lb-coast-map__list button {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.lb-coast-map__list-mark {
  grid-row: 1 / span 2;
  width: 18px;
  height: 22px;
  background: var(--cm-dot);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  justify-self: center;
}

.lb-coast-map__list-mark[data-pin="pin"] {
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--cm-pin);
  box-shadow: inset 0 0 0 3px var(--cm-pin), inset 0 0 0 5px #fff;
}

.lb-coast-map__list-mark[data-pin="box"] {
  height: 12px;
  border-radius: 2px;
  background: var(--cm-box);
  box-shadow: none;
}

.lb-coast-map__list-mark[data-pin="arrow"],
.lb-coast-map__list-mark[data-pin="false"],
.lb-coast-map__list-mark[data-pin=""] {
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.lb-coast-map__list button span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.lb-coast-map__list button small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.lb-coast-map__list button.is-active,
.lb-coast-map__list button:hover {
  border-color: var(--kelp, #6d7604);
  background: rgba(109, 118, 4, 0.28);
}

.lb-coast-map--homepage .lb-coast-map__list { display: none; }

.lb-coast-map-section {
  background: var(--navy, #1c2430);
  padding: 80px;
}

.lb-coast-map-section .section-title { color: #fff; }
.lb-coast-map-section .section-eyebrow { color: var(--seafoam, #7dcec4); }
.lb-coast-map-section .section-eyebrow::before { background: var(--seafoam, #7dcec4); }
.lb-coast-map-section .lb-coast-map { margin-top: 28px; }

.greenflag-image-wrap.is-map {
  background: transparent;
  align-self: stretch;
}

.greenflag-image-wrap.is-map .greenflag-badge { display: none; }

#greenflag:has(.is-map) {
  align-items: start;
  gap: 56px;
}

#greenflag .greenflag-pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 22px 20px;
}

#greenflag .greenflag-pillar-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 20px;
}
#greenflag .greenflag-pillar-icon svg {
  width: 22px;
  height: 22px;
}

#greenflag .greenflag-pillar[data-coast-card] { cursor: pointer; }
#greenflag .greenflag-pillar[data-coast-card]:hover,
#greenflag .greenflag-pillar.is-map-active {
  border-color: var(--seafoam, #7dcec4);
  background: rgba(255, 255, 255, 0.04);
}

.greenflag-image-wrap.is-map .lb-coast-map__stage {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.lb-coast-geo-pin {
  background: transparent;
  border: 0;
}

.lb-coast-geo-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.lb-coast-geo-pin .is-box {
  display: block;
  width: 14px;
  height: 10px;
  background: var(--cm-box);
  border-radius: 2px;
}

@media (max-width: 1100px) {
  #greenflag:has(.is-map) {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .lb-coast-map-section { padding: 56px 28px; }
  .lb-coast-map__place-label { font-size: 11px; }
}

@media (max-width: 800px) {
  .lb-coast-map--homepage .lb-coast-map__list { display: grid; }
  .lb-coast-map__illustrated {
    overflow: auto;
    max-height: 68vh;
    -webkit-overflow-scrolling: touch;
  }
  .lb-coast-map__canvas {
    min-width: 560px;
  }
  .lb-coast-map__place[data-type="suburb"] { display: none; }
  .lb-coast-map__place-label { white-space: nowrap; }
  .lb-coast-map__leaflet { min-height: 320px; height: 58vh; }
  .lb-coast-map__popup {
    left: 12px !important;
    right: 12px;
    width: auto;
    top: auto !important;
    bottom: 12px;
  }
  .lb-coast-map__mark--pin { width: 20px; height: 27px; }
  .lb-coast-map__place { min-height: 36px; }
}

@media (max-width: 640px) {
  .lb-coast-map-section { padding: 40px 16px; }
  .lb-coast-map__list { grid-template-columns: 1fr; }
  .lb-coast-map__toolbar { align-items: stretch; }
  .lb-coast-map__toggles { width: 100%; }
  .lb-coast-map__toggles button { flex: 1; }
  .lb-coast-map__place[data-script="1"] .lb-coast-map__place-label { font-size: 16px; }
  #greenflag .greenflag-pillar { min-height: 0; }
}
