/* Base */
:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --brand: #55AA94; /* teal */
  --brand-2: #000000; /* sand/gold */
  --brand-3: #F78F6B; /* coral */
  --ring: rgba(45, 212, 191, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  /* Smoothened gradient to remove visible horizontal seam */
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}
body.no-scroll { overflow: hidden; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(120%) blur(8px); background: rgba(15, 23, 42, 0.65); border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.2px; }
.brand-mark { display:inline-grid; place-items:center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #0b1220; font-weight: 800; }
.brand-logo { width: 72px; height: 72px; object-fit: contain; background: transparent; border: none; border-radius: 0; display: inline-block; }
.site-nav { display: none; gap: 22px; margin-right: 24px; }
.site-nav a { color: var(--text); opacity: 0.85; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: #fff; opacity: 1; }
.actions { display: flex; align-items: center; gap: 20px; }

@media (min-width: 880px) { .site-nav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.2); color: #0b1220; background: #e5fffb; text-decoration: none; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; box-shadow: 0 8px 24px -12px rgba(45,212,191,.6); }
.btn { font-size: 14.5px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -16px rgba(45,212,191,.7); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(148, 163, 184, 0.35); box-shadow: none; }
.btn.cta { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #07131c; border: none; }
.btn.cta:hover { box-shadow: 0 12px 38px -16px rgba(251, 113, 133, .7); }

.lang-toggle { appearance: none; border: 1px solid rgba(148,163,184,.25); background: #0b1220; color: var(--text); padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.lang-toggle:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.menu-toggle { display: none; background: rgba(148,163,184,.12); color: var(--text); border: 1px solid rgba(148,163,184,.25); padding: 8px 10px; border-radius: 10px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; overflow: hidden; z-index: 0; }
.hero-media { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(45,212,191,.15), transparent 60%), url('../images/hero.jpeg') center/cover no-repeat; filter: saturate(110%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.6), rgba(2,6,23,.7)); z-index: -1; pointer-events: none; }
.hero-content { position: relative; text-align: center; padding: 72px 0; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.2px; margin: 0 0 12px; }
.hero p { line-height: 1.6; }
.hero .muted { font-size: clamp(14px, 2.2vw, 18px); }
.hero-ctas { margin-top: 22px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Video Tour */
.tour { position: relative; overflow: hidden; padding: 0; }
.tour .tour-wrap { position: relative; }
.tour .tour-media { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 60px -24px rgba(2,6,23,.8); }
.tour video { width: 100%; height: 100%; display: block; object-fit: cover; }
.tour .tour-media.portrait { aspect-ratio: 9/16; }
.tour .tour-media.portrait video { object-fit: contain; background: #000; }
.tour .tour-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.0), rgba(2,6,23,.5) 70%, rgba(2,6,23,.7)); display: flex; align-items: flex-end; padding: 18px; opacity: 1; transition: opacity .25s ease; }
.tour .tour-overlay.hidden { opacity: 0; pointer-events: none; }
.tour .tour-card { background: rgba(2,6,23,.6); backdrop-filter: blur(8px); border: 1px solid rgba(148,163,184,.2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; max-width: 520px; }
.tour .tour-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tour .pill { font-size: 12px; color: var(--text); opacity: .85; border: 1px solid rgba(148,163,184,.25); padding: 4px 8px; border-radius: 999px; }
.tour .play-btn { width: 46px; height: 46px; border-radius: 999px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #07131c; border: none; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.tour .mute-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(148,163,184,.15); color: var(--text); border: 1px solid rgba(148,163,184,.3); cursor: pointer; }
.tour .cc-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(148,163,184,.15); color: var(--text); border: 1px solid rgba(148,163,184,.3); cursor: pointer; font-size: 13px; }
.tour .fs-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(148,163,184,.15); color: var(--text); border: 1px solid rgba(148,163,184,.3); cursor: pointer; font-size: 16px; }
.tour .scrub { -webkit-appearance: none; width: 100%; height: 4px; background: rgba(148,163,184,.25); border-radius: 999px; outline: none; }
.tour .scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 999px; background: var(--brand-3); cursor: pointer; border: 1px solid rgba(148,163,184,.35); }
.tour .time { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; position: relative; z-index: 1; }
.section.alt { background: rgba(17, 24, 39, 0.6); border-top: 1px solid rgba(148, 163, 184, 0.08); border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.section h2 { margin: 0 0 8px; }
.section p { margin-top: 0; }
.lead { font-size: 18px; opacity: .95; }
.muted { color: var(--muted); }

/* Language visibility helpers for long content */
html[lang="en"] .i18n-es { display: none; }
html[lang="es"] .i18n-en { display: none; }

.grid-2 { display: grid; gap: 28px; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 40px; } }

