.wow-map-app {
  --wow-navy: #09255b;
  --wow-pink: #f71954;
  --wow-purple: #6539ef;
  --wow-teal: #068985;
  --wow-blue: #078acb;
  --wow-yellow: #ffbd0b;
  --wow-paper: #fffaf2;
  --wow-shadow: 0 16px 44px rgba(9, 37, 91, .16);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(12px, 2.4vw, 28px);
  color: var(--wow-navy);
  background: linear-gradient(135deg, #fff8ee, #f5f1ff);
  border-radius: 28px;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wow-map-app,
.wow-map-app * { box-sizing: border-box; }

.wow-map-app button,
.wow-map-app input,
.wow-map-app a { font: inherit; }

.wow-map-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.wow-map-header h2 {
  margin: 0;
  color: var(--wow-navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.wow-map-header h2 span { color: var(--wow-pink); }

.wow-map-header p {
  max-width: 560px;
  margin: 0;
  color: var(--wow-navy);
  font-weight: 650;
}

.wow-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, .7fr);
  gap: 20px;
  align-items: start;
}

.wow-map-panel,
.wow-map-side {
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--wow-navy);
  border-radius: 24px;
  box-shadow: var(--wow-shadow);
}

.wow-map-panel { position: relative; }

.wow-map-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  background: #f5efe7;
  scrollbar-color: var(--wow-pink) transparent;
}

.wow-map-wrap {
  position: relative;
  width: 100%;
  min-width: 760px;
  aspect-ratio: 1272 / 1004;
  overflow: hidden;
  line-height: 0;
}

.wow-map-canvas {
  position: absolute;
  width: 157.233%;
  height: 140.837%;
  left: -2.83%;
  top: -3.785%;
}

.wow-map-image {
  display: block;
  width: 100%;
  height: 100%;
}

.wow-map-image {
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.wow-map-image-hd {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  line-height: 0;
}

.wow-map-image-hd img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.wow-map-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wow-map-hotspot,
.wow-map-locator {
  position: absolute;
  border: 0;
  transform: translate(-50%, -50%);
}

.wow-map-hotspot {
  z-index: 4;
  width: clamp(30px, 3vw, 46px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  pointer-events: auto;
}

.wow-map-hotspot:hover { background: rgba(255, 255, 255, .22); }

.wow-map-hotspot:focus-visible {
  outline: 5px solid #fff;
  box-shadow: 0 0 0 9px var(--wow-purple);
}

.wow-map-hotspot.is-active {
  background: transparent;
  box-shadow: 0 0 0 7px rgba(247, 25, 84, .62);
  animation: wow-existing-pin-pulse 1.1s ease-in-out infinite;
}

@keyframes wow-existing-pin-pulse {
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    box-shadow: 0 0 0 14px rgba(247, 25, 84, .08);
  }
}

.wow-map-locator {
  display: none;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--wow-pink);
  box-shadow: 0 0 0 6px rgba(247, 25, 84, .45);
  pointer-events: none;
}

.wow-map-locator.is-on {
  display: block;
  animation: wow-locator-bounce 1s ease-in-out infinite;
}

.wow-map-locator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top: 15px solid var(--wow-pink);
}

@keyframes wow-locator-bounce {
  50% { transform: translate(-50%, -68%); }
}

