/* ─────────────────────────────────────────────────
   TOKENS & RESET
───────────────────────────────────────────────── */
:root {
  --sand: #f7f3ee;
  --sand-dark: #ede8e0;
  --sand-light: #faf8f5;
  --charcoal: #1a1a18;
  --charcoal-light: #2d2d2a;
  --gold: #b8986a;
  --gold-light: #d4b98a;
  --gold-pale: #f0e8d8;
  --ocean: #1b4f72;
  --ocean-light: #2471a3;
  --white: #ffffff;
  --text: #2d2d2a;
  --text-muted: #7a7a72;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.18);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--sand-light);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; width: 100%; object-fit: cover; }

a { text-decoration: none; color: inherit; }

/* ─────────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184,152,106,.4);
}

/* ─────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}

#navbar.scrolled .nav-inner {
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.09);
  padding: 1rem 2rem;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition), background var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: color var(--transition);
}

#navbar.scrolled .logo-text {
  color: var(--charcoal);
}

#navbar.scrolled .logo-icon {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

#navbar.scrolled .nav-links a { color: var(--charcoal); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}

#navbar.scrolled .burger span { background: var(--charcoal); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1.5rem 2rem;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.mobile-menu.open { display: flex; }

/* ─────────────────────────────────────────────────
   LISTING HEADER
───────────────────────────────────────────────── */
.listing-header { padding: 8rem 0 1.5rem; }
.listing-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--charcoal); }
.listing-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--text); flex-wrap: wrap; }
.meta-dot { color: var(--text-muted); }
.badge { background: #fef8f0; border: 1px solid #f2e3cb; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 600; color: #b0813f; }

/* ─────────────────────────────────────────────────
   PHOTO GRID
───────────────────────────────────────────────── */
.photo-grid-sec { margin-bottom: 3rem; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 16px; overflow: hidden; position: relative; height: 50vh; min-height: 400px; }
.pg-main { background-size: cover; background-position: center; width: 100%; height: 100%; cursor: pointer; backface-visibility: hidden; transform: translateZ(0); -webkit-font-smoothing: subpixel-antialiased; transition: none !important; }
.pg-small { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; }
.pg-item { background-size: cover; background-position: center; width: 100%; height: 100%; cursor: pointer; backface-visibility: hidden; transform: translateZ(0); -webkit-font-smoothing: subpixel-antialiased; transition: none !important; }
.pg-main:hover, .pg-item:hover { filter: brightness(0.9); }
.btn-show-all { position: absolute; bottom: 1.5rem; right: 1.5rem; background: #fff; border: 1px solid var(--charcoal); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.2s; font-family: var(--font-sans); }
.btn-show-all:hover { background: var(--sand-light); }

/* ─────────────────────────────────────────────────
   LAYOUT SPLIT
───────────────────────────────────────────────── */
.listing-body { margin-bottom: 2rem; }
.layout-split { display: grid; grid-template-columns: 63% 32%; justify-content: space-between; gap: 3rem; position: relative; }

/* ─────────────────────────────────────────────────
   LEFT COLUMN
───────────────────────────────────────────────── */
.host-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid #e0dbd3; margin-bottom: 2rem; }
.hh-text h2 { font-size: 1.4rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.25rem; font-family: var(--font-sans); }
.hh-text p { font-size: 1rem; color: var(--text); }
.avatar-circle { width: 48px; height: 48px; background: #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #555; font-size: 1.2rem; background-size: cover; background-position: center; }

.guest-favorite-badge { display: flex; align-items: center; gap: 1.5rem; border: 1px solid #e0dbd3; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; }
.gfb-icon { font-size: 2.5rem; }
.gfb-text { flex: 1; display: flex; flex-direction: column; }
.gfb-text strong { font-size: 1.05rem; font-weight: 600; }
.gfb-text span { font-size: 0.9rem; color: var(--text-muted); }
.gfb-rating { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 1.5rem; border-left: 1px solid #e0dbd3; }

.host-profile { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e0dbd3; }
.hp-info { display: flex; flex-direction: column; }
.hp-info strong { font-size: 1rem; font-weight: 600; }
.hp-info span { font-size: 0.9rem; color: var(--text-muted); }

.listing-features { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e0dbd3; display: flex; flex-direction: column; gap: 1.5rem; }
.feat-item { display: flex; align-items: flex-start; gap: 1rem; }
.feat-icon { font-size: 1.5rem; }
.feat-text { display: flex; flex-direction: column; gap: 0.2rem; }
.feat-text strong { font-size: 1rem; font-weight: 600; }
.feat-text span { font-size: 0.95rem; color: var(--text-muted); }

.listing-about { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e0dbd3; }
.listing-about h3, .listing-amenities h3, .listing-calendar h3, .listing-reviews h3, .listing-map h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 1.2rem; color: var(--charcoal); }
.listing-about p { margin-bottom: 1rem; color: var(--text); line-height: 1.6; font-size: 1rem; }
.btn-more { background: none; border: none; font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 1rem; padding: 0; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.25rem; font-family: var(--font-sans); }

.listing-amenities { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #e0dbd3; }
.amenities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.am-item { display: flex; align-items: center; gap: 0.8rem; font-size: 1rem; color: var(--text); }
.am-icon { font-size: 1.3rem; width: 24px; text-align: center; }
.btn-more-border { background: transparent; border: 1px solid var(--charcoal); padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: var(--font-sans); }
.btn-more-border:hover { background: rgba(0,0,0,0.03); }

.listing-calendar { margin-bottom: 1rem; }
.cal-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.calendar-placeholder { background: transparent; border: 1px solid #e0dbd3; border-radius: 12px; height: 200px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }

/* ─────────────────────────────────────────────────
   RIGHT COLUMN (STICKY)
───────────────────────────────────────────────── */
.sticky-widget { position: sticky; top: 110px; background: #fff; border: 1px solid #e0dbd3; border-radius: 12px; padding: 1.5rem; box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.bw-header { margin-bottom: 1.5rem; }
.bw-price strong { font-size: 1.4rem; font-weight: 600; color: var(--charcoal); }
.bw-price span { font-size: 1rem; color: var(--text); }

.bw-form { display: flex; flex-direction: column; }
.bw-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--text-muted); border-radius: 8px 8px 0 0; }
.bw-field { padding: 0.5rem; display: flex; flex-direction: column; position: relative; }
.bw-field label { font-family: var(--font-sans); font-size: 0.65rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.2rem; }
.bw-field input, .bw-field select { border: none; background: transparent; font-size: 0.95rem; outline: none; width: 100%; color: var(--text); font-family: var(--font-sans); padding: 0.2rem 0; }
.bw-field input[type="number"] { -moz-appearance: textfield; }
.bw-field input[type="number"]::-webkit-outer-spin-button,
.bw-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.border-left { border-left: 1px solid var(--text-muted); }
.bw-guests { border: 1px solid var(--text-muted); border-top: none; border-radius: 0 0 8px 8px; margin-bottom: 1rem; padding: 0.6rem; }

.bw-btn { width: 100%; background: #b87a30; color: #fff; font-size: 1rem; font-weight: 600; padding: 0.9rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; font-family: var(--font-sans); }
.bw-btn:hover { background: #9a6628; }
.bw-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0; }
.bw-rules { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid #e0dbd3; padding-top: 1rem; }

/* ─────────────────────────────────────────────────
   BOTTOM SECTION (MAP & REVIEWS)
───────────────────────────────────────────────── */
.listing-bottom { padding: 3rem 0; background: var(--sand-light); }
.listing-reviews { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #e0dbd3; }
.star-icon { font-size: 1.2rem; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.rev-card { display: flex; flex-direction: column; gap: 1rem; }
.rev-author { display: flex; align-items: center; gap: 1rem; }
.rev-author div { display: flex; flex-direction: column; }
.rev-author strong { font-size: 1rem; }
.rev-author span { font-size: 0.85rem; color: var(--text-muted); }
.avatar-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid #e0dbd3;
}

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.footer {
  background: var(--charcoal-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  line-height: 1.8;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4, .footer-contact h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

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

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  transition: background var(--transition);
}

.whatsapp-btn:hover { background: #1ebe57; }

.email-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.email-link:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .layout-split { grid-template-columns: 1fr; }
  .layout-right { order: -1; } /* moves booking widget above the content on mobile */
  .sticky-widget { position: relative; top: 0; margin-bottom: 2rem; }
  .photo-grid { height: 40vh; min-height: 300px; display: flex; }
  .pg-small { display: none; }
  .pg-main { width: 100%; height: 100%; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .listing-header { padding-top: 6rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .amenities-list { grid-template-columns: 1fr; }
  .bw-dates { grid-template-columns: 1fr; }
  .border-left { border-left: none; border-top: 1px solid var(--text-muted); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .guest-favorite-badge { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .gfb-rating { border-left: none; padding-left: 0; padding-top: 1rem; border-top: 1px solid #e0dbd3; width: 100%; align-items: flex-start; flex-direction: row; gap: 0.5rem; justify-content: flex-start; }
}

/* ─────────────────────────────────────────────────
   LIGHTBOX (LAZY)
───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  width: auto;
  height: auto;
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 2rem; }
.lb-next { right: 2rem; }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────
   FOOTER HOST PROFILE
───────────────────────────────────────────────── */
.footer-contact h4 { margin-bottom: 1.2rem; }
.footer-host { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.f-host-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.footer-host strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.1rem; color: #fff; }
.footer-host span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.whatsapp-btn, .instagram-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.2rem; border-radius: 6px; font-weight: 500; text-decoration: none;
  font-size: 0.85rem; transition: transform 0.2s; width: fit-content;
}
.whatsapp-btn { background: #25d366; color: white; margin-bottom: 0.8rem; }
.instagram-btn { background: #e1306c; color: white; margin-bottom: 0.8rem;}
.whatsapp-btn:hover, .instagram-btn:hover { transform: translateY(-3px); }

/* ─────────────────────────────────────────────────
   STICKY HOST BOTTOM BAR
───────────────────────────────────────────────── */
.sticky-host-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(13,30,48,0.08); padding: 0.8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000; box-shadow: 0 -4px 24px rgba(13,30,48,0.06);
  transform: translateY(100%); animation: slideUpHost 0.8s 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUpHost { to { transform: translateY(0); } }
.shb-left { display: flex; align-items: center; gap: 1rem; }
.shb-avatar { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center top; }
.shb-info strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: #0d1e30; line-height: 1.2; }
.shb-info span { display: block; font-size: 0.75rem; color: rgba(13,30,48,0.6); letter-spacing: 0.05em; text-transform: uppercase; }
.shb-btn {
  background: #25d366; color: white; padding: 0.6rem 1.2rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 0.4rem; transition: transform 0.2s, box-shadow 0.2s;
}
.shb-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
@media (max-width: 600px) {
  .shb-info span { display: none; }
  .sticky-host-bar { padding: 0.8rem 1rem; }
  .shb-avatar { width: 38px; height: 38px; }
  .shb-btn { padding: 0.6rem 0.9rem; }
}
