/* ==========================================================
   Zohar's Apartment — main stylesheet
   ========================================================== */
:root {
  --cream:      #faf6ee;
  --cream-2:    #f3ecdf;
  --ink:        #2b2620;
  --ink-soft:   #57503f;
  --stone:      #8a7c66;
  --olive:      #667a4e;
  --terracotta: #b56a3c;
  --terracotta-d:#9a5730;
  --gold:       #d4a24e;
  --white:      #ffffff;
  --shadow:     0 12px 40px rgba(43, 38, 32, .14);
  --radius:     14px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--cream-2); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h2 em { font-style: italic; color: var(--terracotta); }
.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-sub { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .06em;
  padding: 14px 32px;
  border-radius: 40px;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
  font-size: .95rem;
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 24px rgba(181,106,60,.35); }
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-outline { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: #fff; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 246, 238, .96);
  box-shadow: 0 2px 20px rgba(43,38,32,.1);
  padding: 10px 0;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  flex-shrink: 0;
}
.brand-text { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand-text em { font-style: italic; font-weight: 400; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,.92); font-size: .92rem; font-weight: 400;
  letter-spacing: .05em; position: relative; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--terracotta); transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.scrolled .main-nav a { color: var(--ink-soft); }
.header-book { background: var(--terracotta); color: #fff; padding: 10px 24px; }
.header-book:hover { background: var(--terracotta-d); }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(600px, calc(100vh - 160px)); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,20,15,.55) 0%, rgba(24,20,15,.35) 45%, rgba(24,20,15,.72) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 110px 24px 110px; max-width: 860px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .4em; font-size: .82rem; font-weight: 400; opacity: .9; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 600; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; max-width: 640px; margin: 0 auto 32px; opacity: .95; }
.hero-rating { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 38px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); padding: 10px 22px 10px 10px; border-radius: 60px; backdrop-filter: blur(6px); }
.score-badge {
  background: #003580; color: #fff; font-weight: 600; font-size: 1.35rem;
  width: 52px; height: 52px; border-radius: 12px 12px 12px 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.score-text { text-align: left; font-size: .85rem; line-height: 1.35; opacity: .95; }
.score-text strong { font-size: 1rem; letter-spacing: .04em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; z-index: 2;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0%{opacity:1; transform:translateY(0)} 70%{opacity:0; transform:translateY(16px)} 100%{opacity:0} }

/* ---------- Ratings strip ---------- */
.ratings {
  position: relative; z-index: 6;
  margin-top: -84px;
  padding: 0 0 26px;
}
.ratings-card {
  background: var(--ink); color: var(--cream);
  border-radius: 20px;
  border: 1px solid rgba(212,162,78,.35);
  box-shadow: 0 30px 70px rgba(24,20,15,.45);
  padding: 40px 44px;
  display: flex; align-items: center; gap: 44px;
}
.ratings-overall {
  display: flex; align-items: center; gap: 18px;
  padding-right: 44px; flex-shrink: 0;
  border-right: 1px solid rgba(250,246,238,.18);
}
.overall-num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 4.4rem; line-height: 1; color: var(--gold);
  text-shadow: 0 4px 24px rgba(212,162,78,.35);
}
.overall-text strong {
  display: block; font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 600; line-height: 1.15;
}
.overall-text span { font-size: .8rem; opacity: .65; letter-spacing: .06em; }
.ratings-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; flex: 1; }
.rating-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; color: var(--gold); display: block; line-height: 1.1; }
.rating-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; opacity: .8; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }
.split-text p { margin-bottom: 16px; color: var(--ink-soft); }
.split-text p strong { color: var(--ink); font-weight: 500; }
.about-points { list-style: none; margin-top: 24px; }
.about-points li { padding: 9px 0 9px 34px; position: relative; color: var(--ink-soft); border-bottom: 1px dashed rgba(138,124,102,.3); }
.about-points li::before { content: "✓"; position: absolute; left: 4px; color: var(--olive); font-weight: 600; }

.collage { position: relative; padding-bottom: 70px; }
.collage-main { width: 88%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.collage-small {
  position: absolute; width: 44%; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 5px solid var(--cream); object-fit: cover;
}
.collage-small.a { right: 0; bottom: 0; aspect-ratio: 1/1; }
.collage-small.b { left: 6%; bottom: -28px; aspect-ratio: 4/3; width: 38%; }
.section.alt .collage-small { border-color: var(--cream-2); }

.mini-quote {
  border-left: 3px solid var(--gold); padding: 8px 20px; margin-top: 24px;
  font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--ink);
}
.mini-quote cite { display: block; font-family: var(--font-sans); font-size: .82rem; font-style: normal; color: var(--stone); margin-top: 6px; }

/* ---------- Amenities ---------- */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.amenity {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 18px rgba(43,38,32,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.amenity:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.amenity-icon { font-size: 1.9rem; margin-bottom: 12px; }
.amenity h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 500; margin-bottom: 6px; }
.amenity p { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  background: transparent; border: 1.5px solid rgba(138,124,102,.4); color: var(--ink-soft);
  padding: 8px 22px; border-radius: 30px; cursor: pointer; font-family: var(--font-sans);
  font-size: .88rem; font-weight: 400; letter-spacing: .04em; transition: all .22s;
}
.filter-btn:hover, .filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { border-radius: 10px; overflow: hidden; display: block; position: relative; aspect-ratio: 4/3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(24,20,15,.35));
  opacity: 0; transition: opacity .3s;
}
.g-item:hover::after { opacity: 1; }
.g-item.hidden { display: none; }

