/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f5f0e8;
  --cream2:   #ede6d8;
  --beige:    #d9ccb8;
  --gold:     #b8923a;
  --gold-lt:  #c9a84c;
  --gold-dk:  #8a6820;
  --dark:     #1a1610;
  --brown:    #3d2f1e;
  --text:     #2c2218;
  --muted:    #7a6a58;
  --white:    #ffffff;
  --shadow:   0 8px 40px rgba(60,40,10,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav.public-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}
nav.public-navbar.scrolled {
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(184,146,58,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.4s;
}
nav.public-navbar.scrolled .nav-logo-text { color: var(--dark); }
.nav-logo-text span {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--gold-lt);
  font-weight: 400;
  font-family: 'Jost', sans-serif;
  margin-top: 4px;
}
nav.public-navbar.scrolled .nav-logo-text span { color: var(--gold); }

.hamburger {
  width: 32px; height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none; border: none;
}
.hamburger span {
  display: block;
  height: 1px;
  background: #fff;
  transition: all 0.35s cubic-bezier(0.77,0,0.18,1);
  transform-origin: left center;
}
nav.public-navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: rotate(42deg) translateY(-1px); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-42deg) translateY(1px); background: var(--gold); }

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(26,22,16,0.55);
  z-index: 198;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: -110%;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--cream);
  border-left: 1px solid rgba(184,146,58,0.2);
  z-index: 199;
  transition: right 0.5s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}
.drawer.open { right: 0; }

.drawer-title {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 32px;
}

.drawer a {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  color: var(--dark);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184,146,58,0.15);
  letter-spacing: 0.02em;
  transition: color 0.2s, padding-left 0.3s;
  opacity: 0;
  transform: translateX(20px);
}
.drawer.open a { opacity: 1; transform: translateX(0); }
.drawer.open a:nth-child(2) { transition: opacity 0.4s 0.07s, transform 0.4s 0.07s, color 0.2s, padding-left 0.3s; }
.drawer.open a:nth-child(3) { transition: opacity 0.4s 0.12s, transform 0.4s 0.12s, color 0.2s, padding-left 0.3s; }
.drawer.open a:nth-child(4) { transition: opacity 0.4s 0.17s, transform 0.4s 0.17s, color 0.2s, padding-left 0.3s; }
.drawer.open a:nth-child(5) { transition: opacity 0.4s 0.22s, transform 0.4s 0.22s, color 0.2s, padding-left 0.3s; }
.drawer.open a:nth-child(6) { transition: opacity 0.4s 0.27s, transform 0.4s 0.27s, color 0.2s, padding-left 0.3s; }
.drawer.open a:nth-child(7) { transition: opacity 0.4s 0.32s, transform 0.4s 0.32s, color 0.2s, padding-left 0.3s; }
.drawer a:last-of-type { border-bottom: none; }
.drawer a:hover { color: var(--gold); padding-left: 10px; }

