/**
 * Amadeus Travel Booking - Complete CSS Styles
 */

/* ============================================
   SEARCH FORMS STYLES
   ============================================ */

.amadeus-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.amadeus-search-container.amadeus-flight-search {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.amadeus-search-container.amadeus-hotel-search {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.amadeus-search-container.amadeus-car-search {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.search-title {
    color: white;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-title i {
    margin-right: 10px;
    font-size: 32px;
}

.amadeus-search-form {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.city-search-container {
    position: relative;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
}

.city-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.city-option:hover {
    background: #f5f5f5;
}

.city-option strong {
    color: #333;
    font-size: 14px;
}

.city-option small {
    color: #666;
    font-size: 12px;
}

/* ============================================
   SEARCH BUTTON
   ============================================ */

.amadeus-search-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.amadeus-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.amadeus-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    margin-left: 10px;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.amadeus-results {
    margin-top: 30px;
}

.results-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-header h4 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.amadeus-result-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.amadeus-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.amadeus-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.amadeus-result-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.amadeus-result-price {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.hotel-rating {
    color: #ffc107;
    font-size: 18px;
}

.flight-duration,
.car-type {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
}

/* ============================================
   FLIGHT SEGMENTS
   ============================================ */

.flight-segment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.flight-arrow {
    color: #667eea;
    font-size: 24px;
}

.flight-route small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 3px;
}

.flight-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
}

/* ============================================
   HOTEL & CAR OFFERS
   ============================================ */

.hotel-offer,
.car-features {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.offer-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.offer-room {
    color: #666;
    font-size: 14px;
}

.car-features span {
    padding: 5px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

/* ============================================
   BOOKING BUTTON
   ============================================ */

.amadeus-book-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.amadeus-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}

/* ============================================
   BOOKING MODAL
   ============================================ */

.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.booking-modal-content {
    background: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.booking-modal h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
    padding-right: 30px;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    color: #28a745;
}

.booking-summary p {
    margin: 8px 0;
    color: #555;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.amadeus-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 18px;
}

.amadeus-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #dc3545;
}

.amadeus-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .amadeus-search-container {
        padding: 15px;
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .amadeus-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flight-route {
        flex-direction: column;
        gap: 10px;
    }
    
    .flight-arrow {
        transform: rotate(90deg);
    }
    
    .booking-modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}