/* =================================================================
   LIQUID GLASS STYLE - COMPACT OVERLAY CARDS (ROOMS & APARTMENTS)
   Style: Compact, Image-Centric, Text Overlay
   ================================================================= */

/* Section Background adjustment - Applied to BOTH Rooms and Apartments */
/* REMOVED background-attachment: fixed to prevent scroll jank */
#apartments,
#rooms {
    position: relative;
    background-image: url('../img/hero-banner/aurora-hotel-bien-hoa-6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed - prevents scroll jank */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Overlay to darken background */
#apartments::before,
#rooms::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Darker overlay to make cards pop */
    background: linear-gradient(to bottom,
            rgba(17, 24, 39, 0.95),
            rgba(17, 24, 39, 0.85) 50%,
            rgba(17, 24, 39, 0.95));
    z-index: 0;
}

#apartments .mx-auto,
#rooms .mx-auto {
    position: relative;
    z-index: 10;
}

/* 
   COMPACT OVERLAY CARD - SHARED STYLE
   Image fills the card, content floats on top at bottom.
*/
.liquid-glass-card {
    display: block;
    position: relative;
    width: 100%;
    /* Fixed height for uniformity - Standard Portrait Card */
    height: 480px;
    border-radius: 1.5rem;
    /* Rounder corners like reference */
    overflow: hidden;

    /* Liquid Glass Border */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1a;
    /* Fallback color */
}

/* Image Layer */
.liquid-glass-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-card:hover img {
    transform: scale(1.1);
}

/* 
   Gradient Overlay 
   Essential for text readability on top of images
*/
.liquid-glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            /* Deep black at bottom */
            rgba(0, 0, 0, 0.6) 40%,
            /* Fade up */
            rgba(0, 0, 0, 0.1) 70%,
            transparent 100%);
    z-index: 1;
}

/* Content Container - Absolute Bottom */
.liquid-glass-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Hover Lift Effect for Content */
.liquid-glass-card:hover .card-content {
    transform: translateY(-5px);
}

/* Badge System - Top Left */
.liquid-glass-card .card-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;

    /* Glass Effect for Badge */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 0.5rem 1rem;
    border-radius: 9999px;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.liquid-glass-card .card-badge .material-symbols-outlined {
    font-size: 1rem;
    color: #d4af37;
    /* Accent Gold */
}

/* Typography */
.liquid-glass-card h3 {
    font-family: 'Inter', sans-serif;
    /* Or project font */
    font-size: 1.75rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Info Row (Icons) */
.liquid-glass-card .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.liquid-glass-card .info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.liquid-glass-card .info-item .material-symbols-outlined {
    font-size: 1.125rem;
    color: #d4af37;
}

/* Price Styling in Content */
.liquid-glass-card .price-display {
    display: inline-block;
    color: #d4af37;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.liquid-glass-card .price-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* Text overrides */
.section-title {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive adjustments */
@media (max-width: 639px) {
    .liquid-glass-card {
        height: 400px;
    }

    .liquid-glass-card h3 {
        font-size: 1.5rem;
    }

    .card-badge {
        top: 1rem;
        left: 1rem;
    }

    .card-content {
        padding: 1.25rem;
    }
}