/* Modern Locations Page Styling */

/* Force Poppins Font - BUT NOT on icons */
.locations-hero,
.locations-hero h1,
.locations-hero h2,
.locations-hero h3,
.locations-hero h4,
.locations-hero h5,
.locations-hero h6,
.locations-hero p,
.locations-hero span:not([class*="fa"]):not([class*="rt-icon"]) {
    font-family: 'Poppins', sans-serif !important;
}

/* Ensure icons keep their proper font families */
[class^="fa-"],
[class*=" fa-"],
.fa {
    font-family: 'FontAwesome' !important;
}

[class^="rt-icon"],
[class*=" rt-icon"] {
    font-family: 'rt-icons-2' !important;
}

.locations-row-equal {
    display: flex;
    flex-wrap: wrap;
}

.locations-row-equal > [class*='col-'] {
    display: flex;
}

/* Hero Section */
.locations-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.locations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/truck.png') no-repeat center right;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
}

.locations-hero .container {
    position: relative;
    z-index: 1;
}

.locations-hero-badge {
    display: inline-block;
    background: rgba(255, 195, 38, 0.2);
    color: #ffc326;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.locations-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.locations-hero h1 .highlight {
    color: #ffc326;
}

.locations-hero p.lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ddd;
    max-width: 700px;
}

.locations-hero .breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.locations-hero .breadcrumb li a {
    color: #ffc326;
}

.locations-hero .breadcrumb li.active {
    color: #ffffff;
}

/* Location Cards */
.location-card-wrapper {
    display: flex;
    margin-bottom: 30px;
}

.location-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.location-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.location-card:hover .location-card-image img {
    transform: scale(1.1);
}

.location-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc326;
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255,195,38,0.4);
}

.location-card-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.location-card-body h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    flex-shrink: 0;
}

.location-card-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffc326;
    border-radius: 3px;
}

.location-info {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.location-info-item:last-child {
    border-bottom: none;
}

.location-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc326 0%, #ffb800 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.location-info-icon i {
    font-size: 18px;
    color: #1a1a1a;
}

.location-info-content {
    flex: 1;
}

.location-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    margin-bottom: 3px;
}

.location-info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.5;
}

.location-info-value a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-info-value a:hover {
    color: #ffc326;
}

.location-description {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.location-actions {
    display: block;
    flex-shrink: 0;
}

.location-actions .theme_button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.location-actions .theme_button.color1 {
    background: #ffc326;
    border-color: #ffc326;
    color: #1a1a1a;
}

.location-actions .theme_button.color1:hover {
    background: #ffb800;
    border-color: #ffb800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,195,38,0.4);
}

.location-actions .theme_button.inverse {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.location-actions .theme_button.inverse:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Coverage Map Section */
.coverage-map-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.coverage-map-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.coverage-map-section .lead {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.map-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    height: 500px;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: #1a1a1a;
    padding: 60px 0;
    margin-top: 80px;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.stat-box::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.1);
}

.stat-box:last-child::after {
    display: none;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffc326;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Area Section */
.service-area-section {
    padding: 80px 0;
}

.service-area-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-area-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
}

.service-area-item:hover {
    border-color: #ffc326;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-area-item i {
    font-size: 32px;
    color: #ffc326;
    margin-bottom: 15px;
}

.service-area-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .locations-hero h1 {
        font-size: 36px;
    }
    
    .locations-hero .lead {
        font-size: 16px;
    }
    
    .location-card-body h3 {
        font-size: 24px;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .location-actions .theme_button {
        width: 100%;
    }
    
    .stat-box::after {
        display: none;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .coverage-map-section h2 {
        font-size: 32px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card {
    animation: fadeInUp 0.6s ease forwards;
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }
.location-card:nth-child(4) { animation-delay: 0.4s; }
.location-card:nth-child(5) { animation-delay: 0.5s; }
.location-card:nth-child(6) { animation-delay: 0.6s; }

/* Coverage Map Section */
.coverage-map-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.coverage-map-section h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.coverage-map-section .lead {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
}

#coverage-map {
    z-index: 1;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Poppins', sans-serif;
}

.leaflet-popup-tip {
    background: white;
}

/* Coverage Legend Styling */
.coverage-legend h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.coverage-legend h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Custom Marker Animation */
@keyframes markerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.custom-marker {
    animation: markerBounce 2s ease-in-out infinite;
}

.custom-marker:hover {
    animation: none;
    transform: scale(1.2);
}

/* Responsive Map */
@media (max-width: 991px) {
    .locations-hero h1 {
        font-size: 38px;
    }
    
    .locations-hero p.lead {
        font-size: 16px;
    }
    
    .locations-hero {
        padding: 80px 0 60px;
    }
    
    .coverage-legend {
        margin-top: 30px;
    }
    
    #coverage-map {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .locations-hero h1 {
        font-size: 32px;
    }
    
    .locations-hero p.lead {
        font-size: 15px;
    }
    
    .locations-hero {
        padding: 60px 0 40px;
    }
    
    .locations-hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .coverage-map-section h2 {
        font-size: 32px;
    }
    
    .coverage-map-section .lead {
        font-size: 16px;
    }
    
    #coverage-map {
        height: 350px !important;
        margin-bottom: 20px;
    }
}
