/* ============================================================
   ECLIPSE ELECTRICAL - INTERACTIVE SERVICE AREAS WITH ACCORDION
   Extracted CSS for WordPress Child Theme
   Scoped under .ee-areas-int to avoid theme conflicts
   ============================================================ */

.ee-areas-int *,
.ee-areas-int *::before,
.ee-areas-int *::after { box-sizing: border-box; }

.ee-areas-int {
  --ee-yellow: #F5C518;
  --ee-yellow-hover: #E0B215;
  --ee-blue: #2D88F0;
  --ee-blue-soft-bg: #E8F0FA;
  --ee-blue-soft-text: #2D88F0;
  --ee-panel: #EAF1FA;
  --ee-card-bg: #FFFFFF;
  --ee-card-border: #ECEEF2;
  --ee-dark: #0E0F12;
  --ee-map-dark: #0E1828;
  --ee-text: #1B1D22;
  --ee-text-muted: #555861;
  --ee-text-soft: #6B7280;
  --ee-bg: #FFFFFF;
  --ee-shadow-sm: 0 2px 6px rgba(15,23,42,0.04);
  --ee-shadow-md: 0 8px 22px rgba(15,23,42,0.08);
  --ee-radius: 12px;
  --ee-radius-lg: 22px;
  --ee-transition: 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ee-text);
  line-height: 1.5;
  background: var(--ee-bg);
  padding: 70px 0;
  width: 100%;
}

/* Container */
.ee-areas-int__wrap {
  max-width: 1438px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Panel - Light blue background */
.ee-areas-int__panel {
  background: var(--ee-panel);
  border-radius: var(--ee-radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 532fr 698fr;
  gap: 40px;
  align-items: stretch;
}

/* ========== LEFT COLUMN: CONTENT ========== */
.ee-areas-int__content {
  max-width: 532px;
  display: flex;
  flex-direction: column;
}

/* Pill badge */
.ee-areas-int__pill {
  display: inline-block;
  width: fit-content;
  padding: 8px 18px;
  background: #57aef4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
  line-height: 1.65em;
}

/* Title */
.ee-areas-int__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ee-dark);
}

/* Description */
.ee-areas-int__desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ee-text-muted);
  margin: 0 0 32px;
  max-width: 459px;
}

/* ========== ACCORDION ========== */
.ee-areas-int__acc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ee-areas-int__acc-item {
  background: var(--ee-card-bg);
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: var(--ee-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ee-areas-int__acc-item.is-open {
  box-shadow: var(--ee-shadow-md);
}

.ee-areas-int__acc-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  color: var(--ee-dark);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ee-areas-int__acc-head:hover {
  background: rgba(45, 136, 240, 0.04);
}

.ee-areas-int__acc-head:focus-visible {
  outline: 2px solid var(--ee-blue);
  outline-offset: -2px;
  border-radius: 12px;
}

.ee-areas-int__acc-chev {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--ee-dark);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ee-areas-int__acc-item.is-open .ee-areas-int__acc-chev {
  transform: rotate(180deg);
}

.ee-areas-int__acc-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ee-areas-int__acc-item.is-open .ee-areas-int__acc-body {
  grid-template-rows: 1fr;
}

.ee-areas-int__acc-inner {
  min-height: 0;
  overflow: hidden;
}

.ee-areas-int__acc-sub {
  list-style: none;
  margin: 0;
  padding: 0 26px 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 16px;
}

.ee-areas-int__acc-sub li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--ee-text-soft);
}

/* ========== RIGHT COLUMN: MAP ========== */
.ee-areas-int__map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ee-map-dark);
  min-height: 786px;
  height: 100%;
}

/* Map images */
.ee-areas-int__map-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Base map - always visible */
.ee-areas-int__map-base {
  z-index: 1;
}

