/* ============================================================
   Sweet Home Sykia — style.css
   Warm Mediterranean boho. Olive green, terracotta, stone, cream.
   ============================================================ */

:root {
  --green: #5f6b3e;
  --green-deep: #454f2c;
  --green-soft: #7c8a55;
  --terra: #c26a45;
  --terra-text: #a85432;
  --terra-soft: #d98b63;
  --sand: #e7ddcb;
  --cream: #f8f3ea;
  --cream-2: #f2ebdd;
  --paper: #fffdf8;
  --ink: #2c281f;
  --muted: #6d6455;
  --line: rgba(44, 40, 31, 0.12);
  --white: #ffffff;

  --shadow-s: 0 2px 10px rgba(44, 40, 31, 0.08);
  --shadow-m: 0 14px 40px rgba(44, 40, 31, 0.14);
  --shadow-l: 0 30px 70px rgba(44, 40, 31, 0.22);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --radius-s: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: 0.2px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 128px) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra-text);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--sand); }

.section-head { max-width: 640px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 100px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--terra-text); color: #fff; box-shadow: 0 10px 24px rgba(168, 84, 50, 0.32); }
.btn-primary:hover { background: var(--terra); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(168, 84, 50, 0.4); }

.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line), var(--shadow-s);
  height: 64px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color 0.4s; }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--terra); color: #fff; box-shadow: var(--shadow-s);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: #fff; font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.scrolled .main-nav a { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--terra); transition: width 0.35s var(--ease);
}
.main-nav a:hover { color: var(--terra); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 100px; overflow: hidden;
  transition: border-color 0.4s;
}
.scrolled .lang-toggle { border-color: var(--line); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}
.lang-flag {
  width: 20px; height: 14px; flex: none; border-radius: 3px; overflow: hidden; display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.scrolled .lang-btn { color: var(--ink); }
.lang-btn.active { background: var(--terra-text); color: #fff; }
.scrolled .lang-btn.active { color: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.brand, .nav-burger { color: #fff; }
.scrolled .nav-burger { color: var(--ink); }
/* open state: the three bars fold into an X */
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 26, 15, 0.62) 0%, rgba(22, 26, 15, 0.42) 45%, rgba(22, 26, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(22, 26, 15, 0.6) 0%, rgba(22, 26, 15, 0.15) 58%, rgba(22, 26, 15, 0) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); max-width: 620px; }

.hero-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; margin-bottom: 14px; letter-spacing: 0.4px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 500px; color: rgba(255, 255, 255, 0.9); font-weight: 300; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

/* Gentle attention pulse on the main hero button, so the eye lands on booking */
.hero-cta .btn-primary { animation: heroCtaPulse 3.4s var(--ease) infinite; }
.hero-cta .btn-primary:hover { animation: none; }
@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(168, 84, 50, 0.32); }
  50% { box-shadow: 0 14px 32px rgba(168, 84, 50, 0.5), 0 0 0 7px rgba(168, 84, 50, 0.1); }
}

.hero-facts { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.hero-facts span { font-size: 0.82rem; letter-spacing: 0.04em; opacity: 0.85; margin-top: 4px; }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.hero-scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 100px; position: relative;
}
.hero-scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: #fff; transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* Staggered entrance: badge, title, sub, cta and facts arrive in sequence */
.hero-content > .reveal:nth-child(1) { transition-delay: 0.15s; }
.hero-content > .reveal:nth-child(2) { transition-delay: 0.30s; }
.hero-content > .reveal:nth-child(3) { transition-delay: 0.45s; }
.hero-content > .reveal:nth-child(4) { transition-delay: 0.60s; }
.hero-content > .reveal:nth-child(5) { transition-delay: 0.72s; }

