.hp-map-tabs .section-heading {
  text-align: center;
}

.hp-map-tabs {
  padding: 0;
}

.map-tabs-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 1.5rem;
  justify-content: center;
}

.map-tab-panels {
  /* max-width: 960px; */
  width: 100%;
  margin: 0 auto;
}

.map-tab-panel {
  display: none;
  border: 3px solid var(--deep-blue);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.map-tab-panel:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: -2px;
}

.map-tab-panel.active {
  display: block;
}

.map-tab-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Location Header (above map) */
.location-header {
  text-align: center;
  margin-bottom: 1rem;
}

/* Map Split Container (Image + Map) */
.map-split-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-image-wrapper {
  width: 100%;
}

.map-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.map-wrapper {
  width: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 0.5rem;
}

/* Location Details - Mobile First (Single Column) */
.map-location-details {
  font-size: 1.1rem;
  color: var(--almost-black);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.location-details-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Location Detail Item */
.location-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Location Detail Label (Icon + Text on one line) */
.location-detail-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
}

.location-detail-label i {
  font-size: 1.3rem;
  color: var(--deep-blue);
  flex-shrink: 0;
  margin-top: 0.1rem; /* Slight adjustment to align with first line of text */
}

/* Phone number flows naturally after label text without flex: 1 */

.location-detail-label a {
  color: var(--turquoise);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.location-detail-label a:hover {
  text-decoration: underline;
}

/* Location Detail Content (Indented content) */
.location-detail-content {
  margin-left: 1.8rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.location-detail-content li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.location-detail-content li:last-child {
  margin-bottom: 0;
}

.location-detail-content li strong {
  margin-bottom: 0.25rem;
}

.location-time {
  display: block;
}

.location-detail-content p {
  margin: 0;
  line-height: 1.6;
}

.location-column-heading {
  font-size: clamp(1.6rem, 1.1vw + 1rem, 1.85rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--turquoise);
  margin: 0;
  border-bottom: 2px dotted;
  padding: 0 0 1rem 0;
}

.location-block {
  margin-bottom: 0;
}

.location-title {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--turquoise);
  margin: 0;
}

.location-address {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--almost-black);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.location-phone {
  font-size: 1.25rem;
  margin: 0;
}

.location-phone a {
  font-weight: 600;
  color: var(--turquoise);
  text-decoration: none;
}

.location-email-link {
  display: inline-block;
  background-color: var(--turquoise);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-decoration: none;
}

.email-label-mobile {
  display: inline;
}
.email-label-desktop {
  display: none;
}

.location-hours {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.25rem 0 0;
}

.location-opening-hours-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.location-opening-hours {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.25rem 0 0;
}

.location-detail-label a:hover {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

/* ===============================
   Tablet ≥ 48rem (768px)
   =============================== */
@media (min-width: 48rem) {
  .map-image,
  .map-wrapper iframe {
    height: 300px;
  }

  .map-tab-panel {
    padding: 2rem;
  }
}

/* ===============================
   Desktop ≥ 64rem (1024px)
   =============================== */
@media (min-width: 64rem) {
  .hp-map-tabs {
    padding: 3rem 1rem;
  }

  /* Map Split Container - Desktop (50/50) */
  .map-split-container {
    flex-direction: row;
    gap: 3rem;
  }

  .map-image-wrapper {
    width: 50%;
  }

  .map-wrapper {
    width: 50%;
  }

  .map-image,
  .map-wrapper iframe {
    height: 400px;
  }

  .map-tab-panel {
    padding: 3rem;
    margin-top: 0.25rem;
  }

  /* Location Details - Desktop (Two Columns) */
  .map-location-details {
    flex-direction: row;
    gap: 3rem;
    margin-top: 1.5rem;
  }

  .location-details-col {
    flex: 1;
  }

  .location-details-col-1 {
    text-align: left;
  }

  .location-details-col-2 {
    text-align: left;
  }

  /* Legacy styles for other panels */
  .location-block {
    margin-bottom: 1rem;
  }

  .location-email-link {
    background: none;
    color: var(--turquoise);
    padding: 0;
    border-radius: 0;
    text-align: center;
    font-size: inherit;
    margin-top: 0;
  }

  .location-address {
    font-size: 1.25rem;
  }

  /* Opening hours - Desktop layout (day left, time right) */
  .location-detail-content li {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .location-detail-content li strong {
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
  }

  .location-time {
    display: block;
    text-align: left;
    flex-shrink: 0;
  }

  .email-label-mobile {
    display: none;
  }

  .email-label-desktop {
    display: inline;
  }
}
