:root {
    --curated-bg: #ffffff; 
}

.curated-section {
    padding-top: clamp(120px, 15vw, 200px); 
    padding-bottom: clamp(80px, 10vw, 140px);
    background-color: var(--curated-bg);
}

.curated-container {
    max-width: var(--container-width, 1440px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 40px);
}

/* --- SECTION HEADER --- */
.curated-header {
    margin-bottom: 50px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px; 
}

.curated-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.curated-subline {
    font-family: var(--font-sans);
    font-size: 10px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   THE ASYMMETRICAL GRID
   ========================================== */
.curated-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr; 
    gap: var(--space-xl, 40px);
}

/* --- CARD SHARED STYLES --- */
.curated-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background-color: #1a1a1a; 
    border-radius: 2px;
}

.card-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.curated-card:hover .card-image {
    transform: scale(1.04);
}

/* Let the photo breathe: Gradient only covers the bottom 45% */
.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0) 50%);
    z-index: 2;
    transition: background 0.6s ease;
}

.curated-card:hover .card-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 25%, rgba(0,0,0,0) 50%);
}

/* --- CARD SIZING --- */
.curated-card.primary {
    height: 100%;
    min-height: 700px;
}

.secondary-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl, 40px);
}

.curated-card.secondary {
    flex: 1;
    min-height: 330px;
}

/* ==========================================
   THE TIERS (THE "FLAIR")
   ========================================== */
.meta-label {
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 8px; /* Refined smaller size */
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    border-radius: 2px;
}

/* PRIMARY TIER - Featured Edition (Solid & Bold) */
.meta-label.tier-featured {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* SECONDARY TIER - Premium Selection (Glass & Delicate) */
.meta-label.tier-premium {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3); 
    margin-bottom: 12px; /* Tighter spacing for smaller card */
}

/* ==========================================
   CARD METADATA
   ========================================== */
.card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Tighter padding for secondary cards to keep text near edges */
.curated-card.secondary .card-meta {
    padding: 25px 30px; 
}

/* FORCE WHITE TEXT FOR VISIBILITY */
.meta-location {
    font-family: var(--font-sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 6px;
    font-weight: 700;
}

.meta-type {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin: 0 0 12px 0;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff !important;
}

/* Much smaller, elegant title for the secondary cards */
.curated-card.secondary .meta-type {
    font-size: clamp(1.4rem, 2vw, 1.6rem); 
    margin: 0 0 8px 0;
}

.meta-price {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: #ffffff !important;
    letter-spacing: 0.05em;
}

.curated-card.secondary .meta-price {
    font-size: 12px; /* Scaled down price for right side */
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    .curated-grid { grid-template-columns: 1fr; }
    .curated-card.primary { min-height: 500px; aspect-ratio: 4 / 3; }
    .secondary-stack { flex-direction: row; }
    .curated-card.secondary { min-height: 300px; }
}

@media (max-width: 768px) {
    .secondary-stack { flex-direction: column; }
    .curated-card.primary, .curated-card.secondary { aspect-ratio: 1 / 1; min-height: auto; }
}