/* Slide indicator dots (built in JS), vertical on the right */
.hero-dots {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 100px; cursor: pointer;
  background: rgba(255, 255, 255, 0.38); border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.45s var(--ease), height 0.55s var(--ease), border-color 0.45s var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hero-dot.active { background: var(--terra); border-color: var(--terra); height: 28px; }

@media (max-width: 940px) {
  .hero-dots { right: 50%; top: auto; bottom: 28px; transform: translateX(50%); flex-direction: row; }
  .hero-dot.active { height: 9px; width: 28px; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > .reveal { transition-delay: 0s !important; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--green-deep); color: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.trust-item:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 10%; height: 80%; width: 1px; background: rgba(255, 255, 255, 0.18); }
.trust-num { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--sand); line-height: 1; }
.trust-label { font-size: 0.8rem; letter-spacing: 0.04em; opacity: 0.85; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-media { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-m); aspect-ratio: 4/5; object-fit: cover; }
.about-img-float {
  position: absolute; right: -28px; bottom: -34px; width: 46%; border-radius: var(--radius-s);
  box-shadow: var(--shadow-l); border: 6px solid var(--paper); aspect-ratio: 3/4; object-fit: cover;
}
.about-stamp {
  position: absolute; left: -22px; top: 26px; width: 96px; height: 96px; border-radius: 50%;
  background: var(--terra); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-m); transform: rotate(-8deg);
}
.about-stamp small { font-size: 0.52rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.about-stamp strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }

.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-list { margin-top: 26px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(95, 107, 62, 0.16);
}
.about-list li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 4px; height: 7px; border: 2px solid #fff;
  border-top: 0; border-left: 0; transform: rotate(42deg);
}

/* ---------- Features ---------- */
.features { background: var(--paper); }
.feature-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-m); }
.feature-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-row:hover .feature-media img { transform: scale(1.06); }
.feature-copy h3 { margin-bottom: 14px; }
.feature-copy p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Spaces (room explorer) ---------- */
.spaces { background: var(--cream-2); }
.spaces-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.spaces-tab {
  padding: 11px 24px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  color: var(--muted); background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.spaces-tab:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow-s); }
.spaces-tab.active {
  background: var(--terra-text); border-color: var(--terra-text); color: #fff;
  box-shadow: 0 8px 20px rgba(168, 84, 50, 0.35);
}

.spaces-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(26px, 4vw, 56px); align-items: center; }

.spaces-main {
  position: relative; display: block; width: 100%; padding: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-m); cursor: zoom-in;
}
.spaces-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.spaces-main:hover img { transform: scale(1.05); }
.spaces-expand {
  position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; opacity: 0; transform: scale(0.7);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.spaces-main:hover .spaces-expand { opacity: 1; transform: scale(1); }

.spaces-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.spaces-thumb {
  flex: 1; padding: 0; border-radius: var(--radius-s); overflow: hidden; cursor: pointer;
  opacity: 0.6; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity 0.3s, transform 0.4s var(--ease), outline-color 0.3s;
}
.spaces-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.spaces-thumb:hover { opacity: 1; transform: translateY(-3px); }
.spaces-thumb.active { opacity: 1; outline-color: var(--terra); }
.spaces-thumb:focus-visible { opacity: 1; outline-color: var(--terra); }

.spaces-copy h3 { margin-bottom: 12px; color: var(--green-deep); }
.spaces-copy p { color: var(--muted); margin-bottom: 20px; }
.spaces-feats { display: grid; gap: 11px; margin-bottom: 18px; }
.spaces-feats li { position: relative; padding-left: 28px; font-weight: 500; }
.spaces-feats li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 4px rgba(194, 106, 69, 0.16);
}
.spaces-feats li::after {
  content: ""; position: absolute; left: 4.5px; top: 10.5px; width: 4px; height: 7px;
  border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg);
}
.spaces-hint { display: inline-block; font-size: 0.82rem; color: var(--muted); }

@keyframes spacesIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.spaces-anim { animation: spacesIn 0.55s var(--ease) both; }
.spaces-copy .spaces-anim:nth-child(2) { animation-delay: 0.08s; }
.spaces-copy .spaces-anim:nth-child(3) { animation-delay: 0.16s; }
.spaces-copy .spaces-anim:nth-child(4) { animation-delay: 0.24s; }

