.search-form-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
}

.travel-search-form {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 20;
    max-width: 800px;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.form-tab {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.form-tab svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
}

.form-tab:hover {
    color: var(--primary-blue);
    background: var(--gray-50);
}

.form-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: transparent;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 0.8fr;
    gap: 20px;
    align-items: end;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.select-container {
    position: relative;
    z-index: 40;
}

.select-container.open {
    z-index: 10000;
}

.select-container input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.select-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: transform 0.3s ease;
    z-index: 20;
}

.select-container.open .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-height: 320px;
    overflow: hidden;
    display: none;
    margin-top: 4px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.dropdown-section-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.dropdown-section-title:first-child {
    border-top: none;
}

.dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item .item-count {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 400;
}

.dropdown-no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.dropdown-item:active {
    background: var(--primary-blue);
    color: var(--white);
}

.person-selector {
    padding: 20px;
    max-height: 280px;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

.date-dropdown {
    max-height: 420px;
    width: auto;
    min-width: 620px;
    padding: 0;
}

/* Month Picker Styles */
.month-dropdown {
    max-height: 300px;
    width: 100%;
    padding: 0;
}

.month-picker {
    padding: 8px 0;
}

.month-list {
    max-height: 250px;
    overflow-y: auto;
}

.month-list::-webkit-scrollbar {
    width: 6px;
}

.month-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.month-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.month-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.month-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--gray-700);
}

.month-item:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
}

.month-item.selected {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
}

.date-picker {
    padding: 24px;
}

#tour-daterangepicker,
#hotel-daterangepicker {
    width: 100%;
}

.date-range-picker {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.date-column {
    flex: 0 0 auto;
    width: 280px;
}

.nav-spacer {
    width: 36px;
    height: 36px;
}

.calendar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    margin: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.month-nav {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 20px;
    font-weight: 600;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.month-nav:hover {
    background: var(--gray-100);
}

.month-nav:active {
    background: var(--gray-200);
}

.month-year {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
    text-align: center;
    flex: 1;
    margin: 0 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
}

.day-header {
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    padding: 8px 4px;
}

.day {
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.day:hover:not(.disabled) {
    background: var(--gray-100);
}

.day.selected {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.day.in-range {
    background: rgba(24, 80, 163, 0.1);
    color: var(--primary-blue);
}

.day.today {
    background: var(--primary-orange);
    color: var(--white);
    font-weight: 600;
}

.day.today.selected {
    background: var(--primary-blue);
}

.day.disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.day.disabled:hover {
    background: transparent;
}

.day.empty-day {
    cursor: default;
}

.person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.person-item:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.person-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    color: var(--gray-600);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.counter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-btn:disabled:hover {
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.counter-value {
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background: #14408a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .date-dropdown {
        min-width: auto;
        width: 100vw;
        left: -30px !important;
        right: -30px !important;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .travel-search-form {
        padding: 20px;
    }
    
    .search-form-container {
        bottom: 15px;
        padding: 0 15px;
    }
    
    .date-range-picker {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-column {
        width: 100%;
    }
    
    .date-dropdown {
        left: -20px !important;
        right: -20px !important;
    }
    
    .form-tab {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .travel-search-form {
        padding: 15px;
    }
    
    .form-tabs {
        gap: 4px;
    }
    
    .form-tab {
        padding: 10px 12px;
        font-size: 14px;
    }
}