/* ===================================
   Service Areas Across Sydney Section
   Professional Responsive Design
   Matches existing theme colors and styling
   =================================== */

/* Section Container */
.service-areas-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.service-areas-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 74, 148, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-areas-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-areas-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
.service-areas-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-areas-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #38b6ff;
    margin-bottom: 15px;
    font-family: var(--cleanin-font-two);
}

.service-areas-subtitle {
    font-size: 18px;
    color: #606060;
    font-family: var(--cleanin-font);
}

/* Main Content Grid */
.service-areas-content {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Left Sidebar Navigation */
.service-areas-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.service-areas-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-areas-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.service-areas-nav-item:last-child {
    border-bottom: none;
}

.service-areas-nav-link {
    display: block;
    padding: 16px 25px;
    color: #606060;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-areas-nav-link:hover {
    color: #004a94;
    background: rgba(0, 74, 148, 0.05);
    padding-left: 30px;
    cursor: pointer;
}

.service-areas-nav-link.active {
    color: #ffffff;
    background: #004a94;
    font-weight: 600;
}

.service-areas-nav-link.active::before {
    content: '›';
    position: absolute;
    left: 15px;
    font-size: 20px;
    font-weight: 700;
}

/* Map Container */
.service-areas-map-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    position: relative;
}

.service-areas-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.service-areas-map-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

/* Multiple Map Images - Stacked */
.service-areas-map-wrapper .map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.service-areas-map-wrapper .map-image:first-child {
    position: relative;
}

.service-areas-map-wrapper .map-image.active {
    opacity: 1;
    z-index: 2;
}

/* Region Badge on Map */
.service-areas-map-badge {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #38b6ff;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.4);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Details Panel */
.service-areas-details {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 35px;
}

.service-areas-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #38b6ff;
    margin-bottom: 20px;
    font-family: var(--cleanin-font-two);
    transition: opacity 0.3s ease;
}

.service-areas-details-description {
    font-size: 16px;
    line-height: 1.8;
    color: #606060;
    margin-bottom: 25px;
    transition: opacity 0.3s ease;
}

.service-areas-details-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #004a94;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* Suburb Badges */
.service-areas-suburbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.service-areas-suburb-badge {
    display: inline-block;
    padding: 10px 18px;
    background: #f1f5f9;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    color: #004a94;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: default;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.service-areas-suburb-badge:nth-child(1) { animation-delay: 0.05s; }
.service-areas-suburb-badge:nth-child(2) { animation-delay: 0.1s; }
.service-areas-suburb-badge:nth-child(3) { animation-delay: 0.15s; }
.service-areas-suburb-badge:nth-child(4) { animation-delay: 0.2s; }
.service-areas-suburb-badge:nth-child(5) { animation-delay: 0.25s; }
.service-areas-suburb-badge:nth-child(6) { animation-delay: 0.3s; }
.service-areas-suburb-badge:nth-child(7) { animation-delay: 0.35s; }
.service-areas-suburb-badge:nth-child(8) { animation-delay: 0.4s; }
.service-areas-suburb-badge:nth-child(9) { animation-delay: 0.45s; }
.service-areas-suburb-badge:nth-child(10) { animation-delay: 0.5s; }
.service-areas-suburb-badge:nth-child(11) { animation-delay: 0.55s; }
.service-areas-suburb-badge:nth-child(12) { animation-delay: 0.6s; }
.service-areas-suburb-badge:nth-child(n+13) { animation-delay: 0.65s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-areas-suburb-badge:hover {
    background: #004a94;
    color: #ffffff;
    border-color: #004a94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 148, 0.3);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets and Small Desktops (1024px) */
@media (max-width: 1024px) {
    .service-areas-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .service-areas-map-container {
        grid-column: 1 / 3;
        order: 1;
    }

    .service-areas-sidebar {
        order: 2;
    }

    .service-areas-details {
        order: 3;
    }

    .service-areas-main-title {
        font-size: 36px;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .service-areas-section {
        padding: 60px 0;
    }

    .service-areas-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-areas-sidebar {
        position: static;
        order: 1;
    }

    .service-areas-map-container {
        order: 2;
        grid-column: auto;
        min-height: 400px;
        padding: 20px;
    }

    .service-areas-details {
        order: 3;
        padding: 25px;
    }

    .service-areas-header {
        margin-bottom: 40px;
    }

    .service-areas-main-title {
        font-size: 32px;
    }

    .service-areas-subtitle {
        font-size: 16px;
    }

    .service-areas-details-title {
        font-size: 24px;
    }

    .service-areas-nav-link {
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* Mobile Devices (576px) */
@media (max-width: 576px) {
    .service-areas-section {
        padding: 50px 0;
    }

    .service-areas-container {
        padding: 0 15px;
    }

    .service-areas-header {
        margin-bottom: 30px;
    }

    .service-areas-main-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .service-areas-subtitle {
        font-size: 15px;
    }

    .service-areas-sidebar {
        padding: 15px 0;
    }

    .service-areas-nav-link {
        padding: 12px 18px;
        font-size: 14px;
    }

    .service-areas-nav-link:hover {
        padding-left: 23px;
    }

    .service-areas-map-container {
        padding: 15px;
        min-height: 320px;
    }

    .service-areas-map-badge {
        padding: 10px 20px;
        font-size: 12px;
    }

    .service-areas-details {
        padding: 20px;
    }

    .service-areas-details-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .service-areas-details-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .service-areas-details-subtitle {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .service-areas-suburbs {
        gap: 8px;
    }

    .service-areas-suburb-badge {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (400px) */
@media (max-width: 400px) {
    .service-areas-main-title {
        font-size: 24px;
    }

    .service-areas-subtitle {
        font-size: 14px;
    }

    .service-areas-nav-link {
        font-size: 13px;
    }

    .service-areas-details-title {
        font-size: 20px;
    }

    .service-areas-details-description {
        font-size: 14px;
    }

    .service-areas-suburb-badge {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .service-areas-section::before,
    .service-areas-section::after {
        display: none;
    }

    .service-areas-sidebar {
        box-shadow: none;
        border: 1px solid #e5e5e5;
    }

    .service-areas-map-container,
    .service-areas-details {
        box-shadow: none;
        border: 1px solid #e5e5e5;
    }
}