@media (max-width: 940px) {
  .spaces-panel { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid { display: flex; gap: 16px; align-items: flex-start; }
.g-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery-grid.expanded .g-hidden { display: block; }
.g-item {
  width: 100%; border-radius: var(--radius-s); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: var(--shadow-s); background: var(--sand);
  padding: 0; border: none;
}
.g-item.g-hidden { display: none; }
.g-item img {
  width: 100%; height: auto; display: block;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.g-item img.g-loaded { opacity: 1; }
@keyframes gIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.g-item.g-in { animation: gIn 0.5s var(--ease) both; }
.g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30, 28, 20, 0.4));
  opacity: 0; transition: opacity 0.4s;
}
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-plus {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; transform: scale(0.7); transition: opacity 0.4s, transform 0.4s var(--ease);
}
.g-item:hover .g-plus { opacity: 1; transform: scale(1); }
.gallery-more { text-align: center; margin-top: 32px; }

/* ---------- Amenities ---------- */
.amenities { background: var(--paper); }
.am-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.am-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.am-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.am-card h3 { font-size: 1.35rem; margin-bottom: 16px; color: var(--green-deep); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.am-card ul { display: grid; gap: 10px; }
.am-card li { position: relative; padding-left: 24px; color: var(--muted); font-size: 0.98rem; }
.am-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--terra); transition: transform 0.3s;
}
.am-card:hover li::before { transform: scale(1.25); }

/* ---------- Around / Explore ---------- */
.explore { background: var(--paper); }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.explore-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.explore-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(95, 107, 62, 0.1); color: var(--green); margin-bottom: 4px;
  transition: transform 0.4s var(--ease), background 0.4s;
}
.explore-card:hover .explore-ico { transform: translateY(-3px) rotate(-4deg); background: rgba(95, 107, 62, 0.16); }
.explore-card h3 { font-size: 1.3rem; color: var(--green-deep); line-height: 1.2; }
.explore-card p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; flex: 1; }
.explore-chips {
  font-size: 0.8rem; font-weight: 600; color: var(--terra-text);
  padding-top: 6px; border-top: 1px solid var(--line);
}
.explore-foot { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Location ---------- */
.location { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.location-copy h2 { margin-bottom: 16px; }
.location-copy > p { color: var(--muted); margin-bottom: 30px; }
.loc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.loc-col h4 { font-size: 1.15rem; color: var(--terra); margin-bottom: 12px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; }
.loc-list { display: grid; gap: 11px; }
.loc-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 0.96rem; }
.loc-list em { color: var(--green-deep); font-style: normal; font-weight: 700; white-space: nowrap; }

.map-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-m); }
.map-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.1s var(--ease); }
.map-card:hover img { transform: scale(1.05); }
.map-pin {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--green-deep); padding: 10px 18px; border-radius: 100px; font-weight: 600;
  box-shadow: var(--shadow-s);
}
.map-pin svg { color: var(--terra); position: relative; }
/* the pin drops in when the map scrolls into view */
.location-media.reveal .map-pin { opacity: 0; }
.location-media.reveal.is-visible .map-pin { animation: pinDrop 0.65s var(--ease) 0.35s both; }
@keyframes pinDrop {
  0% { opacity: 0; transform: translateY(-16px); }
  62% { transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* a soft terracotta ring keeps pulsing behind the pin icon, inviting a click */
.map-pin svg::after { content: none; }
.map-pin-pulse {
  position: absolute; left: 18px; bottom: 18px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--terra); opacity: 0; pointer-events: none; z-index: 1;
}
.location-media.reveal.is-visible .map-pin-pulse { animation: pinPulse 2.6s var(--ease) 1s infinite; }
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.45; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .location-media.reveal .map-pin { opacity: 1; }
  .location-media.reveal.is-visible .map-pin { animation: none; }
  .map-pin-pulse { display: none; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--green-deep); color: #fff; }
.reviews .eyebrow { color: var(--sand); }
.reviews .section-head p { color: rgba(255, 255, 255, 0.82); }
.reviews-scroller {
  overflow: hidden; padding: 6px 0 10px; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track {
  display: flex; width: max-content; will-change: transform; cursor: pointer;
  animation: reviewsScroll 85s linear infinite;
}
.reviews-track:focus-within, .reviews-track.paused { animation-play-state: paused; }
/* hover pause only on real hover devices: on iOS the synthetic hover would
   freeze the marquee on first tap and never release it */
@media (hover: hover) {
  .reviews-track:hover { animation-play-state: paused; }
}
.reviews-set { display: flex; gap: 20px; padding-right: 20px; }
@keyframes reviewsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .reviews-scroller {
    overflow-x: auto;
    -webkit-mask-image: none; mask-image: none;
    scrollbar-width: thin; scrollbar-color: var(--terra) transparent;
  }
  .reviews-track { animation: none; cursor: default; }
}

.review-card {
  width: min(400px, 82vw); flex: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.5s var(--ease), background 0.4s;
}
.review-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-stars { color: var(--sand); letter-spacing: 2px; font-size: 1.05rem; }
.review-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; font-style: italic; flex: 1; }
.review-meta { display: flex; align-items: center; gap: 12px; }
.review-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--terra); display: grid; place-items: center; font-weight: 700; color: #fff; }
.review-who { display: flex; flex-direction: column; line-height: 1.2; }
.review-who strong { font-weight: 600; }
.review-who span { font-size: 0.82rem; opacity: 0.75; }
.review-score { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--sand); }
.review-src {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.62);
  padding-top: 2px;
}
.review-src svg { color: var(--green-soft); flex: none; }

