/* ==========================================================================
   Locations section — Plumbing Services Across Eastern Suburbs
   ========================================================================== */

.locations-section {
  --loc-navy: #0e2240;
  --loc-yellow: #f6a623;
  /* Figma section: 1920x1120 full-bleed */
  --loc-h: 1120px;
  /* Figma panel: 1440x522 at top 372 / left 240 (centered on the 1920 frame) */
  --loc-panel-w: 1440px;
  --loc-panel-h: 522px;
  --loc-panel-top: calc(372px - 64px); /* relative to inner (below 64px section padding) */
  /* Figma van: 725x420 at top 700 / left 1195 within the section
     (van bottom = 700 + 420 = 1120 = section bottom, center 960 → +235) */
  --loc-van-w: 725px;
  --loc-van-h: 420px;
  --loc-van-left: calc(50% + 235px);
  --loc-van-top: calc(700px - 64px); /* relative to inner (below 64px section padding) */
  position: relative;
  background: var(--loc-navy);
  color: #fff;
  min-height: var(--loc-h);
  padding: 64px 0 80px;
  overflow: hidden;
}

.locations-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.locations-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 34, 64, .55);
}

.locations-section__inner {
  position: relative;
  z-index: 2;
}

.locations-section__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
}

.locations-section__title-line {
  display: block;
}

/* ---------------------------------- Tabs ---------------------------------- */

.locations-section__tabs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.locations-section__tabs-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.locations-section__tabs-arrow svg {
  width: 18px;
  height: 18px;
}

.locations-section__tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.locations-section__tabs::-webkit-scrollbar {
  display: none;
}

.loc-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.loc-tab.active {
  background: var(--loc-yellow);
  color: var(--navy);
}

/* ---------------------------------- Panel ---------------------------------- */

.locations-section__panel {
  position: absolute;
  top: var(--loc-panel-top);
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(var(--loc-panel-w), 100vw - 36px);
  height: var(--loc-panel-h);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 44px;
  padding: 0px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(223, 231, 240, .12);
  backdrop-filter: blur(4px);
  opacity: 1;
}

.locations-section__map {
  border-radius: 22px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.locations-section__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.locations-section__right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 23px;
  padding-top: 14px;
}

.locations-section__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 88px;
}

.locations-section__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}

.locations-section__list a:hover {
  background: var(--loc-yellow);
}

.locations-section__list svg {
  box-sizing: border-box;
  width: 21px;
  height: 21px;
  padding: 3.5px;
  border: 1.4px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  flex: 0 0 auto;
}

.locations-section__cta {
  margin-top: 2px;
}

.locations-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  background: var(--loc-yellow);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: .92rem;
  box-shadow: 0 4px 14px rgba(246, 166, 35, .35);
  transition: background .15s;
}

.locations-section__btn:hover {
  background: #e8920a;
}

.locations-section__btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--navy);
}

.locations-section__btn-ico svg {
  width: 12px;
  height: 12px;
}

/* ----------------------------------- Van ----------------------------------- */

.locations-section__van {
  position: absolute;
  left: var(--loc-van-left);
  top: var(--loc-van-top);
  width: var(--loc-van-w);
  height: var(--loc-van-h);
  margin: 0;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
}

.locations-section__van img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1280px) {
  .locations-section__right {
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  .locations-section__panel {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    grid-template-columns: 1fr;
  }

  .locations-section__map {
    min-height: 340px;
  }

  .locations-section__map iframe {
    min-height: 340px;
  }

  .locations-section__tabs {
    justify-content: flex-start;
  }

  .locations-section {
    min-height: 0;
  }

  .locations-section__van {
    position: relative;
    left: auto;
    top: auto;
    width: min(70vw, 380px);
    height: auto;
    margin: 18px auto 0;
  }

  .locations-section__van img {
    height: auto;
  }
}

@media (max-width: 560px) {
  .locations-section {
    padding: 48px 0 56px;
  }

  .locations-section__panel {
    padding: 18px;
  }
}
