/* ==========================================================================
   ROYAL ELITE LIMO - LOCATIONS PAGE SPECIFIC STYLES
   Apple iOS Liquid Glass Design System overrides for interactive maps & hubs.
   ========================================================================== */

/* --- Interactive USA Map Section --- */
.map-section {
    padding: 60px 0;
    background: var(--primary-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 32px;
    align-items: center;
    margin-top: 16px;
}

.map-container {
    width: 100%;
    position: relative;
}

.usa-map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

.map-bg-path {
    fill: #151518;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1.5;
    transition: all 0.5s var(--ease-ios);
}

/* Map Markers */
.map-marker {
    cursor: pointer;
}

.map-marker .marker-dot {
    fill: var(--gold-accent);
    stroke: #000;
    stroke-width: 1;
    transition: all 0.3s var(--ease-ios);
}

.map-marker .marker-pulse {
    fill: var(--gold-accent);
    opacity: 0;
    transform-origin: center;
    pointer-events: none;
}

/* Pulsing effect for interactive map pins */
@keyframes markerPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.map-marker.active .marker-pulse,
.map-marker:hover .marker-pulse {
    animation: markerPulse 1.8s infinite ease-out;
}

.map-marker.active .marker-dot,
.map-marker:hover .marker-dot {
    fill: #FFF;
    stroke: var(--gold-accent);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px var(--gold-accent));
}

/* Map Info Panel */
.map-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: inset 0 20px 40px rgba(255, 255, 255, 0.01);
}

.map-info-panel h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.map-info-panel p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.map-specs-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-spec-item {
    font-size: 0.82rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-spec-item i, .map-spec-item svg {
    width: 14px;
    height: 14px;
    color: var(--gold-accent);
}

/* --- Locations Cards Grid --- */
.locations-grid-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.location-card {
    position: relative;
    padding: 36px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--ease-ios);
}

.location-card:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.card-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.location-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.loc-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gold-accent);
    background: rgba(212, 175, 55, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    margin-bottom: 16px;
}

.location-name {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.location-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.location-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.location-bullets span {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-bullets span i, .location-bullets span svg {
    width: 12px;
    height: 12px;
    color: var(--gold-accent);
}

.location-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.location-actions .btn,
.location-actions .btn-gold-sm {
    flex-grow: 1;
    text-align: center;
    justify-content: center;
}

/* --- Section Dividers --- */
.why-split-section {
    width: 100%;
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.why-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.why-split-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
}

.why-split-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s var(--ease-ios);
}

.why-split-visual:hover .why-split-img {
    transform: scale(1.03);
}

.why-split-info {
    display: flex;
    flex-direction: column;
}

.why-split-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.why-split-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.why-feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.why-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.why-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
    margin-top: 2px;
}

.why-bullet-icon i, .why-bullet-icon svg {
    width: 15px;
    height: 15px;
    color: var(--gold-accent);
}

.why-bullet-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.why-bullet-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.why-fleet-section {
    padding: 60px 0;
    background: var(--primary-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.why-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 0;
}

.why-bento-tile {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.4s var(--ease-ios);
    cursor: pointer;
}

.why-bento-tile:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
}

.why-bento-span-2 {
    grid-column: span 2;
}

.why-bento-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.why-bento-tile-icon i, .why-bento-tile-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold-accent);
}

.why-bento-tile-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-bento-tile-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Scroll margin setup --- */
section {
    scroll-margin-top: 120px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Laptops */
@media (max-width: 1199px) {
    .map-wrapper {
        gap: 30px;
        padding: 30px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-split-grid {
        gap: 40px;
    }
    
    .why-split-title {
        font-size: 1.8rem;
    }
    
    .why-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .map-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
    
    .why-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0;
    }
    
    .why-split-img {
        height: 380px;
    }
    
    .why-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .why-bento-span-2 {
        grid-column: span 1;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .map-wrapper {
        padding: 16px;
    }
    
    .map-info-panel {
        padding: 20px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        padding: 24px;
        min-height: 280px;
    }
    
    .why-split-title {
        font-size: 1.5rem;
    }
    
    .why-split-desc {
        font-size: 0.9rem;
    }
}

/* Force testimonials section to be var(--secondary-bg) to alternate */
.testimonials-section {
    background: var(--secondary-bg) !important;
}