/* Rating badges: Booking.com and Google scores above the reviews */
.rating-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 20px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px; padding: 9px 20px 9px 9px;
  transition: transform 0.4s var(--ease), background 0.3s;
}
a.rating-badge:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.14); }
.rating-badge-score {
  display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%;
  background: var(--terra); color: #fff;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
}
.rating-badge-info { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.rating-badge-info strong { font-weight: 700; color: #fff; }
.rating-badge-info span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

.reviews-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 34px;
}
.reviews-stats div {
  background: rgba(255, 255, 255, 0.07); border-radius: 100px; padding: 10px 22px; display: flex; align-items: baseline; gap: 8px;
}
.reviews-stats strong { font-family: var(--serif); font-size: 1.35rem; color: var(--sand); }
.reviews-stats span { font-size: 0.85rem; opacity: 0.85; }

/* Accessible marquee control: a pill matching the stats pills above */
.reviews-controls { display: flex; justify-content: center; margin-bottom: 18px; }
.reviews-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.07); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px;
  padding: 9px 18px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.reviews-toggle:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.reviews-toggle:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.reviews-toggle-icon { font-size: 0.9rem; line-height: 1; }

/* ---------- Guest book ---------- */
.guestbook { background: var(--cream-2); }
.gb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); max-width: 1060px; margin: 0 auto; }
.gb-note {
  position: relative; background: var(--paper); border-radius: var(--radius-s);
  padding: clamp(30px, 3.4vw, 40px) clamp(22px, 2.6vw, 30px) clamp(20px, 2.4vw, 26px);
  box-shadow: 0 10px 26px rgba(63, 61, 50, 0.12);
}
/* the pin holding each note in place */
.gb-note::before {
  content: ""; position: absolute; top: 13px; left: 50%; width: 13px; height: 13px;
  margin-left: -6.5px; border-radius: 50%; background: var(--terra);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.22);
}
.gb-text { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; margin-bottom: 16px; }
.gb-who {
  display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--terra-text); border-top: 1px solid var(--line); padding-top: 12px;
}
/* each note hangs at its own slight angle and straightens gently on hover;
   the higher specificity keeps the rotation alive alongside the reveal transforms */
