/* ============================================================
   SCHOOL SEARCH DROPDOWN
   Shared between _SearchBar (Index) and LeaseFindShort
   ============================================================ */

/* Trigger field needs relative positioning for dropdown */
.school-search-trigger {
    position: relative;
}

/* Dropdown panel */
.school-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 420px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 8px 0;
}

.school-dropdown.open {
    display: block;
}

/* Section header */
.school-dropdown-header {
    padding: 14px 20px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lw-text-muted, #5a6877);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Result item */
.school-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.school-dropdown-item:hover {
    background: rgba(48, 133, 195, 0.04);
}

/* Icon container */
.school-dropdown-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 16px;
}

.school-dropdown-icon.nearby {
    background: linear-gradient(135deg, #d5f0ed, #e8f4fb);
    color: var(--lw-teal, #2ec4b6);
}

.school-dropdown-icon.school {
    background: linear-gradient(135deg, #e8f4fb, #f0f2f5);
    color: var(--lw-blue, #3085C3);
}

/* Text */
.school-dropdown-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lw-text, #1a1a2e);
}

.school-dropdown-location {
    font-size: 0.78rem;
    color: var(--lw-text-muted, #5a6877);
}

/* Highlighted match text */
.school-dropdown-match {
    background: #d5f0ed;
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

/* Separator between Nearby and results */
.school-dropdown-separator {
    border-bottom: 1px solid #f0f2f5;
}

/* Loading / empty states */
.school-dropdown-status {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--lw-text-muted, #5a6877);
}

/* Responsive — mobile stacked search bar */
@media (max-width: 992px) {
    .school-dropdown {
        width: 100%;
        left: 0;
        border-radius: 12px;
    }
}
