/* Agent high-density search workspace — desktop panels grow naturally (sticky sidebar in style.css) */

.search-filter-sidebar--dense .search-filter-section {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.search-filter-checklist--dense .search-filter-check--compact,
.search-filter-type-list--dense .search-filter-type--compact {
    padding: 0.2rem 0;
    font-size: 0.8125rem;
}

.search-results-layout--agent .search-filter-sidebar--desktop,
.search-results-layout--with-dense-filters .search-filter-sidebar--desktop {
    align-self: flex-start;
}

.agent-search-toolbar {
    border-left: 4px solid var(--bs-primary);
    overflow: hidden;
}

.agent-search-toolbar__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.agent-search-toolbar__section {
    min-width: 0;
    padding: 0 1.25rem;
}

.agent-search-toolbar__section:not(:last-child) {
    border-right: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

.agent-search-toolbar__section:first-child {
    padding-left: 0;
}

.agent-search-toolbar__section:last-child {
    padding-right: 0;
}

.agent-search-toolbar__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    margin: 0 0 0.5rem;
}

.agent-search-toolbar__trip-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.agent-search-toolbar__trip-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.agent-search-toolbar__trip-add {
    width: 2.25rem;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agent-search-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.agent-search-toolbar__view-toggle .btn {
    flex: 1 1 50%;
}

.agent-search-toolbar__hint {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .agent-search-toolbar__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agent-search-toolbar__section {
        padding: 0 0 1rem;
        border-right: none !important;
        border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
    }

    .agent-search-toolbar__section:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

.agent-search-table {
    font-size: 0.8125rem;
}

.agent-search-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.agent-search-table tbody tr.search-listing-item--hidden,
.agent-search-table tbody tr.search-listing-item--off-page {
    display: none;
}

.search-result-card--agent .agent-price-stack {
    background: rgba(var(--bs-primary-rgb), 0.04);
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
}

.agent-compare-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 1020;
}

.agent-compare-check {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.offcanvas .search-filter-sidebar--dense .search-filter-panel {
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 991.98px) {
    .search-results-layout--agent .search-filter-sidebar--desktop,
    .search-results-layout--with-dense-filters .search-filter-sidebar--desktop {
        position: static;
        max-height: none;
    }
}