.gb-grid .gb-note:nth-child(1) { --gb-rot: -1.5deg; }
.gb-grid .gb-note:nth-child(2) { --gb-rot: 1deg; transition-delay: 0.08s; }
.gb-grid .gb-note:nth-child(3) { --gb-rot: -0.8deg; transition-delay: 0.16s; }
.gb-grid .gb-note {
  transform: translateY(30px) rotate(var(--gb-rot, 0deg));
  transition: opacity 0.9s var(--ease), transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.gb-grid .gb-note.is-visible { transform: rotate(var(--gb-rot, 0deg)); }
.gb-grid .gb-note.is-visible:hover { transform: rotate(0deg); box-shadow: 0 16px 34px rgba(63, 61, 50, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .gb-grid .gb-note { transform: rotate(var(--gb-rot, 0deg)); transition-delay: 0s !important; }
}

/* ---------- Host ---------- */
.host { background: var(--cream); }
.host-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.host-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-m); aspect-ratio: 4/5; object-fit: cover; }
.host-copy h2 { margin-bottom: 16px; }
.host-copy p { color: var(--muted); margin-bottom: 14px; }
.host-copy blockquote {
  font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--green-deep);
  border-left: 3px solid var(--terra); padding: 6px 0 6px 22px; margin: 22px 0;
}
.host-langs { display: inline-block; font-size: 0.85rem; color: var(--terra-text); font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Booking ---------- */
.book { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.book-intro h2 { margin-bottom: 14px; }
.book-intro > p { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.book-points { display: grid; gap: 12px; margin-bottom: 28px; }
.book-points li { position: relative; padding-left: 30px; }
.book-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--terra);
}
.book-points li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg); }

.book-direct { display: flex; flex-wrap: wrap; gap: 14px; }
.book-contact {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28); padding: 12px 20px; border-radius: 100px; font-weight: 600;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.book-contact:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }

.book-form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-l); display: grid; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--cream); color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(95, 107, 62, 0.14);
}
.field textarea { resize: vertical; }
/* Slightly larger type on the date fields, so Safari scales up its native
   calendar popup a touch without it looking oversized */
.field input[type="date"] { font-size: 1.08rem; }

/* Floating labels: the label rests inside the field and lifts on focus or
   when the field has content, for a calmer, more premium form. Date and
   select fields stay lifted since they always show a value. */
.field-float { display: block; position: relative; }
.field-float > input, .field-float > select, .field-float > textarea { padding: 21px 14px 7px; }
.field-float > textarea { padding-top: 23px; }
.field-float > label {
  position: absolute; left: 15px; top: 15px; margin: 0;
  font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0;
  pointer-events: none; transform-origin: left top;
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}
.field-float > input:focus + label,
.field-float > input:not(:placeholder-shown) + label,
.field-float > textarea:focus + label,
.field-float > textarea:not(:placeholder-shown) + label,
.field-float.always-float > label {
  transform: translateY(-9px) scale(0.74);
}
.field-float > input:focus + label,
.field-float > textarea:focus + label,
.field-float.always-float > input:focus + label,
.field-float.always-float > select:focus + label {
  color: var(--green);
}
@media (prefers-reduced-motion: reduce) {
  .field-float > label { transition: none; }
}
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-error-msg { font-size: 0.82rem; font-weight: 700; color: var(--terra); text-align: center; margin-top: -6px; }
.form-error-msg[hidden] { display: none; }
.form-error { border-color: var(--terra) !important; box-shadow: 0 0 0 4px rgba(194, 106, 69, 0.16) !important; }

/* fallback panel: shown after submit when no mail app opens */
/* Honeypot field: invisible to humans, tempting to bots */
.bf-honey { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; opacity: 0; }

/* Compact after submit notes */
.form-ok, .form-fail {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; line-height: 1.55; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-s); margin-top: 4px;
}
.form-ok { background: rgba(95, 107, 62, 0.1); color: var(--green-deep); }
.form-ok svg { flex: none; margin-top: 2px; color: var(--green); }
.form-ok strong { font-weight: 700; }
.form-ok > span span { color: var(--muted); }
.form-fail { background: rgba(194, 106, 69, 0.1); color: var(--ink); display: block; }
.form-fail a {
  display: inline-block; margin-top: 6px; font-weight: 700; color: #1f7a43;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.form-fail a:hover { color: #25D366; }
.form-ok[hidden], .form-fail[hidden] { display: none; }

/* Floating WhatsApp: quiet, official green, appears after a little scroll */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(14px) scale(0.85); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.22); }
.wa-float svg { position: relative; z-index: 1; }

