body .phuket-explore-map {
  padding: 0;
  overflow: hidden;
  --map-ink: #162f50;
  --map-gold: #f4cc79;
}

.phuket-explore-map .map-hero {
  padding: clamp(20px, 3.5vw, 46px);
  background: linear-gradient(90deg, #102c4d 34%, transparent 92%),
    url('phuket-map-illustration.webp') right center / auto 125% no-repeat #102c4d;
  color: #fff;
}

.phuket-explore-map .map-hero h1 {
  color: inherit;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 .45em;
  max-width: 21ch;
}

.phuket-explore-map .map-hero p { margin: 0; max-width: 48ch; }
.phuket-explore-map .map-hero .map-kicker {
  color: var(--map-gold);
  font-weight: 700;
  margin-bottom: .5em;
}

.phuket-explore-map .map-controls,
.phuket-explore-map .map-underlay {
  padding: 14px clamp(12px, 2.2vw, 28px);
}

.phuket-explore-map .map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  background: #f6f9fc;
  border-bottom: 1px solid #dbe5ef;
}

.phuket-explore-map .map-category-group { flex: 1 1 38rem; min-width: 0; }
.phuket-explore-map #map-price-fields { order: 1; }
.phuket-explore-map #map-grade-control { order: 2; align-self: end; }
.phuket-explore-map [hidden],
.phuket-map-nearby [hidden] { display: none !important; }
.phuket-explore-map .map-filter-label { margin: 0 0 6px; color: var(--map-ink); font-weight: 700; font-size: .875rem; }
body .phuket-explore-map .map-toolbar { margin: 0; gap: 6px; }

.phuket-explore-map [data-layer="overview"] { --chip: #163953; --tint: #eaf2f7; }
.phuket-explore-map [data-mode=""] { --chip: #394755; --tint: #eef1f4; }
.phuket-explore-map [data-mode="rent"] { --chip: #1c519b; --tint: #eaf2ff; }
.phuket-explore-map [data-mode="sale"] { --chip: #9f4109; --tint: #fff0e3; }
.phuket-explore-map [data-layer="properties"] { --chip: #5141a0; --tint: #f0edff; }
.phuket-explore-map [data-layer="condominiums"] { --chip: #245a6d; --tint: #e4f4f7; }
.phuket-explore-map [data-layer="villas"] { --chip: #715022; --tint: #f8efe0; }
.phuket-explore-map [data-layer="houses"] { --chip: #3e614c; --tint: #e7f4eb; }
.phuket-explore-map [data-layer="school"] { --chip: #684080; --tint: #f7ecfd; }
.phuket-explore-map [data-layer="attractions"] { --chip: #007267; --tint: #e0f6ef; }
.phuket-explore-map [data-layer="beach"] { --chip: #046184; --tint: #e5f5ff; }
.phuket-explore-map [data-layer="market"] { --chip: #765900; --tint: #fff5d9; }
.phuket-explore-map [data-layer="shopping_centre"] { --chip: #933666; --tint: #fcecf5; }
.phuket-explore-map [data-layer="grocery"] { --chip: #456511; --tint: #eff6e0; }
.phuket-explore-map [data-layer="restaurant"] { --chip: #a1303c; --tint: #ffecef; }

body .phuket-explore-map .map-toolbar button {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--chip, #526681);
  border-radius: 10px;
  background: var(--tint, #eef4fa);
  color: var(--chip, #334c67);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none;
}

body .phuket-explore-map .map-toolbar button[data-layer]:not([data-layer="overview"])::before {
  content: '';
  display: inline-block;
  width: .65em;
  height: .65em;
  margin-inline-end: .45em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .06em;
}

body .phuket-explore-map .map-toolbar button:hover { box-shadow: inset 0 0 0 1px currentColor; }
body .phuket-explore-map .map-toolbar button[aria-pressed="true"],
body .phuket-explore-map #map-price-apply { background: var(--chip, #163953); color: #fff; }
body .phuket-explore-map .map-toolbar button:focus-visible { outline: 2px solid #142f50; outline-offset: 2px; }
body .phuket-explore-map #south-project-map {
  width: 100%;
  height: clamp(360px, 65svh, 690px);
  border: 0;
  border-radius: 0;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #c6dee4;
}

.phuket-explore-map .map-underlay { display: grid; gap: 8px; background: #f6f9fc; }
.phuket-explore-map #map-status { color: var(--map-ink); margin: 0; font-weight: 600; }
.phuket-explore-map #map-status:empty,
.phuket-explore-map #map-area-buttons:empty { display: none; }

.phuket-map-nearby .heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.phuket-map-nearby .heading h2 { margin: 0; }
.phuket-map-nearby .heading label { display: flex; align-items: center; gap: 8px; }
.phuket-map-nearby .map-nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 12px; }
.phuket-map-nearby .map-nearby-grid article { border: 1px solid #dbe5ef; border-radius: 12px; padding: 12px; background: #fff; }
.phuket-map-nearby .map-nearby-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.phuket-map-nearby .map-nearby-grid h3 { margin: 8px 0; }
.phuket-map-nearby .map-nearby-grid p { margin: 3px 0; }

@media (max-width: 580px) {
  .phuket-explore-map .map-hero {
    background-image: linear-gradient(90deg, #102c4d 15%, #102c4dcc 58%, #102c4d60), url('phuket-map-illustration.webp');
  }
}

.phuket-explore-map .map-area-buttons button:nth-child(4n + 1) { --chip: #3c586a; --tint: #e9f1f7; }
.phuket-explore-map .map-area-buttons button:nth-child(4n + 2) { --chip: #465f2c; --tint: #edf4e3; }
.phuket-explore-map .map-area-buttons button:nth-child(4n + 3) { --chip: #69446a; --tint: #f6edf8; }
.phuket-explore-map .map-area-buttons button:nth-child(4n + 4) { --chip: #7b4c2b; --tint: #f9eee4; }