.media-card { height: 320px; border-radius: 16px; background: url('../images/patio1.jpeg') center/cover no-repeat; box-shadow: 0 20px 60px -20px rgba(2, 6, 23, 0.7); border: 1px solid rgba(148, 163, 184, 0.18); }

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list + .btn { margin-top: 18px; }
.feature-list li { display: flex; align-items: flex-start; }
.feature-list li::before { content: '✦'; color: var(--brand-2); margin-right: 10px; display: inline-block; width: 18px; flex: 0 0 auto; transform: translateY(2px); }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.amenity-card { background: rgba(2, 6, 23, 0.6); border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px; padding: 18px; transition: transform .2s ease, border-color .2s ease, background .2s ease; position: relative; overflow: hidden; }
.amenity-card:hover, .amenity-card:focus-within { transform: translateY(-2px); border-color: rgba(45,212,191,.4); background: rgba(2,6,23,.75); }
.amenity-card .icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); margin-bottom: 10px; filter: saturate(120%); }
.amenity-card .details { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.amenity-card:hover .details, .amenity-card:focus-within .details { max-height: 300px; }
.amenity-card h3 { margin: 0 0 4px; }
.amenity-card p { margin: 0 0 8px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148,163,184,.15); }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.01); transition: transform .25s ease, filter .25s ease; filter: saturate(105%);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(115%) contrast(105%); }
.gallery-item .caption { position: absolute; left: 8px; bottom: 8px; background: rgba(2,6,23,.65); border: 1px solid rgba(148,163,184,.25); color: var(--text); padding: 4px 8px; border-radius: 8px; font-size: 12px; backdrop-filter: blur(2px); }

/* Map */
.map-embed .map-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 60px -24px rgba(2, 6, 23, 0.8); }
.map-embed iframe { display: block; width: 100%; height: 380px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 12px; }
.card { background: rgba(2, 6, 23, 0.6); border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px; padding: 18px; }
.contact-card { background: linear-gradient(180deg, rgba(45,212,191,.08), rgba(251,113,133,.08)); border: 1px solid rgba(148,163,184,.18); border-radius: 16px; padding: 18px; }
.contact-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.contact-link { color: var(--text); text-decoration: none; }
.contact-link:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.icon-link { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.18); }
.icon-link svg { width: 18px; height: 18px; fill: var(--text); opacity: .9; }
/* Small button variant */
.btn.small { padding: 7px 12px; border-radius: 10px; font-weight: 600; box-shadow: none; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 10px; }

/* Amenities accordion */
.amenities-accordion { margin-top: 18px; display: grid; gap: 10px; }
.amenities-accordion details { background: rgba(2, 6, 23, 0.6); border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 14px; overflow: hidden; }
.amenities-accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; }
.amenities-accordion summary::-webkit-details-marker { display: none; }
.amenities-accordion .summary-title { display: inline-flex; align-items: center; gap: 10px; }
.amenities-accordion .summary-icon { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); display: inline-grid; place-items: center; color: #07131c; }
.amenities-accordion .summary-icon svg { width: 18px; height: 18px; }
.amenities-accordion .summary-caret { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.18); color: var(--text); }
.amenities-accordion .content { padding: 0 16px 14px 16px; }
.amenities-accordion ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; }
.amenities-accordion li { color: var(--muted); }

