/* ============================================
   ARCILA PROPERTIES — Live Build (Portfolio)
   Aesthetic: Tier 3 (Playfair Display + Inter)
   Entry: dark cinematic split (D1)
   Inner pages: light, warm, luxury website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Typography — Tier 3 */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Light palette — Tier 3 */
  --f-bg: #FAFAF7;
  --f-bg-alt: #F3F1EC;
  --f-bg-warm: #F7F5F0;
  --f-white: #FFFFFF;
  --f-text: #2C2C2C;
  --f-text-secondary: #6B6B6B;
  --f-text-light: #999999;

  /* Brand accents */
  --f-navy: #0a2a6e;
  --f-navy-light: #133a8a;
  --f-navy-deep: #071e52;
  --f-gold: #c9a84c;
  --f-gold-hover: #b8982f;
  --f-gold-light: #d4b868;

  /* Borders & shadows */
  --f-border: #E8E5DE;
  --f-border-light: #F0EDE6;
  --f-line: #E8E5DE; /* legacy alias */
  --f-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --f-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --f-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);

  /* Legacy aliases (in case any selector still uses them) */
  --f-cream: #FAFAF7;
  --f-warm: #F3F1EC;
  --f-dark: #0d0d0b;
  --f-muted: #6B6B6B;

  /* Radii (rectangular, luxury) */
  --f-radius-sm: 2px;
  --f-radius-md: 4px;
  --f-radius-lg: 6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--f-text);
  background: var(--f-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--f-text);
}

/* ============================================
   ENTRY (D1) — kept dark cinematic
   Typography swapped to Playfair + Inter
   ============================================ */
.f-entry { position: fixed; inset: 0; background: #080c0f; overflow: hidden; font-family: var(--f-body); }

.f-entry-brand {
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 30; text-align: center;
}
.f-entry-brand img { height: 56px; width: auto; margin: 0 auto; }
.f-entry-wordmark {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1;
  color: #fff; letter-spacing: 0.005em;
}
.f-entry-rule { width: 64px; height: 1px; background: var(--f-gold); margin: 18px auto 12px; }
.f-entry-tag {
  font-family: var(--f-body); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* ============================================
   INTRO OVERLAY — luxury entrance (~2.5s, skippable)
   ============================================ */
.f-intro {
  position: fixed; inset: 0; z-index: 100;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  animation: f-intro-out 0.6s ease 2.5s forwards;
}
.f-intro.skip { animation: f-intro-out 0.4s ease forwards; }
.f-intro-content { text-align: center; }
.f-intro-logo {
  height: 120px; width: auto; margin: 0 auto;
  display: block; opacity: 0;
  transform: scale(0.96);
  animation: f-intro-logo-in 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s forwards;
}
.f-intro-rule {
  width: 0; height: 1px; background: var(--f-gold);
  margin: 28px auto 18px;
  animation: f-intro-rule 0.7s ease 1.2s forwards;
}
.f-intro-tag {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--f-text-secondary);
  opacity: 0;
  animation: f-intro-fade 0.7s ease 1.6s forwards;
}
@keyframes f-intro-logo-in { to { opacity: 1; transform: scale(1); } }
@keyframes f-intro-rule { to { width: 96px; } }
@keyframes f-intro-fade { to { opacity: 1; } }
@keyframes f-intro-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-width: 600px) {
  .f-intro-logo { height: 84px; }
}

.f-entry-lang { position: absolute; top: 2rem; right: 40px; z-index: 30; display: flex; gap: 4px; align-items: center; }
.f-entry-lang button {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  cursor: pointer; padding: 8px 12px; transition: color 0.2s;
}
.f-entry-lang button.on { color: var(--f-gold); }
.f-entry-lang button:hover { color: #fff; }
.f-entry-lang .sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; padding: 0 2px; }

