/* Custom Map Styling for Wedding Locations
-------------------------------------------------------------- */

/* Map Container */
.map-container {
    background-color: #f8fbff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
}

/* Map Section Header */
.map-section-header {
    background-color: #e6f2ff;
    padding: 15px 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.map-section-header h3 {
    color: #3060a0;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-align: center;
}

/* Interactive Map Area */
.map-area {
    height: 450px;
    width: 100%;
    border-radius: 0;
}

/* Location Cards */
.location-cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.location-cards::-webkit-scrollbar {
    display: none;
}

.location-card {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 150px;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.location-card:hover {
    background-color: #f5f9ff;
    transform: translateY(-3px);
}

.location-card.active {
    background-color: #e6f2ff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.location-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f9ff;
    border-radius: 50%;
    padding: 10px;
    position: relative;
}

/* Font Awesome Icon Styling */
.location-icon i {
    font-size: 24px;
    color: #4285F4; /* Default color */
}

/* Color the icons to match the map pins */
.location-card[data-location="airport"] .location-icon i {
    color: #4285F4; /* Blue */
}

.location-card[data-location="restaurant"] .location-icon i {
    color: #EA4335; /* Red */
}

.location-card[data-location="beach"] .location-icon i {
    color: #FBBC05; /* Yellow */
}

.location-card[data-location="home"] .location-icon i {
    color: #34A853; /* Green */
}

.location-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-card p {
    margin: 0;
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Get Directions Button */
.get-directions-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4285f4;
    color: #fff;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.get-directions-btn:hover {
    background-color: #3367d6;
}

/* Mapbox Custom Styles */
.mapboxgl-popup {
    max-width: 300px;
    font-family: 'Inter', sans-serif;
}

.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 8px;
}

.mapboxgl-popup-content h4 {
    margin: 0 0 8px;
    color: #3060a0;
    font-size: 16px;
}

.mapboxgl-popup-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.mapboxgl-popup-close-button {
    font-size: 20px;
    padding: 5px 10px;
}

/* Custom Route Line Styles */
.route-line {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-area {
        height: 350px;
    }
    
    .location-cards {
        padding: 10px;
    }
    
    .location-card {
        min-width: 100px;
        padding: 8px;
    }
    
    .location-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .location-icon i {
        font-size: 20px;
    }
    
    .location-card h4 {
        font-size: 12px;
    }
    
    .location-card p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .map-area {
        height: 300px;
    }
    
    .location-cards {
        padding: 8px;
    }
    
    .location-card {
        min-width: 90px;
        padding: 6px;
    }
    
    .location-icon {
        width: 35px;
        height: 35px;
        padding: 6px;
    }
    
    .location-icon i {
        font-size: 18px;
    }
} 