/**
 * Finca page component styles — Smart Catering Child
 *
 * Minimal component CSS for templates/page-finca.php (Camino B fincas pilot).
 * Sections 1 (hero), 2 (intro prose), 6 (FAQ), and 7 (CTA final) reuse
 * bodas.css classes directly (sc-bodas-hero, sc-bodas-intro, sc-bodas-faq,
 * sc-bodas-cta). Only components without a bodas.css equivalent are defined here:
 *
 *   1b. hero lead contrast override (M1 — WCAG AA)
 *   3.  sc-finca-caracteristicas — key/value grid (Ubicación, Capacidad, Estilo…)
 *   4.  sc-finca-catering        — bridge section (static, white bg)
 *   5.  sc-finca-galeria         — gallery grid (conditional; hidden when 0 images)
 *   6b. sc-finca__map            — Google Maps embed (M4)
 *
 * @package SmartCateringChild
 */

/* ===== 1b. HERO LEAD — contrast override (M1, WCAG AA ≥4.5:1) ===== */
/* Scoped to .scc-finca so bodas.css is unaffected.                    */
/* The hero overlay already reaches rgba(0,0,0,0.85) at 100% — this   */
/* forces the lead text to full white so the ratio is unambiguous.     */
body.scc-fase0 .scc-finca .sc-bodas-hero__lead {
  color: #fff;
  opacity: 1;
  /* Reinforce scrim locally so lead is readable even if overlay changes */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  /* Breathing room between the H1 and the lead (was too tight). */
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
}

/* ===== 3. CARACTERÍSTICAS — key/value grid ===== */
body.scc-fase0 .sc-finca-caracteristicas {
  padding-top: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
  padding-bottom: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
}

body.scc-fase0 .sc-finca-caracteristicas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2.5rem;
}

body.scc-fase0 .sc-finca-caract__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.875rem;
}

body.scc-fase0 .sc-finca-caract__label {
  display: block;
  font-family: var(--font-sans, "Overpass", sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 0.375rem;
}

body.scc-fase0 .sc-finca-caract__value {
  display: block;
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.85);
}

body.scc-fase0 .sc-finca-caract__pending {
  color: rgba(0, 0, 0, 0.45);
  font-style: italic;
}

/* ===== 4. CATERING bridge section ===== */
body.scc-fase0 .sc-finca-catering {
  padding-top: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
  padding-bottom: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
}

/* ===== 5. GALERÍA (conditional) ===== */
body.scc-fase0 .sc-finca-galeria {
  padding-top: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
  padding-bottom: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
}

body.scc-fase0 .sc-finca-galeria__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

body.scc-fase0 .sc-finca-galeria__item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.06);
}

body.scc-fase0 .sc-finca-galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

body.scc-fase0 .sc-finca-galeria__item:hover img {
  transform: scale(1.03);
}

/* ===== 6b. MAPA (M4) ===== */
body.scc-fase0 .sc-finca__map {
  padding-top: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
  padding-bottom: clamp(var(--space-section-sm), 8vh, var(--space-section-md));
}

body.scc-fase0 .sc-finca__map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: none;
  border-radius: 4px;
  display: block;
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  body.scc-fase0 .sc-finca__map-frame {
    aspect-ratio: 4 / 3;
  }
}
