/* ================================================================
   LASOSE CARIBBEAN — Main Stylesheet
   Version: 1.0.0
   Brand: LASOSE Real Estate S.L. · Barcelona · Cap Cana

   Table of Contents
   ─────────────────
   01. Variables & Reset
   02. Language System (CSS radio-button technique)
   03. Navigation
   04. Hero Section
   05. Properties Section
   06. Property Grid & Cards
   07. Filter Pills (CSS-only filtering)
   08. Modal System (CSS :target)
   09. Marquee Strip
   10. About Section
   11. Contact Section
   12. Footer
   13. Utilities
   ================================================================ */


/* ── 01. Variables & Reset ────────────────────────────────────── */

:root {
  --black:      #0A0A0A;
  --white:      #F7F5F0;
  --teal:       #0B8F8F;
  --gold:       #B8904A;
  --nav-h:      72px;
  --gap:        3px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }

/* All hidden inputs (radio/checkbox) are invisible but functional */
input[type=radio],
input[type=checkbox] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}


/* ── 02. Language System ──────────────────────────────────────── */
/*
   Radio inputs #l-en / #l-es / #l-fr sit before #site in the DOM.
   CSS general sibling combinator (~) lets them control all
   descendants of #site via: #l-es:checked ~ #site .lang-xx { }
*/

.lang-es, .lang-fr { display: none; }

/* Spanish */
#l-es:checked ~ #site .lang-en              { display: none; }
#l-es:checked ~ #site .lang-es              { display: block; }
#l-es:checked ~ #site span.lang-es          { display: inline; }
#l-es:checked ~ #site .marquee-track.lang-es{ display: flex; }

/* French */
#l-fr:checked ~ #site .lang-en              { display: none; }
#l-fr:checked ~ #site .lang-fr              { display: block; }
#l-fr:checked ~ #site span.lang-fr          { display: inline; }
#l-fr:checked ~ #site .marquee-track.lang-fr{ display: flex; }


/* ── 03. Navigation ───────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: var(--white);
  transition: background .5s, box-shadow .5s;
}

#nav.scrolled {
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.logo-wrap {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-svg {
  height: 44px;
  width: auto;
  overflow: visible;
}

/* Drop-shadow ensures logo is readable on transparent nav over bright areas */
.logo-wrap .logo-svg {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.45));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language switcher */
.lang-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
}

.lang-btn {
  cursor: pointer;
  padding: 5px 7px;
  opacity: .38;
  transition: opacity .2s;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.lang-btn:hover { opacity: .8; }

.lang-sep { opacity: .2; font-size: 9px; line-height: 1; }

/* Active language indicator */
#l-en:checked ~ #site label[for=l-en].lang-btn,
#l-es:checked ~ #site label[for=l-es].lang-btn,
#l-fr:checked ~ #site label[for=l-fr].lang-btn {
  opacity: 1;
  border-bottom-color: var(--gold);
}

/* Hamburger icon */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

/* Animate hamburger → X when menu is open */
#menu-open:checked ~ #site .hamburger span:nth-child(1) { transform: translateY(6px)  rotate(45deg); }
#menu-open:checked ~ #site .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-open:checked ~ #site .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav links */
.nav-links {
  display: none;
  gap: 36px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-links a { opacity: .55; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 40px 24px;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond';
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: .8;
  transition: opacity .2s;
}

.mobile-menu a:hover { opacity: 1; }

#menu-open:checked ~ #site .mobile-menu { display: flex; }

@media (min-width: 1024px) {
  #nav          { padding: 0 56px; }
  .hamburger    { display: none; }
  .nav-links    { display: flex; }
  .nav-right    { gap: 36px; }
}


/* ── 04. Hero Section ─────────────────────────────────────────── */

#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,10,.52) 0%,
    rgba(10,10,10,.28) 40%,
    rgba(10,10,10,.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cormorant Garamond';
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 9vw, 90px);
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -.5px;
}

.hero-sub {
  font-family: 'Jost';
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(247,245,240,.7);
  margin-bottom: 52px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  padding: 15px 44px;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(247,245,240,.5);
  color: var(--white);
  transition: background .3s, color .3s, border-color .3s;
}

.hero-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(10,10,10,.65) 0%, transparent 100%);
  padding: 64px 24px 40px;
}

.hero-stat {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 28px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(247,245,240,.15);
}

