/**
 * Main Site (brand) Styles
 * Loaded only on the main site, on top of style.css (Dusit Thani brand).
 * Adds the searchable hotel dropdown that replaces .rbo-resort-name.
 */

.rbo-main-site .rbo-header {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    /* The inline easepick calendar container uses z-index 9999 (zIndex option);
       keep the header (and its hotel dropdown) above it. */
    position: relative;
    z-index: 10001;
}

.rbo-hotel-select {
    position: relative;
    flex: 1;
    min-width: 0;
}

.rbo-hotel-select-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 16px;
    color: #888;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.rbo-hotel-select-toggle:hover,
.rbo-hotel-select.is-open .rbo-hotel-select-toggle {
    border-color: #32323f;
}

.rbo-hotel-select.has-error .rbo-hotel-select-toggle {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.rbo-hotel-select-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rbo-hotel-select-value.has-value {
    color: #333;
    font-weight: 500;
}

.rbo-hotel-select-arrow {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #888;
    transition: transform 0.3s ease;
}

.rbo-hotel-select.is-open .rbo-hotel-select-arrow {
    transform: rotate(180deg);
}

.rbo-hotel-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rbo-hotel-select-search {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    outline: none;
    border-radius: 0;
}

.rbo-hotel-select-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    position: relative;
}

.rbo-hotel-select-group {
    padding: 10px 15px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
}

.rbo-hotel-select-option {
    padding: 9px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.rbo-hotel-select-option.is-active {
    background: #f5f4f2;
}

.rbo-hotel-select-option.is-selected {
    font-weight: 600;
    color: #32323f;
}

.rbo-hotel-select-panel[hidden],
.rbo-hotel-select-group[hidden],
.rbo-hotel-select-option[hidden],
.rbo-hotel-select-empty[hidden],
.rbo-hotel-select-error[hidden] {
    display: none;
}

.rbo-hotel-select-empty {
    padding: 12px 15px;
    font-size: 14px;
    color: #888;
}

.rbo-hotel-select-error {
    margin-top: 5px;
    font-size: 12px;
    color: #e74c3c;
}
