/*
	ERE Elementor Frontend Styles
 */

d-flex {
	display: flex;
}

.search-form-container {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: start;
}

/* Common styles for all fields */
.search-field {
    position: relative;
    padding: 10px 15px;
}

.search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #E5E5E5;
}

.search-field label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
}

/* Date field specific styles */
.date-range {
    font-size: 16px;
    color: #333;
    
}

.date-range .separator {
    margin: 0 8px;
    color: #666;
}

/* Select fields */
.search-field select {
    width: 100%;
    padding: 8px 0;
    border: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    cursor: pointer;
}

.search-field select option {
    padding: 8px;
}

/* Search button */
.search-button {
    background-color: #FFB800 !important;
    color: #000 !important;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    height: 100%;
    align-self: center;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #FFA700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .search-fields-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .search-field:not(:last-child)::after {
        display: none;
    }

    .search-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-fields-grid {
        grid-template-columns: 1fr;
    }

    .search-form-container {
        padding: 15px;
    }
}


.date-range {
    position: relative;
}

.flatpickr-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    background: transparent;
}

.flatpickr-input::placeholder {
    color: #333;
}

/* Flatpickr calendar customization */
.flatpickr-calendar {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.flatpickr-day.selected {
    background: #FFB800 !important;
    border-color: #FFB800 !important;
}

.flatpickr-day.inRange {
    background: #FFE7A3 !important;
    border-color: #FFE7A3 !important;
}

.flatpickr-day.today {
    border-color: #FFB800;
}


/* Common styles for form elements */
.search-form-container {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: start;
}

/* Field containers */
.search-field {
    position: relative;
    padding: 10px 15px;
}

.search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #E5E5E5;
}
.search-field.adults::after {
    display: none;
}

/* Labels */
.search-field label {
    display: block;
    font-size: 10px;
    color: #000;
    text-transform: uppercase;
}

/* Select styling */
.search-field select {
    width: 100%;
    padding: 8px 0;
    border: none;
    font-size: 14px;
    color: #333;
    background-color: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.search-field select:focus {
    outline: none;
}

/* Date picker input */
.flatpickr-input {
    width: 100%;
    padding: 8px 0;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: transparent;
}

.flatpickr-input::placeholder {
    color: #333;
}

/* Calendar customization */
.flatpickr-calendar {
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: none;
    padding: 10px;
}

.flatpickr-months {
    margin-bottom: 10px;
}

.flatpickr-month {
    background: transparent;
    color: #333;
    fill: #333;
}

.flatpickr-weekday {
    color: #666;
    font-weight: normal;
}

.flatpickr-day {
    border-radius: 4px;
    border: none;
    color: #333;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #FFB800;
    border-color: #FFB800;
    color: #000;
}

.flatpickr-day.inRange {
    background: #FFE7A3;
    border-color: #FFE7A3;
    color: #000;
}

.flatpickr-day:hover {
    background: #f0f0f0;
}

.flatpickr-day.today {
    border-color: #FFB800;
}

/* Search button */
.search-button {
    background-color: #FFB800;
    color: #000;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    height: 100%;
    align-self: center;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #FFA700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .search-fields-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .search-field:not(:last-child)::after {
        display: none;
    }

    .search-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Reset default select styles */
.search-form-container select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-family: inherit !important;
    font-size: 14px !important;
    cursor: pointer !important;
    line-height: inherit !important;
    color: #333 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    padding-right: 20px !important;
}

/* Style the select container */
.search-field {
    position: relative !important;
    padding: 10px 15px !important;
    background-color: #fff !important;
}

/* Style the label */
.search-field label {
    display: block !important;
    font-size: 10px !important;
    color: #000 !important;
    text-transform: uppercase !important;
    font-weight: bold;
}

/* Remove focus outline */
.search-form-container select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Style the options */
.search-form-container select option {
    padding: 8px !important;
    background-color: #fff !important;
    color: #333 !important;
}

/* Hover state */
.search-form-container select:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Disabled state */
.search-form-container select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.search-form {
    max-width: 996px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
}

.search-form-wrapper {
/*    margin-top: -69px; */
  position: relative;
  z-index: 1;
}

.date-range {
    position: relative;
}

.date-range input.flatpickr-input {
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    cursor: pointer;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    pointer-events: none;
}

.date-display span {
    color: #666;
    font-size: 14px;
}

.date-display .separator {
    color: #999;
}


.date-range {
    position: relative;
}

.date-range input.flatpickr-input {
    width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    border: none !important;
    outline: none !important;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    min-width: 200px;
    height: 40px;
    font-size: 14px;
}

/* Style for when date is selected */
.date-display.has-dates {
    border: none;
 
}