/* ============================================================
   SECTION 3 — LOCATION & CONNECTIVITY
   ============================================================ */
.section-location {
  position: relative;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
}
.loc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  flex-wrap: wrap;
}
.loc-head .lede {
  margin-top: 1rem;
}
.loc-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: stretch;
}

/* ---- map ---- */
.loc-map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  min-height: 440px;
  background: var(--ink-2);
}
.loc-map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
  transition: filter 0.6s var(--ease);
}
.loc-map:hover iframe {
  filter: grayscale(0.2) invert(0.9) contrast(0.95);
}
.loc-map .map-tag {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 3;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.loc-map .map-tag .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.loc-map .map-tag .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ovpulse 2.4s var(--ease) infinite;
}
.loc-map .map-tag .t b {
  font-size: 0.82rem;
  font-weight: 500;
  display: block;
}
.loc-map .map-tag .t span {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- right: tabs + dynamic list ---- */
.loc-panel {
  display: flex;
  flex-direction: column;
}
.loc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.loc-tab {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  padding: 0.7em 1.1em;
  border: 1px solid var(--line-soft);
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.loc-tab .ti {
  color: var(--gold);
  display: grid;
  place-items: center;
}
.loc-tab:hover {
  color: var(--paper);
  border-color: var(--line);
}
.loc-tab.active {
  background: var(--gold);
  color: var(--jet);
  border-color: var(--gold);
}
.loc-tab.active .ti {
  color: var(--jet);
}

.loc-list-wrap {
  position: relative;
  flex: 1;
  min-height: 300px;
}
.loc-cat-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
  color: var(--paper);
}
.loc-cat-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.loc-list {
  display: flex;
  flex-direction: column;
}
.loc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s var(--ease-out) forwards;
}
.loc-row .nm {
  font-size: 0.95rem;
  color: var(--paper);
  font-weight: 400;
  flex: 1;
}
.loc-row .nm span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 0.15rem;
}
.loc-row .dist {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 400;
  white-space: nowrap;
}
.loc-row .dist small {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  text-align: right;
}

@media (max-width: 900px) {
  .loc-grid {
    grid-template-columns: 1fr;
  }
  .loc-map {
    min-height: 340px;
  }
  .loc-map iframe {
    min-height: 340px;
  }
}
/* fit a single desktop viewport */
@media (min-width: 1024px) {
  .section-location {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vh 0;
  }
  .loc-map,
  .loc-map iframe {
    min-height: min(52vh, 500px);
  }
  .loc-list-wrap {
    min-height: 0;
  }
  .loc-head {
    margin-bottom: 2rem;
  }
}
