/* Modern Airport Search Interface - International Airport Style */
:root {
    --acv-primary: #1e3a8a;      /* ACV Blue */
    --acv-secondary: #3b82f6;    /* ACV Light Blue */
    --acv-accent: #1d4ed8;       /* ACV Dark Blue */
    --acv-gray: #6b7280;         /* ACV Gray */
    --acv-light-gray: #f3f4f6;   /* ACV Light Gray */
    --acv-white: #ffffff;
    --acv-shadow: rgba(30, 58, 138, 0.1);
    --acv-shadow-hover: rgba(30, 58, 138, 0.2);
}

/* Modern Search Interface - Airport Style */
.search-interface-modern {
    background: linear-gradient(135deg, var(--acv-light-gray) 0%, #e5e7eb 100%);
    border-radius: 24px;
    padding: 32px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.search-interface-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(30, 58, 138, 0.02) 100%);
    pointer-events: none;
    border-radius: 24px;
}


/* Search Header */
.search-header-modern {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.search-title-modern {
    color: var(--acv-primary);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
    position: relative;
}

.search-title-modern::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--acv-primary) 0%, var(--acv-secondary) 100%);
    border-radius: 2px;
}

.search-subtitle-modern {
    color: var(--acv-gray);
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.6;
}

/* Filter Row */
.filter-row-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Responsive cho tablet và desktop nhỏ */
@media (max-width: 1199px) {
    .filter-row-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .acv-select__btn {
        min-width: 270px;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .acv-select__menu {
        min-width: 270px;
    }
}

/* Responsive cho tablet nhỏ - Layout 3 hàng */
@media (max-width: 992px) and (min-width: 769px) {
    .filter-row-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .acv-select__btn {
        min-width: 100%;
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .acv-select__menu {
        min-width: 100%;
        width: 100%;
    }
    
    /* Z-index cho responsive - giữ nguyên thứ tự */
    .filter-group-modern:nth-child(1) {
        z-index: 30; /* Tầng - cao nhất */
    }
    
    .filter-group-modern:nth-child(2) {
        z-index: 20; /* Khu vực an ninh - trung bình */
    }
    
    .filter-group-modern:nth-child(3) {
        z-index: 10; /* Loại nhà hàng - thấp nhất */
    }
    
    /* Đảm bảo dropdown menu hiển thị đúng */
    .acv-select__menu {
        z-index: 1000;
    }
}


.filter-group-modern {
    position: relative;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Z-index giảm dần: Tầng > Khu vực an ninh > Loại nhà hàng */
.filter-group-modern:nth-child(1) {
    z-index: 30; /* Tầng - cao nhất */
}

.filter-group-modern:nth-child(2) {
    z-index: 20; /* Khu vực an ninh - trung bình */
}

.filter-group-modern:nth-child(3) {
    z-index: 10; /* Loại nhà hàng - thấp nhất */
}

.filter-group-modern:hover {
    transform: none;
}

.filter-label-modern {
    display: block;
    color: var(--acv-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}


.filter-select-modern {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: var(--acv-white);
    color: var(--acv-gray);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--acv-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.filter-select-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-select-modern:hover::before {
    left: 100%;
}

.filter-select-modern:hover {
    border-color: var(--acv-primary);
    background-color: rgba(59, 130, 246, 0.08);
    box-shadow: none;
    transform: none;
}

/* Search Row */
.search-row-modern {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: end;
}

.search-group-modern {
    position: relative;
    transition: all 0.3s ease;
    z-index: 5;
}

.search-group-modern:hover {
    transform: none;
}

.search-label-modern {
    display: block;
    color: var(--acv-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.search-input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--acv-white);
    color: var(--acv-gray);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.search-input-modern::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input-modern:focus {
    outline: none;
    border-color: var(--acv-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.search-input-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-input-modern:hover::before {
    left: 100%;
}

.search-input-modern:hover {
    border-color: var(--acv-primary);
    background-color: #ffffff;
    box-shadow: none;
    transform: none;
}

/* Search Button */
.search-btn-modern {
    background: var(--acv-primary);
    color: var(--acv-white);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 4px 12px var(--acv-shadow-hover);
    text-decoration: none;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.search-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-btn-modern:hover::before {
    left: 100%;
}

.search-btn-modern:hover {
    color: var(--acv-primary);
    background: rgba(59, 130, 246, 0.08);
    transform: none;
    box-shadow: none;
}

.search-btn-modern:active {
    transform: none;
    box-shadow: none;
}

.search-btn-modern .search-icon-modern {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.search-btn-modern:hover .search-icon-modern {
    transform: scale(1.1);
}

/* Reset Button */
.reset-btn-modern {
    background: var(--acv-gray);
    color: var(--acv-white);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
    text-decoration: none;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.reset-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.reset-btn-modern:hover::before {
    left: 100%;
}

.reset-btn-modern:hover {
    color: var(--acv-primary);
    background: rgba(59, 130, 246, 0.08);
    transform: none;
    box-shadow: none;
}

.reset-btn-modern:active {
    transform: none;
    box-shadow: none;
}

.reset-btn-modern .reset-icon-modern {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.reset-btn-modern:hover .reset-icon-modern {
    transform: rotate(180deg);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow Effect */
@keyframes glow {
    from {
        box-shadow: 0 0 20px var(--acv-shadow-hover);
    }
    to {
        box-shadow: 0 0 30px rgba(30, 58, 138, 0.4);
    }
}


/* Responsive Design */
@media (max-width: 1200px) {
    .search-interface-modern {
        padding: 28px;
        margin: 20px 0;
    }
    
    .filter-row-modern {
        gap: 20px;
    }
    
    .search-row-modern {
        gap: 16px;
    }
}

@media (max-width: 991.98px) {
    .search-interface-modern {
        padding: 24px;
        margin: 16px 0;
    }
    
    .filter-row-modern {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }
    
    .search-row-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-btn-modern, .reset-btn-modern {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-interface-modern {
        padding: 20px;
        margin: 12px 0;
        border-radius: 20px;
    }
    
    .filter-row-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .acv-select__btn {
        min-width: 100%;
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .acv-select__menu {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-select-modern, .search-input-modern {
        padding: 12px 16px;
        font-size: 0.875rem;
        min-height: 48px;
        height: 48px;
    }
    
    .search-btn-modern, .reset-btn-modern {
        padding: 12px 20px;
        font-size: 0.875rem;
        min-height: 48px;
        height: 48px;
    }
    
    /* Z-index cho responsive - giữ nguyên thứ tự */
    .filter-group-modern:nth-child(1) {
        z-index: 30; /* Tầng - cao nhất */
    }
    
    .filter-group-modern:nth-child(2) {
        z-index: 20; /* Khu vực an ninh - trung bình */
    }
    
    .filter-group-modern:nth-child(3) {
        z-index: 10; /* Loại nhà hàng - thấp nhất */
    }
    
    /* Đảm bảo dropdown menu hiển thị đúng */
    .acv-select__menu {
        z-index: 1000;
    }
}

@media (max-width: 576px) {
    .search-interface-modern {
        padding: 16px;
        margin: 8px 0;
        border-radius: 16px;
    }
    
    .filter-label-modern, .search-label-modern {
        font-size: 0.9rem;
    }
    
    .filter-select-modern, .search-input-modern {
        padding: 12px 16px;
        font-size: 0.875rem;
        border-radius: 12px;
        min-height: 48px;
        height: 48px;
    }
    
    .search-btn-modern, .reset-btn-modern {
        padding: 12px 20px;
        font-size: 0.875rem;
        border-radius: 12px;
        min-height: 48px;
        height: 48px;
    }
    
    /* Z-index cho responsive - giữ nguyên thứ tự */
    .filter-group-modern:nth-child(1) {
        z-index: 30; /* Tầng - cao nhất */
    }
    
    .filter-group-modern:nth-child(2) {
        z-index: 20; /* Khu vực an ninh - trung bình */
    }
    
    .filter-group-modern:nth-child(3) {
        z-index: 10; /* Loại nhà hàng - thấp nhất */
    }
    
    /* Đảm bảo dropdown menu hiển thị đúng */
    .acv-select__menu {
        z-index: 1000;
    }
}

@media (max-width: 480px) {
    .search-interface-modern {
        padding: 12px;
        margin: 6px 0;
    }
    
    .filter-select-modern, .search-input-modern {
        padding: 12px 16px;
        font-size: 0.875rem;
        min-height: 48px;
        height: 48px;
    }
    
    .search-btn-modern, .reset-btn-modern {
        padding: 12px 20px;
        font-size: 0.875rem;
        min-height: 48px;
        height: 48px;
    }
    
    /* Z-index cho mobile - giữ nguyên thứ tự */
    .filter-group-modern:nth-child(1) {
        z-index: 30; /* Tầng - cao nhất */
    }
    
    .filter-group-modern:nth-child(2) {
        z-index: 20; /* Khu vực an ninh - trung bình */
    }
    
    .filter-group-modern:nth-child(3) {
        z-index: 10; /* Loại nhà hàng - thấp nhất */
    }
    
    /* Đảm bảo dropdown menu hiển thị đúng */
    .acv-select__menu {
        z-index: 1000;
    }
}

/* =======================================
   DROPDOWN Z-INDEX FIXES
   ======================================= */

/* Dropdown Wrapper */
.acv-select-wrapper {
    position: relative;
    z-index: inherit; /* Kế thừa z-index từ parent */
}

/* Dropdown Button */
.acv-select__btn {
    position: relative;
    z-index: inherit; /* Kế thừa z-index từ parent */
}

.acv-select__btn:hover {
    border-color: var(--acv-primary);
    background-color: #ffffff;
    box-shadow: none;
    transform: none;
}

.acv-select__btn:focus {
    outline: none;
    border-color: var(--acv-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Dropdown Menu */
.acv-select__menu {
    position: absolute;
    z-index: 1000; /* Z-index cao để hiển thị trên các elements khác */
}
