/* ============================================================
   Houzez Cities Grid Widget – cities-grid.css
   ============================================================ */

.hcg-grid {
    display: grid;
    gap: var(--hcg-gap, 16px);
    grid-template-columns: repeat(var(--hcg-columns, 4), 1fr);
}

/* Responsive */
@media (max-width: 1024px) {
    .hcg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hcg-grid {
        grid-template-columns: 1fr;
    }
}

/* === Card === */
.hcg-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--hcg-radius, 12px);
    aspect-ratio: 1/1;
    display: flex !important;
    align-items: flex-start !important;
    /* Fuerza el inicio (top) */
    justify-content: flex-start !important;
    /* Fuerza el final (izquierda) */
    cursor: pointer;
    background-color: #1a1a1a;
    text-decoration: none !important;
}

/* Card "others" — now same size as others */
.hcg-card--others {
    grid-column: span 2 !important;
    aspect-ratio: auto !important;
}

@media (max-width: 600px) {
    .hcg-card--others {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* === Background image === */
.hcg-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
    will-change: transform;
}

.hcg-card:hover .hcg-card__bg {
    transform: scale(1.07);
}

/* === Dark gradient overlay === */
.hcg-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0) 70%);
}

/* === Text content === */
.hcg-card__content {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: #fff;
    width: 100%;
    text-align: left;
    /* Alineación a la izquierda */
}

.hcg-card__count {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.95;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hcg-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Smaller cards (4-column) reduce title size */
.hcg-grid[style*="--hcg-columns:4"] .hcg-card__title,
.hcg-grid[style*="--hcg-columns: 4"] .hcg-card__title {
    font-size: 18px;
}