/*
Theme Name:     Traveler Childtheme
Description:    Traveler Child Theme
Theme URI:      https://travelerwp.com/
Author:         the ShineTheme
Author URI:     http://shinetheme.com
Version:        1.0
Template:       traveler
*/

/* ============================================= */
/* HIDE CHECKOUT ADDRESS FIELDS                  */
/* ============================================= */

/* Hide the input fields */
.billing_information [name="st_address"],
.billing_information [name="st_address2"],
.billing_information [name="st_city"],
.billing_information [name="st_province"],
.billing_information [name="st_zip_code"],
.billing_information [name="st_country"],
.check-out-form [name="st_address"],
.check-out-form [name="st_address2"],
.check-out-form [name="st_city"],
.check-out-form [name="st_province"],
.check-out-form [name="st_zip_code"],
.check-out-form [name="st_country"] {
    display: none !important;
}

/* Hide the wrapper divs */
.billing_information .wb_col:has([name="st_address"]),
.billing_information .wb_col:has([name="st_address2"]),
.billing_information .wb_col:has([name="st_city"]),
.billing_information .wb_col:has([name="st_province"]),
.billing_information .wb_col:has([name="st_zip_code"]),
.billing_information .wb_col:has([name="st_country"]),
.check-out-form .col-sm-6:has([name="st_address"]),
.check-out-form .col-sm-6:has([name="st_address2"]),
.check-out-form .col-sm-6:has([name="st_city"]),
.check-out-form .col-sm-6:has([name="st_province"]),
.check-out-form .col-sm-6:has([name="st_zip_code"]),
.check-out-form .col-sm-6:has([name="st_country"]) {
    display: none !important;
}

/* ============================================= */
/* HIDE INFORMATION CONTACT WIDGET               */
/* ============================================= */

.st-information-contact {
    display: none !important;
}

/* ============================================= */
/* HIDE INQUIRY BUTTON/TAB ON HOTEL PAGE         */
/* ============================================= */

.nav-tabs li:has(a#nav-inquirement-tab),
.nav-tabs a#nav-inquirement-tab,
#nav-inquirement-tab,
#nav-inquirement,
.tab-pane#nav-inquirement,
.inquiry-v2 {
    display: none !important;
}

/* ============================================= */
/* HIDE "EXPLORE OTHER OPTIONS" ON ROOM PAGE AND OTHERS    */
/* ============================================= */

.relate-rooms,
.services-nearby {
    display: none !important;
}

/* ============================================= */
/* Hotel Theme Inline Checkboxes Styles         */
/* ============================================= */

/* Make the top-filter a flex column so second row goes below */
.top-filter {
    display: flex !important;
    flex-direction: column !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.top-filter>ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
    order: 2 !important;
    /* Move dropdowns to second row */
}

/* Second row container for Hotel Theme checkboxes - BELOW the filter buttons */
.hotel-theme-checkboxes-row {
    width: 100%;
    padding: 12px 0;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-top: none !important;
    border-bottom: 1px solid #e5e5e5;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    clear: both;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    order: 1 !important;
    /* Move checkboxes to first row */
}

.theme-filter-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.theme-filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Horizontal scrolling layout for checkboxes */
.theme-checkboxes-inline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

/* Individual checkbox item styling - inline pill style */
.theme-checkbox-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    cursor: pointer;
    padding: 6px 14px 6px 8px !important;
    /* Force tight left padding */
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 13px;
    margin: 0 !important;
    white-space: nowrap;
}

.theme-checkbox-item:hover {
    border-color: #3B99FC;
    background: #f8f9fa;
}

.theme-checkbox-item input[type="checkbox"] {
    display: none;
}

.theme-checkbox-item .checkmark.fcheckbox {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin: 0 6px 0 0 !important;
    /* Ensure no left margin */
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.theme-checkbox-item input[type="checkbox"]:checked+.checkmark.fcheckbox {
    background: #3B99FC;
    border-color: #3B99FC;
}

.theme-checkbox-item input[type="checkbox"]:checked+.checkmark.fcheckbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.theme-label-text {
    color: #555;
    line-height: 1.4;
    display: inline;
}

.theme-checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #3B99FC;
    background: #e8f4fe;
}

.theme-checkbox-item:has(input[type="checkbox"]:checked) .theme-label-text {
    color: #3B99FC;
    font-weight: 500;
}

