/* TX Property Search — popover toggle + autocomplete (behavioural styles only;
   the el-booking-1 layout/skin comes from the theme design CSS). */

/* Advanced filters popover: hidden until toggled open by the widget JS. */
.el-booking-1-filter-popup {
    display: none;
}
.el-booking-1-filter-popup.is-open {
    display: block;
}

/* Keyword autocomplete dropdown. */
.el-booking-1-field--keyword {
    position: relative;
}
/* Tight relative box around just the input so the dropdown anchors to the
   input's bottom edge (not below the label) and drops straight down. */
.el-booking-1-keyword-box {
    position: relative;
    width: 100%;
}
.el-booking-1-suggest {
    position: absolute;
    z-index: 99;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(17, 17, 26, 0.12);
    max-height: 300px;
    overflow-y: auto;
    /* Smooth open/close animation. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.el-booking-1-suggest.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(15px);
    pointer-events: auto;
}
.el-booking-1-suggest-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--el-font-1, "Figtree", sans-serif);
    font-size: 15px;
    line-height: 1.4;
    color: #1c1c1c;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.el-booking-1-suggest-item:hover,
.el-booking-1-suggest-item.is-active {
    background: var(--el-clr-pr-1, #5758D6);
    color: #fff;
}
.el-booking-1-suggest-empty {
    padding: 10px 14px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

/* Tiny inline loading spinner shown while suggestions are fetched. */
.el-booking-1-suggest-spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(87, 88, 214, 0.25);
    border-top-color: var(--el-clr-pr-1, #5758D6);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.el-booking-1-keyword-box.is-loading .el-booking-1-suggest-spinner {
    opacity: 1;
    animation: elBookingSpin 0.7s linear infinite;
}
@keyframes elBookingSpin {
    to { transform: rotate(360deg); }
}

/* Custom select: let long option lists scroll instead of running off-screen,
   and keep an open dropdown above neighbouring fields. */
.el-booking-1-custom-select.is-open {
    z-index: 30;
}
.el-booking-1-custom-select-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Native select is kept only for form submit — never let it flash visible
   before the JS upgrades it. */
.el-booking-1-select--native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Prevent the trigger/options text from being selected on click (the blue
   highlight) and keep the trigger text vertically centred + stable so the box
   never appears to shift when clicked. */
.el-booking-1-custom-select-trigger,
.el-booking-1-custom-select-option {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.el-booking-1-custom-select-trigger {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.2;
}
.el-booking-1-custom-select-trigger:focus,
.el-booking-1-custom-select-trigger:active {
    outline: none;
    box-shadow: none;
    transform: none;
}
