/* ================================
   CBM HOME SEARCH
================================ */

.cbm-home-search-wrapper {
    width: 100%;
    position: relative;
    z-index: 10;
}

.cbm-home-search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.cbm-home-search-date,
.cbm-home-search-guests {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 20px;
    cursor: pointer;
    background: #fff;
}

.cbm-home-search-date {
    flex: 1;
    border-right: 1px solid #e5e5e5;
}

.cbm-home-search-guests {
    width: 190px;
    border-right: 1px solid #e5e5e5;
}

.cbm-home-search-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.cbm-home-search-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cbm-home-search-content small {
    font-size: 12px;
    line-height: 1;
    color: #777;
}

.cbm-home-search-content span {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

#cbm-home-guests {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    padding: 8px 0;
}

#cbm-home-search-button {
    min-width: 160px;
    padding: 0 28px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#cbm-home-search-button:hover {
    background: #333;
}

#cbm-home-date-box:focus {
    outline: 2px solid #111;
    outline-offset: -2px;
}


/* ================================
   CALENDAR MODAL
================================ */

.cbm-home-calendar-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.cbm-home-calendar-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbm-home-calendar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cbm-home-calendar-dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.cbm-home-calendar-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #222;
    font-size: 26px;
    line-height: 0;
    cursor: pointer;
    z-index: 5;
}

.cbm-home-calendar-close:hover {
    background: #e5e5e5;
}

.cbm-home-calendar-content {
    width: 100%;
}


/* Prevent background scrolling while calendar is open */

body.cbm-calendar-open {
    overflow: hidden;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .cbm-home-search-bar {
        flex-direction: column;
        border-radius: 10px;
    }

    .cbm-home-search-date,
    .cbm-home-search-guests {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    #cbm-home-search-button {
        width: 100%;
        min-height: 60px;
    }

    .cbm-home-calendar-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px 15px;
        border-radius: 12px;
    }

    .cbm-home-calendar-close {
        top: 8px;
        right: 8px;
    }
}