/**
 * GDS Travel Booking - Advanced Theme Integration Styles
 * Version: 1.0.0
 * Compatible with: Avada, Divi, Astra, OceanWP, and custom travel themes
 */

/* ========================================
   GLOBAL THEME INTEGRATION
   ======================================== */

.gds-template-flight-search,
.gds-template-flight-results,
.gds-template-reviews {
    width: 100%;
    max-width: 100%;
}

/* Container styles */
.gds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

.gds-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.gds-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.gds-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.gds-hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.gds-hero-section p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SEARCH SECTION ENHANCEMENTS
   ======================================== */

.gds-search-section {
    background: white;
    padding: 80px 20px;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}

.gds-search-section .gds-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.1);
    padding: 40px;
}

/* Enhanced form styling */
#gds-search-form {
    background: transparent;
}

#gds-search-form .gds-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

#gds-search-form .gds-form-group {
    position: relative;
}

#gds-search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#gds-search-form input,
#gds-search-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

#gds-search-form input:focus,
#gds-search-form select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#gds-search-form button[type="submit"] {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gds-search-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.gds-features-section {
    background: #f8f9fa;
    padding: 100px 20px;
}

.gds-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.gds-feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: default;
}

.gds-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.gds-feature-icon {
    font-size: 64px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.gds-feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.gds-feature-card p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* ========================================
   POPULAR ROUTES SECTION
   ======================================== */

.gds-popular-routes {
    padding: 100px 20px;
    background: white;
}

.gds-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gds-route-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 35px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.gds-route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gds-route-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.gds-route-card:hover::before {
    opacity: 1;
}

.gds-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.gds-route-header span:first-child,
.gds-route-header span:last-child {
    font-size: 36px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.gds-route-names {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.gds-route-price {
    font-size: 32px;
    font-weight: 800;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

/* ========================================
   REVIEWS SECTION ENHANCEMENTS
   ======================================== */

.gds-reviews-section {
    background: #f8f9fa;
    padding: 100px 20px;
}

.gds-reviews-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    color: #2c3e50;
    font-weight: 700;
}

.gds-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gds-review-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gds-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* ========================================
   AVADA THEME COMPATIBILITY
   ======================================== */

.fusion-builder-column .gds-search-container,
.fusion-fullwidth .gds-search-container {
    max-width: 100%;
}

.fusion-button.gds-search-button {
    font-family: inherit !important;
}

/* ========================================
   DIVI THEME COMPATIBILITY
   ======================================== */

.et_pb_section .gds-search-section {
    margin-top: 0;
}

.et_pb_module .gds-feature-card {
    height: 100%;
}

/* ========================================
   ASTRA THEME COMPATIBILITY
   ======================================== */

.ast-container .gds-container {
    max-width: var(--ast-container-default-xlg-width, 1200px);
}

.ast-separate-container .gds-search-section {
    background: transparent;
}

/* ========================================
   OCEANWP THEME COMPATIBILITY
   ======================================== */

#main.oceanwp-theme .gds-template-flight-search {
    width: 100%;
}

.oceanwp-theme .gds-search-button {
    font-family: inherit;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .gds-hero-section h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .gds-hero-section {
        padding: 80px 20px;
    }
    
    .gds-hero-section h1 {
        font-size: 42px;
    }
    
    .gds-hero-section p {
        font-size: 18px;
    }
    
    .gds-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .gds-routes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .gds-hero-section h1 {
        font-size: 36px;
    }
    
    #gds-search-form .gds-form-row {
        grid-template-columns: 1fr;
    }
    
    .gds-features-grid {
        grid-template-columns: 1fr;
    }
    
    .gds-routes-grid {
        grid-template-columns: 1fr;
    }
    
    .gds-reviews-list {
        grid-template-columns: 1fr;
    }
    
    .gds-search-section {
        margin-top: -30px;
        padding: 40px 15px;
    }
    
    .gds-search-section .gds-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .gds-hero-section h1 {
        font-size: 28px;
    }
    
    .gds-hero-section p {
        font-size: 16px;
    }
    
    .gds-feature-card,
    .gds-route-card {
        padding: 30px 25px;
    }
    
    .gds-route-header span:first-child,
    .gds-route-header span:last-child {
        font-size: 28px;
    }
    
    .gds-route-price {
        font-size: 24px;
    }
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir="rtl"] .gds-route-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .gds-route-price {
    text-align: left;
}

[dir="rtl"] #gds-search-form button[type="submit"] {
    letter-spacing: 0;
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .gds-search-section .gds-container,
    .gds-feature-card,
    .gds-review-item {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .gds-feature-card h3,
    .gds-feature-card p {
        color: #ecf0f1;
    }
    
    #gds-search-form input,
    #gds-search-form select {
        background: #34495e;
        border-color: #4a5f7f;
        color: white;
    }
    
    #gds-search-form label {
        color: #ecf0f1;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .gds-hero-section,
    .gds-features-section,
    .gds-popular-routes {
        display: none;
    }
    
    .gds-search-section {
        margin-top: 0;
    }
}