/* 
    Hotel Search & Results Styling 
    Refactored for professionalism and maintainability.
*/

.search_tour {
    position: relative;
    z-index: 50 !important;
}

.trending_dropdown,
.date_dropdown,
.rooms-guest-dropdown {
    z-index: 100000 !important;
    background-color: #ffffff !important;
    border: 1px solid #d4a877 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    display: none;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    opacity: 1 !important;
}

.rooms_input:hover {
    opacity: 1 !important;
}

.trending_dropdown {
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #d4a877 !important;
}

.trending_dropdown.active,
.date_dropdown.active,
.rooms-guest-dropdown.active,
.rooms-guest-dropdown.show {
    display: block !important;
}

/* Ensure search button doesn't overlap dropdowns */
.submit,
.actionbutton {
    position: relative;
    z-index: 1 !important;
}

/* Ensure parents don't clip dropdowns */
.search_form_content,
.fields__block,
.fields,
.field {
    overflow: visible !important;
    position: relative;
}

.fields {
    z-index: 10 !important;
}

/* Guest Selector UI Refinements */
.rooms-guest-dropdown {
    padding: 20px !important;
    border-radius: 12px;
    min-width: 320px;
}

.selector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.selector-row:last-child {
    border-bottom: none;
}

.label-text {
    font-weight: 600;
    color: #143833;
    display: block;
}

.label-subtitle {
    font-size: 11px;
    color: #888;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #d4a877 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: #d4a877 !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
    float: none !important;
}

.counter-btn:hover {
    background: #fdf8f3 !important;
    transform: scale(1.05);
}

.counter-btn i {
    font-size: 16px;
    pointer-events: none;
}

.counter-btn.minus:disabled {
    border-color: #eee !important;
    color: #ccc !important;
    cursor: not-allowed;
}

.counter-value {
    font-weight: 700;
    color: #143833;
    min-width: 25px;
    text-align: center;
    font-size: 16px;
}

/* Scrollbar for many rooms */
.guests-section {
    max-height: 380px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 5px !important;
    margin-right: -5px !important;
}

/* Custom Scrollbar Styling */
.guests-section::-webkit-scrollbar {
    width: 6px;
}

.guests-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.guests-section::-webkit-scrollbar-thumb {
    background: #d4a877;
    border-radius: 10px;
}

.guests-section::-webkit-scrollbar-thumb:hover {
    background: #b88a58;
}

.apply-btn {
    background: #d4a877 !important;
    color: #fff !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
    border: none !important;
    float: none !important;
}

/* Destination Dropdown Alignment Fixes */
.trending_dropdown {
    text-align: left !important;
}

.destination_list {
    display: block !important;
    text-align: left !important;
}

.destination_item {
    transition: all 0.2s ease-in-out !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    gap: 12px !important;
    cursor: pointer !important;
}

.destination_item *, 
.destination_item div, 
.destination_item span, 
.destination_item i {
    cursor: pointer !important;
}

.destination_item .destination_info {
    flex: 1 !important;
    text-align: left !important;
}

.destination_item .city_name {
    text-align: left !important;
    display: block !important;
}

.destination_item .type_label {
    text-align: left !important;
    display: block !important;
}

.icon_box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
}

.fullsearch {
    position: relative;
    z-index: 50 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Compact/Results Search Bar Premium Styles */
.fullscreensearch {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
}

.fullscreensearch .field {
    background: #fff !important;
    border: 1px solid #d4a877 !important;
    border-radius: 5px !important;
    padding: 5px 15px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    flex: 1;
    transition: all 0.3s;
}

.fullscreensearch .destination_field {
    flex: 1.5 !important;
}

.fullscreensearch .date_field {
    flex: 1.1 !important;
}

.fullscreensearch .rooms_field {
    flex: 1.4 !important;
    cursor: pointer !important;
}

.fullscreensearch .field:hover {
    border-color: #b88a58 !important;
    box-shadow: 0 4px 10px rgba(212, 168, 119, 0.1) !important;
}

.fullscreensearch .rooms_input {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

.fullscreensearch .rooms_input i {
    color: #d4a877 !important;
    font-size: 20px !important;
}

.fullscreensearch .rooms_text {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #143833 !important;
}

.fullscreensearch .actionbutton {
    width: 52px !important;
    height: 52px !important;
    background: #d4a762 !important;
    border: none !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.3s;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 18px !important;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(212, 167, 98, 0.2) !important;
}

.fullscreensearch .actionbutton:hover {
    background: #b88a58 !important;
    transform: translateY(-1px);
}

/* Child Age Selection Styles (Refactored from inline) */
.selector-row.age-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.age-select {
    border: 1px solid #d4a877;
    border-radius: 4px;
    padding: 2px 8px;
    outline: none;
}

.dropdown-header-custom {
    padding: 10px 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header-custom .close-dropdown {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Skeleton Loader Styles */
.skeleton-box {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    display: block;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#skeleton-loader-container {
    display: none;
}

.hotel_card.skeleton {
    opacity: 0.7;
}

.map-iframe {
    border-radius: 15px;
}

.skeleton-stars { width: 100px; height: 16px; }
.skeleton-name { width: 250px; height: 24px; margin-top: 10px; }
.skeleton-location { width: 200px; height: 16px; margin-top: 10px; }
.skeleton-review { width: 180px; height: 20px; margin-top: 10px; }
.skeleton-price { width: 120px; height: 40px; }
.skeleton-button { width: 100%; height: 45px; margin-top: 15px; }