.f-split { display: flex; width: 100%; height: 100%; }
.f-half { flex: 1; position: relative; overflow: hidden; cursor: pointer; transition: flex 0.85s cubic-bezier(0.25,0.46,0.45,0.94); }
.f-half:hover { flex: 1.55; }
.f-half:first-child { border-right: 1px solid rgba(201,168,76,0.22); }
.f-half-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.85s ease; }
.f-half:hover .f-half-bg { transform: scale(1.05); }
.f-half-bg.colombia { background-image: url('https://images.unsplash.com/photo-1583531352515-8884af319dc1?w=1600&q=80'); background-color: #0d2218; }
.f-half-bg.usa { background-image: url('https://images.unsplash.com/photo-1605146768851-eda79da39897?w=1600&q=80'); background-color: #1a1008; }
.f-half-ov {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(5,21,46,0.55) 0%, rgba(5,21,46,0.88) 100%);
  transition: background 0.5s;
}
.f-half:hover .f-half-ov { background: linear-gradient(160deg, rgba(5,21,46,0.35) 0%, rgba(5,21,46,0.7) 100%); }

.f-half-content { position: absolute; bottom: 4rem; left: 3.5rem; z-index: 5; text-align: left; }
.f-half-ghost {
  position: absolute; bottom: 0; right: 0.5rem; z-index: 1;
  font-family: var(--f-display); font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 400; color: rgba(255,255,255,0.05); line-height: 1;
  pointer-events: none; user-select: none;
}
.f-half-eye {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--f-gold-light); margin-bottom: 1.25rem;
}
.f-half-title {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400;
  color: #fff; line-height: 1; margin-bottom: 0.75rem;
}
.f-half-city {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 2rem;
}
.f-half-cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: color 0.3s;
}
.f-half:hover .f-half-cta { color: var(--f-gold); }
.f-ctaline { width: 28px; height: 1px; background: currentColor; transition: width 0.4s; }
.f-half:hover .f-ctaline { width: 56px; }

@media (max-width: 700px) {
  .f-entry-brand { display: none; }
  .f-split { flex-direction: column; }
  .f-half { flex: none; height: 50%; }
  .f-half:hover { flex: none; }
  .f-half:first-child { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.22); }
  .f-half-content { left: 1.5rem; bottom: 2.25rem; }
}

/* ============================================
   SHARED NAV (interior pages) — Tier 3 exact spec
   ============================================ */
.f-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 80px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--f-border);
  box-shadow: var(--f-shadow-sm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.f-nav-left { display: flex; align-items: center; gap: 1rem; }

/* Image logo — matches Tier 3's .nav-logo img { height: 44px } */
.f-nav-logo { display: inline-flex; align-items: center; }
.f-nav-logo img { height: 44px; width: auto; }

/* Country switcher pill */
.f-nav-country {
  font-family: var(--f-body); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid rgba(201,168,76,0.4);
  color: var(--f-gold); background: none; cursor: pointer;
  border-radius: var(--f-radius-sm); transition: all 0.2s;
}
.f-nav-country:hover { background: var(--f-gold); color: var(--f-white); border-color: var(--f-gold); }

/* Links */
.f-nav-links { display: flex; align-items: center; gap: 36px; }
.f-nav-link {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--f-text-secondary); position: relative;
  padding: 6px 0; transition: color 0.2s;
}
.f-nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--f-gold);
  transition: width 0.3s ease;
}
.f-nav-link:hover::after,
.f-nav-link.active::after { width: 100%; }
.f-nav-link:hover, .f-nav-link.active { color: var(--f-text); }

/* Right side */
.f-nav-right { display: flex; align-items: center; gap: 20px; }

/* Lang toggle — Tier 3 .lang-toggle */
.f-nav-lang { display: flex; align-items: center; gap: 4px; }
.f-nav-lang button {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--f-text-secondary); cursor: pointer;
  padding: 6px 10px; min-height: 36px; min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--f-radius-sm); transition: color 0.2s;
}
.f-nav-lang button.on { color: var(--f-text); font-weight: 600; }
.f-nav-lang button:hover { color: var(--f-text); }
.f-nav-lang .sep { color: var(--f-border); font-size: 0.75rem; }

/* CTA — Tier 3 .nav-cta (gold filled) */
.f-nav-cta {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 11px 24px; background: var(--f-gold); color: var(--f-white);
  border-radius: var(--f-radius-sm); transition: all 0.2s;
}
.f-nav-cta:hover { background: var(--f-gold-hover); }

/* Burger */
.f-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.f-burger span { width: 24px; height: 1.5px; background: var(--f-text); transition: all 0.3s; }

@media (max-width: 1024px) {
  .f-nav-links { display: none; }
  .f-burger { display: flex; }
  .f-nav-country { display: none; }
}

