/* VoTech Schools Finder — left-pane cards and layout tweaks */

.find-page.votech-page .address-input-wrap {
    position: relative;
    z-index: 5;
}

.find-page.votech-page .address-input-wrap .autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.find-page.votech-page .left-pane {
    display: flex;
    flex-direction: column;
    max-height: none;
}

.find-page.votech-page .votech-disclaimer {
    background: #eef6fa;
    border: 1px solid #b8d4e3;
    border-radius: 8px;
    color: #1f4d63;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
}

.find-page.votech-page .votech-disclaimer strong {
    color: #1a6b8a;
}

.find-page.votech-page #votechResults {
    display: none;
    margin-top: 1.25rem;
}

.find-page.votech-page .votech-results-summary {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.find-page.votech-page .votech-results-empty {
    color: var(--color-text-muted);
    font-style: italic;
    margin: 1rem 0 0;
}

.find-page.votech-page .votech-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-bottom: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.find-page.votech-page .votech-card:hover,
.find-page.votech-page .votech-card:focus {
    border-color: #1a6b8a;
    box-shadow: 0 4px 8px rgba(26, 107, 138, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.find-page.votech-page .votech-card.votech-card--active {
    background: #eef6fa;
    border-color: #1a6b8a;
    box-shadow: 0 4px 8px rgba(26, 107, 138, 0.2);
    transform: translateY(-2px);
}

.find-page.votech-page .votech-card .school-name {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.find-page.votech-page .votech-card .votech-card__county {
    color: #495057;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 4px;
}

.find-page.votech-page .votech-card .votech-card__district {
    color: #1a6b8a;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 6px;
}

.find-page.votech-page .votech-card .school-details {
    color: var(--color-text-muted);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.find-page.votech-page .votech-card .school-address {
    color: var(--color-text-muted);
    font-size: 0.85em;
    font-style: italic;
    margin-bottom: 10px;
}

.find-page.votech-page .votech-card .school-grade-levels {
    border-top: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 8px;
    padding-top: 4px;
}

.find-page.votech-page .votech-card .votech-card__distance {
    color: #2c3e50;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 600;
    margin-bottom: 8px;
}

.find-page.votech-page .votech-card .school-links {
    margin-top: 8px;
}

.find-page.votech-page .votech-card .report-card-link {
    background: #1a6b8a;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 500;
    padding: 6px 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.find-page.votech-page .votech-card .report-card-link:hover {
    background: #145a73;
    color: #fff;
    text-decoration: none;
}

.find-page.votech-page .right-pane h3 {
    color: #2c3e50;
    margin: 0;
}

.find-page.votech-page #votechMapPanel {
    scroll-margin-top: 12px;
}

.find-page.votech-page .votech-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.find-page.votech-page .votech-map-legend__item {
    align-items: center;
    color: #495057;
    display: flex;
    font-size: 0.85rem;
    gap: 6px;
}

.find-page.votech-page .votech-map-legend__swatch {
    border: 2px solid currentColor;
    border-radius: 3px;
    display: inline-block;
    height: 14px;
    width: 14px;
}

.find-page.votech-page .votech-map-legend__item--new-castle {
    color: #1a6b8a;
}

.find-page.votech-page .votech-map-legend__item--kent {
    color: #8b6914;
}

.find-page.votech-page .votech-map-legend__item--sussex {
    color: #2e7d32;
}

.find-page.votech-page .votech-map-legend__swatch {
    background: rgba(255, 255, 255, 0.65);
}

.find-page.votech-page .votech-map-legend__item--new-castle .votech-map-legend__swatch {
    background: rgba(26, 107, 138, 0.15);
}

.find-page.votech-page .votech-map-legend__item--kent .votech-map-legend__swatch {
    background: rgba(184, 134, 11, 0.15);
}

.find-page.votech-page .votech-map-legend__item--sussex .votech-map-legend__swatch {
    background: rgba(46, 125, 50, 0.15);
}

@media (min-width: 1301px) {
    .find-page.votech-page .right-pane {
        position: sticky;
        top: 12px;
        align-self: flex-start;
        max-height: calc(100vh - 24px);
    }

    .find-page.votech-page #votechMapPanel {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .find-page.votech-page #map {
        height: min(800px, calc(100vh - 120px)) !important;
    }
}

@media (max-width: 900px) {
    .find-page.votech-page .two-pane-container {
        flex-direction: column;
    }

    .find-page.votech-page #map {
        height: 420px !important;
    }
}
