/* Guest Dropdown Styles */
.guest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 338px;
    max-height: 500px;
    overflow-y: auto;
}

.guest-dropdown-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #ebebeb;
}

.guest-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.close-guest-dropdown {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-guest-dropdown:hover {
    background-color: #f7f7f7;
}

.guest-options {
    padding: 0px 15px 8px;
}

.guest-type-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
}

.guest-type-section:last-of-type {
    border-bottom: none;
}

.guest-type-info {
    flex: 1;
}

.guest-type-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.guest-type-subtitle {
    font-size: 14px;
    color: #717171;
}

.guest-type-subtitle a {
    color: #222;
    text-decoration: underline;
}

.guest-type-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-control-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #b0b0b0;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #717171;
}

.guest-control-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222;
}

.guest-control-btn:disabled {
    border-color: #ebebeb;
    color: #ebebeb;
    cursor: not-allowed;
}

.guest-control-value {
    font-size: 16px;
    font-weight: 400;
    color: #222;
    min-width: 20px;
    text-align: center;
}

.guest-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
    font-size: 12px;
    color: #717171;
    line-height: 1.4;
}

.guest-close {
    /*width: 100%;*/
    background: white;
    color: #222;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ebebeb;
    float: right;
}

.guest-close:hover {
    background: #f7f7f7;
}

.guest-close svg {
    display: inline-block;
    vertical-align: middle;
}

/* Mobile guest dropdown */
@media (max-width: 767px) {
    .guest-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 12px 12px 0 0;
        border: none;
        max-height: 100vh;
        z-index: 9999;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }

    .guest-dropdown.hidden {
        transform: translateY(100%);
    }

    body.guest-dropdown-open {
        overflow: hidden;
    }

    .guest-dropdown-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .guest-options {
        padding: 16px 24px 32px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .guest-type-section {
        padding: 20px 0;
    }

    .guest-control-btn {
        width: 40px;
        height: 40px;
    }

    /* .guest-close {
        position: sticky;
        bottom: 0;
        margin: 0 -24px -32px;
        border-radius: 0;
        padding: 18px;
    } */
}

/* Guest select styling */
.guest-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
}

.guest-select:focus {
    outline: none;
}


/* Desktop calendar layout fixes */
@media (min-width: 768px) {}