/* Attention cue: a soft green halo pulses out, with a gentle wiggle now
   and then, only while the button is on screen. Pauses on hover. */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: 0; opacity: 0;
}
.wa-float.show::before { animation: waPulse 2.6s var(--ease) infinite; }
.wa-float.show svg { animation: waNudge 4.5s var(--ease) infinite; transform-origin: 50% 60%; }
.wa-float:hover::before, .wa-float:hover svg { animation-play-state: paused; }
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes waNudge {
  0%, 82%, 100% { transform: rotate(0) scale(1); }
  87% { transform: rotate(-9deg) scale(1.05); }
  93% { transform: rotate(9deg) scale(1.05); }
}

@media (max-width: 940px) {
  .wa-float { right: 14px; bottom: 86px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float.show::before, .wa-float.show svg { animation: none; }
  .wa-float::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease);
}
.faq-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
/* the reveal transform must not fight the hover lift */
.faq-item.reveal { transform: translateY(30px); }
.faq-item.reveal.is-visible { transform: none; }
.faq-item.reveal.is-visible:hover { transform: translateY(-3px); }
.faq-list .faq-item:nth-child(even) { transition-delay: 0.06s; }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25;
  color: var(--green-deep);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: var(--radius); }

/* custom marker: a soft round plus that turns into a close mark */
.faq-mark {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(95, 107, 62, 0.14);
  transition: background 0.3s, transform 0.45s var(--ease);
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px;
  background: var(--green-deep); transform: translate(-50%, -50%);
  transition: background 0.3s;
}
.faq-mark::before { width: 12px; height: 2px; }
.faq-mark::after { width: 2px; height: 12px; }
.faq-item[open] .faq-mark { background: var(--terra-text); transform: rotate(45deg); }
.faq-item[open] .faq-mark::before, .faq-item[open] .faq-mark::after { background: #fff; }

.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 0.98rem; }
@keyframes faqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-a { animation: faqIn 0.45s var(--ease); }

@media (max-width: 560px) {
  .faq-q { padding: 17px 18px; font-size: 1.18rem; gap: 14px; }
  .faq-a { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition-delay: 0s !important; }
  .faq-item.reveal { transform: none; }
  .faq-item[open] .faq-a { animation: none; }
}

/* ---------- Good to know ---------- */
.good { background: var(--paper); }
.good-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.good-card {
  flex: 1 1 300px; max-width: 373px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.good-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.good-card h4 { font-size: 1.25rem; color: var(--green-deep); margin-bottom: 8px; }
.good-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: clamp(48px, 6vw, 76px) 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand .brand-name { font-size: 1.6rem; color: #fff; }
.footer-brand p { margin-top: 10px; max-width: 340px; font-size: 0.95rem; }
.footer-addr { opacity: 0.6; font-size: 0.85rem !important; }
.footer-col h5 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.8); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; padding-top: 22px; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; opacity: 0.6; }
.footer-license-row { text-align: center; padding-top: 14px; }
.footer-license { font-size: 0.82rem; opacity: 0.6; }

