/* ============================================================================
 * Card: Geo (country, city, district)
 * Большое фоновое изображение с градиентом и заголовком в стиле Vogue Travel
 * ========================================================================= */

.h-card-geo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    background: var(--hlife-color-navy, #1A2B49);
    transition: transform 0.3s ease;
}

.h-card-geo:hover {
    transform: translateY(-2px);
}

/* === Image === */
.h-card-geo__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.h-card-geo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.h-card-geo:hover .h-card-geo__img {
    transform: scale(1.06);
}

/* Placeholder when no image — gradient with first letter */
.h-card-geo__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--hlife-color-navy, #1A2B49) 0%,
        var(--hlife-color-charcoal, #333) 100%);
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: 96px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
}

/* === Gradient overlay === */
.h-card-geo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(26, 43, 73, 0.85) 100%
    );
    pointer-events: none;
}

/* === Content === */
.h-card-geo__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 24px;
    color: #fff;
}

.h-card-geo__featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 4px 10px;
    background: var(--hlife-color-gold, #C5A059);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
}

.h-card-geo__type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    font-weight: 500;
    margin-bottom: 6px;
}

.h-card-geo__title {
    margin: 0 0 8px 0;
    font-family: var(--hlife-font-display, "Playfair Display"), serif;
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 500;
    color: #fff;
}

.h-card-geo__intro {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-card-geo__stats {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.h-card-geo__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.h-card-geo__stat-label {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
}

.h-card-geo__stat-value {
    font-weight: 600;
}

/* === Variants === */

/* Wide (16:9 для категорийных подборок) */
.h-card-geo--wide {
    aspect-ratio: 16 / 9;
}

.h-card-geo--wide .h-card-geo__title {
    font-size: 2.25rem;
}

/* Compact (для тайлов в подборках) */
.h-card-geo--compact {
    aspect-ratio: 1 / 1;
}

.h-card-geo--compact .h-card-geo__content {
    padding: 16px;
}

.h-card-geo--compact .h-card-geo__title {
    font-size: 1.25rem;
}

.h-card-geo--compact .h-card-geo__intro,
.h-card-geo--compact .h-card-geo__stats {
    display: none;
}