.stat-num {
  font-family: 'Cormorant Garamond';
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-lbl {
  font-family: 'Jost';
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(247,245,240,.45);
  margin-top: 8px;
}


/* ── 05. Properties Section ───────────────────────────────────── */

#properties {
  background: var(--white);
  color: var(--black);
  padding: 88px 0;
}

.sec-pad { padding: 0 24px; }

@media (min-width: 1024px) {
  .sec-pad { padding: 0 56px; }
}

.sec-eye {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.sec-ttl {
  font-family: 'Cormorant Garamond';
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 40px;
}

.sec-ttl.lt { color: var(--white); }


/* ── 06. Filter Pills ─────────────────────────────────────────── */
/*
   Hidden radio inputs + <label for="..."> pills.
   CSS sibling selector hides non-matching .prop-card elements.
*/

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 52px;
}

.filter-pill {
  display: inline-block;
  cursor: pointer;
  padding: 9px 18px;
  border: 1px solid rgba(10,10,10,.18);
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .2s;
  color: var(--black);
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Active filter pill */
#f-all:checked    ~ #site label[for=f-all].filter-pill,
#f-golf:checked   ~ #site label[for=f-golf].filter-pill,
#f-pool:checked   ~ #site label[for=f-pool].filter-pill,
#f-6hab:checked   ~ #site label[for=f-6hab].filter-pill,
#f-10hab:checked  ~ #site label[for=f-10hab].filter-pill,
#f-jacuzzi:checked~ #site label[for=f-jacuzzi].filter-pill {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}


/* ── 07. Property Grid & Cards ────────────────────────────────── */

.prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .prop-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  /* First card spans full width */
  .prop-card:first-child { grid-column: 1 / -1; }
}

/* Card */
.prop-card {
  background: var(--black);
  overflow: hidden;
  display: block;
}

.card-img-wrap { overflow: hidden; }

.card-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
  display: block;
}

.prop-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-body {
  padding: 28px 24px 32px;
  color: var(--white);
}

.card-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-family: 'Jost';
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  font-weight: 500;
}

.badge-featured  { background: var(--gold); color: var(--black); }
.badge-exclusive { border: 1px solid var(--gold); color: var(--gold); }
.badge-new       { background: var(--teal); color: #fff; }

.card-location {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,245,240,.38);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Cormorant Garamond';
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 13px;
  line-height: 1.78;
  color: rgba(247,245,240,.65);
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12px;
  color: rgba(247,245,240,.5);
  letter-spacing: .3px;
}

.card-price {
  font-family: 'Cormorant Garamond';
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 22px;
  letter-spacing: .5px;
}