/* Built by mystaysite credit */
.footer-credit {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; font-weight: 600;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-credit:hover { color: rgba(255, 255, 255, 0.92); transform: translateY(-1px); }
.fc-icon { width: 29px; height: 29px; flex: none; display: block; }
.fc-icon svg {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.4));
  transition: filter 0.3s var(--ease);
}
.footer-credit:hover .fc-icon svg { filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.55)); }
.fc-brand { color: rgba(255, 255, 255, 0.85); font-weight: 700; letter-spacing: 0.01em; }
.fc-brand b { color: #60a5fa; font-weight: 700; }

/* ---------- Lightbox (cinematic micro animations) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 18, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.55s var(--ease), backdrop-filter 0.55s var(--ease),
              visibility 0s linear 0.55s;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
}
.lightbox.open {
  opacity: 1; pointer-events: auto; visibility: visible;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.55s var(--ease), backdrop-filter 0.55s var(--ease),
              visibility 0s linear 0s;
}

/* Stage holds the two crossfading photo layers plus the loader.
   pan-y lets vertical page scroll through while we own the horizontal axis. */
.lb-stage {
  position: relative;
  width: 90vw; height: 84vh;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}

.lb-layer {
  position: absolute; top: 50%; left: 50%;
  max-width: 90vw; max-height: 84vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: var(--shadow-l);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0; filter: blur(14px);
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease), filter 0.6s var(--ease);
  will-change: transform, opacity, filter;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}

/* Sharp, centered, in focus only once the bitmap is actually loaded */
.lightbox.open .lb-layer.is-current.is-loaded {
  opacity: 1; filter: blur(0px);
  transform: translate(-50%, -50%) scale(1);
}
.lb-layer.is-current { opacity: 1; }

/* Directional entrances (incoming) */
.lb-layer.from-right { transform: translate(calc(-50% + 46px), -50%) scale(0.96); opacity: 0; filter: blur(10px); }
.lb-layer.from-left  { transform: translate(calc(-50% - 46px), -50%) scale(0.96); opacity: 0; filter: blur(10px); }

/* Directional exits (outgoing) */
.lb-layer.is-out-left  { transform: translate(calc(-50% - 46px), -50%) scale(0.96); opacity: 0; filter: blur(10px); }
.lb-layer.is-out-right { transform: translate(calc(-50% + 46px), -50%) scale(0.96); opacity: 0; filter: blur(10px); }

/* While a finger or mouse is dragging, kill the transition so the photo tracks 1:1 */
.lb-stage.is-dragging .lb-layer.is-current { transition: none; }

/* Soft loading ring: only if a load runs long (JS adds is-on after about 200ms) */
.lb-spinner {
  position: absolute; top: 50%; left: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.82);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lb-spinner.is-on { opacity: 1; animation: lbSpin 0.9s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }

