/* ============================================
   SERVICE AREA - COMPLETE FIXED CSS
   ============================================ */

/* Component Wrapper - Handles max-width */
.asl-component-wrapper.asl-service-area-wrapper {
  max-width: var(--max-width-container) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* ========================================
   MAIN SECTION - Full-Width Breakout
   ======================================== */
body .asl-service-area-section {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.asl-service-area-section {
  width: 100%;
  padding: var(--padding-desktop) var(--padding-sides-desktop) !important;
  background: var(--color-mist) !important;
  position: relative;
  box-sizing: border-box;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.asl-service-area-header {
  text-align: center;
  margin-bottom: 70px;
}

.asl-service-area-title {
  font-family: var(--font-body) !important;
  font-size: var(--font-h2) !important;
  font-weight: var(--weight-semibold) !important;
  color: var(--color-navy) !important;
  margin: 0 0 24px 0 !important;
  line-height: var(--line-height-h2) !important;
  letter-spacing: var(--letter-spacing-h2) !important;
}

.asl-service-area-description {
  font-family: var(--font-body) !important;
  font-size: var(--font-body) !important;
  font-weight: var(--weight-regular) !important;
  color: var(--color-charcoal) !important;
  line-height: var(--line-height-body) !important;
  letter-spacing: var(--letter-spacing-body) !important;
  margin: 0 auto;
  max-width: var(--max-width-content) !important;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
.asl-service-area-wrapper .asl-service-area-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   SERVICE AREA - SINGLE LAYOUT
   ======================================== */
.asl-service-area-wrapper .service-area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ✅ FIXED: Center left column content vertically and horizontally */
.asl-service-area-wrapper .service-area__column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ✅ FIXED: Center the heading */
.asl-service-area-wrapper .service-area__heading {
  font-family: var(--font-body) !important;
  font-size: var(--font-h3) !important;
  font-weight: var(--weight-medium) !important;
  color: var(--color-navy) !important;
  line-height: var(--line-height-h3) !important;
  letter-spacing: var(--letter-spacing-h3) !important;
  margin: 0 0 32px 0 !important;
  text-align: center;
}

/* ✅ FIXED: Center the list */
.asl-service-area-wrapper .service-area__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
  align-items: center;
}

.asl-service-area-wrapper .service-area__link {
  display: flex;
  align-items: center;
  padding: 6px 0 6px 24px;
  color: var(--color-navy);
  text-decoration: none;
  font-family: var(--font-body) !important;
  font-size: var(--font-body) !important;
  font-weight: var(--weight-medium) !important;
  line-height: var(--line-height-body) !important;
  letter-spacing: var(--letter-spacing-body) !important;
  transition: all 0.3s ease;
  position: relative;
}

.asl-service-area-wrapper .service-area__link::before {
  content: "";
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.asl-service-area-wrapper .service-area__link:hover {
  color: var(--color-gold);
  padding-left: 32px;
}

.asl-service-area-wrapper .service-area__link:hover::before {
  width: 12px;
  height: 12px;
}

.asl-service-area-wrapper .service-area__cta {
  margin-top: 16px;
  text-align: center;
}

.asl-service-area-wrapper .service-area__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: #1e3a5f;
  color: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  font-weight: var(--weight-semibold) !important;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #1e3a5f;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.asl-service-area-wrapper .service-area__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(198, 161, 91, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.asl-service-area-wrapper .service-area__button:hover::before {
  left: 100%;
}

.asl-service-area-wrapper .service-area__button:hover {
  background: #2a4a6f !important;
  border-color: #c6a15b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3) !important;
  color: #c6a15b !important;
}

.asl-service-area-wrapper .service-area__map {
  background: var(--color-white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--color-border);
  min-height: 500px;
  position: relative;
}

.asl-service-area-wrapper .service-area__map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.asl-service-area-wrapper .service-area__map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Center map when hide_links="yes" and hide_button="yes" */
.asl-service-area-wrapper
  .service-area--single
  .service-area__grid:not(:has(.service-area__column)) {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

.asl-service-area-wrapper
  .service-area--single
  .service-area__grid:not(:has(.service-area__column))
  .service-area__map {
  max-width: 800px !important;
  width: 100% !important;
}
/* ========================================
   SERVICE AREA - HUB LAYOUT (DESKTOP)
   ======================================== */

/* Main grid: Cities Wrapper | Map (2 columns) */
.asl-service-area-wrapper .service-area--hub .service-area__grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 80px !important;
}

/* Cities wrapper contains heading + nested 2-column grid */
.asl-service-area-wrapper .service-area--hub .service-area__cities-wrapper {
  display: flex;
  flex-direction: column;
}

/* Heading centered above city columns */
.asl-service-area-wrapper
  .service-area--hub
  .service-area__cities-wrapper
  .service-area__heading {
  text-align: center !important;
  margin: 0 0 32px 0 !important;
}

/* Nested grid for two city columns */
.asl-service-area-wrapper .service-area--hub .service-area__cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.asl-service-area-wrapper .service-area--hub .service-area__list {
  margin-bottom: 0 !important;
  gap: 0 !important;
  text-align: center !important;
}

.asl-service-area-wrapper .service-area--hub .service-area__link {
  padding: 6px 0 6px 24px;
  margin: 0 !important;
  justify-content: center;
}

/* Hub hover - text shifts inward, dot grows */
.asl-service-area-wrapper .service-area--hub .service-area__link:hover {
  padding: 6px 0 6px 32px;
}

.asl-service-area-wrapper .service-area--hub .service-area__column {
  margin: 0 !important;
  padding: 0 !important;
}

/* Map same height as single layout */
.asl-service-area-wrapper .service-area--hub .service-area__map {
  min-height: 500px !important;
  height: 100% !important;
}

.asl-service-area-wrapper .service-area--hub .service-area__map-placeholder {
  min-height: 500px !important;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
  .asl-service-area-section {
    padding: var(--padding-tablet) var(--padding-sides-desktop) !important;
  }

  /* Single Layout - Stack to 1 column */
  .asl-service-area-wrapper .service-area__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Hub Layout - Cities wrapper full width, map below */
  .asl-service-area-wrapper .service-area--hub .service-area__grid {
    grid-template-columns: 1fr !important;
    gap: 60px !important;
  }

  /* Keep 2 columns for cities on tablet */
  .asl-service-area-wrapper .service-area--hub .service-area__cities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Map full width */
  .asl-service-area-wrapper .service-area--hub .service-area__map {
    min-height: 450px !important;
  }

  .asl-service-area-wrapper .service-area__map {
    min-height: 450px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .asl-service-area-section {
    padding: var(--padding-mobile) var(--padding-sides-mobile) !important;
  }

  .asl-service-area-header {
    margin-bottom: 50px;
  }

  .asl-service-area-title {
    font-size: var(--font-h2-mobile) !important;
    margin-bottom: 20px !important;
  }

  .asl-service-area-description {
    font-size: var(--font-body-mobile) !important;
  }

  .asl-service-area-wrapper .service-area__heading {
    font-size: var(--font-h3-mobile) !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .asl-service-area-wrapper .service-area__list {
    text-align: center;
    gap: 8px;
  }

  .asl-service-area-wrapper .service-area__link {
    font-size: var(--font-body-mobile) !important;
    padding: 12px 0 12px 24px;
    justify-content: center;
  }

  .asl-service-area-wrapper .service-area__button {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
  }

  /* Single layout - 1 column */
  .asl-service-area-wrapper .service-area__grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Hub layout - Cities in 2 columns, map below */
  .asl-service-area-wrapper .service-area--hub .service-area__cities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    row-gap: 50px;
  }

  /* Map full width below */
  .asl-service-area-wrapper .service-area--hub .service-area__map {
    min-height: 400px !important;
  }

  .asl-service-area-wrapper .service-area__map {
    min-height: 400px;
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
  .asl-service-area-wrapper .service-area__cta {
    text-align: center;
  }

  .asl-service-area-wrapper .service-area__button {
    display: flex !important;
    width: 100%;
    padding: 14px 24px !important;
    font-size: 14px !important;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .asl-service-area-wrapper .service-area__map,
  .asl-service-area-wrapper .service-area--hub .service-area__map {
    min-height: 350px !important;
  }
}

/* ========================================
   ELEMENTOR EDITOR SAFETY
   ======================================== */
body.elementor-editor-active .asl-service-area-section * {
  opacity: 1;
  animation: none;
  transform: none;
}
