/* ============================================================
   13-location — scoped under .sec-13-location
   ============================================================ */

.sec-13-location {
  background: radial-gradient(120% 85% at 50% 0%, var(--bone) 0%, var(--bone-2) 55%, #e7e0d2 100%);
}

/* --- Clinic picker: five names on one row, click swaps the panel below.
   Replaces the old always-expanded five-card stack so all five clinics
   fit without scrolling past each other. --- */
.sec-13-location__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.sec-13-location__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--text-on-bone);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.sec-13-location__tab-chev {
  display: inline-flex;
  color: currentColor;
  opacity: 0.55;
  transition: transform 250ms var(--ease-out);
}

.sec-13-location__tab:hover {
  box-shadow: var(--shadow-lift);
}

.sec-13-location__tab.is-active {
  background: var(--accent);
  color: var(--accent-on);
}

.sec-13-location__tab.is-active .sec-13-location__tab-chev {
  opacity: 1;
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .sec-13-location__tabs {
    justify-content: stretch;
  }
  .sec-13-location__tab {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* --- Detail panel: one clinic shown at a time, the rest [hidden] ---
   `[hidden]` must win over the `display: grid` below; the UA stylesheet's
   `[hidden] { display: none }` and this class rule are equal specificity,
   so the explicit override underneath is what actually keeps inactive
   panels out of the layout, not source order. */
.sec-13-location__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: sec-13-location-panel-in 320ms var(--ease-out);
}

.sec-13-location__panels .sec-13-location__card[hidden] {
  display: none;
}

@keyframes sec-13-location-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

html.reduced-motion .sec-13-location__card {
  animation: none;
}

/* --- Map half with custom styled frame --- */
.sec-13-location__map {
  position: relative;
  display: flex;
  min-height: 380px;
  padding: 14px;
  background: var(--bone-2);
}
.sec-13-location__map::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--accent-soft);
  border-radius: calc(var(--radius-card) + 4px);
  pointer-events: none;
  z-index: 2;
}
.sec-13-location__map iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 352px;
  border: 0;
  border-radius: var(--radius-card);
  position: relative;
  z-index: 1;
}

/* --- Info half --- */
.sec-13-location__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: clamp(1.75rem, 1.3rem + 2vw, 3rem);
}

.sec-13-location__name {
  margin-bottom: 0.1rem;
}

.sec-13-location__rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sec-13-location__row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.sec-13-location__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sec-13-location__row a,
.sec-13-location__row span {
  padding-top: 0.45rem;
  font-weight: 500;
}
.sec-13-location__row a {
  text-decoration: none;
  color: var(--text-on-bone);
  transition: color 200ms var(--ease-out);
}
.sec-13-location__row a:hover {
  /* --accent-strong: AA text contrast on bone, see tokens.css */
  color: var(--accent-strong);
}

.sec-13-location__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

@media (max-width: 760px) {
  .sec-13-location__card {
    grid-template-columns: 1fr;
  }
  .sec-13-location__map {
    min-height: 280px;
  }
  .sec-13-location__map iframe {
    min-height: 252px;
  }
}
