/* ══════════════════════════════════════════════
   WHERE WE TAUGHT — LIST VIEW (original)
   ══════════════════════════════════════════════ */

.where-we-taught-block {
    background-color: #fff;
}

.where-we-taught-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.where-we-taught-intro p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.where-we-taught-category {
    margin-bottom: 3rem;
}

.where-we-taught-category:last-child {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-header h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.category-description {
    color: #666;
    font-style: italic;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.location-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.location-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

@media screen and (max-width: 1199px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .where-we-taught-intro p {
        font-size: 1.1rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        text-align: center;
    }
}


/* ══════════════════════════════════════════════
   WHERE WE TAUGHT — MAP VIEW
   ══════════════════════════════════════════════ */

/* ── Toolbar ── */
.wwt-toolbar {
    background: #f8f9fb;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 20px 24px 16px;
    margin-bottom: 16px;
}

.wwt-toolbar-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.wwt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wwt-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8599;
    font-family: var(--font1), sans-serif;
}

.wwt-filter-label svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* Select wrapper */
.wwt-select-wrap {
    position: relative;
}

.wwt-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #dce0e8;
    border-radius: 8px;
    padding: 9px 36px 9px 14px;
    font-size: 0.88rem;
    font-family: var(--font2), sans-serif;
    color: #333;
    cursor: pointer;
    min-width: 155px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

.wwt-select-wrap select:hover {
    border-color: #b0b8c8;
}

.wwt-select-wrap select:focus {
    outline: none;
    border-color: var(--primary, #4B6E96);
    box-shadow: 0 0 0 3px rgba(75, 110, 150, 0.12);
}

/* Zip Code Search */
.wwt-zip-group {
    min-width: 170px;
}

.wwt-zip-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.wwt-zip-input {
    width: 100%;
    background: #fff;
    border: 1px solid #dce0e8;
    border-radius: 8px 0 0 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-family: var(--font2), sans-serif;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
    min-width: 0;
}

.wwt-zip-input::placeholder {
    color: #aab0bd;
    letter-spacing: 0;
}

.wwt-zip-input:hover {
    border-color: #b0b8c8;
}

.wwt-zip-input:focus {
    outline: none;
    border-color: var(--primary, #4B6E96);
    box-shadow: 0 0 0 3px rgba(75, 110, 150, 0.12);
    z-index: 1;
}

.wwt-zip-go {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #4B6E96);
    border: 1px solid var(--primary, #4B6E96);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 9px 12px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.wwt-zip-go:hover {
    opacity: 0.85;
}

.wwt-zip-go:disabled {
    opacity: 0.5;
    cursor: wait;
}

.wwt-zip-clear {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: #e8ebf0;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}

.wwt-zip-clear:hover {
    background: #d0d4dc;
}

/* Zip status message */
.wwt-zip-status {
    font-size: 0.72rem;
    line-height: 1.2;
    min-height: 14px;
    transition: color 0.2s;
}

.wwt-zip-status:empty {
    display: none;
}

.wwt-zip-success {
    color: #27ae60;
    font-weight: 600;
}

.wwt-zip-error {
    color: #c0392b;
    font-weight: 600;
}

.wwt-zip-loading {
    color: #7a8599;
    font-style: italic;
}

/* Distance badge on cards */
.wwt-card-dist {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary, #4B6E96);
    background: rgba(75, 110, 150, 0.08);
    padding: 2px 7px;
    border-radius: 100px;
    margin-top: 2px;
    white-space: nowrap;
}

/* Counter badge */
.wwt-counter {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-left: auto;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    white-space: nowrap;
    align-self: flex-end;
}

.wwt-visible-count {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary, #4B6E96);
    font-family: var(--font1), sans-serif;
    line-height: 1;
}

.wwt-counter-sep {
    color: #c0c5d0;
    font-size: 0.85rem;
    font-weight: 400;
}

.wwt-total-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8891a3;
}

.wwt-counter-label {
    font-size: 0.72rem;
    color: #9ca3b4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 4px;
}


/* ── Category Pills ── */
.wwt-toolbar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e8ecf1;
}

.wwt-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid #d8dce5;
    border-radius: 100px;
    background: #fff;
    cursor: pointer;
    font-family: var(--font2), sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555d6e;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wwt-cat-pill:hover {
    border-color: #a8b0c0;
    background: #f3f5f8;
}

.wwt-cat-pill.active {
    background: var(--primary, #4B6E96);
    border-color: var(--primary, #4B6E96);
    color: #fff;
}

.wwt-cat-pill.active .wwt-pill-dot {
    background: #fff !important;
}

.wwt-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wwt-pill-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 7px;
    border-radius: 100px;
    min-width: 22px;
    text-align: center;
}

.wwt-cat-pill.active .wwt-pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── Out of State pill separator ── */
.wwt-pill-separator {
    width: 1px;
    height: 24px;
    background: #d8dce5;
    align-self: center;
    margin: 0 4px;
}

.wwt-out-of-state-pill {
    font-weight: 700;
}


/* ── Split Layout ── */
.wwt-map-content {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 620px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e4e7ec;
}

.wwt-cards-panel {
    flex: 0 0 38%;
    max-width: 38%;
    background: #f8f9fb;
    border-right: 1px solid #e4e7ec;
    display: flex;
    flex-direction: column;
}

.wwt-cards-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 16px;
    max-height: 620px;
    scroll-behavior: smooth;
}

/* Scrollbar styling */
.wwt-cards-scroll::-webkit-scrollbar {
    width: 6px;
}

.wwt-cards-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.wwt-cards-scroll::-webkit-scrollbar-thumb {
    background: #c8cdd6;
    border-radius: 3px;
}

.wwt-cards-scroll::-webkit-scrollbar-thumb:hover {
    background: #a0a8b6;
}


.wwt-map-panel {
    flex: 1;
    position: relative;
}

.wwt-map-container {
    width: 100%;
    height: 100%;
    min-height: 620px;
}


/* ── Category Groups ── */
.wwt-category-group {
    margin-bottom: 20px;
    animation: wwtFadeIn 0.25s ease;
}

.wwt-category-group:last-child {
    margin-bottom: 0;
}

@keyframes wwtFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wwt-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.wwt-cat-bar {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--cat-color, #4B6E96);
    flex-shrink: 0;
}

.wwt-cat-header h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5268;
    margin: 0;
    font-family: var(--font1), sans-serif;
    line-height: 1.3;
}

.wwt-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #8891a3;
    background: #e8ecf1;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
    flex-shrink: 0;
}


/* ── Cards ── */
.wwt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wwt-card:last-child {
    margin-bottom: 0;
}

.wwt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--card-color, var(--primary, #4B6E96));
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.wwt-card:hover {
    border-color: #c8d0dc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wwt-card:hover::before {
    height: 60%;
}

.wwt-card.active {
    border-color: var(--card-color, var(--primary, #4B6E96));
    background: #fff;
    box-shadow: 0 2px 12px rgba(75, 110, 150, 0.12);
}

.wwt-card.active::before {
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.wwt-card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--card-color, #4B6E96);
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
}

.wwt-card:hover .wwt-card-dot,
.wwt-card.active .wwt-card-dot {
    transform: scale(1.25);
    opacity: 1;
}

.wwt-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.wwt-card-name {
    font-weight: 600;
    color: #2c3344;
    font-size: 0.88rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wwt-card-address {
    font-size: 0.75rem;
    color: #8891a3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.wwt-card-chevron {
    flex-shrink: 0;
    color: #c0c5d0;
    transition: color 0.2s, transform 0.2s;
}

.wwt-card:hover .wwt-card-chevron {
    color: #8891a3;
    transform: translateX(2px);
}

.wwt-card.active .wwt-card-chevron {
    color: var(--card-color, var(--primary, #4B6E96));
}


/* ── Empty State ── */
.wwt-empty-state {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #8891a3;
    gap: 8px;
}

.wwt-empty-icon {
    margin-bottom: 8px;
    opacity: 0.35;
}

.wwt-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #555d6e;
    margin: 0;
}

.wwt-empty-text {
    font-size: 0.85rem;
    color: #9ca3b4;
    margin: 0;
}

.wwt-reset-btn {
    margin-top: 12px;
    padding: 8px 20px;
    border: 1.5px solid #d8dce5;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font2), sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary, #4B6E96);
    cursor: pointer;
    transition: all 0.2s;
}

.wwt-reset-btn:hover {
    background: var(--primary, #4B6E96);
    border-color: var(--primary, #4B6E96);
    color: #fff;
}


/* ── Google Maps Info Window ── */
.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar {
    display: none !important;
}

/* Arrow/tail */
.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
}

/* Remove top padding from header area */
.gm-style .gm-style-iw-ch {
    padding-top: 0 !important;
}

/* Hide the default close button — we let users click elsewhere to dismiss */
.gm-style .gm-style-iw-c button.gm-ui-hover-effect {
    display: none !important;
}

/* Info window content */
.wwt-iw {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 14px;
    min-width: 190px;
    border-top: 3px solid #4B6E96;
}

.wwt-iw-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2233;
    line-height: 1.3;
    font-family: var(--font1), sans-serif;
    margin-bottom: 6px;
}

.wwt-iw-cat {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(75, 110, 150, 0.08);
    width: fit-content;
    margin-bottom: 8px;
}

.wwt-iw-addr {
    font-size: 0.8rem;
    color: #6b7585;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px solid #eef0f4;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 991px) {
    .wwt-toolbar {
        padding: 16px;
    }

    .wwt-toolbar-row {
        gap: 12px;
    }

    .wwt-filter-group {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .wwt-zip-group {
        flex: 1 1 calc(50% - 6px);
    }

    .wwt-counter {
        margin-left: 0;
        align-self: center;
        flex: 0 0 auto;
    }

    .wwt-map-content {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .wwt-cards-panel {
        flex: 1;
        max-width: 100%;
        border-right: none;
        border-top: 1px solid #e4e7ec;
    }

    .wwt-cards-scroll {
        max-height: 400px;
    }

    .wwt-map-panel {
        width: 100%;
    }

    .wwt-map-container {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .wwt-toolbar {
        padding: 14px 12px;
        border-radius: 10px;
    }

    .wwt-toolbar-row {
        gap: 10px;
    }

    .wwt-filter-group {
        flex: 1 1 100%;
    }

    .wwt-select-wrap select {
        width: 100%;
        min-width: 0;
    }

    .wwt-counter {
        width: 100%;
        justify-content: center;
    }

    .wwt-toolbar-pills {
        gap: 6px;
        padding-top: 12px;
    }

    .wwt-cat-pill {
        padding: 5px 12px;
        font-size: 0.76rem;
    }

    .wwt-map-container {
        min-height: 320px;
    }

    .wwt-cards-scroll {
        max-height: 360px;
        padding: 12px;
    }

    .wwt-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .wwt-card-name {
        font-size: 0.82rem;
    }

    .wwt-map-content {
        border-radius: 10px;
    }
}
