/*
 * Version: 1.0.19 | 2026-03-08 | Media query max-width 1023px (align with desktop breakpoint 1024px)
 *
 * Version: 1.0.18 | 2026-02-12 | Reserve: no border on tab/fields; form fields original+15% (not chunky); Schedule Tour Time/Agent mobile open in JS
 *
 * Version: 1.0.17 | 2026-02-12 | Inquire/Schedule Tour/Reserve: remove border around tab content; chunkier form fields (taller, more padding)
 *
 * Version: 1.0.12 | 2026-02-09 | Schedule Tour: visible border on tab content; stronger borders (2px) on date/day cells
 *
 * Version: 1.0.11 | 2026-02-09 | Cleanup: removed duplicate blocks and old Max Price visibility rules (Max Price disabled site-wide)
 *
 * Version: 1.0.10 | 2026-02-09 | Mobile: Remove "Max Price" from all mobile search (overlay + SRE); # Sleeps full width in modal and page
 *
 * Version: 1.0.9 | 2026-02-09 | Desktop: Property ID small left, keyword number; advanced 4 fields even width. Max Price commented out.
 */

/* ===== GENERAL ===== */
.property-form-tabs ul#pills-tab {
    display: flex !important;
}
/* Inquire / Schedule Tour / Reserve: no border on tab content or Reserve form */
.content-wrap-style-boxed .property-form-tabs-wrap .tab-content,
.content-wrap-style-boxed .property-form-tabs-wrap #pills-contact,
.property-form-tabs-wrap #pills-contact .bookpropertybox,
.property-form-tabs-wrap #pills-contact .cstm_bkng_fields_outer {
    border: none !important;
}
/* Inquire / Schedule Tour / Reserve: form fields = original size +15% (was 33px → 38px); overridden below for 1/3 shorter per form */
.property-form-tabs-wrap .tab-content .form-control,
.property-form-tabs-wrap .tab-content input[type="text"],
.property-form-tabs-wrap .tab-content input[type="email"],
.property-form-tabs-wrap .tab-content input[type="tel"],
.property-form-tabs-wrap .tab-content select.form-control,
.property-form-tabs-wrap .tab-content .bootstrap-select .dropdown-toggle {
    min-height: 38px !important;
    height: auto !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
    font-size: 1em !important;
}
.property-form-tabs-wrap .tab-content textarea.form-control {
    min-height: 88px !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
}

/* Inquire form (#pills-home): all fields 1/3 shorter */
.property-form-tabs-wrap #pills-home .form-control,
.property-form-tabs-wrap #pills-home input[type="text"],
.property-form-tabs-wrap #pills-home input[type="email"],
.property-form-tabs-wrap #pills-home input[type="tel"],
.property-form-tabs-wrap #pills-home input[type="number"],
.property-form-tabs-wrap #pills-home select.form-control,
.property-form-tabs-wrap #pills-home .bootstrap-select .dropdown-toggle {
    min-height: 25px !important;
    padding: 5px 10px !important;
}
.property-form-tabs-wrap #pills-home textarea.form-control {
    min-height: 59px !important;
    padding: 5px 10px !important;
}