.wow-map-pin-number-fix {
  position: absolute;
  z-index: 3;
  left: 40.8%;
  top: 28.3%;
  width: 1%;
  height: 1.414%;
  border: 0;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 10000% 7070%;
  background-position: 30.81% 17.54%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Replace the old yellow Teahouse pin with a matching pink pin at the same location. */
.wow-map-pin-teahouse-fix {
  position: absolute;
  z-index: 3;
  left: 30.96%;
  top: 23.37%;
  width: 1.3%;
  height: 2.5%;
  border: 0;
  border-radius: 44%;
  background-image: url('../images/WOW-Map-24.png');
  background-repeat: no-repeat;
  background-size: 7692.308% 4000%;
  background-position: 33.71% 22.98%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wow-map-pin-teahouse-fix::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -3% -2% -2%;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 110'%3E%3Cellipse cx='40' cy='101' rx='23' ry='7' fill='%23ffbd0b' stroke='%2309255b' stroke-width='4'/%3E%3Cpath d='M40 3C20 3 5 18 5 38c0 24 23 43 35 62 12-19 35-38 35-62C75 18 60 3 40 3Z' fill='%2309255b'/%3E%3Cpath d='M40 8C23 8 10 21 10 38c0 20 19 36 30 53 11-17 30-33 30-53C70 21 57 8 40 8Z' fill='%23f71954'/%3E%3Ccircle cx='40' cy='38' r='21' fill='%23fffaf2' stroke='%2309255b' stroke-width='4'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 1px rgba(9, 37, 91, .25));
}

.wow-map-pin-teahouse-fix::after {
  content: none;
}

.wow-map-pin-teahouse-fix > span {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 35%;
  width: 46%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #09255b;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(3.5px, .27vw, 6px);
  font-weight: 900;
  letter-spacing: -.11em;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.wow-map-mobile-note,
.wow-map-mobile-open,
.wow-map-zoom-controls,
.wow-map-sheet-grab,
.wow-map-view-map,
.wow-map-collapsed-row { display: none; }

.wow-map-side {
  position: sticky;
  top: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: 16px;
}

.wow-map-side-top { display: grid; gap: 10px; }

.wow-map-eyebrow {
  margin: 0 0 2px;
  color: var(--wow-pink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wow-map-side h3 {
  margin: 0;
  color: var(--wow-navy);
  font-size: 1.45rem;
  line-height: 1.2;
}

.wow-map-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 15px;
  background: #edf2fb;
}

.wow-map-tab {
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--wow-navy);
  font-weight: 900;
  cursor: pointer;
}

.wow-map-tab[aria-selected="true"] {
  background: var(--wow-navy);
  color: #fff;
  box-shadow: 0 3px 10px rgba(9, 37, 91, .18);
}

.wow-map-tab:focus-visible,
.wow-map-filter:focus-visible,
.wow-map-business:focus-visible,
.wow-map-place-button:focus-visible,
.wow-map-mobile-open:focus-visible,
.wow-map-view-map:focus-visible,
.wow-map-modal-close:focus-visible {
  outline: 3px solid var(--wow-yellow);
  outline-offset: 2px;
}

.wow-map-side-content {
  min-height: 0;
  overflow: hidden;
}

.wow-map-tab-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.wow-map-tab-panel[hidden] { display: none; }

.wow-map-directory-tools { display: grid; gap: 4px; }

.wow-map-search {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 2px solid #cbd5e8;
  border-radius: 13px;
  background: #fff;
  color: var(--wow-navy);
  font-size: 16px;
  font-weight: 700;
}

.wow-map-search:focus {
  border-color: var(--wow-navy);
  outline: 3px solid var(--wow-yellow);
}

.wow-map-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 7px 0;
  scrollbar-width: thin;
}

.wow-map-filter {
  min-height: 38px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: #eaf0fa;
  color: var(--wow-navy);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.wow-map-filter.is-active {
  background: var(--wow-navy);
  color: #fff;
}

.wow-map-directory,
.wow-map-place-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  overscroll-behavior: contain;
}

.wow-map-directory { scrollbar-color: var(--wow-blue) transparent; }
.wow-map-place-list { scrollbar-color: var(--wow-pink) transparent; }

.wow-map-road-title,
.wow-map-place-group {
  position: sticky;
  z-index: 2;
  top: 0;
  margin: 3px 0 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--wow-group-colour);
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wow-map-business,
.wow-map-place-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid #d9e0ef;
  border-radius: 12px;
  background: #fff;
  color: var(--wow-navy);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.wow-map-business:hover,
.wow-map-place-button:hover { border-color: var(--wow-blue); }

.wow-map-business[aria-pressed="true"],
.wow-map-place-button[aria-pressed="true"] {
  border-color: var(--wow-navy);
  background: var(--wow-navy);
  color: #fff;
}

.wow-map-number {
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--wow-group-colour, var(--wow-blue));
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.wow-map-business[aria-pressed="true"] .wow-map-number { background: var(--wow-pink); }

.wow-map-place-dot {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wow-group-colour);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
}