/* Region overlays - hidden by default */
.ee-areas-int__map-overlay {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ee-areas-int__map-overlay.is-active {
  opacity: 1;
}

/* Pulse effect for the selected region indicator */
.ee-areas-int__pulse {
  position: absolute;
  z-index: 5;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,136,240,0.5) 0%, rgba(45,136,240,0.25) 50%, rgba(45,136,240,0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ee-areas-int__pulse.is-visible {
  opacity: 1;
  animation: ee-int-pulse 2.2s ease-out infinite;
}

/* Region-specific pulse positions - Adjust based on actual map */
.ee-areas-int__pulse--wellington { left: 45%; bottom: 35%; }
.ee-areas-int__pulse--lower-hutt { left: 55%; bottom: 45%; }
.ee-areas-int__pulse--upper-hutt { left: 60%; bottom: 55%; }
.ee-areas-int__pulse--kapiti-coast { left: 30%; bottom: 60%; }

@keyframes ee-int-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 136, 240, 0.5);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 30px rgba(45, 136, 240, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 136, 240, 0);
    transform: scale(1);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .ee-areas-int__panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 36px;
  }

  .ee-areas-int__content {
    max-width: 100%;
  }

  .ee-areas-int__title {
    font-size: 36px;
  }

  .ee-areas-int__map {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .ee-areas-int {
    padding: 50px 0;
  }

  .ee-areas-int__wrap {
    padding: 0 16px;
  }

  .ee-areas-int__panel {
    padding: 36px 24px;
    border-radius: 18px;
    gap: 28px;
  }

  .ee-areas-int__title {
    font-size: 32px;
  }

  .ee-areas-int__desc {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .ee-areas-int__acc-head {
    font-size: 17px;
    padding: 18px 22px;
  }

  .ee-areas-int__acc-sub {
    padding: 0 22px 18px;
  }

  .ee-areas-int__map {
    min-height: 450px;
  }
}

@media (max-width: 540px) {
  .ee-areas-int {
    padding: 40px 0;
  }

  .ee-areas-int__wrap {
    padding: 0 12px;
  }

  .ee-areas-int__panel {
    padding: 28px 18px;
    border-radius: 16px;
    gap: 24px;
  }

  .ee-areas-int__pill {
    font-size: 12px;
    padding: 6px 14px;
  }

  .ee-areas-int__title {
    font-size: 26px;
  }

  .ee-areas-int__desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .ee-areas-int__acc {
    gap: 10px;
  }

  .ee-areas-int__acc-head {
    font-size: 16px;
    padding: 16px 18px;
  }

  .ee-areas-int__acc-sub {
    padding: 0 18px 16px;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ee-areas-int__acc-sub li {
    font-size: 14px;
    padding: 5px 0;
  }

  .ee-areas-int__map {
    min-height: 380px;
    border-radius: 12px;
  }

  .ee-areas-int__pulse {
    width: 80px;
    height: 80px;
  }
}

/* ========== SCROLL ANIMATIONS (Enhanced with JS-ready class) ========== */
/* Only hide content when JS has loaded and added the js-ready class */
.ee-areas-int.js-ready .ee-areas-int__pill,
.ee-areas-int.js-ready .ee-areas-int__title,
.ee-areas-int.js-ready .ee-areas-int__desc,
.ee-areas-int.js-ready .ee-areas-int__acc,
.ee-areas-int.js-ready .ee-areas-int__map {
  opacity: 0;
  transform: translateY(24px);
}

.ee-areas-int.js-ready .ee-areas-int__map {
  transform: translateX(40px);
}

/* When visible (after intersection observer triggers) */
.ee-areas-int.is-visible .ee-areas-int__pill,
.ee-areas-int.is-visible .ee-areas-int__title,
.ee-areas-int.is-visible .ee-areas-int__desc,
.ee-areas-int.is-visible .ee-areas-int__acc,
.ee-areas-int.is-visible .ee-areas-int__map {
  opacity: 1;
  transform: none;
}

.ee-areas-int.is-visible .ee-areas-int__pill {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ee-areas-int.is-visible .ee-areas-int__title {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.ee-areas-int.is-visible .ee-areas-int__desc {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.ee-areas-int.is-visible .ee-areas-int__acc {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.ee-areas-int.is-visible .ee-areas-int__map {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