@media (max-width: 768px) {
  .f-nav { padding: 0 16px; height: 64px; }
  .f-nav-logo img { height: 36px; }
  .f-nav-cta { padding: 10px 16px; font-size: 0.6875rem; letter-spacing: 0.12em; }
  .f-nav-right { gap: 10px; }
  .f-nav-lang button { padding: 6px 8px; font-size: 0.75rem; }
}

/* Mobile menu — Tier 3 style */
.f-mobile-menu {
  position: fixed; inset: 0; z-index: 490; background: var(--f-white);
  display: none; flex-direction: column; padding: 80px 24px 40px;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
}
.f-mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.f-mobile-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-text-secondary); cursor: pointer; background: none; border: none; padding: 12px;
}
.f-mobile-link {
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 400;
  color: var(--f-text); padding: 12px 0; text-align: left;
}
.f-mobile-link:hover { color: var(--f-gold); }
.f-mobile-rule { width: 32px; height: 1px; background: var(--f-border); margin: 4px 0; }
.f-mobile-cta {
  margin-top: 2rem; padding: 16px 32px; background: var(--f-gold);
  color: var(--f-white); font-family: var(--f-body); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: var(--f-radius-sm); text-align: center; align-self: flex-start;
}
.f-mobile-lang { margin-top: 2rem; display: flex; gap: 8px; align-items: center; }
.f-mobile-lang button {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-text-secondary); cursor: pointer; padding: 8px 10px;
}
.f-mobile-lang button.on { color: var(--f-gold); font-weight: 600; }

/* ============================================
   PAGE HEADER (light interior)
   ============================================ */
.f-page-head { padding: 9rem 5vw 3rem; max-width: 1400px; margin: 0 auto; }
.f-eye {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-gold); margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 14px;
}
.f-eye::before { content: ''; width: 28px; height: 1px; background: var(--f-gold); }
.f-page-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400;
  color: var(--f-text); line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 1.25rem;
}
.f-page-title em { font-style: italic; font-weight: 400; color: var(--f-navy); }
.f-page-sub {
  font-family: var(--f-body); font-size: 1.0625rem; font-weight: 400;
  color: var(--f-text-secondary); line-height: 1.8;
  max-width: 600px;
}

/* ============================================
   LISTINGS GRID
   ============================================ */
.f-listings-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 5vw 2rem; max-width: 1400px; margin: 0 auto;
  flex-wrap: wrap;
}
.f-listings-count {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--f-text-secondary);
}
.f-listings-toggle {
  display: flex; gap: 0; border: 1px solid var(--f-border);
  border-radius: var(--f-radius-sm); overflow: hidden;
}
.f-listings-toggle button {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 20px; color: var(--f-text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.f-listings-toggle button:hover { color: var(--f-text); }
.f-listings-toggle button.on { background: var(--f-navy); color: var(--f-white); }

.f-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; padding: 1.5rem 5vw 6rem;
  max-width: 1400px; margin: 0 auto;
}
@media (max-width: 1024px) { .f-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 1.5rem 24px 4rem; } }
@media (max-width: 640px) { .f-grid { grid-template-columns: 1fr; gap: 20px; padding: 1rem 16px 3rem; } }

