/* EBS Live Search – results under the search widget in the Elementor popup */

/* While a query is typed: hide the hint + "popular searches" that follow the
   search widget, so the results take their place. Clearing brings them back. */
.elementor-location-popup.ebs-ls-has-query .elementor-widget-search ~ :not(.ebs-ls) {
    display: none !important;
}

.ebs-ls {
    width: 100%;
    margin-top: 18px;
    color: #ffffff;
    font-family: inherit;
}

.ebs-ls[hidden] {
    display: none !important;
}

.ebs-ls-status {
    margin: 0 0 12px;
    font-size: 16px;
    opacity: 0.85;
}

.ebs-ls-status[hidden] {
    display: none;
}

.ebs-ls-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(46vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ebs-ls-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ebs-ls-item:last-child {
    border-bottom: 0;
}

.ebs-ls-item a {
    display: block;
    padding: 14px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

/* !important: the theme's global a:hover colour (dark purple) made the
   text unreadable on the purple popup. Keep it white in every state. */
.ebs-ls .ebs-ls-item a:hover,
.ebs-ls .ebs-ls-item a:focus,
.ebs-ls .ebs-ls-item a:focus-visible,
.ebs-ls .ebs-ls-item.is-active a {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    outline: none;
}

.ebs-ls .ebs-ls-item a:hover .ebs-ls-title,
.ebs-ls .ebs-ls-item a:hover .ebs-ls-text,
.ebs-ls .ebs-ls-item a:hover .ebs-ls-type,
.ebs-ls .ebs-ls-item.is-active a .ebs-ls-title,
.ebs-ls .ebs-ls-item.is-active a .ebs-ls-text {
    color: #ffffff !important;
}

.ebs-ls-title {
    font-size: 18px;
    line-height: 1.35;
}

.ebs-ls-type {
    display: inline-block;
    margin-inline-start: 10px;
    padding: 1px 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1.6;
    vertical-align: middle;
    opacity: 0.85;
}

.ebs-ls-text {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.78;
}

.ebs-ls mark {
    background: #ec4d64;
    color: #ffffff;
    padding: 0 2px;
}

.ebs-ls-all {
    display: inline-block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ebs-ls .ebs-ls-all,
.ebs-ls .ebs-ls-all:visited {
    color: #ffffff !important;
}

/* Hover: same pink as the search button, text stays white and readable. */
.ebs-ls .ebs-ls-all:hover,
.ebs-ls .ebs-ls-all:focus-visible {
    color: #ffffff !important;
    text-decoration-color: #ec4d64;
    text-decoration-thickness: 2px;
    outline: none;
}

.ebs-ls-all[hidden] {
    display: none;
}

.ebs-ls[dir="rtl"] {
    text-align: right;
}

@media (max-width: 767px) {
    .ebs-ls-title {
        font-size: 16px;
    }

    .ebs-ls-item a {
        padding: 12px 10px;
    }
}
