/* Casita Vacations — shared styles */
:root {
  /* Coastal-modern palette keyed to the black & white bird logo:
     crisp paper background, ink text, deep ocean accent, coral CTA */
  --sand: #fbfbf9;
  --terracotta: #d95f3b;
  --terracotta-dark: #b84c2d;
  --teal: #0f5a70;
  --charcoal: #212427;
  --white: #ffffff;
  --muted: #5c676c;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(33, 36, 39, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

img { max-width: 100%; display: block; }

a { color: var(--teal); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43,43,43,0.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.5rem; color: var(--charcoal);
  text-decoration: none; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
}
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--charcoal); font-size: 0.95rem; }
.nav-links a:hover { color: var(--terracotta); }
.lang-toggle {
  font-size: 0.85rem; padding: 0.25rem 0.6rem;
  border: 1px solid var(--teal); border-radius: 999px;
  text-decoration: none; color: var(--teal);
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.75rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-ghost { border: 2px solid var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* Hero */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,78,95,0.35), rgba(31,78,95,0.55));
}
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 4rem 1.25rem; max-width: 780px; }
.hero-content h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 0.75rem; }
.hero-content .tagline { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-style: italic; margin-bottom: 1.75rem; }
.hero-content .btn { margin: 0 0.4rem 0.5rem; }

/* Quick facts */
.facts {
  background: var(--teal); color: var(--white);
  padding: 1rem 0; text-align: center;
}
.facts-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.5rem;
  font-size: 1rem; letter-spacing: 0.03em;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; margin-bottom: 0.75rem; color: var(--teal); }
.section .lede { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; font-size: 1.1rem; color: var(--muted); }

/* Cards grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--sand); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--terracotta-dark); }
.card-body p { font-size: 0.95rem; color: var(--muted); }

/* Gallery — fixed 4 columns so 8 photos form two clean rows (no orphan row) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 10px;
  transition: transform 0.2s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Prose block */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.prose p + p { margin-top: 1rem; }

/* Booking */
.booking { background: var(--teal); color: var(--white); }
.booking h2 { color: var(--white); }
.booking .lede { color: rgba(255,255,255,0.85); }
.booking-frame {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); max-width: 860px; margin: 0 auto;
}
.booking-frame iframe { width: 100%; height: 720px; border: 0; display: block; }
.booking-fallback { text-align: center; margin-top: 1.5rem; }
.booking-fallback a { color: var(--white); }

/* Explore columns */
.explore-col h3 { color: var(--terracotta-dark); font-size: 1.2rem; margin-bottom: 0.75rem; }
.explore-col ul { list-style: none; }
.explore-col li { padding: 0.3rem 0; border-bottom: 1px dashed rgba(43,43,43,0.12); font-size: 0.97rem; }

/* Reviews */
.review {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.review .stars { color: #e8a33d; font-size: 1.1rem; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.review p { font-size: 0.97rem; flex: 1; }
.review cite { margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--teal); }

/* Hosts / footer */
.hosts { text-align: center; }
.hosts .prose { color: var(--muted); }
.hosts .sig { margin-top: 1rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: var(--terracotta-dark); }

.footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 2.5rem 0; text-align: center; font-size: 0.9rem; }
.footer a { color: var(--white); text-decoration: none; margin: 0 0.5rem; }
.footer .social { margin-bottom: 1rem; display: flex; justify-content: center; gap: 1.25rem; }
.footer .social a { display: inline-flex; opacity: 0.85; }
.footer .social a:hover { opacity: 1; }
.footer .social svg { width: 24px; height: 24px; fill: var(--white); }

/* Hosts photo */
.hosts-photo { max-width: 380px; margin: 0 auto 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Property cards on hub */
.property-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: block; text-decoration: none;
}
.property-card img { height: 340px; width: 100%; object-fit: cover; transition: transform 0.25s ease; }
.property-card:hover img { transform: scale(1.03); }
.property-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(31,78,95,0.85));
  color: var(--white); padding: 2.5rem 1.5rem 1.25rem;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem;
}
.property-card .sub { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; font-weight: 400; opacity: 0.9; }

@media (max-width: 640px) {
  .nav-links { gap: 0.75rem; }
  .nav-links .hide-mobile { display: none; }
  .booking-frame iframe { height: 640px; }
}

/* Full-bleed photo banners */
.banner { height: 380px; background-size: cover; background-position: center; }
.banner-caption { text-align: center; padding: 0.9rem 1.25rem; font-style: italic; color: var(--muted); background: var(--white); margin: 0; }
@media (max-width: 640px) { .banner { height: 240px; } }

/* Portrait photo + text feature */
.feature-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 2.75rem; align-items: center; }
.feature-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-text h2 { text-align: left; }
.feature-text p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } .feature-photo { max-width: 420px; margin: 0 auto; } }