.drawer-info {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(184,146,58,0.2);
}
.drawer-info p {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.drawer-info strong { color: var(--gold); font-weight: 500; }

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-fullbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-fullbg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-fullbg-img.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,5,0.35) 0%, rgba(10,8,5,0.55) 50%, rgba(10,8,5,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 10; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 40px; text-align: center; animation: fadeUp 1s ease both;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; color: #fff; margin-bottom: 40px; letter-spacing: 0.02em; text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-headline span { color: var(--gold-lt); font-style: italic; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; align-items: stretch; background: rgba(255,255,255,0.97); border-radius: 2px; overflow: hidden; box-shadow: 0 8px 60px rgba(0,0,0,0.35); max-width: 860px; margin: 0 auto;
}
.search-select {
  flex: 0 0 160px; padding: 0 18px; height: 60px; border: none; border-right: 1px solid rgba(0,0,0,0.1); background: #fff; font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--text); cursor: pointer; outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8923a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.search-select:focus { background-color: #fdfaf5; }
.search-input { flex: 1; height: 60px; padding: 0 20px; border: none; font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--text); outline: none; background: #fff; }
.search-input::placeholder { color: #aaa; }
.search-input:focus { background: #fdfaf5; }
.search-btn {
  flex: 0 0 auto; height: 60px; padding: 0 32px; background: var(--gold); color: #fff; border: none; font-family: 'Jost', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; cursor: pointer; text-decoration: none; display: flex; align-items: center; transition: background 0.2s; white-space: nowrap;
}
.search-btn:hover { background: var(--gold-dk); }

.hero-scroll-hint { margin-top: 48px; display: flex; justify-content: center; animation: bounce 2s ease-in-out infinite; }
.hero-scroll-hint svg { width: 32px; height: 32px; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; padding: 4px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

/* ── PROPIEDADES ── */
#propiedades { padding: 100px 60px; background: var(--white); }
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-family: 'Jost', sans-serif; font-size: 0.65rem; letter-spacing: 0.4em; color: var(--gold); text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; color: var(--dark); margin-bottom: 60px; line-height: 1.1; }
.section-title em { font-style: italic; color: var(--gold); }
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px; }
.prop-card { background: var(--cream); cursor: pointer; transition: transform 0.3s; overflow: hidden; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-card:hover .prop-img { transform: scale(1.06); }
.prop-img-wrap { overflow: hidden; height: 210px; }
.prop-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; background: var(--beige); }
.prop-badge { display: inline-block; background: var(--gold); color: var(--white); font-family: 'Jost', sans-serif; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 5px 10px; font-weight: 500; margin: 18px 20px 0; }
.prop-info { padding: 10px 20px 22px; }
.prop-name { font-size: 1.1rem; font-weight: 500; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.prop-loc { font-family: 'Jost', sans-serif; font-size: 0.73rem; color: var(--muted); margin-bottom: 12px; }
.prop-divider { height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin-bottom: 12px; }
.prop-price { font-size: 1.2rem; font-weight: 600; color: var(--dark); }

/* ── CONTACTO ── */
#contacto { padding: 100px 60px; background: var(--cream); position: relative; overflow: hidden; }
#contacto::before { content: ''; position: absolute; top: -150px; right: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(184,146,58,0.07) 0%, transparent 70%); pointer-events: none; }
.contact-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact-desc { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--muted); margin-bottom: 36px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-detail-icon { width: 40px; height: 40px; border: 1px solid rgba(184,146,58,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-detail-icon svg { width: 16px; }
.contact-detail-text strong { display: block; font-family: 'Jost', sans-serif; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 2px; }
.contact-detail-text p { font-size: 0.92rem; color: var(--text); font-weight: 300; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--white); border: 1px solid rgba(184,146,58,0.2); color: var(--text); font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 300; padding: 14px 16px; outline: none; transition: border-color 0.25s; border-radius: 0; appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(60,40,10,0.35); }
.form-group textarea { height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit { width: 100%; background: var(--gold); color: var(--white); border: none; padding: 16px; font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, transform 0.15s; margin-top: 4px; }
.btn-submit:hover { background: var(--gold-dk); transform: translateY(-2px); }

/* ── FOOTER ── */
footer.public-footer { background: var(--dark); padding: 50px 60px 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(184,146,58,0.15); margin-bottom: 24px; }
.footer-name { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); }
.footer-name span { display: block; font-family: 'Jost', sans-serif; font-size: 0.58rem; letter-spacing: 0.4em; color: var(--gold); font-weight: 400; margin-top: 4px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-family: 'Jost', sans-serif; font-size: 0.68rem; color: rgba(255,255,255,0.2); }

/* WhatsApp */
.whatsapp-fab { position: fixed; bottom: 28px; right: 28px; width: 54px; height: 54px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35); z-index: 90; text-decoration: none; transition: transform 0.2s; }
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; fill: white; }

@media (max-width: 900px) {
  .search-bar { flex-direction: column; border-radius: 4px; }
  .search-select { flex: none; width: 100%; height: 52px; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .search-input { height: 52px; }
  .search-btn { height: 52px; justify-content: center; }
  .hero-headline { font-size: 1.8rem; }
  #propiedades, #contacto { padding: 70px 28px; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
  nav.public-navbar { padding: 16px 24px; }
  footer.public-footer { padding: 40px 28px 24px; }
}

/* ── PROPERTY DETAIL ── */
.property-detail-page { padding: 120px 60px 80px; max-width: 1200px; margin: 0 auto; background: var(--cream); }
.property-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.property-headline { font-size: 2rem; font-weight: 500; color: var(--dark); line-height: 1.2; }
.property-actions { display: flex; gap: 16px; }
.action-btn { background: none; border: none; font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--dark); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.action-btn:hover { color: var(--gold); }
.action-btn u { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Grid de fotos estilo Airbnb dinámico */
.gallery-grid { display: grid; gap: 8px; margin-bottom: 48px; position: relative; border-radius: 16px; overflow: hidden; }
.gallery-item { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--beige); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(0.9); }

/* 5 fotos */
.gallery-grid.photos-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
.gallery-grid.photos-5 .item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-grid.photos-5 .item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.gallery-grid.photos-5 .item-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.gallery-grid.photos-5 .item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-grid.photos-5 .item-5 { grid-column: 3 / 4; grid-row: 2 / 3; }

/* 4 fotos */
.gallery-grid.photos-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
.gallery-grid.photos-4 .item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-grid.photos-4 .item-2 { grid-column: 2 / 4; grid-row: 1 / 2; }
.gallery-grid.photos-4 .item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-grid.photos-4 .item-4 { grid-column: 3 / 4; grid-row: 2 / 3; }

/* 3 fotos */
.gallery-grid.photos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; }
.gallery-grid.photos-3 .item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.gallery-grid.photos-3 .item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.gallery-grid.photos-3 .item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }

/* 2 fotos */
.gallery-grid.photos-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 500px; }
.gallery-grid.photos-2 .item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.gallery-grid.photos-2 .item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }

