.sea-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(5 * 1.5em);
    line-height: 1.5;
}

.search-svg {
    width: 75%;
    height: 80%;
    fill: rgba(255, 255, 255, 0.85);
}

.irs--modern .irs-bar {
    background: var(--lc-brown);
}

.irs--modern .irs-from,
.irs--modern .irs-to,
.irs--modern .irs-single {
    background: var(--lc-orange);
    font-weight: bold;
}

.irs--modern .irs-from::before,
.irs--modern .irs-to::before,
.irs--modern .irs-single::before {
    border-top-color: var(--lc-orange);
}

.irs--modern .irs-handle > i:nth-child(1) {
    background: var(--lc-orange);
    border: 1px solid var(--lc-orange);
    top: -3px;
    left: 2px;
    width: 7px;
}

.irs--modern .irs-handle > i:nth-child(2) {
    background: var(--lc-orange);
}

.irs--modern .irs-handle > i:nth-child(3) {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.irs--modern .irs-handle {
    border: 1px solid #a3adc100;
}

/* Bootstrap 5 Dark Mode Overrides for jQuery UI Autocomplete */
[data-bs-theme='dark'] .ui-autocomplete {
    background-color: #2b3035; /* Bootstrap dark bg */
    border: 1px solid #444;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    color: #dee2e6;
}

[data-bs-theme='dark'] .ui-autocomplete > li > a {
    color: #dee2e6;
}

[data-bs-theme='dark'] .ui-autocomplete > li > a:hover,
[data-bs-theme='dark'] .ui-autocomplete > li > a.ui-state-focus,
[data-bs-theme='dark'] .ui-autocomplete > li > a.ui-state-active {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #ffffff;
}

/* Ensure high z-index to appear over Bootstrap navbars */
.ui-autocomplete {
    z-index: 9999;
}
