/* Multi-Location Popup Styles */
.multi-location-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.5s ease-out;
    border: 2px solid rgba(231, 76, 60, 0.1);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 24px;
    border-bottom: 1px solid #f8f9fa;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.popup-header h3 i {
    font-size: 1.4rem;
    color: white;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.popup-body {
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.selected-locations-preview {
    margin-bottom: 32px;
}

.selected-locations-preview h4 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-locations-preview h4::before {
    content: "📍";
    font-size: 1.2rem;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border-left: 5px solid #e74c3c;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.12);
    border: 2px solid rgba(231, 76, 60, 0.15);
}

.location-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
}

.location-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.location-info {
    flex: 1;
}

.location-info strong {
    display: block;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.location-info small {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
}

.booking-options {
    margin-bottom: 32px;
}

.booking-options h4 {
    margin: 0 0 24px;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-options h4::before {
    content: "🎯";
    font-size: 1.2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 2px solid #e74c3c;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.option-btn.primary-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.option-btn.primary-btn i {
    color: white;
}

.option-btn.primary-btn span {
    color: white;
}

.option-btn.secondary-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #e74c3c;
}

.option-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.08), transparent);
    transition: left 0.6s ease;
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.25);
}

.option-btn.primary-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border-color: #c0392b;
}

.option-btn.primary-btn:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.option-btn.secondary-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #c0392b;
}

.option-btn i {
    font-size: 1.6rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.option-btn.secondary-btn i {
    color: #e74c3c;
}

.option-btn-content {
    flex: 1;
}

.option-btn span {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.option-btn.primary-btn span {
    color: white;
}

.option-btn small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.trip-info {
    display: flex;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 1;
}

.info-item i {
    font-size: 1.4rem;
    color: #e74c3c;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.info-item span {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .multi-location-popup {
        padding: 12px;
    }

    .popup-content {
        width: 100%;
        margin: 0;
        max-height: 95vh;
        border-radius: 20px;
    }

    .popup-header {
        padding: 24px;
        border-radius: 20px 20px 0 0;
    }

    .popup-header h3 {
        font-size: 1.3rem;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .popup-body {
        padding: 24px;
    }

    .selected-locations-preview h4,
    .booking-options h4 {
        font-size: 1.1rem;
    }

    .location-item {
        padding: 16px;
        gap: 14px;
    }

    .location-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .option-btn {
        padding: 18px;
        gap: 14px;
    }

    .option-btn i {
        font-size: 1.4rem;
    }

    .trip-info {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .info-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        text-align: left;
    }

    .info-item i {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .popup-header {
        padding: 20px;
    }

    .popup-body {
        padding: 20px;
    }

    .option-btn {
        padding: 16px;
    }

    .location-item {
        padding: 14px;
    }

    .popup-header h3 {
        font-size: 1.2rem;
    }
}