/* Responsive adjustments - hide Stay Type label on mobile to fit more items */
@media (max-width: 768px) {
    .hotel-theme-checkboxes-row {
        padding: 10px 0;
    }

    .theme-filter-section {
        flex-direction: row !important;
        gap: 8px;
    }

    /* Hide the "Stay Type:" label on mobile */
    .theme-filter-label {
        display: none !important;
    }

    .theme-checkboxes-inline {
        flex-direction: row !important;
        gap: 8px;
    }

    .theme-checkbox-item {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* ============================================= */
/* HIDE PROFILE PHOTOS IN SEARCH RESULTS        */
/* ============================================= */

.service-avatar {
    display: none !important;
}

/* ============================================= */
/* HIDE GO TO TOP BUTTON                         */
/* ============================================= */

#gotop {
    display: none !important;
}

/* ============================================= */
/* STAY TYPE POPUP BUTTON & MODAL               */
/* ============================================= */

/* Floating button on left side - bottom of map */
.stay-type-floating-btn {
    position: fixed;
    left: 25px;
    bottom: 40px;
    background-color: #3b71fe;
    color: #fff;
    padding: 8px 14px !important;
    min-width: 60px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: inherit;
    border: none;
    line-height: 1.5;
    font-size: 16px !important;
}

.stay-type-floating-btn:hover {
    background-color: #2a5ed6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stay-type-floating-btn span {
    font-size: 15px !important;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.stay-type-floating-btn i {
    font-size: 14px !important;
    margin-right: 8px;
}

/* Modal overlay */
.stay-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.stay-type-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content box */
.stay-type-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal header */
.stay-type-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.stay-type-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.stay-type-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.stay-type-modal-close:hover {
    color: #333;
}

/* Modal body */
.stay-type-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Checkboxes container */
.stay-type-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual checkbox item */
.stay-type-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.stay-type-checkbox-item:hover {
    border-color: #3b71fe;
    background: #f8f9ff;
}

.stay-type-checkbox-item input[type="checkbox"] {
    display: none;
}

.stay-type-checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.stay-type-checkbox-item input[type="checkbox"]:checked+.checkmark {
    background: #3b71fe;
    border-color: #3b71fe;
}

.stay-type-checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stay-type-checkbox-item .label-text {
    color: #555;
    font-size: 15px;
    line-height: 1.4;
}

.stay-type-checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #3b71fe;
    background: #e8f4fe;
}

.stay-type-checkbox-item:has(input[type="checkbox"]:checked) .label-text {
    color: #3b71fe;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stay-type-floating-btn {
        padding: 12px 6px;
    }

    .stay-type-floating-btn span {
        font-size: 12px;
    }

    .stay-type-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .stay-type-modal-header {
        padding: 15px 20px;
    }

    .stay-type-modal-header h3 {
        font-size: 18px;
    }

    .stay-type-modal-body {
        padding: 20px;
    }

    .stay-type-checkbox-item {
        padding: 10px 12px;
    }
}


/* ============================================= */
/* FACILITIES POPUP BUTTON (Right Side)         */
/* ============================================= */

.facilities-floating-btn {
    position: fixed;
    right: 25px;
    bottom: 40px;
    background-color: #3b71fe;
    color: #fff;
    padding: 8px 14px !important;
    min-width: 60px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: inherit;
    border: none;
    line-height: 1.5;
    font-size: 16px !important;
}

.facilities-floating-btn:hover {
    background-color: #2a5ed6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.facilities-floating-btn span {
    font-size: 15px !important;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.facilities-floating-btn i {
    font-size: 14px !important;
    margin-right: 8px;
}

/* Mobile responsiveness for Facilities button */
@media (max-width: 768px) {
    .facilities-floating-btn {
        padding: 12px 6px;
    }

    .facilities-floating-btn span {
        font-size: 12px;
    }
}

/* ============================================= */
/* FACILITIES POPUP MODAL & CHECKBOXES          */
/* ============================================= */

/* Modal overlay */
.facilities-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.facilities-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content box */
.facilities-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal header */
.facilities-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.facilities-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.facilities-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.facilities-modal-close:hover {
    color: #333;
}

/* Modal body */
.facilities-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Checkboxes container */
.facilities-checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual checkbox item */
.facilities-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.facilities-checkbox-item:hover {
    border-color: #3b71fe;
    background: #f8f9ff;
}

.facilities-checkbox-item input[type="checkbox"] {
    display: none;
}

.facilities-checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.facilities-checkbox-item input[type="checkbox"]:checked+.checkmark {
    background: #3b71fe;
    border-color: #3b71fe;
}

.facilities-checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.facilities-checkbox-item .label-text {
    color: #555;
    font-size: 15px;
    line-height: 1.4;
}

.facilities-checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #3b71fe;
    background: #e8f4fe;
}

.facilities-checkbox-item:has(input[type="checkbox"]:checked) .label-text {
    color: #3b71fe;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .facilities-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .facilities-modal-header {
        padding: 15px 20px;
    }

    .facilities-modal-header h3 {
        font-size: 18px;
    }

    .facilities-modal-body {
        padding: 20px;
    }

    .facilities-checkbox-item {
        padding: 10px 12px;
    }
}

/* ============================================= */
/* DESKTOP ADJUSTMENTS (Min-width: 769px)       */
/* ============================================= */

@media (min-width: 769px) {

    /* Hide floating buttons on desktop */
    .stay-type-floating-btn,
    .facilities-floating-btn {
        display: none !important;
    }

    /* Center filters on desktop */
    .top-filter {
        align-items: center !important;
    }

    .top-filter>ul {
        justify-content: center !important;
    }

    /* Center the second row of checkboxes */
    .hotel-theme-checkboxes-row {
        justify-content: center !important;
    }

    .theme-filter-section {
        justify-content: center;
    }
}

/* ============================================= */
/* HIDE EMAIL & PHONE ON CHECKOUT SUCCESS PAGE  */
/* ============================================= */

/* Hide Email and Phone rows in Your Booking/Trip section */
/* Target by the label content using :has() selector */
.cart-info .info-section ul>li:has(.label:first-child) {
    /* Only hide the first 2 li items which are Email and Phone */
}

/* Target specific li elements containing Email/Phone in info-section */
.info-section ul>li:first-child,
.info-section ul>li:nth-child(2) {
    display: none !important;
}

/* Also target via cart-info wrapper for more specificity */
.cart-info .info-section ul>li:first-child,
.cart-info .info-section ul>li:nth-child(2) {
    display: none !important;
}