/* Shared styles for service-area.html and city pages (Foley, Daphne, Fairhope) */
.service-area,
#service-area-city {
    overflow-x: hidden;
}

/* Reduced top spacing for service area page (no breadcrumbs) */
.service-area-page.service-page-body {
    padding-top: 2.5rem;
}
.service-area-page.service-page-grid {
    padding-top: 2rem;
}

/* Location pages: hero goes up to nav bar */
.service-area-location-page.service-page-body {
    padding-top: 0;
    padding-bottom: 0;
}
.service-area-location-page.service-page-grid {
    padding-top: 0;
}
/* Zero section bottom padding so it doesn't stack with body padding */
.service-area-location-page #service-area-city {
    padding-bottom: 0;
}
.service-area-page .service-area-banner {
    padding-top: 0;
}

/* Top row: Fairhope, Foley, Daphne (3 cards). Bottom row: Baldwin, Mobile (2 cards, same total width) */
.service-area-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}
.service-area-pic-card:nth-child(1),
.service-area-pic-card:nth-child(2),
.service-area-pic-card:nth-child(3) {
    grid-column: span 2;
}
.service-area-pic-card:nth-child(4),
.service-area-pic-card:nth-child(5) {
    grid-column: span 3;
}

.service-area-photos-section {
    position: relative;
}
.service-area-photos-bar {
    height: 12px;
    background: var(--accent-neon);
    width: 100%;
}

.service-area-pic-card {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.service-area-pic-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.85) 100%);
    transition: background 0.3s;
}
.service-area-pic-card:hover .service-area-pic-card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.92) 100%);
}
.service-area-pic-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}
.service-area-pic-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem 0;
    line-height: 1.2;
}
.service-area-pic-card-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    margin: 0;
}

.service-area-banner {
    background: #F5F8F3;
    padding: 0 1.5rem 0.5rem;
    text-align: center;
}
.service-area-banner h1 {
    font-size: 2.25rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--text-light);
}
.service-area-banner p { margin: 0; font-size: 1.05rem; color: var(--text-light); opacity: 0.9; }

.service-area-content {
    padding: 0.75rem 1.5rem 1.25rem;
}
/* Location pages: vertically center Book Your Service between map and footer.
   Zero bottom padding on content/body/section so the cta-wrap is the only gap
   between map and footer; flex + equal padding centers the button. */
.service-area-location-page .service-area-content {
    display: flex;
    flex-direction: column;
    min-height: 35vh;
    padding-bottom: 0;
}
.service-area-location-page .service-area-cta-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 3rem 0;
}
/* Location page hero: header + photo combined, extends to nav bar, full width */
.service-area-location-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 392px;
    overflow: hidden;
}
.service-area-location-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.service-area-location-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.service-area-location-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem 2rem;
}
.service-area-location-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.service-area-location-hero-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}
.service-area-location-hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--accent-neon);
    z-index: 2;
}

.service-area-hero-breadcrumbs {
    width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-top: -1px;
    padding: 0.5rem 2rem;
    box-sizing: border-box;
    font-size: 0.9rem;
}
.service-area-breadcrumb-block {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 2px;
}
.service-area-hero-breadcrumbs a {
    color: var(--accent);
}
.service-area-hero-breadcrumbs a:hover {
    color: var(--accent-neon);
}
.service-area-hero-breadcrumbs .breadcrumb-sep {
    color: var(--text-dim);
}
.service-area-hero-breadcrumbs [aria-current="page"] {
    color: var(--text-light);
}

.service-area-content .section-header {
    margin: 0 0 2rem;
}
.service-area-content .section-title {
    font-size: 2.25rem;
}

.service-area-mobile-section {
    padding: 0 0 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-neon);
}
.service-area-mobile-section .service-area-h3 {
    margin-top: 0;
}
.service-area-mobile-section .service-area-card-list {
    list-style: disc;
    list-style-position: inside;
    padding-left: 0;
    display: inline-block;
    text-align: center;
}
.service-area-mobile-section .service-area-disclaimer {
    text-align: center;
}

.service-area-coverage-map-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}
.service-area-map-wrapper {
    position: relative;
}
.service-area-map {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service-area-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.service-area-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}
.service-area-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
}
.service-area-card.service-area-coverage-card {
    background: none;
    border: none;
    border-radius: 0;
}
.service-area-card .service-area-h3 {
    margin-top: 0;
}
.service-area-cta-wrap {
    text-align: center;
    margin-top: 0.5rem;
}
.service-area-cta-wrap .service-area-cta {
    margin-top: 0;
}
.service-area-h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.75rem;
}
.service-area-body-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 1rem;
}
.service-area-card-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
    text-align: left;
}
.service-area-card-list li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
}
.service-area-card-list li::before {
    display: none;
}
.service-area-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0 !important;
}
.service-area-card .service-area-disclaimer {
    margin-top: 0.5rem !important;
}
.service-area-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-neon);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid var(--accent-neon);
    transition: all 0.3s ease;
}
.service-area-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .service-area-cards-grid {
        grid-template-columns: 1fr;
    }
    .service-area-pic-card:nth-child(1),
    .service-area-pic-card:nth-child(2),
    .service-area-pic-card:nth-child(3),
    .service-area-pic-card:nth-child(4),
    .service-area-pic-card:nth-child(5) {
        grid-column: 1 / -1;
    }
    .service-area-pic-card {
        height: 200px;
    }
    .service-area-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .service-area-coverage-map-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    /* Mobile: Header → Map → Text Content */
    .service-area-coverage-map-row .service-area-card.service-area-coverage-card {
        display: contents;
    }
    .service-area-coverage-map-row .service-area-h3 {
        order: 1;
    }
    .service-area-coverage-map-row .service-area-map-wrapper {
        order: 2;
    }
    .service-area-coverage-map-row .service-area-card-list {
        order: 3;
    }
    .service-area-coverage-map-row .service-area-card .service-area-disclaimer {
        order: 4;
    }
    .service-area-content {
        padding: 2rem 1rem 1.25rem;
        text-align: center;
    }
    .service-area-content .section-header,
    .service-area-content .section-subtitle,
    .service-area-h3,
    .service-area-card-list,
    .service-area-disclaimer,
    .service-area-mobile-section {
        text-align: center;
    }
    .service-area-coverage-map-row .service-area-h3,
    .service-area-coverage-map-row .service-area-card-list,
    .service-area-coverage-map-row .service-area-disclaimer {
        text-align: center;
    }
    .service-area-location-page .service-area-content {
        padding-bottom: 0;
    }
    .service-area-location-hero {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        height: 308px;
    }
    .service-area-location-hero-content h1 {
        font-size: 1.75rem;
    }
    .service-area-location-hero-content p {
        font-size: 0.95rem;
    }
    .service-area-hero-breadcrumbs {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}
