/* New SearchForm Component Styles */
.searchform-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0px 4px 9px #2b27230f;
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    margin-top: 4rem;
    position: sticky;
    top: 11vh;
}

.searchform-fields {
    display: none;
}

.searchform-fields.is-visible {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    gap: 0;
}

.searchform-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    flex: 1;
    position: relative;
}

.searchform-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.searchform-label-text {
    color: #976F33;
    font-family: "Arsenal", Helvetica;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
}

.searchform-field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.searchform-field-value .dp__main {
    flex: 1;
}

.searchform-field-value .dp__input_wrap {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.searchform-field-value .dp__input_icon {
    display: none !important;
}

.searchform-field-value .dp__main.error .dp__input_wrap input {
    border-bottom: 2px solid #dc2626 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: rgba(254, 178, 178, 0.9) !important;
    color: #c53030 !important;
}

svg.lucide.lucide-users.searchform-field-icon {
    color: #976F33;
}

.searchform-field-icon {
    width: 20px;
    height: 20px;
    color: #976F33;
}

.dp__pointer {
    border: none !important;
    padding-inline-start: unset !important;
    font-family: "Arsenal", Helvetica;
    padding-right: 0;
}

.searchform-field-separator {
    width: 1px;
    height: 48px;
    background-color: #e5e5e5;
    margin: 0 15px;
    flex-shrink: 0;
}


.searchform-button {
    flex-shrink: 0;
}

.booking-search-btn {
    background: #976F33;
    color: white;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    min-width: 120px;
    font-family: "Playfair Display", Helvetica;
    text-transform: capitalize;
    font-weight: 400;
}

.booking-search-btn:hover:not(:disabled) {
    background: #805e2b;
    color: #fff;
    border: 1px solid #795929;
}

.booking-search-btn:disabled {
    background: #D0D0D0;
    cursor: not-allowed;
    transform: none;
    color: #888;
}

.navbar-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    min-width: 120px;
    font-family: "Arsenal", Helvetica;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
}

.navbar:not(.sticky) .navbar-btn-light {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}


.navbar.sticky .navbar-btn-light {
    background: transparent;
    color: #976F33;
    border: 1px solid #976F33;
}

.navbar:not(.sticky) .navbar-btn-light:hover, .navbar.sticky .navbar-btn-light:hover {
    background: #976F33;
    color: white;
    border: 1px solid transparent;
}

.searchform-value-text {
    color: #2b2723;
    font-family: "Arsenal", Helvetica;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20px;
    flex: 1;
}


.searchform-dropdown-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6b7280;
}

.searchform-date-display {
    font-size: 16px;
    color: #2b2723;
    font-family: "Arsenal", Helvetica;
    font-weight: 400;
    padding: 0;
    flex: 1;
    cursor: pointer;
    user-select: none;
}


.searchform-date-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #2b2723;
    font-family: "Arsenal", Helvetica;
    font-weight: 400;
    padding: 0;
    flex: 1;
    cursor: pointer;
}

.searchform-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.searchform-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 16px;
    margin-top: 4px;
    min-width: 200px;
}

.searchform-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.searchform-counter:last-child {
    border-bottom: none;
}

.searchform-counter span {
    font-family: "Arsenal", Helvetica;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

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

.searchform-counter-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.searchform-counter-controls button:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #976F33;
}

.searchform-counter-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.searchform-counter-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

.searchform-check-availability-btn {
    background-color: #976F33;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px 30px;
    font-family: "Arsenal", Helvetica;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.searchform-check-availability-btn:hover:not(:disabled) {
    background-color: #976F33;
}

.searchform-check-availability-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.searchform-date-input.error {
    border-bottom: 2px solid #dc2626 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: rgba(254, 178, 178, 0.9);
    color: #c53030;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.dp__theme_light {
    --dp-primary-color: #976F33;
    --dp-hover-color: #f0e6d9;
    --dp-border-radius: 8px;
}

.dp__calendar_header_item {
    color: #976F33 !important;
    font-family: "Arsenal", Helvetica !important;
    font-weight: 600 !important;
}

.dp__today {
    border: 1px solid #976F33 !important;
}

.dp__active_date {
    background-color: #976F33 !important;
    color: white !important;
}

.dp__overlay_cell_active {
    background-color: #976F33 !important;
}

.dp__button:hover {
    background-color: #f0e6d9 !important;
}

.rooms-count, .guests-count {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 4px;
}


div#booking-search-app {
    align-items: center;
    border-radius: 12px;
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    position: sticky;
    top: 11vh;
    z-index: 1000;
}

