/* ============================================================================
   Locations Section - Depot Information with Maps (Above Footer)
   ========================================================================== */

   .locations-section {
    background: var(--locations-bg, #2c4f6b);
    color: var(--locations-text, #ffffff);
    position: relative;
    overflow: hidden;
    padding: var(--locations-spacing-top, 60px) 0 var(--locations-spacing-bottom, 80px);
    transition: all 0.3s ease;
}

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

.locations-section_container:after{
    content:"";
    display:block;
    width:100%; height:1px; background:#00AEEF; position:absolute; bottom:-64px; left:64px;
    max-width:calc(100% - 128px);
}

.locations-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--locations-column-gap, 60px);
    max-width: calc(100% - 128px);
    margin: 0 auto;
}

/* Logo Column */
/* .locations-logo-column {
    position: sticky;
    top: 2rem;
} */

.locations-logo-wrapper {
    text-align: center;
    padding: var(--space-base, 16px);
    width: 540px;
}

.locations-logo {
    max-width: 100%;
    height: auto;
    width: auto;
    margin-bottom: var(--space-base, 16px);
    filter: brightness(0) invert(1); /* Make logo white */
}

.locations-site-name {
    font-family: var(--h1-h2-font-family, 'Roboto Slab', serif);
    font-size: var(--h3-size, 28px);
    font-weight: var(--heading-font-weight, 600);
    color: var(--locations-heading-color, #ffffff);
    margin-bottom: var(--space-base, 16px);
    line-height: var(--heading-line-height, 1.2);
}

.locations-tagline {
    font-family: var(--h5-h6-font-family, "dm-sans", sans-serif);
    font-size: var(--h6-size, 16px);
    font-weight: var(--heading-font-weight, 600);
    color: var(--locations-accent, #06b3ea);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: var(--heading-line-height, 1.2);
}

/* Locations Grid */
.locations-grid-column {
    width: 100%;
}

.locations-grid {
    display: flex;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: var(--locations-grid-gap, 40px);
    width: 100%;
    justify-content: space-between;
}

/* Slider Container Styles */
.locations-grid.slider-mode {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.locations-grid.slider-mode::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.locations-grid.slider-mode .location-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.location-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual Location Item */
/* .location-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius, 12px);
    padding: var(--space-base, 16px) * 1.5;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
} */

/* .location-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--locations-accent, #06b3ea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
} */

/* Location Header */
/* .location-header {
    margin-bottom: var(--space-base, 16px);
} */

.location-title {
    font-family: var(--h3-h4-font-family, "dm-sans", sans-serif);
    font-size: 22px;
    font-weight: 400!important;
    color: var(--locations-accent, #06b3ea);
    margin: unset!important;
    line-height: var(--heading-line-height, 1.2);
    text-align: center;
}

/* Location Address */
.location-address {
    margin-bottom: calc(var(--space-base, 16px) * 1.5);
    flex-grow: 1;
}

.address-line {
    font-family: var(--body-font-family, "dm-sans", sans-serif);
    font-size: var(--font-size-base, 16px);
    font-weight: var(--body-font-weight, 400);
    color: var(--locations-text, #ffffff);
    margin: 0 0 calc(var(--space-base, 16px) * 0.5) 0;
    line-height: var(--body-line-height, 1.6);
    opacity: 0.9;
    text-align: center;
}

.address-line:last-child {
    margin-bottom: 0;
}

/* Google Map */
.location-map {
    width: 100%;
    aspect-ratio: 1/1.5;
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.google-map-embed {
    width: 100%;
    height: 100%;
}

.google-map-embed iframe {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    height: 100%;
}

/* Map Placeholder */
.google-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 179, 234, 0.1) 0%, rgba(6, 179, 234, 0.05) 100%);
    border-radius: calc(var(--border-radius, 12px) * 0.75);
}

.map-placeholder-content {
    text-align: center;
    color: var(--locations-accent, #06b3ea);
    opacity: 0.7;
}

.map-placeholder-content svg {
    margin-bottom: calc(var(--space-base, 16px) * 0.5);
}

.map-placeholder-text {
    font-family: var(--h5-h6-font-family, "dm-sans", sans-serif);
    font-size: var(--h6-size, 16px)!important;
    font-weight: var(--heading-font-weight, 600)!important;
    margin: 0 0 calc(var(--space-base, 16px) * 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: var(--heading-line-height, 1.2)!important;
}

.map-placeholder-subtext {
    font-family: var(--body-font-family, "dm-sans", sans-serif);
    font-size: calc(var(--space-base, 16px) * 0.875)!important;
    font-weight: var(--body-font-weight, 400);
    margin: 0;
    opacity: 0.8;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: var(--body-line-height, 1.6);
}

/* ============================================================================
   Locations Slider - Mobile Only
   ========================================================================== */

/* Slider Navigation */
.locations-slider-nav {
    display: none; /* Hidden by default, shown only on mobile */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* margin-top: 2rem; */
    padding: 1rem 0;
}

.slider-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--locations-text, #ffffff);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--locations-accent, #06b3ea);
    transform: scale(1.1);
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--locations-accent, #06b3ea);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1425px) {
    .locations-content{ max-width:100%}
    .location-map{ aspect-ratio:1/1.75; }
}
@media (max-width: 1200px) {
    .locations-content {
        grid-template-columns: 250px 1fr;
        gap: calc(var(--locations-column-gap, 60px) * 0.75);
    }
    
    .locations-grid {
        gap: calc(var(--locations-grid-gap, 40px) * 0.75);
    }
}

@media (max-width: 992px) {
    .locations-content {
        grid-template-columns: 1fr;
        gap: unset !important;
    }
    
    .locations-logo-column {
        position: static;
        text-align: center;
        margin-bottom: unset;
    }

    .locations-logo-wrapper {
        width: 100%;
    }
    
    .locations-logo {
        max-width: 80%;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--space-base, 16px) * 1.5);
    }
    
    /* Hide slider navigation on tablet - only show on mobile */
    .locations-slider-nav {
        display: none;
    }
}

@media (max-width: 992px) {
    .locations-section {
        padding: calc(var(--locations-spacing-top, 60px) * 0.75) 0 calc(var(--locations-spacing-bottom, 80px) * 0.75);
    }
    
    /* Enable slider on mobile */
    .locations-grid {
        display: flex;
        overflow: hidden;
        scroll-behavior: smooth;
        gap: 0;
        scroll-snap-type: x mandatory;
    }
    
    .location-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: unset;
    }
    
    .location-map {
        height: 300px;
    }
    
    /* Show slider navigation on mobile */
    .locations-slider-nav {
        display: flex;
    }

    .locations-grid-column {
        display: flex;
        flex-direction: column-reverse;
    }

    .locations-content {
        gap: unset !important;
    }

    .locations-logo {
        margin: unset;
    }
}

@media (max-width: 480px) {
    .locations-section {
        padding: calc(var(--locations-spacing-top, 60px) * 0.6) 0 calc(var(--locations-spacing-bottom, 80px) * 0.6);
    }
    
    /* .locations-logo {
        max-width: calc(var(--locations-logo-max-width, 200px) * 0.6);
    } */
    
    .locations-tagline {
        font-size: calc(var(--h6-size, 16px) * 0.9);
    }
    
    .location-title {
        font-size: 18px;
    }
    
    .address-line {
        font-size: 14px !important;
    }
    
    .map-placeholder-subtext {
        font-size: calc(var(--body-font-size, 16px) * 0.75);
    }
    
    .location-map {
        height: 200px;
    }

    .locations-logo {
        max-width: 100%;
    }
}

/* Accessibility Features */
@media (prefers-contrast: high) {
    .location-item {
        border-width: 2px;
    }
    
    .location-item:hover {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .location-item,
    .locations-section {
        transition: none;
    }
    
    .location-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .locations-section {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .location-item {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        break-inside: avoid;
    }
    
    .location-map {
        display: none;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