/* Reserve form (#pills-contact): all fields 1/3 shorter */
.property-form-tabs-wrap #pills-contact .form-control,
.property-form-tabs-wrap #pills-contact input[type="text"],
.property-form-tabs-wrap #pills-contact input[type="email"],
.property-form-tabs-wrap #pills-contact input[type="tel"],
.property-form-tabs-wrap #pills-contact input[type="number"],
.property-form-tabs-wrap #pills-contact select.form-control,
.property-form-tabs-wrap #pills-contact .bootstrap-select .dropdown-toggle,
.property-form-tabs-wrap #pills-contact .bookpropertybox .form-control,
.property-form-tabs-wrap #pills-contact .cstm_bkng_fields_outer .form-control {
    min-height: 25px !important;
    padding: 5px 10px !important;
}
.property-form-tabs-wrap #pills-contact textarea.form-control,
.property-form-tabs-wrap #pills-contact .bookpropertybox textarea.form-control {
    min-height: 59px !important;
    padding: 5px 10px !important;
}
/* Schedule Tour: larger, clearer borders around each date/day cell and more padding for “larger area” */
/* Schedule Tour day cards: day name, day number, month fully visible inside border (no cut-off) */
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control.control--radio {
    padding-left: 0 !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator--day-card {
    border: 2px solid #a0a0a0 !important;
    border-radius: 6px;
    min-height: 72px !important;
    padding: 8px 6px !important;
    min-width: 56px !important;
    width: 56px !important;
    max-width: 56px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    overflow: visible !important;
    position: relative !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_dayname {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6b6b6b !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_day {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1a1a1a !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_month {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6b6b6b !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form .control input:checked ~ .control__indicator--day-card {
    border-color: #0d6efd !important;
    background: #f8f9fa !important;
}
/* Schedule Tour: vertical spacing between form fields (Time, Full Name, Phone, Email, Message, etc.) */
.property-schedule-tour-form-wrap .form-group {
    margin-bottom: 1.25rem !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form-slide .form-group {
    margin-bottom: 0 !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    overflow: visible !important;
}
/* Schedule Tour: arrows visible and above content; container doesn’t clip them */
/* Sidebar and form tabs: do not clip Schedule Tour next arrow */
#sidebar,
#sidebar .property-form-tabs-wrap,
#sidebar .property-form-tabs,
.content-wrap-style-boxed .property-form-tabs-wrap,
.content-wrap-style-boxed .property-form-tabs {
    overflow: visible !important;
}
.content-wrap-style-boxed .property-form-tabs-wrap #pills-profile.tab-pane.show,
.content-wrap-style-boxed .property-form-tabs-wrap #pills-profile.tab-pane.active {
    overflow: visible !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form--cards {
    overflow: visible !important;
    position: relative !important;
    min-height: 90px !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-day-form-slide-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 44px !important;
    overflow: hidden !important;
}
.property-schedule-tour-form-wrap .tour-day-form-slide-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-shrink: 0 !important;
    min-width: 38px !important;
    z-index: 12 !important;
    width: 38px !important;
    height: 38px !important;
    background: #f5f5f5 !important;
    border: 2px solid #a0a0a0 !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.property-schedule-tour-form-wrap .tour-day-form-slide-arrow:hover {
    background: #eee !important;
    border-color: #777 !important;
}
.property-schedule-tour-form-wrap .tour-day-form-slide-arrow.prev {
    left: 0 !important;
    right: auto !important;
}
.property-schedule-tour-form-wrap .tour-day-form-slide-arrow.next {
    right: 0 !important;
    left: auto !important;
}
.property-schedule-tour-form-wrap .tour-day-form-slide-arrow i {
    font-size: 16px !important;
}
.property-schedule-tour-form-wrap .bootstrap-select .dropdown-menu {
    z-index: 9999 !important;
}
/* Schedule Tour Time: force dropdown to open below so 9:30 AM is in view (not cut off) */
.property-schedule-tour-form-wrap .property-schedule-tour-time-wrap .bootstrap-select.dropup {
    position: relative;
}
.property-schedule-tour-form-wrap .property-schedule-tour-time-wrap .bootstrap-select .dropdown-menu.show {
    transform: none !important;
    top: 100% !important;
    bottom: auto !important;
}
.property-schedule-tour-form-wrap .property-schedule-tour-time-wrap .bootstrap-select .dropdown-menu .inner {
    max-height: 320px;
    overflow-y: auto;
}
/* Schedule Tour: Time, Name, Phone, Email, Message – fields 1/3 shorter */
.property-schedule-tour-form-wrap .form-control,
.property-schedule-tour-form-wrap .bootstrap-select .dropdown-toggle {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
    min-height: 25px !important;
    padding: 5px 10px !important;
}
.property-schedule-tour-form-wrap textarea.form-control {
    min-height: 53px !important;
    padding: 5px 10px !important;
}
/* Success/error message parity: green or red background, black text, X close button (Schedule Tour + Inquire + Contact) */
#schedule-tour-form_messages,
.property-schedule-tour-form-wrap .form_messages,
.enqueryform_response.enquryfrmttile,
.enqueryform_response,
.form_messages {
    margin-top: 40px;
    display: block !important;
    visibility: visible !important;
    max-height: none;
    overflow: visible;
}
/* Success: green background, black text */
#schedule-tour-form_messages .alert.alert-success,
#schedule-tour-form_messages .alert.schedule-tour-alert.alert-success,
.property-schedule-tour-form-wrap .form_messages .alert.alert-success,
.property-schedule-tour-form-wrap .form_messages .alert.schedule-tour-alert.alert-success,
.enqueryform_response .alert.alert-success,
.enqueryform_response .alert.schedule-tour-alert.alert-success,
.enqueryform_response.enquryfrmttile .alert.alert-success,
.enqueryform_response.enquryfrmttile .alert.schedule-tour-alert.alert-success,
.form_messages .alert.alert-success,
.form_messages .alert.schedule-tour-alert.alert-success {
    margin-bottom: 0;
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 20px 44px 20px 30px !important;
    border: none !important;
    background-color: #d4edda !important;
    position: relative;
}
/* Error: red background, black text */
#schedule-tour-form_messages .alert.alert-danger,
#schedule-tour-form_messages .alert.schedule-tour-alert.alert-danger,
.property-schedule-tour-form-wrap .form_messages .alert.alert-danger,
.property-schedule-tour-form-wrap .form_messages .alert.schedule-tour-alert.alert-danger,
.enqueryform_response .alert.alert-danger,
.enqueryform_response .alert.schedule-tour-alert.alert-danger,
.enqueryform_response.enquryfrmttile .alert.alert-danger,
.enqueryform_response.enquryfrmttile .alert.schedule-tour-alert.alert-danger,
.form_messages .alert.alert-danger,
.form_messages .alert.schedule-tour-alert.alert-danger {
    margin-bottom: 0;
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 20px 44px 20px 30px !important;
    border: none !important;
    background-color: #f8d7da !important;
    position: relative;
}
/* X close button – same for success and error */
#schedule-tour-form_messages .alert .close,
#schedule-tour-form_messages .alert button.close,
.property-schedule-tour-form-wrap .form_messages .alert .close,
.property-schedule-tour-form-wrap .form_messages .alert button.close,
.enqueryform_response .alert .close,
.enqueryform_response .alert button.close,
.enqueryform_response.enquryfrmttile .alert .close,
.enqueryform_response.enquryfrmttile .alert button.close,
.form_messages .alert .close,
.form_messages .alert button.close {
    color: #000 !important;
    opacity: 0.85;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}
#schedule-tour-form_messages .alert,
.property-schedule-tour-form-wrap .form_messages .alert,
.enqueryform_response .alert,
.enqueryform_response.enquryfrmttile .alert,
.form_messages .alert {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Inquire form: Send button full width on mobile and iPad/tablet */
@media (max-width: 1023px) {
    #prop_enquiry_submit,
    #sales_prop_enquiry_submit,
    #cstm_contactpage_submit {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Schedule Tour: submit button 60% opacity on click */
.property-schedule-tour-form-wrap .schedule_contact_form:active {
    opacity: 0.6 !important;
}

/* Schedule Tour desktop: reduce height so entire form fits in view without page scroll */
@media (min-width: 992px) {
    .property-form-tabs-wrap .property-schedule-tour-form-wrap {
        padding-top: 10px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap > label {
        margin-bottom: 0;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-optional {
        margin: 0 0 4px 0;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form {
        margin-bottom: 6px;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form--cards,
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form--cards .property-schedule-tour-day-form-slide-wrap {
        min-height: 64px !important;
        height: 64px !important;
        max-height: 64px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form-slide {
        height: 64px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form .control.control--radio {
        padding-left: 0 !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator--day-card {
        min-height: 58px !important;
        padding: 6px 4px !important;
        min-width: 52px !important;
        width: 52px !important;
        max-width: 52px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_dayname {
        font-size: 9px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_day {
        font-size: 16px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form .control__indicator_month {
        font-size: 9px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form-slide .form-group {
        flex: 0 0 52px !important;
        width: 52px !important;
        min-width: 52px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .property-schedule-tour-day-form + .form-group {
        margin-top: 4px;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .form-group {
        margin-bottom: 0.4rem !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .form-control,
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .bootstrap-select .dropdown-toggle {
        min-height: 25px !important;
        height: auto !important;
        padding: 4px 10px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap textarea.form-control {
        min-height: 53px !important;
        padding: 5px 10px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .tour-day-form-slide-arrow {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .form-group-terms.agreetxt {
        margin-bottom: 0.4rem !important;
    }
    .property-form-tabs-wrap .property-schedule-tour-form-wrap .form_messages {
        margin-top: 6px;
    }
}
.slick-slide img {
    margin: 0 auto;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}

/* ===== MAX PRICE – DISABLED SITE-WIDE ===== */
/* Hide Max Price everywhere (desktop + mobile + overlay) as backup to PHP removal */
.child-max-price-field,
.prices-only-for-rent,
.advanced-search-filters .prices-only-for-rent,
#advanced-search-filters .prices-only-for-rent,
#advanced-search-filters .form-group:has(select[name="max-price"]),
#advanced-search-filters .flex-search:has(.child-max-price-field),
#sre-mobile-search-modal .form-group:has([name="max-price"]),
#sre-mobile-search-modal .sre-search-modal-row:has(select[name="max-price"]),
#sre-mobile-search-form-page .form-group:has([name="max-price"]),
#sre-mobile-search-form-page .sre-search-modal-row:has(select[name="max-price"]),
#overlay-search-advanced-module .form-group:has([name="max-price"]),
#overlay-search-advanced-module .col-6:has([name="max-price"]) {
    display: none !important;
}

/* ===== DESKTOP: FIRST ROW (Property ID | Keyword | Towns | Areas | Check-in | Check-out | More | Search) ===== */
.advanced-search-v1 .flex-search-property-id {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    max-width: 100px !important;
}
.advanced-search-v1 .flex-search-keyword {
    min-width: 120px !important;
    flex: 1 1 0% !important;
}
.advanced-search-v1 .flex-search-keyword input.form-control {
    width: 100% !important;
}

/* ===== DESKTOP: ADVANCED FILTERS ROW (Bedrooms | Bathrooms | Sleeps Any | Search By Street) ===== */
.advanced-search-filters .d-flex {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}
.advanced-search-filters .form-group {
    margin-bottom: 0 !important;
}
.advanced-search-filters .bootstrap-select {
    width: 100% !important;
}
/* 4 fields fill the row at equal width */
.advanced-search-filters .d-flex.flex-search-even .flex-search {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 10px !important;
}
.advanced-search-filters .d-flex.flex-search-even .flex-search:last-child {
    margin-right: 0 !important;
}

/* ===== MOBILE: # SLEEPS FULL WIDTH (Row 4) ===== */
#sre-mobile-search-modal .sre-search-modal-row-4 .sre-search-modal-col-full,
#sre-mobile-search-modal .sre-search-modal-row-4 .form-group,
#sre-mobile-search-modal .sre-search-modal-row-4 select,
body.sre-mobile-search-page .sre-search-modal-row-4 .sre-search-modal-col-full,
body.sre-mobile-search-page .sre-search-modal-row-4 .form-group,
body.sre-mobile-search-page .sre-search-modal-row-4 select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
#sre-mobile-search-modal .sre-search-modal-row-4 .sre-search-modal-col-full,
body.sre-mobile-search-page .sre-search-modal-row-4 .sre-search-modal-col-full {
    flex: 1 1 100% !important;
    min-width: 0;
}