.card-cta-link {
  display: inline-block;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.card-cta-link:hover { color: var(--gold); border-color: var(--gold); }

/* First card: full-width side-by-side on desktop */
@media (min-width: 1024px) {
  .prop-card:first-child {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: stretch;
  }

  .prop-card:first-child .card-img-wrap { overflow: hidden; }

  .prop-card:first-child .card-img-wrap img {
    height: 100%;
    min-height: 520px;
    width: 100%;
  }

  .prop-card:first-child .card-body {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .prop-card:first-child .card-title { font-size: 38px; }
  .prop-card:first-child .card-desc  { -webkit-line-clamp: 5; }

  .prop-card:not(:first-child) .card-img-wrap img { height: 340px; }
}

/* CSS-only filter logic */
.prop-card { display: block; }

#f-golf:checked   ~ #site .prop-card:not([data-tags~=golf])    { display: none; }
#f-pool:checked   ~ #site .prop-card:not([data-tags~=piscina]) { display: none; }
#f-6hab:checked   ~ #site .prop-card:not([data-tags~=6hab])    { display: none; }
#f-10hab:checked  ~ #site .prop-card:not([data-tags~=10hab])   { display: none; }
#f-jacuzzi:checked~ #site .prop-card:not([data-tags~=jacuzzi]) { display: none; }


/* ── 08. Modal System (CSS :target) ──────────────────────────── */
/*
   <a href="#modal-N"> sets the URL hash → div#modal-N:target fires.
   No JavaScript required. Works in WhatsApp Quick Look (iOS).
   Close button: <a href="#_"> — targets a hidden span with id="_"
   so no element has :target → modal disappears.
*/

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,10,.9);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal:target { display: block; }

/* Prevent background scroll when modal is open */
body:has(.modal:target) { overflow: hidden; }

.modal-inner {
  background: var(--black);
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

/* Image carousel */
.modal-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.modal-carousel::-webkit-scrollbar { display: none; }

.modal-carousel img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 260px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 768px) {
  .modal-carousel img { height: 380px; }
}

.modal-body { padding: 32px 24px; }

@media (min-width: 768px) {
  .modal-body { padding: 40px 44px; }
}

.modal-location {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.modal-title {
  font-family: 'Cormorant Garamond';
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 300;
  margin-bottom: 16px;
  color: var(--white);
}

.modal-price {
  font-family: 'Cormorant Garamond';
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 28px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: rgba(247,245,240,.04);
  margin-bottom: 28px;
  border: 1px solid rgba(247,245,240,.07);
}

@media (min-width: 560px) {
  .modal-specs { grid-template-columns: repeat(4, 1fr); }
}

.modal-spec { text-align: center; }

.modal-spec-val {
  font-family: 'Cormorant Garamond';
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
}

.modal-spec-lbl {
  font-family: 'Jost';
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(247,245,240,.38);
  margin-top: 5px;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247,245,240,.7);
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .25s;
}

.btn-email { border: 1px solid var(--gold); color: var(--gold); }
.btn-email:hover { background: var(--gold); color: var(--black); }

.btn-wa { background: #25D366; color: #fff; border: 1px solid #25D366; }
.btn-wa:hover { background: #1eb356; }

/* Close button — positioned at BOTTOM (never top-right, hidden by iOS system UI) */
.modal-close {
  display: block;
  width: 100%;
  padding: 18px;
  text-align: center;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(247,245,240,.35);
  border-top: 1px solid rgba(247,245,240,.07);
  transition: color .2s;
}

.modal-close:hover { color: var(--white); }


/* ── 09. Marquee Strip ────────────────────────────────────────── */

.marquee-section {
  background: var(--teal);
  padding: 22px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
  white-space: nowrap;
}

/* Only the active language track is shown */
.marquee-track.lang-es,
.marquee-track.lang-fr { display: none; }

.marquee-section:hover .marquee-track { animation-play-state: paused; }

.marquee-item-text {
  font-family: 'Cormorant Garamond';
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,.92);
  letter-spacing: 1px;
  font-weight: 300;
  padding: 0 4px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── 10. About Section ────────────────────────────────────────── */

#about {
  background: var(--black);
  padding: 104px 24px;
}

@media (min-width: 1024px) {
  #about { padding: 128px 56px; }
}

.about-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
  }
}

.about-lead {
  font-size: 15px;
  line-height: 1.88;
  color: rgba(247,245,240,.62);
  max-width: 480px;
  margin-top: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.about-stat {
  padding: 32px 24px;
  background: rgba(247,245,240,.03);
  border: 1px solid rgba(247,245,240,.07);
}

.about-stat-num {
  font-family: 'Cormorant Garamond';
  font-size: 54px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.about-stat-lbl {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,245,240,.38);
  line-height: 1.5;
}


/* ── 11. Contact Section ──────────────────────────────────────── */

#contact {
  background: var(--white);
  color: var(--black);
  padding: 104px 24px;
}

@media (min-width: 1024px) {
  #contact { padding: 128px 56px; }
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .sec-ttl { color: var(--black); }

.contact-lead {
  font-size: 15px;
  line-height: 1.82;
  color: rgba(10,10,10,.57);
  margin-bottom: 48px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .25s;
}

.btn-dark    { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--teal); }

.btn-green   { background: #25D366; color: #fff; }
.btn-green:hover { background: #1eb356; }

.btn-outline { border: 1px solid rgba(10,10,10,.22); color: var(--black); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }


/* ── 12. Footer ───────────────────────────────────────────────── */

footer {
  background: var(--black);
  padding: 64px 24px 40px;
  border-top: 1px solid rgba(247,245,240,.07);
}

@media (min-width: 1024px) {
  footer { padding: 64px 56px 40px; }
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-bottom: 52px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .logo-svg { height: 34px; margin-bottom: 16px; }

.footer-tagline {
  font-size: 12px;
  color: rgba(247,245,240,.32);
  line-height: 1.65;
  max-width: 200px;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  font-family: 'Jost';
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,245,240,.45);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-contact-col {
  font-size: 13px;
  line-height: 2.1;
  color: rgba(247,245,240,.45);
}

.footer-contact-col a { transition: color .2s; }
.footer-contact-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(247,245,240,.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy,
.footer-credit {
  font-size: 11px;
  color: rgba(247,245,240,.22);
  letter-spacing: .5px;
}


/* ── 13. Utilities ────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(247,245,240,.15); border-radius: 3px; }