/* Property cards — Tier 3 style */
.f-card {
  background: var(--f-white);
  border-radius: var(--f-radius-md);
  overflow: hidden;
  box-shadow: var(--f-shadow-sm);
  transition: all 0.3s ease;
  display: block;
}
.f-card:hover { box-shadow: var(--f-shadow-lg); transform: translateY(-4px); }
.f-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.f-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.f-card:hover .f-card-img { transform: scale(1.05); }
.f-card-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--f-gold); color: var(--f-white);
  font-family: var(--f-body); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--f-radius-sm);
}
.f-card-featured {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--f-navy); color: var(--f-white);
  font-family: var(--f-body); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--f-radius-sm);
}
.f-card-featured .star { color: var(--f-gold); font-size: 0.8rem; line-height: 1; }
.f-card-id {
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--f-body); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.15em; color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: var(--f-radius-sm);
}
.f-card-loc {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--f-gold);
  padding: 20px 24px 6px;
}
.f-card-name {
  font-family: var(--f-display); font-size: 1.375rem; font-weight: 500;
  color: var(--f-text); line-height: 1.25; padding: 0 24px 10px;
}
.f-card-meta {
  font-family: var(--f-body); font-size: 0.875rem; font-weight: 400;
  color: var(--f-text-secondary); padding: 0 24px 20px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.f-card-meta span:not(:last-child)::after {
  content: '·'; margin-left: 6px; color: var(--f-border);
}
.f-card-price {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600;
  color: var(--f-navy); padding: 0 24px 22px;
}

/* ============================================
   PROPERTY DETAIL
   ============================================ */
/* Full-bleed hero — Tier 3 t3p-hero pattern */
.f-detail-hero {
  position: relative; width: 100%;
  height: 70vh; min-height: 520px;
  overflow: hidden;
}
.f-detail-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.f-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,42,110,0.78) 0%,
    rgba(10,42,110,0.35) 55%,
    rgba(10,42,110,0.15) 100%
  );
}
.f-detail-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 5vw 4rem;
  max-width: 1400px; margin: 0 auto;
  color: var(--f-white);
}
.f-detail-hero-location {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--f-gold-light); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 14px;
}
.f-detail-hero-location::before {
  content: ''; width: 28px; height: 1px; background: var(--f-gold);
}
.f-detail-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 400;
  font-style: italic; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--f-white);
  margin-bottom: 1.5rem; max-width: 880px;
}
.f-detail-hero-meta {
  display: flex; align-items: center; gap: 2rem;
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: rgba(255,255,255,0.92); flex-wrap: wrap;
}
.f-detail-hero-meta span {
  display: inline-flex; align-items: center; gap: 8px;
}
.f-detail-hero-meta span:not(:last-child)::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--f-gold); margin-left: 2rem;
}

@media (max-width: 800px) {
  .f-detail-hero { height: 60vh; min-height: 420px; }
  .f-detail-hero-content { padding: 0 24px 2.5rem; }
  .f-detail-hero-meta { gap: 1rem; font-size: 0.8125rem; }
  .f-detail-hero-meta span:not(:last-child)::after { margin-left: 1rem; }
}

/* Gallery row beneath hero — Tier 3 t3p-gallery */
.f-detail-gallery-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; max-width: 1400px; margin: 0 auto;
  padding: 8px 5vw 0;
}
.f-detail-gallery-tile {
  aspect-ratio: 3/2; overflow: hidden; display: block; width: 100%;
  background: var(--f-bg-alt); border-radius: var(--f-radius-sm);
  border: none; padding: 0; margin: 0; cursor: pointer;
}
.f-detail-hero[data-lb] { cursor: pointer; }
.f-detail-gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.f-detail-gallery-tile:hover img { transform: scale(1.05); }

@media (max-width: 800px) {
  .f-detail-gallery-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 16px 0; }
}

/* Lightbox — full-screen scrollable photo viewer */
.f-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,15,0.95); display: none; }
.f-lightbox.open { display: block; }
.f-lightbox-scroll {
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 76px 16px 56px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.f-lightbox-scroll img { max-width: 1040px; width: 100%; height: auto; border-radius: var(--f-radius-sm); }
.f-lightbox-close {
  position: fixed; top: 18px; right: 22px; z-index: 210;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.f-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.f-detail-body {
  display: grid; grid-template-columns: 1fr 400px; gap: 64px;
  max-width: 1400px; margin: 0 auto; padding: 4rem 5vw 6rem;
}
@media (max-width: 900px) { .f-detail-body { grid-template-columns: 1fr; gap: 40px; padding: 3rem 24px 4rem; } }

.f-detail-loc {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-gold); margin-bottom: 0.75rem;
}
.f-detail-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400;
  color: var(--f-text); line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.f-detail-id {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--f-text-light); margin-bottom: 2rem;
}
.f-detail-stats {
  display: flex; gap: 2.5rem; padding: 1.75rem 0;
  border-top: 1px solid var(--f-border); border-bottom: 1px solid var(--f-border);
  margin-bottom: 2.5rem;
}
.f-detail-stat-num {
  font-family: var(--f-display); font-size: 1.75rem; font-weight: 500;
  color: var(--f-text); display: block; line-height: 1; margin-bottom: 6px;
}
.f-detail-stat-lbl {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--f-text-secondary);
}
.f-detail-desc {
  font-family: var(--f-body); font-size: 1rem; font-weight: 400;
  line-height: 1.85; color: var(--f-text);
  margin-bottom: 2.5rem; max-width: 620px;
}
.f-detail-section-eye {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-gold); display: block; margin-bottom: 1rem;
}
.f-detail-section-h {
  font-family: var(--f-display); font-size: 1.75rem; font-weight: 500;
  color: var(--f-text); margin-bottom: 1.5rem;
}
.f-amen-group { margin-bottom: 2rem; }
.f-amen-group:last-child { margin-bottom: 3rem; }
.f-amen-group-h {
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--f-text-light); margin-bottom: 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--f-border);
}
.f-amenities {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem; margin-bottom: 3rem;
}
.f-amen-group .f-amenities { margin-bottom: 0; }
.f-amenity {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text); padding: 6px 0;
  display: flex; align-items: center; gap: 0.75rem;
}
.f-amenity::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--f-gold); flex-shrink: 0;
}

