/* Skyhill Holidays Elite Search UI - Glassmorphism Brand Theme */
:root {
    --sh-orange: #f27025;
    --sh-red: #e30613;
    --sh-gradient: linear-gradient(135deg, #f27025 0%, #e30613 100%);
    --sh-orange-light: rgba(242, 112, 37, 0.15);
    --sh-border: rgba(255, 255, 255, 0.2);
    --sh-bg: rgba(15, 23, 42, 0.4);
    --sh-dropdown-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --sh-text-primary: #ffffff;
    --sh-text-muted: rgba(255, 255, 255, 0.6);
}

.rg-search-container {
    background: var(--sh-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 35px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--sh-border);
    margin-bottom: 30px;
    color: var(--sh-text-primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: visible !important;
    z-index: 100;
}

/* === AIRPORT SELECTOR === */
.sh-airport-selector {
    margin-bottom: 30px;
    position: relative;
    z-index: 101;
}

.sh-category-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sh-text-muted);
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-airport-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--sh-border);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sh-airport-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sh-orange);
    transform: translateY(-2px);
}

.sh-airport-icon {
    width: 44px;
    height: 44px;
    background: var(--sh-gradient); /* Skyhill Gradient */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(242, 112, 37, 0.2);
}

.sh-airport-info { flex: 1; }
.sh-airport-name { font-size: 16px; font-weight: 700; color: var(--sh-text-primary); display: block; }
.sh-airport-hint { font-size: 12px; color: var(--sh-text-muted); }

/* === VERTICAL TIMELINE === */
.rg-search-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    min-height: 140px;
    z-index: 102;
}

.rg-search-indicators {
    position: absolute;
    left: 0;
    top: 52px; /* Center of from-location */
    bottom: 40px; /* Center of to-location */
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.rg-indicator-dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    z-index: 2; 
    background: #ffffff;
    flex-shrink: 0;
}
.rg-indicator-dot.from { 
    border: 3px solid #ea580c; 
}
.rg-indicator-dot.to { 
    border: 3px solid #22c55e;
}

.rg-indicator-line { 
    flex: 1; 
    width: 2px; 
    background: linear-gradient(to bottom, #ea580c 50%, #22c55e 50%); 
    margin: 2px 0;
    position: relative;
}

.rg-search-fields {
    flex: 1;
    padding-left: 35px; /* Make room for absolute indicators */
}

.rg-swap-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #64748b;
    font-size: 13px;
    z-index: 3;
    transition: all 0.2s;
    outline: none;
}

.rg-swap-btn:hover {
    color: #ea580c;
    border-color: #ea580c;
    transform: translate(-50%, -50%) rotate(180deg);
}

/* === FIELDS === */
.rg-search-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rg-field-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sh-text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.rg-field-input {
    width: 100%;
    border: 1.5px solid var(--sh-border);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rg-field-input-wrap {
    position: relative;
    width: 100%;
}

.rg-field-input:focus {
    border-color: var(--sh-orange);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(242, 112, 37, 0.2);
}

.rg-field-input::placeholder {
    color: #ffffff;
    font-weight: 700;
    opacity: 0.9;
}

.rg-field-clear {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--sh-text-muted);
    cursor: pointer;
    font-size: 16px;
    display: none;
}

/* === DROPDOWN === */
.rg-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff; /* Premium white for readability */
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--sh-orange);
    padding: 8px;
    margin-top: 8px;
}

.rg-search-dropdown.active {
    display: block;
    animation: eliteSlideUp 0.3s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes eliteSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rg-search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.rg-search-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.rg-item-icon {
    width: 44px;
    height: 44px;
    background: var(--sh-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sh-orange);
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(242, 112, 37, 0.1);
}

.rg-item-title { font-size: 15px; font-weight: 700; color: #1e293b; display: block; }
.rg-item-subtitle { font-size: 12px; color: #64748b; display: block; margin-top: 1px; }

.sh-type-badge {
    margin-left: auto;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--sh-text-muted);
}

.rg-search-item:hover .sh-type-badge {
    background: var(--sh-orange);
    color: #fff;
}

/* === RS COMPONENTS (Step 1 Right Column) === */
.rs-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sh-border);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.rs-card:hover { border-color: var(--sh-orange); }

.rs-card-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sh-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--sh-border);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.rs-box:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }

.rs-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    outline: none;
}

.rs-input::placeholder {
    color: #ffffff;
    font-weight: 700;
    opacity: 0.9;
}


.rs-chevron { color: var(--sh-orange); font-size: 12px; }

/* Pax Popover Glassmorphism */
.rs-popover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e293b;
    backdrop-filter: blur(20px);
    border: 1px solid var(--sh-border);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin-top: 10px;
    min-width: 280px;
    z-index: 99999;
    display: none;
}

.rs-pax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rs-pax-item:last-child { border-bottom: none; }

.pax-name { display: block; font-size: 15px; font-weight: 700; color: #ffffff; }
.pax-desc { font-size: 12px; color: var(--sh-text-muted); }

.rs-counter-controls { display: flex; align-items: center; gap: 15px; }
.rs-pax-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--sh-border);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-pax-btn:hover { background: var(--sh-orange); border-color: var(--sh-orange); }
#adult-pax-count, #child-pax-count, #infant-pax-count, #luggage-count {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    min-width: 20px;
    text-align: center;
}

.rs-popover-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.rs-done-btn {
    width: 100%;
    padding: 12px;
    background: var(--sh-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.rs-done-btn:hover { transform: translateY(-2px); }

/* === NEW 8:4 LAYOUT === */
.search-main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.search-column-left {
    flex: 0 0 calc(66.666% - 15px);
    max-width: calc(66.666% - 15px);
}

.search-column-right {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
}

@media (max-width: 991px) {
    .search-column-left, .search-column-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