/* Footer */
.site-footer { padding: 24px 0; border-top: 1px solid rgba(148,163,184,.12); background: rgba(2,6,23,.6); }
.footer { display: flex; align-items: center; justify-content: center; }
.footer p { margin: 0; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,.85); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; border: 1px solid rgba(148,163,184,.2); box-shadow: 0 24px 80px -20px rgba(0,0,0,.6); transition: transform .18s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.lightbox video { max-width: 92vw; max-height: 80vh; border-radius: 12px; border: 1px solid rgba(148,163,184,.2); box-shadow: 0 24px 80px -20px rgba(0,0,0,.6); transition: transform .18s cubic-bezier(.2,.8,.2,1); background:#000; display:none; }
.lightbox img.slide-out-left { transform: translateX(-28px); }
.lightbox img.slide-out-right { transform: translateX(28px); }
.lightbox img.slide-in-from-left { transform: translateX(-28px); }
.lightbox img.slide-in-from-right { transform: translateX(28px); }
.lightbox video.slide-out-left { transform: translateX(-28px); }
.lightbox video.slide-out-right { transform: translateX(28px); }
.lightbox video.slide-in-from-left { transform: translateX(-28px); }
.lightbox video.slide-in-from-right { transform: translateX(28px); }
.lightbox-caption { color: var(--muted); font-size: 14px; text-align: center; max-width: 92vw; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(148,163,184,.15); color: var(--text); border: 1px solid rgba(148,163,184,.3); border-radius: 10px; font-size: 20px; width: 40px; height: 40px; cursor: pointer; }

/* Lightbox slider controls */
.lightbox-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; padding: 0 8px; }
.lightbox-btn { pointer-events: auto; background: rgba(148,163,184,.2); color: var(--text); border: 1px solid rgba(148,163,184,.35); width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 22px; cursor: pointer; }
.lightbox-btn:hover { background: rgba(148,163,184,.28); }

/* Responsive adjustments for mobile-first polish */
@media (max-width: 879px) {
  .section { padding: 56px 0; }
  .hero-content { padding: 56px 0; }
  .media-card { height: 220px; }
  .actions .btn.cta { padding: 8px 12px; border-radius: 10px; box-shadow: 0 8px 24px -14px rgba(251,113,133,.55); }
  .btn { padding: 9px 14px; }
  .gallery-grid { gap: 8px; }
  .cards { gap: 12px; }
  .grid-2 { text-align: left; }
  .grid-2 .media { order: -1; }
  .grid-2 .col { justify-self: stretch; }
  .actions { gap: 8px; }
  .brand-text { display: none; }
  .brand-mark, .brand-logo { width: 64px; height: 64px; }
  .map-embed iframe { height: 300px; }
  .site-nav { display: none !important; }
  .menu-toggle { display: inline-flex; }
}

@media (min-width: 1100px) {
  .hero-content { padding: 96px 0; }
  .media-card { height: 360px; }
}

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; background: rgba(2,6,23,.92); backdrop-filter: blur(8px); display: none; z-index: 120; }
.mobile-nav.open { display: block; }
.mobile-inner { width: min(720px, 92%); margin: 0 auto; padding: 16px 0 28px; }
.mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 16px; border-bottom: 1px solid rgba(148,163,184,.18); }
.mobile-close { background: rgba(148,163,184,.12); color: var(--text); border: 1px solid rgba(148,163,184,.25); width: 40px; height: 40px; border-radius: 10px; font-size: 22px; }
.mobile-links { display: grid; gap: 12px; padding: 16px 0 18px; }
.mobile-links a { color: var(--text); text-decoration: none; font-size: 18px; padding: 10px 0; border-bottom: 1px dashed rgba(148,163,184,.15); }
.mobile-links a:last-child { border-bottom: none; }
.btn.wide { width: 100%; justify-content: center; }

/* Details grid */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.details-card { background: rgba(2, 6, 23, 0.6); border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px; padding: 18px; }


