/* Playa Escondida Properties — mobile-first stylesheet, no external dependencies */

:root {
  --color-navy: #0e2a3d;
  --color-navy-light: #163c54;
  --color-gold: #c9974a;
  --color-gold-dark: #a97a34;
  --color-sand: #f6f1e9;
  --color-sea: #1c6e7a;
  --color-text: #23303a;
  --color-text-muted: #5b6b76;
  --color-border: #e3ddd0;
  --color-white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 61, 0.08);
  --shadow-md: 0 6px 24px rgba(14, 42, 61, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--color-navy); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--color-text); }
address { font-style: normal; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-navy); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-gold); color: var(--color-navy); }
.btn-primary:hover { background: var(--color-gold-dark); }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-ghost:hover { background: var(--color-navy); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--color-navy); white-space: nowrap; }
.main-nav { display: none; }
.header-cta { display: none; }
.nav-toggle { background: none; border: 0; width: 40px; height: 34px; display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-navy); border-radius: 2px; }

.main-nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0;
  background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 10px 20px 18px; box-shadow: var(--shadow-md);
}
.main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--color-border); font-weight: 600; color: var(--color-navy); }
.main-nav a.active { color: var(--color-gold-dark); }
.nav-dropdown-toggle { background: none; border: 0; padding: 12px 4px; font: inherit; font-weight: 600; color: var(--color-navy); width: 100%; text-align: left; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.nav-dropdown-menu { display: none; padding-left: 12px; }
.nav-dropdown-menu.is-open { display: block; }

@media (min-width: 900px) {
  .main-nav { display: flex !important; position: static; box-shadow: none; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 26px; }
  .main-nav a { border: 0; padding: 6px 0; position: relative; }
  .main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--color-gold); }
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle { border: 0; padding: 6px 0; width: auto; }
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: var(--shadow-md); min-width: 180px; padding: 6px; margin-top: 10px; }
  .nav-dropdown-menu a { display: block; border: 0; padding: 8px 10px; border-radius: 6px; }
  .nav-dropdown-menu a:hover { background: var(--color-sand); }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown-menu.is-open { display: block; }
  .header-cta { display: flex; gap: 10px; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(14,42,61,.55), rgba(14,42,61,.75)), var(--color-navy); }
.hero-media { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-inner { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-content { padding: 28px 20px 36px; width: 100%; max-width: var(--max-width); margin: 0 auto; }
.hero-content h1 { color: #fff; max-width: 720px; }
.hero-content p.lede { color: #ecf3f6; max-width: 560px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.eyebrow { display: inline-block; background: rgba(201,151,74,.9); color: var(--color-navy); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

.simple-hero { background: var(--color-navy); color: #fff; padding: 46px 0 34px; }
.simple-hero h1 { color: #fff; }
.simple-hero p { color: #dce7ec; max-width: 640px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--color-sand); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--color-text-muted); }

/* Grids & cards */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--color-navy); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.card-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 4px; }
.card-location { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 10px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--color-text-muted); margin-bottom: 12px; }
.card-price { font-weight: 800; color: var(--color-sea); font-size: 1.05rem; margin: 0 0 12px; }
.card-cta { margin-top: auto; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-bar button {
  background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 9px 16px;
  font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--color-text);
}
.filter-bar button.is-active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.filter-empty { display: none; padding: 30px; text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: var(--radius); }
.filter-empty.is-visible { display: block; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0; font-size: .85rem; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-sea); }
.breadcrumbs .sep { margin: 0 8px; }
.breadcrumbs span[aria-current] { color: var(--color-navy); font-weight: 600; }

/* Amenities */
.amenity-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .amenity-list { grid-template-columns: 1fr 1fr; } }
.amenity-list li { padding-left: 26px; position: relative; }
.amenity-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-sea); font-weight: 800; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.spec-table td:first-child { color: var(--color-text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 700; color: var(--color-navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(14,42,61,.92); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* Two column layout (property page) */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 2fr 1fr; align-items: start; } }
.sticky-card { position: sticky; top: 90px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }

/* Map */
.map-frame { border: 0; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); }

/* Forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 8px; font: inherit; color: var(--color-text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-sea); outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--color-text-muted); }
.form-success { display: none; background: #e6f4ea; border: 1px solid #b7dfc2; color: #1e5b32; padding: 14px 16px; border-radius: 8px; margin-top: 16px; }
.form-success.is-visible { display: block; }

/* Footer */
.site-footer { background: var(--color-navy); color: #cddbe3; margin-top: 60px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 46px 20px 26px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer li { margin-bottom: 8px; }
.social-links { display: flex; gap: 14px; margin-top: 14px; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: .82rem; color: #9fb2bd; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--color-sand); color: var(--color-navy); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.value-props { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .value-props { grid-template-columns: repeat(3, 1fr); } }
.value-props .card-body { text-align: left; }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; text-align: center; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4,1fr); } }
.stat-row strong { display: block; font-size: 1.8rem; color: var(--color-navy); }
.stat-row span { color: var(--color-text-muted); font-size: .88rem; }

@media print {
  .site-header, .site-footer, .filter-bar { display: none; }
}