/* Sticky inquire card */
.f-inquire-card {
  position: sticky; top: 100px;
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 32px; align-self: start;
  box-shadow: var(--f-shadow-md);
}
.f-inquire-eye {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-gold); display: block; margin-bottom: 0.75rem;
}
.f-inquire-title {
  font-family: var(--f-display); font-size: 1.625rem; font-weight: 500;
  color: var(--f-text); line-height: 1.2; margin-bottom: 0.5rem;
}
.f-inquire-price {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 600;
  color: var(--f-navy); margin-bottom: 1rem;
}
.f-inquire-sub {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text-secondary); line-height: 1.7; margin-bottom: 1.5rem;
}
.f-inquire-id {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--f-navy);
  background: var(--f-bg-alt); padding: 8px 14px;
  display: inline-block; margin-bottom: 1.5rem;
  border-radius: var(--f-radius-sm);
}
.f-inquire-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; font-family: var(--f-body); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: var(--f-radius-sm); transition: all 0.2s;
  margin-bottom: 10px; min-height: 50px;
}
.f-inquire-btn.primary { background: var(--f-gold); color: var(--f-white); }
.f-inquire-btn.primary:hover { background: var(--f-gold-hover); }
.f-inquire-btn.outline { background: transparent; color: var(--f-navy); border: 1.5px solid var(--f-navy); }
.f-inquire-btn.outline:hover { background: var(--f-navy); color: var(--f-white); }
.f-inquire-247 {
  display: flex; align-items: center; gap: 10px;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--f-border);
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--f-text-secondary);
}
.f-inquire-247 .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.f-about-hero { padding: 9rem 5vw 4rem; max-width: 1100px; margin: 0 auto; }
.f-about-h1 {
  font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400; color: var(--f-text); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.f-about-h1 em { font-style: italic; font-weight: 400; color: var(--f-navy); }
.f-about-lead {
  font-family: var(--f-body); font-size: 1.125rem; font-weight: 400;
  color: var(--f-text); line-height: 1.85;
  max-width: 640px;
}

.f-about-image { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.f-about-image-inner {
  aspect-ratio: 21/9; overflow: hidden;
  background: var(--f-bg-alt); border-radius: var(--f-radius-md);
}
.f-about-image-inner img { width: 100%; height: 100%; object-fit: cover; }

.f-about-body {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px;
  max-width: 1100px; margin: 0 auto; padding: 6rem 5vw;
}
.f-about-body h2 {
  font-family: var(--f-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--f-text); line-height: 1.2;
}
.f-about-body p {
  font-family: var(--f-body); font-size: 1rem; font-weight: 400;
  line-height: 1.9; color: var(--f-text); margin-bottom: 1.5rem;
}

@media (max-width: 800px) { .f-about-body { grid-template-columns: 1fr; gap: 32px; padding: 4rem 24px; } .f-about-hero { padding: 6rem 24px 3rem; } .f-about-image { padding: 0 24px; } }

.f-values { background: var(--f-bg-alt); padding: 6rem 5vw; }
.f-values-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 800px) { .f-values { padding: 4rem 24px; } .f-values-inner { grid-template-columns: 1fr; gap: 36px; } }
.f-value-num {
  font-family: var(--f-display); font-style: italic;
  font-size: 2.25rem; font-weight: 400; color: var(--f-gold);
  margin-bottom: 0.75rem; line-height: 1;
}
.f-value-h {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 500;
  color: var(--f-text); margin-bottom: 0.85rem; line-height: 1.25;
}
.f-value-p {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text-secondary); line-height: 1.8;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.f-contact-hero { padding: 9rem 5vw 3rem; max-width: 1200px; margin: 0 auto; }
.f-contact-247 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3); color: #166534;
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.5rem; border-radius: var(--f-radius-sm);
}
.f-contact-247 .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.22); animation: f-pulse 2s ease-in-out infinite;
}
@keyframes f-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0.08); }
}