/* 1 foto */
.gallery-grid.photos-1 { grid-template-columns: 1fr; grid-template-rows: 500px; }
.gallery-grid.photos-1 .item-1 { grid-column: 1 / -1; grid-row: 1 / -1; }

.show-all-photos { position: absolute; bottom: 24px; right: 24px; background: #fff; border: 1px solid var(--dark); border-radius: 8px; padding: 8px 16px; font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.show-all-photos:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* Cuerpo de la propiedad */
.property-body { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: start; }
.property-info { color: var(--text); }
.info-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; color: var(--dark); }
.info-subtitle { font-family: 'Jost', sans-serif; font-size: 1rem; color: var(--muted); padding-bottom: 24px; border-bottom: 1px solid rgba(184,146,58,0.2); margin-bottom: 24px; }

.host-section { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(184,146,58,0.2); margin-bottom: 32px; }
.host-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--dark); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; font-family: 'Jost', sans-serif; flex-shrink: 0; }
.host-name { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.host-exp { font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--muted); }

.features-section { padding-bottom: 32px; border-bottom: 1px solid rgba(184,146,58,0.2); margin-bottom: 32px; }
.feature-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.feature-icon { width: 32px; color: var(--gold); }
.feature-text strong { display: block; font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.feature-text p { font-family: 'Jost', sans-serif; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }

.property-description { font-size: 1.05rem; line-height: 1.7; color: var(--text); padding-bottom: 48px; }

/* Tarjeta flotante (Widget) */
.property-sidebar { position: sticky; top: 120px; }
.booking-widget { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 12px 36px rgba(0,0,0,0.08); border: 1px solid rgba(184,146,58,0.15); }
.widget-header { margin-bottom: 20px; }
.widget-price .currency { font-size: 1.2rem; font-weight: 600; color: var(--dark); }
.widget-price .amount { font-size: 1.8rem; font-weight: 600; color: var(--dark); margin-left: 4px; }
.widget-inputs { border: 1px solid rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.widget-input-row { display: flex; }
.widget-input-cell { flex: 1; padding: 10px 14px; position: relative; }
.widget-input-cell label { display: block; font-family: 'Jost', sans-serif; font-size: 0.6rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.widget-input-cell input { width: 100%; border: none; outline: none; font-family: 'Jost', sans-serif; font-size: 0.95rem; background: transparent; color: var(--text); }
.btn-submit-widget { width: 100%; background: var(--gold); color: #fff; border: none; padding: 14px; border-radius: 8px; font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-submit-widget:hover { background: var(--gold-dk); }
.widget-disclaimer { text-align: center; font-family: 'Jost', sans-serif; font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

@media (max-width: 900px) {
  .property-detail-page { padding: 90px 24px 40px; }
  .property-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 300px; border-radius: 8px; }
  .item-2, .item-3, .item-4, .item-5 { display: none; }
  .item-1 { grid-column: 1 / -1; grid-row: 1 / -1; }
  .property-body { grid-template-columns: 1fr; gap: 40px; }
  .property-sidebar { position: static; }
}
