/*
Theme Name: Marbella Two Properties (Full-Width Hero) v3.3
Theme URI: https://www.marbellagm.com/
Author: GM
Author URI: https://www.marbellagm.com/
Description: Full-width background hero with centered overlay text, two property cards linking to MLS subpages, and a bottom paragraph pulled from the Home page editor (with Customizer fallback).
Version: 1.2.3
Requires at least: 5.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marbella-two-properties
*/

:root { --container-max: 1200px; --gap: 24px; --border: 1px solid rgba(0,0,0,0.08); }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #f7f7f8;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 1rem; }

/* Header/Footer */
.site-header, .site-footer {
  display: flex; align-items: center; justify-content: center;
  padding: 0.9rem 1rem;
}
.site-footer { color: #666; font-size: 0.9rem; }

/* ===== Full-width Hero ===== */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.hero-full::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.75);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
  max-width: 1200px;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero-subtitle-wrap {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 1rem;
}
.hero-line {
  width: 80px; height: 2px; background: rgba(255,255,255,0.75);
}
.hero-subtitle {
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  opacity: 0.9;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

/* ===== Cards grid ===== */
.cards-wrap { padding: 2rem 1.25rem 1.25rem; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(0,0,0,0.12); }

.card-link { display: block; color: inherit; text-decoration: none; }
.card .media { position: relative; }
.card .media img { width: 100%; height: auto; display: block; }

.card .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.8) 100%);
  color: #fff; padding: 1rem 1.25rem;
}
.card .price { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.2px; margin-bottom: 0.35rem; }
.card .features { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; font-size: 0.95rem; opacity: 0.95; }
.feature { display: inline-flex; align-items: center; gap: 0.4rem; }
.feature svg { width: 18px; height: 18px; display: inline-block; }

/* ===== Bottom paragraph (Home editor) ===== */
.info-section { padding: 1rem 1.25rem 2.5rem; }
.info-box { max-width: var(--container-max); margin: 0 auto; background:#fff; border:var(--border); border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,0.06); padding:1.25rem 1.5rem; color:#333; font-size:1.05rem; line-height:1.6; }
.info-box p { margin: 0 0 1em; }

/* ===== Iframes + Sticky button ===== */
.iframe-container { position: fixed; inset: 0; } 
.iframe-container iframe { width: 100%; height: 100%; border: 0; }
body.admin-bar .iframe-container { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar .iframe-container { top: 46px; height: calc(100vh - 46px); } }
.sticky-main { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px; padding: 0.8rem 1rem; border-radius: 999px; background: #111; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.22); font-weight: 700; }
.sticky-main:hover { background: #222; }