.f-contact-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto; padding: 3rem 5vw 6rem;
}
@media (max-width: 800px) { .f-contact-body { grid-template-columns: 1fr; gap: 40px; padding: 2.5rem 24px 4rem; } .f-contact-hero { padding: 6rem 24px 2rem; } }

.f-contact-channels { display: flex; flex-direction: column; gap: 14px; }
.f-channel {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem; background: var(--f-white);
  border: 1px solid var(--f-border); border-radius: var(--f-radius-md);
  color: var(--f-text); transition: all 0.2s;
}
.f-channel:hover { border-color: var(--f-gold); transform: translateX(4px); box-shadow: var(--f-shadow-sm); }
/* min-width:0 lets the text column shrink below its content so a long,
   unbreakable value (e.g. an email) wraps instead of pushing past the
   screen edge on narrow phones. */
.f-channel-l { display: flex; align-items: center; gap: 1.25rem; min-width: 0; flex: 1; }
.f-channel-l > div { min-width: 0; }
.f-channel-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--f-bg-alt); display: flex; align-items: center; justify-content: center;
  color: var(--f-navy); flex-shrink: 0;
}
.f-channel-label {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-text-secondary); margin-bottom: 4px;
}
.f-channel-val {
  font-family: var(--f-body); font-size: 1rem; font-weight: 500;
  color: var(--f-text); overflow-wrap: anywhere;
}
.f-channel-arr { flex-shrink: 0; }
.f-channel-arr { color: var(--f-gold); font-size: 1.25rem; }
.f-channel-static { cursor: default; }
.f-channel-static:hover { border-color: var(--f-border); transform: none; box-shadow: none; }

/* Contact people (two cards) */
.f-contact-intro {
  font-family: var(--f-body); font-size: 0.95rem; color: var(--f-text-secondary);
  margin: -0.5rem 0 1.75rem; line-height: 1.6; max-width: 36rem;
}
.f-contacts { display: flex; flex-direction: column; gap: 28px; }
.f-contact-card {
  background: var(--f-white); border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md); padding: 24px; box-shadow: var(--f-shadow-sm);
}
.f-contact-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--f-border);
}
.f-contact-card-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.f-contact-card-photo {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--f-border); background: var(--f-bg-alt);
}
.f-contact-card-bio {
  font-family: var(--f-body); font-size: 0.94rem; line-height: 1.6;
  color: var(--f-text-secondary); margin: 0 0 1.1rem;
}
.f-contact-card-name {
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; color: var(--f-navy);
}
.f-contact-card-title {
  font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--f-gold); margin-top: 4px;
}
.f-contact-card-247 {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 11px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #166534; font-family: var(--f-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; border-radius: var(--f-radius-sm);
}
.f-contact-card-247 .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.22); animation: f-pulse 2s ease-in-out infinite;
}
.f-contact-card-methods { display: flex; flex-direction: column; gap: 10px; }
.f-contact-card-methods .f-channel { padding: 0.85rem 1.1rem; }
.f-contact-card-methods .f-channel-icon { width: 38px; height: 38px; }
.f-contact-card-methods .f-channel-val { font-size: 0.92rem; }

