/* =========================================================
   CASAS.CO.CR 2026
   BUSCAR POR PROVINCIA
========================================================= */

.c26-provincias {
    width: 100%;
    padding: 28px 0 32px;

    background: #fff;

    
}

.c26-provincias *,
.c26-provincias *::before,
.c26-provincias *::after {
    box-sizing: border-box;
}

.c26-provincias-contenedor {
    width: var(--anchoP);
    margin: 0 auto;
}


/* CABECERA */

.c26-provincias-cabecera {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.c26-provincias-cabecera h2 {
    margin: 0;

    color: #0A266C;

    font-size: 27px;
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: -.6px;
}

.c26-provincias-ver-todas {
    color: #0A266C;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.c26-provincias-ver-todas:hover {
    text-decoration: underline;
}


/* GRID */

.c26-provincias-grid {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 14px;
}


/* TARJETA */

.c26-provincia-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid #e2e6eb;
    border-radius: 7px;

    background: #fff;

    color: #0A266C;

    text-decoration: none;

    box-shadow:
        0 3px 9px rgba(0,0,0,.07);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.c26-provincia-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 16px rgba(10,38,108,.13);
}


/* IMAGEN */

.c26-provincia-imagen {
    width: 100%;
    aspect-ratio: 1.55 / 1;

    overflow: hidden;

    background: #eee;
}

.c26-provincia-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.c26-provincia-card:hover
.c26-provincia-imagen img {
    transform: scale(1.04);
}


/* NOMBRE */

.c26-provincia-card > span {
    min-height: 39px;

    padding: 8px 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;

    text-align: center;
}


/* TABLET */

@media (max-width: 1050px) {

    .c26-provincias-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* MÓVIL */

@media (max-width: 600px) {

    .c26-provincias {
        padding: 24px 0;
    }

    .c26-provincias-cabecera h2 {
        font-size: 22px;
    }

    .c26-provincias-ver-todas {
        display: none;
    }

    .c26-provincias-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

}