:root {
    --sc-primary: #2271b1;
}

/* Search Bar */
.sc-search-bar {
    width: 100%;
    margin: 0 auto;
}

.sc-search-form {
    display: flex;
    align-items: stretch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: visible;
    position: relative;
}

/* Dividers */
.sc-search-divider {
    width: 1px;
    background: #e0e0e0;
    align-self: stretch;
    margin: 12px 0;
    flex-shrink: 0;
}

/* Fields */
.sc-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    position: relative;
}


.sc-search-field:hover {
    background: #f7f7f7;
    border-radius: 8px;
}

.sc-field-icon {
    color: var(--sc-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sc-field-inner {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.sc-field-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
    white-space: nowrap;
}

/* Destination select */
.sc-select {
    border: none;
    outline: none;
    font-size: 0.9em;
    font-weight: 500;
    color: #424242;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

/* Date range display */
.sc-daterange-display {
    border: none;
    outline: none;
    font-size: 0.9em;
    font-weight: 500;
    color: #424242;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-daterange-display::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Guests summary */
.sc-guests-summary {
    font-size: 0.9em;
    font-weight: 500;
    color: #424242;
    white-space: nowrap;
}

/* Destination display */
.sc-destination-display {
    font-size: 0.9em;
    font-weight: 400;
    color: #aaa;
    white-space: nowrap;
    cursor: pointer;
}

.sc-destination-display.sc-has-value {
    font-weight: 500;
    color: #424242;
}

/* Location popup */
.sc-location-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 999;
    overflow: hidden;
}

.sc-location-popup.sc-popup-open {
    display: block;
}

.sc-location-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.sc-location-item {
    padding: 10px 20px;
    font-size: 0.95em;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.sc-location-item:hover {
    background: #f5f5f5;
}

/* Guests popup */
.sc-guests-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 16px 20px;
    z-index: 999;
}

.sc-guests-popup.sc-popup-open {
    display: block;
}

.sc-guests-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.sc-guests-row + .sc-guests-row {
    border-top: 1px solid #f0f0f0;
}

.sc-guests-label {
    font-size: 0.95em;
    color: #333;
}

.sc-guests-counter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sc-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.15s, color 0.15s;
}

.sc-counter-btn:hover {
    border-color: var(--sc-primary);
    color: var(--sc-primary);
}

.sc-counter-value {
    font-size: 1em;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    color: #424242;
}

/* Search button */
.sc-search-btn {
    flex-shrink: 0;
    padding: 0 28px;
    background: var(--sc-primary);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.sc-search-btn:hover:not(:disabled) {
    filter: brightness(0.85);
}

.sc-search-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Date error message */
.sc-date-error {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: #c0392b;
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 8px 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sc-search-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .sc-search-divider {
        width: auto;
        height: 1px;
        margin: 0 16px;
    }

    .sc-search-field:hover {
        border-radius: 0;
    }

    .sc-search-btn {
        border-radius: 0 0 8px 8px;
        padding: 14px;
        text-align: center;
    }

    .sc-guests-popup {
        left: 0;
        right: 0;
    }


}