/* Form */
.f-form {
  background: var(--f-white); border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md); padding: 36px;
  box-shadow: var(--f-shadow-sm);
}
.f-form-h {
  font-family: var(--f-display); font-size: 1.625rem; font-weight: 500;
  color: var(--f-text); margin-bottom: 0.5rem;
}
.f-form-sub {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text-secondary); margin-bottom: 1.75rem; line-height: 1.7;
}
.f-form-group { margin-bottom: 1.25rem; }
.f-form-label {
  display: block; font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--f-text); margin-bottom: 8px;
}
.f-form-input, .f-form-textarea, .f-form-select {
  width: 100%; padding: 14px 16px;
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text); background: var(--f-white);
  border: 1px solid var(--f-border); border-radius: var(--f-radius-sm);
  transition: border-color 0.2s;
}
.f-form-input:focus, .f-form-textarea:focus, .f-form-select:focus {
  border-color: var(--f-navy);
}
.f-form-textarea { min-height: 120px; resize: vertical; }
.f-form-btn {
  width: 100%; padding: 16px;
  background: var(--f-gold); color: var(--f-white);
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: var(--f-radius-sm); cursor: pointer;
  transition: background 0.2s; margin-top: 0.5rem; min-height: 52px;
}
.f-form-btn:hover { background: var(--f-gold-hover); }
.f-form-btn:disabled { opacity: 0.65; cursor: default; }

/* Spam honeypot — hidden from people, visible to bots that fill everything. */
.f-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit result. Empty by default, so it takes no space until it has text. */
.f-form-status:empty { display: none; }
.f-form-status {
  margin-top: 1rem; padding: 12px 14px;
  border-radius: var(--f-radius-sm);
  font-family: var(--f-body); font-size: 0.9375rem; line-height: 1.5;
}
.f-form-status.is-ok  { background: #eef6ee; color: #1f5130; border: 1px solid #cfe3d4; }
.f-form-status.is-err { background: #fdf0ee; color: #8a2b1c; border: 1px solid #f3d2cc; }

/* ============================================
   FOOTER — Tier 3 dark
   ============================================ */
.f-footer {
  background: var(--f-text); color: rgba(255,255,255,0.7);
  padding: 80px 5vw 40px;
}
.f-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 60px;
}
@media (max-width: 800px) { .f-footer { padding: 56px 24px 32px; } .f-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; } }
@media (max-width: 500px) { .f-footer-inner { grid-template-columns: 1fr; } }

.f-footer-brand img {
  height: 40px; width: auto;
  margin-bottom: 16px;
}
.f-footer-tag {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  line-height: 1.8; color: rgba(255,255,255,0.55);
  max-width: 300px;
}
.f-footer-col h4 {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-white); margin-bottom: 1.25rem;
}
.f-footer-col a {
  display: block; font-family: var(--f-body); font-size: 0.9375rem;
  font-weight: 400; color: rgba(255,255,255,0.6);
  padding: 6px 0; transition: color 0.2s;
}
.f-footer-col a:hover { color: var(--f-gold); }
.f-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-family: var(--f-body); font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.f-admin-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--f-bg); padding: 2rem;
}
.f-admin-card {
  width: 100%; max-width: 440px;
  background: var(--f-white); border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md); padding: 48px 40px;
  box-shadow: var(--f-shadow-md);
}
.f-admin-card .f-admin-brand-logo {
  display: block; height: 44px; width: auto;
  margin: 0 auto 1rem;
}
.f-admin-rule { width: 48px; height: 1px; background: var(--f-gold); margin: 0 auto 1.5rem; }
.f-admin-eye {
  font-family: var(--f-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--f-gold); text-align: center; margin-bottom: 0.5rem;
}
.f-admin-h {
  font-family: var(--f-display); font-size: 1.875rem; font-weight: 400;
  color: var(--f-text); text-align: center; margin-bottom: 0.5rem;
}
.f-admin-sub {
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--f-text-secondary); text-align: center;
  margin-bottom: 2rem; line-height: 1.7;
}
.f-admin-note {
  background: var(--f-bg-alt); border: 1px solid var(--f-border);
  border-radius: var(--f-radius-sm); padding: 1rem 1.25rem; margin-top: 1.5rem;
  font-family: var(--f-body); font-size: 0.8125rem; font-weight: 400;
  color: var(--f-text-secondary); line-height: 1.7;
}
.f-admin-note strong { color: var(--f-text); font-weight: 600; }

/* ============================================
   Bilingual visibility
   ============================================ */
[data-lang="es"] [data-en],
[data-lang="en"] [data-es] { display: none; }

/* Prevent body scroll when mobile menu open */
body.f-no-scroll { overflow: hidden; }
