/* Escopo para a página de Estados (.page-states) */
.page-states {
    margin: 0;
    background: #ead09a;
    color: #2e2e2e;
    font-family: Montserrat, Arial, sans-serif;
}

.page-states * {
    box-sizing: border-box;
}

/* Seção de Introdução */
.page-states .intro {
    background: linear-gradient(125deg, #120e10, #38202a 65%, #6d2840);
    color: white;
    border-bottom: 1px solid #c6a267;
}

.page-states .intro-inner {
    width: min(1120px, calc(100% - 48px));
    margin: auto;
    padding: 58px 0 52px;
}

.page-states .eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.7px;
    color: #d4b483;
    text-transform: uppercase;
}

.page-states h1,
.page-states h2,
.page-states h3 {
    font-family: Georgia, serif;
}

.page-states h1 {
    font-size: 49px;
    line-height: 1.05;
    margin: 10px 0 16px;
    color: #f7dfb0;
}

.page-states .intro p {
    max-width: 800px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #eee2dd;
}

/* Diretório principal e buscador */
.page-states .directory {
    width: min(1120px, calc(100% - 48px));
    margin: auto;
    padding: 38px 0 75px;
}

.page-states .finder {
    background: #f9f3e6;
    border: 1px solid #c5a263;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 45px;
    box-shadow: 0 9px 22px rgba(69, 45, 25, .12);
}

.page-states .finder h2 {
    color: #40232c;
    font-size: 25px;
    margin: 0 0 16px;
}

.page-states .search {
    width: 100%;
    border: 1px solid #bda47f;
    background: white;
    border-radius: 9px;
    padding: 14px 16px;
    font: 16px inherit;
    color: #2f2528;
    outline: none;
}

.page-states .search:focus {
    border-color: #72223b;
    box-shadow: 0 0 0 3px rgba(114, 34, 59, .13);
}

/* Botões de Estados */
.page-states .states {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.page-states .states button {
    border: 1px solid #a98a62;
    background: #fff;
    color: #72223b;
    border-radius: 22px;
    padding: 9px 14px;
    font: 700 13px inherit;
    cursor: pointer;
}

.page-states .states button:hover,
.page-states .states button.active {
    background: #72223b;
    color: white;
    border-color: #72223b;
}

/* Seções de cada Estado geradas pelo JS */
.page-states .state-section {
    margin-bottom: 52px;
    scroll-margin-top: 88px;
}

.page-states .state-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: #40232c;
    font-size: 31px;
}

.page-states .state-title:after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(114, 34, 59, .3);
}

/* Grid de Clubes */
.page-states .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card do Clube */
.page-states .club {
    background: #21181b;
    border: 1px solid #65464e;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 9px 18px rgba(69, 45, 25, .16);
}

/* Visual / Imagem do Card */
.page-states .visual {
    height: 220px;
    display: block;
    background: #171113;
    border-bottom: 1px solid #65464e;
    overflow: hidden;
    position: relative;
}

.page-states .visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.page-states .visual img.logo {
    object-fit: contain;
    padding: 22px;
    background: #171113;
}

.page-states .wordmark {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #782842, #171113 72%);
    color: #f0d39a;
    font: 700 31px/1.08 Georgia, serif;
    letter-spacing: .4px;
}

.page-states .visual:hover img {
    transform: scale(1.025);
}

/* Informações Internas do Card */
.page-states .info {
    padding: 20px 21px 22px;
    color: #fff;
}

.page-states .city {
    color: #d4b483;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.page-states h3 {
    font-size: 25px;
    color: #f0d39a;
    margin: 7px 0 17px;
    line-height: 1.15;
}

.page-states .line {
    border-top: 1px solid #50383f;
    padding: 12px 0 0;
    margin-top: 11px;
}

.page-states .line span {
    font-size: 10px;
    color: #d8b97f;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.page-states .line p {
    font-size: 13px;
    line-height: 1.5;
    color: #eee5df;
    margin: 4px 0 0;
}

/* Botão de Site Oficial */
.page-states .official {
    display: block;
    margin-top: 19px;
    background: #72223b;
    border: 1px solid #b88e59;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    padding: 12px;
}

.page-states .official:hover {
    background: #8b2948;
}

/* Estado vazio / Nenhum local encontrado */
.page-states .empty {
    display: none;
    background: #f9f3e6;
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    color: #72223b;
}

/* Aviso importante (Aside) */
.page-states .notice {
    margin-top: 38px;
    background: #f9f3e6;
    border: 1px solid #c5a263;
    border-left: 5px solid #72223b;
    border-radius: 10px;
    padding: 20px 22px;
    font-size: 13px;
    line-height: 1.65;
    color: #51423d;
}

.page-states #stateButtons button,
.page-states .states button {
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Responsividade básica para telas menores */
@media (max-width: 900px) {
    .page-states .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .page-states .grid {
        grid-template-columns: 1fr;
    }

    .page-states h1 {
        font-size: 39px;
    }
}