.wow-map-no-results {
  padding: 18px;
  color: #65718b;
  font-weight: 800;
  text-align: center;
}

.wow-map-card {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 2px solid #eadfcd;
  border-radius: 16px;
  background: var(--wow-paper);
}

.wow-map-modal {
  position: fixed;
  z-index: 100010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wow-map-modal[hidden] { display: none; }

.wow-map-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 18, 50, .68);
  backdrop-filter: blur(5px);
  cursor: pointer;
  animation: wow-map-modal-fade-in 220ms ease both;
}

/* The site theme colours buttons pink. Keep this full-screen close button neutral. */
.wow-map-app .wow-map-modal-backdrop,
.wow-map-app .wow-map-modal-backdrop:hover,
.wow-map-app .wow-map-modal-backdrop:focus,
.wow-map-app .wow-map-modal-backdrop:active {
  border-radius: 0 !important;
  background: rgba(4, 18, 50, .68) !important;
  box-shadow: none !important;
  color: transparent !important;
  transform: none !important;
}

.wow-map-modal .wow-map-card {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 3px solid var(--wow-navy);
  border-radius: 24px;
  background: #fffaf2;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  animation: wow-map-modal-pop-in 340ms cubic-bezier(.16, 1, .3, 1) both;
}

.wow-map-modal .wow-map-card.has-image {
  grid-template-columns: minmax(190px, .72fr) minmax(0, 1fr);
}

.wow-map-modal .wow-map-card-image { min-height: 260px; }

