/* ============================================================
   Category landing theme · DARK (identidad del index)
   Hybrid: base oscura + bandas full-width en claro y verde.
   Used by /villas-magnificent /magnificent-collection /magnificent-legacy
   Behaviour comes from /p/assets/js/property.js
   ============================================================ */

:root {
  --ink:       #0e0c0a;
  --ink-2:     #16120d;
  --cream:     #f6f1ea;
  --gold:      #c9a961;
  --gold-soft: #d8c08a;
  --olive:     #3a4526;
}

body { background: var(--ink); color: var(--cream); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.font-display { font-family: 'Cinzel', serif; }
h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: 0.01em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(0.22,0.61,0.36,1), transform 1.1s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
.ken-burns { animation: kenBurns 24s ease-out infinite alternate; }
/* Hero slideshow — crossfade between each property's hero (transform transitioned, not keyframed, to avoid snap) */
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); will-change: opacity, transform; transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 6.5s ease-out; }
.hero-slides img.is-active { opacity: 1; transform: scale(1.14); }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: opacity 0.4s ease; transform: none; } .hero-slides img.is-active { transform: none; } }
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }
.scroll-hint { animation: scrollHint 2.4s ease-in-out infinite; }
/* Lightbox scrim over hero imagery — guarantees legible text */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,7,5,0.55) 0%, rgba(8,7,5,0.30) 30%, rgba(8,7,5,0.45) 62%, rgba(14,12,10,0.97) 100%),
    radial-gradient(120% 90% at 30% 55%, rgba(8,7,5,0.55), transparent 60%);
}

.hairline { height: 1px; background: linear-gradient(to right, transparent, rgba(201,169,97,0.45), transparent); }
.stat-num { font-variant-numeric: tabular-nums; }
.img-card { overflow: hidden; }
.img-card img { transition: transform 1.4s cubic-bezier(0.22,0.61,0.36,1); }
.img-card:hover img { transform: scale(1.05); }

.ink-link { position: relative; display: inline-block; }
.ink-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.22,0.61,0.36,1); }
.ink-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Nav (cream over dark, glass on scroll) */
nav .nav-text { color: var(--cream); transition: color 0.4s; }
nav.scrolled { background: rgba(14,12,10,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,169,97,0.15); }
.nav-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.nav-cat.active { color: var(--gold); }

.lang-toggle { display: inline-flex; align-items: center; gap: 3px; }
.lang-toggle [data-lang] { opacity: 0.5; transition: opacity 0.3s; }
.lang-toggle [data-lang].active { opacity: 1; color: var(--gold); }
.lang-sep { opacity: 0.35; }
.drawer .drawer-lang { color: var(--cream); }

/* Burger */
.burger { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; z-index: 110; }
.burger span { display: block; width: 100%; height: 1.5px; border-radius: 2px; background: var(--cream); transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), background 0.4s; }
.burger.open span:first-child { transform: translateY(9.25px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-9.25px) rotate(-45deg); }
@media (min-width: 768px) { .burger { display: none; } }

/* Drawer (dark) */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(14,12,10,0.97); backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transition: opacity 0.4s; display: flex; align-items: center; justify-content: center; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.drawer a { font-family: 'Cinzel', serif; font-size: 1.7rem; line-height: 1.1; color: var(--cream); transition: color 0.3s; }
.drawer a:hover, .drawer a.active { color: var(--gold); }
.drawer .drawer-home { font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-top: 0.5rem; }
.drawer-close { position: absolute; top: 1.3rem; right: 1.3rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--cream); z-index: 3; transition: color 0.3s; }
.drawer-close svg { width: 26px; height: 26px; fill: none; }
.drawer-close:hover { color: var(--gold); }
@media (min-width: 768px) { .drawer { display: none; } .drawer-close { display: none; } }

/* ---- Full-bleed contrast bands (hybrid) ---- */
.band-cream { background: var(--cream); color: #221d17; }
.band-cream .b-muted { color: #6e655c; }
.band-cream .b-soft { color: #4a4239; }
.band-olive { background: var(--olive); color: var(--cream); }
.band-olive .b-soft { color: rgba(246,241,234,0.78); }

/* Dark placeholder */
.ph { background: var(--ink-2); }

/* ---- Property cards · image with overlay (premium) ---- */
.prop-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4 / 5;
  border: 1px solid rgba(201,169,97,0.14);
  transition: border-color 0.5s, transform 0.5s, box-shadow 0.5s;
}
.prop-card:hover { border-color: rgba(201,169,97,0.55); transform: translateY(-5px); box-shadow: 0 24px 48px -18px rgba(0,0,0,0.7); }
.prop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s cubic-bezier(0.22,0.61,0.36,1); }
.prop-card:hover img { transform: scale(1.07); }
.prop-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,7,5,0.92) 0%, rgba(8,7,5,0.45) 38%, rgba(8,7,5,0.05) 68%, rgba(8,7,5,0.15) 100%);
}
.prop-card .prop-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem 1.5rem; }
.prop-card .prop-tags { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.prop-card .prop-tags span { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: rgba(246,241,234,0.92); border-radius: 999px; padding: 0.25rem 0.65rem; }
.prop-card .prop-cta { color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.4s, color 0.4s; }
.prop-card:hover .prop-cta { gap: 0.75rem; color: var(--gold-soft); }
/* Sold state */
.prop-card.is-sold { pointer-events: none; }
.prop-card.is-sold img { filter: grayscale(0.6) brightness(0.7); }
.prop-card .prop-sold { display: inline-block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); border: 1px solid rgba(246,241,234,0.3); border-radius: 999px; padding: 0.3rem 0.85rem; }