.searchform-collapse-btn {
    width: 100%;
    text-align: center;
}

.searchform-collapse-btn i {
    color: #976F33;
}

.searchform-collapse-btn hr {
    margin: 0;
    opacity: 1;
    color: #ACACAC3B;
}


/********** MEDIA QUERIES ************/


@media (min-width: 769px) {
    .searchform-fields.is-visible {
        display: flex;
        align-items: center;
        flex: 1;
        gap: 0;
        flex-direction: row;
    }

    .searchform-collapse-btn {
        display: none;
    }
    
    .searchform-container{
         z-index: 1000;
        box-shadow: 0px 4px 9px 0px #2B27230F;
    }
}

@media (min-width: 1025px) {
    .searchform-field-icon--value {
        display: inline-block;
    }
}

@media (max-width: 1024px) {
    .searchform-fields {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 20px;
    }

    .searchform-field-group {
        min-width: unset;
        width: 100%;
        padding: 15px;
    }

    .searchform-field-label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .searchform-field-separator {
        display: none;
    }

    .searchform-check-availability-btn {
        width: 100%;
        padding: 18px;
    }
}

@media (max-width: 991px) {
      #site-links .nav-link {
        color: black !important;
    }
    .searchform-container {
        flex-direction: column;
    }

    .searchform-button, .searchform-button button {
        width: 100%;
    }

    .navbar:not(.sticky) .navbar-btn-light, .navbar.sticky .navbar-btn-light {
        color: #976F33 !important;
        border: 1px solid #976F33 !important;
        padding: 1rem !important;
                font-size: 20px !important;

    }

    .navbar:not(.sticky) .navbar-btn-light:hover, .navbar.sticky .navbar-btn-light:hover {
        background: #976F33 !important;
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    
    body.booking-page-wrapper div#searchform-containerId {
    position: relative !important;
        z-index: 1 !important;
}
    
    body.booking-page-wrapper .searchform-fields {
    display: block !important;
}
    
    
    .searchform-container {
        position: fixed;
        top: unset;
        bottom: 0;
        left: 0;
        border-radius: 0;
        padding: 1rem;
        gap: 1rem;
       /* z-index: 700;*/
       /* box-shadow: 0px -4px 8.7px 0px #0000000D;*/
    }

    .searchform-field-group--range {
        grid-column: 1 / -1;
    }

    .searchform-field-group {
        padding: 12px;
        background: transparent;
        gap: 0;
    }

    .searchform-label-text {
        font-size: 14px;
    }

    .dp__menu.dp__menu_index.dp__theme_light {
        max-height: 450px;
        overflow-y: scroll;
    }

/*    .dp__menu.dp__menu_index.dp__theme_light {
        z-index: 850;
        position: relative;
    }

    #main-nav.sticky {
        z-index: 700;
    }

    #main-nav:not(.sticky) {
        z-index: 700 !important;
    }

    offcanvas.offcanvas-end.show {
        z-index: 1050 !important;
    }*/

    .booking-search-btn {
        width: 100%;
    }

    .searchform-dropdown-content {
        bottom: 3rem;
        top: unset;
    }


    .searchform-check-availability-btn {
        font-size: 16px;
        padding: 16px;
    }


    .rooms-count-dropdown {
        left: unset;
        right: 1rem;
    }


}

@media (max-width: 480px) {
    .searchform-field-group {
        padding: 10px;
    }

    .searchform-field-label {
        gap: 6px;
    }

    .searchform-label-text {
        font-size: 12px;
    }

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

    .searchform-check-availability-btn {
        font-size: 14px;
        padding: 14px;
    }
}