/* ---------- Host ---------- */
.host-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.host-photos { display: flex; gap: 18px; justify-content: center; }
.host-photos figure { flex: 1; max-width: 180px; transform: rotate(-2.5deg); transition: transform .3s; }
.host-photos figure:nth-child(2) { transform: rotate(1.8deg) translateY(18px); }
.host-photos figure:nth-child(3) { transform: rotate(3deg); }
.host-photos figure:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.host-photos img {
  border-radius: 8px; border: 6px solid #fff; box-shadow: var(--shadow);
  aspect-ratio: 3/4.4; object-fit: cover; width: 100%;
}
.host-photos figcaption { text-align: center; font-size: .8rem; color: var(--stone); margin-top: 8px; font-style: italic; }
.host-text p { margin-bottom: 16px; color: var(--ink-soft); }
.host-sign { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); margin-top: 8px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 4px 18px rgba(43,38,32,.06);
  display: flex; flex-direction: column;
}
.review-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: .95rem; }
.review-card p { font-size: .95rem; color: var(--ink-soft); flex: 1; font-style: italic; }
.review-card footer { margin-top: 18px; font-size: .88rem; color: var(--stone); }
.review-card footer strong { color: var(--ink); font-weight: 500; }
.reviews-cta { text-align: center; margin-top: 36px; }

.guest-strip { margin-top: 72px; text-align: center; }
.guest-strip h3 { font-size: 1.6rem; margin-bottom: 8px; }
.guest-strip-sub { color: var(--stone); font-size: .9rem; margin-bottom: 24px; font-style: italic; }
.guest-photos { display: flex; gap: 14px; overflow-x: auto; padding: 10px 4px 22px; scrollbar-width: thin; }
.guest-photos img {
  height: 170px; border-radius: 8px; border: 5px solid #fff;
  box-shadow: 0 6px 18px rgba(43,38,32,.14); flex-shrink: 0;
  transition: transform .25s;
}
.guest-photos img:hover { transform: translateY(-6px) rotate(-1.5deg); }

/* ---------- Trips ---------- */
.trips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trip-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 32px;
  border-top: 4px solid var(--olive);
  box-shadow: 0 4px 18px rgba(43,38,32,.06);
  transition: transform .25s ease;
}
.trip-card:hover { transform: translateY(-5px); }
.trip-num { font-family: var(--font-serif); font-size: 2.6rem; color: rgba(102,122,78,.35); font-weight: 700; line-height: 1; display: block; margin-bottom: 14px; }
.trip-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.trip-card p { color: var(--ink-soft); font-size: .95rem; }
.trips-contact { text-align: center; margin-top: 40px; color: var(--ink-soft); }

/* ---------- Location ---------- */
.distance-list { list-style: none; margin: 22px 0 30px; }
.distance-list li { padding: 10px 0; border-bottom: 1px dashed rgba(138,124,102,.3); color: var(--ink-soft); font-size: .96rem; }
.distance-list strong { color: var(--terracotta); font-weight: 500; display: inline-block; min-width: 130px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 460px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact { position: relative; color: #fff; text-align: center; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.contact-overlay { position: absolute; inset: 0; background: rgba(30, 25, 18, .82); }
.contact-inner { position: relative; z-index: 2; max-width: 860px; }
.contact h2 { color: #fff; }
.contact-inner > p { opacity: .9; max-width: 620px; margin: 0 auto 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }
.contact-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 26px 18px; color: #fff;
  backdrop-filter: blur(4px); transition: background .25s;
}
.contact-card:hover { background: rgba(255,255,255,.16); }
.contact-label { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: .2em; opacity: .7; margin-bottom: 8px; }
.contact-value { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; }
.contact-phone a { color: #fff; }
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.wa-btn:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(37,211,102,.6); }
.wa-btn svg { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,246,238,.75); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--cream); font-family: var(--font-serif); font-size: 1.2rem; }
.footer-brand span { font-size: .85rem; opacity: .7; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(250,246,238,.7); font-size: .88rem; letter-spacing: .06em; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: .8rem; opacity: .55; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,16,12,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 2.2rem; cursor: pointer; padding: 16px; transition: color .2s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-close { top: 14px; right: 22px; font-size: 3rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: max(560px, calc(100vh - 330px)); }
  .ratings { margin-top: -64px; }
  .ratings-card { flex-direction: column; gap: 30px; padding: 34px 28px; text-align: center; }
  .ratings-overall {
    padding-right: 0; border-right: none;
    padding-bottom: 26px; border-bottom: 1px solid rgba(250,246,238,.18);
    width: 100%; justify-content: center;
  }
  .overall-text { text-align: left; }
  .ratings-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; width: 100%; }
}
@media (max-width: 1120px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: .85rem; }
  .header-book { padding: 9px 18px; font-size: .85rem; }
}
@media (max-width: 860px) {
  .split, .host-wrap { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-text { order: 1; }
  .split.reverse .split-media { order: 2; }
  .reviews-grid, .trips-grid, .contact-cards { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; top: 0; right: -290px; width: 280px; height: 100vh;
    background: var(--ink); flex-direction: column; padding: 100px 34px; gap: 20px;
    transition: right .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.3); margin-left: 0;
  }
  .main-nav.open { right: 0; }
  .main-nav a, .scrolled .main-nav a { color: var(--cream); font-size: 1.05rem; }
  .nav-toggle { display: flex; margin-left: auto; z-index: 210; }
  .header-book { display: none; }
  .hero-scroll { display: none; }
  .hero { min-height: 100svh; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .amenity { padding: 22px 18px; }
  .host-photos { flex-wrap: wrap; }
  .host-photos figure { max-width: 44%; }
  .hero-rating { flex-direction: row; }
  .map-wrap iframe { height: 340px; }
}
