﻿/* ===========================================
   TOP STATES
=========================================== */

.top-states-wrapper {
    max-width: 1220px;
    margin: 40px auto 0;
    padding: 0 24px;
    box-sizing: border-box;
}

.top-states-section {
    /* no extra wrapper styling needed; button + list handle it */
}

/* MAIN BUTTON */

.top-states-link {
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 18px 22px;
    font-size: 20px;
    font-weight: 700;
    color: #123a63;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all .3s ease;
}

    .top-states-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .top-states-link.is-open {
        background: linear-gradient(135deg, #eaf4ff, #ffffff);
        border-color: #60a5fa;
        color: #0066cc;
    }

/* ARROW (circle, on the button) */

.top-states-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eaf3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: .3s;
    flex-shrink: 0;
}

.top-states-link.is-open .top-states-arrow {
    transform: rotate(180deg);
    background: #0066cc;
    color: white;
}

/* LIST CONTAINER */

.top-states-list {
    margin-top: 15px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    max-height: 350px;
    overflow-y: auto;
}

    /* SCROLL BAR */

    .top-states-list::-webkit-scrollbar {
        width: 8px;
    }

    .top-states-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 20px;
    }

        .top-states-list::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* STATE ITEM (row) */

.top-state-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    text-decoration: none;
    color: #1f2937;
    border-bottom: 1px solid #f1f5f9;
    transition: .25s ease;
}

    .top-state-item:last-child {
        border-bottom: none;
    }

    .top-state-item span:first-child {
        font-size: 16px;
        font-weight: 500;
        color: #334155;
    }

    .top-state-item:hover {
        background: #f8fbff;
        color: #0066cc;
        padding-left: 30px;
    }

    /* RIGHT ARROW (circle, per item) */

    .top-state-item span:last-child {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f1f5f9;
        color: #475569;
        font-size: 18px;
        transition: .3s;
        flex-shrink: 0;
    }

    .top-state-item:hover span:last-child {
        background: #0066cc;
        color: white;
        transform: translateX(4px);
    }

/* MOBILE */

@media (max-width: 768px) {

    .top-states-wrapper {
        padding: 0 20px;
    }

    .top-states-link {
        font-size: 17px;
        padding: 15px;
    }

    .top-state-item {
        padding: 15px;
    }

        .top-state-item span:first-child {
            font-size: 14px;
        }
}
