/**
 * WP Hotelier Custom Search Form Styles
 * Location: /filter/hotelier-search-style.css
 */

/* Main wrapper */
.htl-custom-search-wrapper {
    width: 100%;
    padding: 15px 0;
}

/* Form container */
.htl-custom-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF1A;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    gap: 5px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 1px 0px #ffffffb0
}

/* Each field wrapper */
.htl-search-field {
    display: flex;
    align-items: self-start;
    gap: 10px;
    padding: 10px 15px;
    position: relative;
    /*flex: 1;*/
    min-width: 0;
}

/* Field dividers */
/*.htl-search-field:not(:last-child):not(.htl-field-submit)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}*/

/* Icon styling */
.htl-field-icon {
    flex-shrink: 0;
    color: #c9a96e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htl-field-icon svg {
    width: 18px;
    height: 18px;
}

/* Field content */
.htl-field-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

/* Labels */
.htl-field-content label {
    color: #fff;
    white-space: nowrap;
    font-family: Manrope;
    font-weight: 450;
    font-style: Bold;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 1px;
}

/* Select and input styling */
.htl-custom-search-form select,
.htl-custom-search-form input {
    font-family: Manrope;
    background: transparent;
    border: none;
    color: #FFFFFFCC;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    letter-spacing: 1px;
}

.htl-custom-search-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.htl-custom-search-form select:focus,
.htl-custom-search-form input:focus {
    outline: none;
}

.htl-custom-search-form select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Placeholder styling */
.htl-custom-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Fixed location text */
.htl-location-text {
    font-family: Manrope;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 1px;
    color: #FFFFFFCC;
    white-space: nowrap;
    line-height: 20px;
}

/* Submit button */
.htl-field-submit {
    flex: 0 0 auto;
    padding: 0;
}

.htl-search-button {
    background: #CAA16B;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 1px;
    font-family: Poppins;
    font-weight: 400;
}

.htl-search-button:hover {
    background: #AD8959;
}

.htl-search-button:active {
    background: #AD8959;
}

/* Flatpickr custom styling */
.flatpickr-calendar {
    background: #1a1a1a !important;
    border: 1px solid rgba(201, 169, 110, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months {
    background: rgba(201, 169, 110, 0.1);
    border-radius: 10px 10px 0 0;
    padding: 10px 0;
}

.flatpickr-months .flatpickr-month {
    color: #CAA16B !important;
}

.flatpickr-current-month {
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #fff !important;
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
}
.flatpickr-current-month  option.flatpickr-monthDropdown-month {
    background: #1a1a1a !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #CAA16B !important;
    fill: #CAA16B !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #fff !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff !important;
}

span.flatpickr-weekday {
    color: #CAA16B !important;
    font-weight: 600;
}

.flatpickr-day {
    color: #fff !important;
    border-radius: 5px !important;
}

.flatpickr-day:hover {
    background: rgba(201, 169, 110, 0.2) !important;
    border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #CAA16B !important;
    border-color: #CAA16B !important;
    color: #1a1a1a !important;
}

.flatpickr-day.inRange {
    background: rgba(201, 169, 110, 0.3) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.flatpickr-day.today {
    border-color: #CAA16B !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .htl-custom-search-form {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 15px;
        gap: 10px;
    }
    
    .htl-search-field {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 150px;
    }
    
    .htl-search-field::after {
        display: none !important;
    }
    
    .htl-field-submit {
        flex: 1 1 100%;
        margin-top: 10px;
    }
    
    .htl-search-button {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .htl-custom-search-form {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }
    
    .htl-search-field {
        flex: 1 1 100%;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 10px;
    }
    
    .htl-search-field:last-child,
    .htl-field-submit {
        border-bottom: none;
    }
    
    .htl-field-submit {
        padding-top: 15px;
    }
}