.wow-map-modal .wow-map-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.wow-map-modal .wow-map-card-title {
  margin: 5px 42px 8px 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.wow-map-modal .wow-map-card-copy {
  display: block;
  overflow: visible;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
}

.wow-map-modal .wow-map-cta {
  align-self: flex-start;
  padding: 10px 17px;
  font-size: .95rem;
}

.wow-map-profile-tag,
.wow-map-call,
.wow-map-profile-details { display: none; }

.wow-map-card-copy[hidden],
.wow-map-profile-tag[hidden],
.wow-map-profile-details[hidden],
.wow-map-call[hidden] { display: none !important; }

.wow-map-modal .wow-map-card.is-profile-card {
  width: min(610px, calc(100vw - 40px));
  grid-template-columns: 1fr;
  border-width: 2px;
  border-radius: 28px;
  background: #fffaf2;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-card-image {
  display: block;
  width: 100%;
  height: 225px;
  min-height: 225px;
  object-fit: cover;
  object-position: center 52%;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-card-body {
  position: relative;
  display: block;
  padding: 48px 34px 28px;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-profile-tag {
  position: absolute;
  top: -26px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: calc(100% - 102px);
  padding: 0 24px;
  border-radius: 999px;
  background: var(--wow-navy);
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(9, 37, 91, .18);
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-kind {
  display: block;
  margin-bottom: 6px;
  font-size: .72rem;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-card-title {
  margin: 0 50px 18px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-profile-details {
  display: block;
  margin: 0 0 20px;
}

.wow-map-profile-summary {
  margin: -2px 0 8px;
  color: #405274;
  font-size: .94rem;
  line-height: 1.45;
}

.wow-map-profile-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid #dbe4f1;
  color: var(--wow-navy);
}

.wow-map-profile-row:last-child { border-bottom: 0; }

.wow-map-profile-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--wow-navy);
}

.wow-map-profile-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wow-map-profile-row strong,
.wow-map-profile-row > div > span { display: block; }

.wow-map-profile-row strong {
  margin: 1px 0 5px;
  font-size: 1rem;
}

.wow-map-profile-row > div > span {
  font-size: .98rem;
  line-height: 1.45;
}

.wow-map-profile-row em {
  color: var(--wow-pink);
  font-style: normal;
  font-weight: 800;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-cta,
.wow-map-modal .wow-map-card.is-profile-card .wow-map-call {
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-cta {
  display: flex;
  margin-bottom: 10px;
  background: var(--wow-pink);
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-call {
  display: none;
  background: #edf4ff;
  color: var(--wow-navy) !important;
  text-decoration: none !important;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-call:hover,
.wow-map-modal .wow-map-card.is-profile-card .wow-map-call:focus-visible {
  background: #dfeaff;
  outline: 3px solid var(--wow-yellow);
  outline-offset: 2px;
}

.wow-map-modal .wow-map-card.is-profile-card .wow-map-modal-close {
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
}

.wow-map-modal-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--wow-navy);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(9, 37, 91, .24);
}

.wow-map-modal-close:hover { background: var(--wow-pink); }

body.wow-map-modal-open { overflow: hidden; }

@keyframes wow-map-modal-fade-in {
  from { opacity: 0; }
}

@keyframes wow-map-modal-pop-in {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wow-map-card.has-image { grid-template-columns: 96px minmax(0, 1fr); }
.wow-map-card[hidden] { display: none; }

.wow-map-card-image {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--wow-purple), var(--wow-pink));
}

.wow-map-card.has-image .wow-map-card-image { display: block; }
.wow-map-card-body { padding: 11px 12px; }

.wow-map-kind {
  color: var(--wow-pink);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wow-map-card .wow-map-card-title {
  margin: 2px 0 3px;
  color: var(--wow-navy);
  font-size: 1.05rem;
}

.wow-map-card-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 7px;
  color: var(--wow-navy);
  font-size: .79rem;
  line-height: 1.35;
}

.wow-map-cta {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--wow-pink);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none !important;
}

.wow-map-cta:hover,
.wow-map-cta:focus-visible {
  background: var(--wow-purple);
  outline: 3px solid var(--wow-yellow);
  outline-offset: 2px;
}

.wow-map-hint {
  margin: 0 2px;
  color: #53627e;
  font-size: .74rem;
  line-height: 1.35;
}

.wow-map-canvas.is-pin-placing,
.wow-map-canvas.is-pin-placing * {
  cursor: crosshair !important;
}

.wow-map-digital-pin {
  position: absolute;
  z-index: 3;
  width: 1.3%;
  height: 2.5%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 2px 1px rgba(9, 37, 91, .25));
}

.wow-map-digital-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wow-map-draft-pin {
  position: absolute;
  z-index: 7;
  width: 24px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 3px solid #09255b;
  border-radius: 50% 50% 50% 8px;
  background: var(--wow-draft-colour, #f71954);
  color: #09255b;
  font: 900 10px/1 Arial, sans-serif;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 2px 0 #ffbd0b, 0 4px 9px rgba(9, 37, 91, .28);
  pointer-events: none;
}

.wow-map-draft-pin::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #09255b;
  border-radius: 50%;
  background: #fffaf2;
}

.wow-map-draft-pin > span {
  position: relative;
  z-index: 1;
  transform: rotate(45deg);
}

.wow-map-pin-setup {
  --setup-navy: #09255b;
  --setup-pink: #f71954;
  position: fixed;
  z-index: 100020;
  right: 18px;
  bottom: 18px;
  width: min(410px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  overflow: hidden;
  border: 3px solid var(--setup-navy);
  border-radius: 20px;
  background: #fffaf2;
  color: var(--setup-navy);
  box-shadow: 0 22px 60px rgba(4, 18, 50, .28);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wow-map-pin-setup,
.wow-map-pin-setup * {
  box-sizing: border-box;
}

.wow-map-pin-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--setup-navy);
  color: #fff;
}

.wow-map-pin-setup-head strong,
.wow-map-pin-setup-head span {
  display: block;
}

.wow-map-pin-setup-head strong {
  font-size: 1rem;
}

.wow-map-pin-setup-status {
  margin-top: 2px;
  color: #dfe8ff;
  font-size: .75rem;
}

.wow-map-pin-setup button {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 10px;
  background: var(--setup-navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.wow-map-pin-setup button:hover,
.wow-map-pin-setup button:focus-visible {
  background: var(--setup-pink);
}

.wow-map-pin-setup-head button {
  flex: 0 0 auto;
  min-height: 34px;
  background: #ffbd0b;
  color: var(--setup-navy);
}

.wow-map-pin-setup-body {
  max-height: calc(100svh - 115px);
  overflow: auto;
  padding: 14px;
}

.wow-map-pin-setup.is-minimised .wow-map-pin-setup-body {
  display: none;
}

.wow-map-pin-setup-form {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 10px;
}

.wow-map-pin-setup-form label {
  display: grid;
  gap: 4px;
  color: var(--setup-navy);
  font-size: .75rem;
  font-weight: 850;
}

.wow-map-pin-setup-form .is-wide {
  grid-column: 1 / -1;
}

.wow-map-pin-setup input,
.wow-map-pin-setup select,
.wow-map-pin-setup textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 2px solid #ccd6ea;
  border-radius: 10px;
  background: #fff;
  color: var(--setup-navy);
  font: inherit;
}

.wow-map-pin-setup textarea {
  resize: vertical;
}

.wow-map-pin-setup input:focus,
.wow-map-pin-setup select:focus,
.wow-map-pin-setup textarea:focus {
  border-color: var(--setup-navy);
  outline: 3px solid #ffbd0b;
  outline-offset: 1px;
}

.wow-map-pin-setup-form-actions,
.wow-map-pin-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wow-map-pin-setup-form-actions button:first-child {
  background: var(--setup-pink);
}

.wow-map-pin-setup-form-actions button:first-child:hover,
.wow-map-pin-setup-form-actions button:first-child:focus-visible {
  background: #6539ef;
}

.wow-map-pin-setup-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wow-map-pin-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 2px solid #dce3f1;
  border-radius: 12px;
  background: #fff;
}

.wow-map-pin-setup-row strong,
.wow-map-pin-setup-row span {
  display: block;
}

.wow-map-pin-setup-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wow-map-pin-setup-row span {
  margin-top: 2px;
  color: #64718b;
  font-size: .72rem;
}

.wow-map-pin-setup-actions {
  justify-content: flex-end;
}

.wow-map-pin-setup-actions button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: .72rem;
}

.wow-map-pin-setup-actions button:last-child {
  background: #eaf0fa;
  color: var(--setup-navy);
}

.wow-map-pin-setup-empty {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #edf2fb;
  text-align: center;
}

.wow-map-pin-setup-export {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dce3f1;
}

.wow-map-pin-setup-export summary {
  margin-bottom: 8px;
  font-weight: 850;
  cursor: pointer;
}

.wow-map-pin-setup-export textarea {
  min-height: 130px;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.wow-map-pin-setup-export button {
  margin-top: 7px;
}

.wow-map-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wow-map-noscript {
  padding: 12px;
  border-radius: 12px;
  background: var(--wow-yellow);
  color: var(--wow-navy);
  font-weight: 800;
}

@media (min-width: 901px) {
  .wow-map-app { padding-top: 23px; }
  .wow-map-header { display: none; margin-bottom: 0; }

  .wow-map-scroll { overflow-x: hidden; }
  .wow-map-wrap { min-width: 0; }

  .wow-map-directory,
  .wow-map-place-list {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }
}

/* On the Interactive Map only, desktop pointers can reveal the main menu
   by moving to the top strip. Tablet, mobile and every other page are unchanged. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body.page-id-1522 .wow-site-global-topline {
    z-index: 100000;
  }

  body.page-id-1522 .wow-site-global-header {
    position: fixed !important;
    top: 55px !important;
    right: 0;
    left: 0;
    width: 100%;
    overflow: visible !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px) scale(.985);
    transform-origin: top center;
    transition:
      transform 360ms cubic-bezier(.16, 1, .3, 1),
      opacity 220ms ease,
      visibility 0s linear 360ms;
    will-change: transform, opacity;
  }

  body.page-id-1522.admin-bar .wow-site-global-header {
    top: 87px !important;
  }

  body.page-id-1522 .wow-site-global-topline:hover + .wow-site-global-header,
  body.page-id-1522 .wow-site-global-header:hover,
  body.page-id-1522 .wow-site-global-header:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }
}

@media (max-width: 900px) {
  .wow-map-app {
    padding: 10px;
    border-radius: 20px;
  }

  .wow-map-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .wow-map-header h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .wow-map-header p { font-size: .92rem; }

  .wow-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .wow-map-panel {
    width: 100%;
    height: auto;
    aspect-ratio: 1272 / 1004;
    border-radius: 20px;
  }

  .wow-map-scroll {
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
  }

  .wow-map-image { display: none; }
  .wow-map-image-hd { display: grid; }

  .wow-map-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    min-height: 100%;
    flex: 0 0 auto;
    aspect-ratio: auto;
  }

  .wow-map-zoom-controls {
    position: absolute;
    z-index: 8;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 42px 48px 42px;
    overflow: hidden;
    border: 2px solid rgba(9, 37, 91, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(9, 37, 91, .2);
  }

  .wow-map-zoom-controls button {
    min-width: 0;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-right: 1px solid #d6dfef;
    background: transparent;
    color: var(--wow-navy);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .wow-map-zoom-controls button:last-child { border-right: 0; }
  .wow-map-zoom-controls button:active { background: #eaf0fa; }
  .wow-map-zoom-controls button:disabled { color: #9aa6ba; cursor: default; }
  .wow-map-zoom-reset { font-size: .82rem !important; }

  .wow-map-mobile-note {
    position: absolute;
    z-index: 7;
    top: 12px;
    left: 12px;
    display: block;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--wow-navy);
    font-size: .78rem;
    font-weight: 850;
    box-shadow: 0 5px 18px rgba(9, 37, 91, .16);
  }

  .wow-map-panel > .wow-map-mobile-open {
    position: absolute;
    z-index: 7;
    top: 12px;
    right: 12px;
    display: block;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: 13px;
    background: var(--wow-navy);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(9, 37, 91, .2);
  }

  .wow-map-side {
    position: relative;
    z-index: 1;
    inset: auto;
    width: 100%;
    height: min(70svh, 660px) !important;
    min-height: 500px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 13px 14px;
    border-width: 3px;
    border-radius: 20px;
    box-shadow: var(--wow-shadow);
    scroll-margin-top: 12px;
  }

  .wow-map-side.is-collapsed {
    height: min(70svh, 660px) !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .wow-map-sheet-grab { display: none; }

  .wow-map-side-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .wow-map-side-top .wow-map-tabs { grid-column: 1 / -1; }

  .wow-map-view-map {
    display: block;
    min-height: 44px;
    padding: 8px 11px;
    border: 0;
    border-radius: 12px;
    background: #eaf0fa;
    color: var(--wow-navy);
    font-weight: 850;
    cursor: pointer;
  }

  .wow-map-eyebrow { display: none; }
  .wow-map-side h3 { font-size: 1.2rem; }

  .wow-map-side.is-collapsed .wow-map-side-top,
  .wow-map-side.is-collapsed .wow-map-side-content { display: grid; }

  .wow-map-side.is-collapsed .wow-map-hint { display: none; }

  .wow-map-side.is-collapsed .wow-map-collapsed-row,
  .wow-map-collapsed-row { display: none; }

  .wow-map-collapsed-row > div { min-width: 0; }
  .wow-map-collapsed-row strong,
  .wow-map-collapsed-row span { display: block; }
  .wow-map-collapsed-row strong {
    overflow: hidden;
    color: var(--wow-navy);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wow-map-collapsed-row span {
    color: #60708d;
    font-size: .76rem;
  }
  .wow-map-collapsed-row .wow-map-mobile-open {
    flex: 0 0 auto;
    display: block;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: var(--wow-navy);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
  }

  .wow-map-side-content {
    min-height: 0;
    overflow: hidden;
  }

  .wow-map-tab-panel {
    height: 100%;
    min-height: 0;
  }

  .wow-map-directory-tools { min-height: 0; }

  .wow-map-directory,
  .wow-map-place-list {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wow-map-modal { padding: 14px; }
  .wow-map-modal .wow-map-card { width: min(560px, calc(100vw - 28px)); }
  .wow-map-modal .wow-map-card.has-image { grid-template-columns: 1fr; }
  .wow-map-modal .wow-map-card-image { height: 180px; min-height: 180px; }
  .wow-map-modal .wow-map-card-body { padding: 24px 22px 22px; }
  .wow-map-modal .wow-map-card-title { font-size: 1.45rem; }
  .wow-map-modal .wow-map-card-copy { font-size: .94rem; }
  .wow-map-modal .wow-map-card.is-profile-card {
    width: min(560px, calc(100vw - 28px));
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-image {
    height: 185px;
    min-height: 185px;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-body {
    padding: 42px 24px 22px;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-profile-tag {
    top: -23px;
    left: 24px;
    min-height: 44px;
    padding-inline: 20px;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-title {
    font-size: 2rem;
  }
  .wow-map-profile-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 12px 0;
  }
  .wow-map-profile-icon { width: 46px; height: 46px; }
  .wow-map-profile-row > div > span { font-size: .92rem; }
  .wow-map-hint { display: none; }
}

@media (max-width: 560px) {
  .wow-map-pin-setup {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: calc(100svh - 16px);
    border-radius: 16px;
  }

  .wow-map-pin-setup-body {
    max-height: calc(100svh - 92px);
    padding: 11px;
  }

  .wow-map-pin-setup-form {
    grid-template-columns: 1fr 100px;
  }

  .wow-map-pin-setup-row {
    grid-template-columns: 1fr;
  }

  .wow-map-pin-setup-actions {
    justify-content: flex-start;
  }

  .wow-map-app { padding: 6px; }
  .wow-map-header { padding: 5px 5px 0; }
  .wow-map-header p { display: none; }
  .wow-map-panel { border-width: 2px; border-radius: 18px; }
  .wow-map-side {
    height: min(72svh, 620px) !important;
    min-height: 520px;
    padding-inline: 10px;
  }
  .wow-map-side.is-collapsed { height: min(72svh, 620px) !important; }
  .wow-map-card-copy { -webkit-line-clamp: 1; }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-image {
    height: 150px;
    min-height: 150px;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-body {
    padding: 38px 18px 18px;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-profile-tag {
    left: 18px;
    min-height: 40px;
    padding-inline: 16px;
    font-size: .75rem;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-kind { font-size: .64rem; }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-card-title {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 1.75rem;
  }
  .wow-map-profile-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
  }
  .wow-map-profile-icon { width: 38px; height: 38px; }
  .wow-map-profile-icon svg { width: 21px; height: 21px; }
  .wow-map-profile-row strong { margin-bottom: 2px; font-size: .92rem; }
  .wow-map-profile-row > div > span { font-size: .84rem; line-height: 1.35; }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-cta,
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-call {
    min-height: 44px;
    font-size: .9rem;
  }
  .wow-map-modal .wow-map-card.is-profile-card .wow-map-call { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .wow-map-hotspot.is-active,
  .wow-map-locator.is-on { animation: none; }
  .wow-map-side { transition: none; }
  .wow-map-modal-backdrop,
  .wow-map-modal .wow-map-card { animation: none; }
  body.page-id-1522 .wow-site-global-header { transition: none; }
}

/* Hide the duplicated WordPress page-title banner on Explore & Map. */
body.page-id-1522 .wow-auto-title {
  display: none !important;
}