/* Chrome: fades in with the photo, refined micro hovers */
.lb-close, .lb-nav {
  position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); display: grid; place-items: center;
  font-size: 2rem; line-height: 1;
  transition: background 0.35s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease), opacity 0.5s var(--ease) 0.1s;
  opacity: 0;
}
.lightbox.open .lb-close, .lightbox.open .lb-nav { opacity: 1; }
.lb-close:hover, .lb-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}
.lb-close { top: 22px; right: 22px; font-size: 1.8rem; }
.lb-close:hover  { transform: scale(1.06); }
.lb-close:active { transform: scale(0.94); }
.lb-prev { left: 22px;  top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover  { transform: translateY(-50%) translateX(-3px) scale(1.06); }
.lb-next:hover  { transform: translateY(-50%) translateX(3px)  scale(1.06); }
.lb-prev:active { transform: translateY(-50%) translateX(-3px) scale(0.94); }
.lb-next:active { transform: translateY(-50%) translateX(3px)  scale(0.94); }

.lb-counter {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s,
              letter-spacing 0.4s var(--ease), color 0.4s var(--ease);
  font-variant-numeric: tabular-nums;
}
.lightbox.open .lb-counter { opacity: 1; transform: translateX(-50%) translateY(0); }
.lb-counter:hover { letter-spacing: 0.2em; color: #fff; }

/* Caption: a small serif line above the counter, one per photo */
.lb-caption {
  position: absolute; bottom: 52px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  max-width: min(84vw, 560px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem); line-height: 1.35;
  text-align: center; color: var(--sand);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}
.lightbox.open .lb-caption { opacity: 1; transform: translateX(-50%) translateY(0); }
.lightbox.open .lb-caption.is-fading { opacity: 0; transition: opacity 0.24s var(--ease); }

/* Completion toast: appears once every photo has been seen */
.lb-complete {
  position: absolute; left: 50%; bottom: 104px;
  transform: translateX(-50%) translateY(16px);
  width: min(92vw, 420px);
  padding: 20px 34px;
  background: rgba(39, 34, 24, 0.94);
  border: 1px solid rgba(231, 221, 203, 0.22);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
  text-align: center;
  opacity: 0; z-index: 2;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.lb-complete[hidden] { display: none; }
.lb-complete.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
.lb-complete-text {
  font-family: var(--serif); font-style: italic;
  font-size: 1.12rem; line-height: 1.4; color: var(--sand);
  margin-bottom: 14px;
}
.lb-complete-btn {
  display: inline-block; padding: 10px 24px; border-radius: 100px;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 0.92rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb-complete-btn:hover { background: var(--terra-text); transform: translateY(-1px); }
.lb-complete-close {
  position: absolute; top: 6px; right: 6px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(231, 221, 203, 0.75); font-size: 1.15rem; line-height: 1;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.lb-complete-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Reduced motion: strip every transform and blur to a plain crossfade. */
@media (prefers-reduced-motion: reduce) {
  .lightbox { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .lb-layer {
    filter: none !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }
  .lb-layer.is-current.is-loaded { opacity: 1; }
  .lb-layer.from-right, .lb-layer.from-left,
  .lb-layer.is-out-left, .lb-layer.is-out-right { opacity: 0; }
  .lb-close, .lb-nav, .lb-counter, .lb-caption { opacity: 1; }
  .lb-complete { transform: translateX(-50%); }
  .lb-prev:hover  { transform: translateY(-50%); }
  .lb-next:hover  { transform: translateY(-50%); }
  .lb-close:hover { transform: none; }
}

/* ---------- Mobile sticky book ---------- */
.mobile-book {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--terra-text); color: #fff; text-align: center; padding: 15px; border-radius: 100px;
  font-weight: 700; box-shadow: 0 12px 30px rgba(168, 84, 50, 0.45); display: none;
  transform: translateY(120%); transition: transform 0.5s var(--ease);
}
.mobile-book.show { transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.am-grid .am-card:nth-child(2), .good-grid .good-card:nth-child(2), .explore-grid .explore-card:nth-child(2) { transition-delay: 0.08s; }
.am-grid .am-card:nth-child(3), .good-grid .good-card:nth-child(3), .explore-grid .explore-card:nth-child(3) { transition-delay: 0.16s; }
.am-grid .am-card:nth-child(4), .explore-grid .explore-card:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 10px 6%; box-shadow: var(--shadow-m);
    transform: translateY(-140%); transition: transform 0.45s var(--ease), top 0.4s var(--ease); z-index: 99;
  }
  /* the scrolled header shrinks to 64px, so the open menu must follow it down
     to that exact edge, otherwise a see through gap opens above the panel */
  .scrolled .main-nav { top: 64px; }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .header-actions .btn-primary { display: none; }
  .about-grid, .location-grid, .host-grid, .book-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .am-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .good-grid { grid-template-columns: repeat(2, 1fr); }
  .gb-grid { grid-template-columns: 1fr; max-width: 480px; }
  .host-media { max-width: 460px; }
  .mobile-book { display: block; }
  .about-img-float { right: -10px; }
  /* safety net so the sticky book bar never sits over the last footer line */
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .trust-item:nth-child(2)::after { display: none; }
  .hero-facts { gap: 26px; }
  .am-grid, .loc-columns, .explore-grid { grid-template-columns: 1fr; }
  .good-card { max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-stamp { width: 78px; height: 78px; left: -8px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  /* header must fit a narrow phone: drop the text label, keep the flags,
     tighten the language buttons and the brand gap so nothing overflows */
  .lang-code { display: none; }
  .lang-btn { padding: 6px 10px; gap: 0; }
  .brand { gap: 9px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none !important; }
}
