/* Bing Homestay — warm photo-first, mobile-first.
   Palette: walnut ink, warm cream paper, marigold accent, garden green. */

:root {
  --ink: #2b2118;
  --ink-soft: #5c4d3e;
  --paper: #faf6ef;
  --card: #ffffff;
  --marigold: #d98a26;
  --marigold-dark: #b06a10;
  --green: #3f6b45;
  --wa: #1fb355;
  --line: #e8dfd0;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(43, 33, 24, .10);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* iOS Safari renders buttons in its own blue system font unless told otherwise */
button { font: inherit; color: inherit; }
/* Remove double-tap-to-zoom on interactive elements (prevents accidental zoom-in) */
a, button, img, label, input, select { touch-action: manipulation; }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* room for action bar */
}
h1, h2, h3, .wordmark, .price { font-family: Georgia, "Noto Serif", "Times New Roman", serif; }
h2 { font-size: 1.7rem; line-height: 1.25; margin-bottom: .5rem; }
img { max-width: 100%; display: block; }
main > section, .trust { padding: 1.9rem 1.1rem; max-width: 720px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 82svh; display: flex; flex-direction: column; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,8,.45) 0%, rgba(20,14,8,0) 30%, rgba(20,14,8,.02) 55%, rgba(20,14,8,.72) 100%); }
.hero-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; }
.wordmark { font-size: 1.15rem; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-call { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: .25rem .9rem; font-size: .9rem; backdrop-filter: blur(4px); }
.hero-text { position: relative; margin-top: auto; padding: 1.1rem 1.1rem 1.6rem; }
.hero h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.12; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-sub { margin: .7rem 0 1rem; max-width: 34ch; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.badge-rating { color: var(--marigold-dark); }

/* ---------- trust strip: one tidy card, aligned rows ---------- */
.trust { padding-top: 1.3rem; padding-bottom: .4rem; }
.trust ul { list-style: none; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem 1.1rem; }
.trust li { display: flex; align-items: baseline; gap: .7rem; font-size: .92rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.trust li:last-child { border-bottom: 0; }
.trust li span { flex: 0 0 auto; }

/* ---------- host ---------- */
.host figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.host img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.host figcaption { font-size: .82rem; color: var(--ink-soft); padding: .5rem .8rem; background: var(--card); }
.host-copy { margin-top: 1.2rem; }
.host-copy h2 { color: var(--green); }
.host-copy p { margin-top: .8rem; }
.host-copy em { color: var(--marigold-dark); font-style: italic; }

/* ---------- rooms ---------- */
.section-note { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.1rem; }
.room-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.4rem; }
.room-strip { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3; }
.room-strip img { flex: 0 0 100%; object-fit: cover; width: 100%; scroll-snap-align: center; }
.room-body { padding: 1rem 1.1rem 1.2rem; }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.room-head h3 { font-size: 1.35rem; }
.price { color: var(--marigold-dark); font-size: 1.1rem; white-space: nowrap; }
.price::after { content: " /night"; font-size: .72rem; color: var(--ink-soft); font-family: inherit; }
.room-body > p { margin: .5rem 0 .7rem; font-size: .95rem; }
.room-feats { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin-bottom: 1rem; }
.room-feats li { font-size: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-ghost { background: none; border: 1.5px solid var(--green); color: var(--green); display: block; max-width: 340px; margin: 1.2rem auto 0; font-size: .95rem; }

/* ---------- gallery ---------- */
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.grid { columns: 2; column-gap: 8px; }
.grid img { width: 100%; border-radius: 10px; margin-bottom: 8px; break-inside: avoid; cursor: pointer; background: var(--line); }
@media (min-width: 640px) { .grid { columns: 3; } }

/* ---------- see every room ---------- */
.rb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rb-card { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); background: var(--card); text-align: left; }
.rb-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rb-card:first-child { grid-column: 1 / -1; }
.rb-card:first-child img { aspect-ratio: 16 / 9; }
.rb-label { position: absolute; inset: auto 0 0 0; padding: 1.6rem .7rem .55rem; background: linear-gradient(180deg, transparent, rgba(20,14,8,.78)); color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.rb-label b { font-family: Georgia, "Noto Serif", serif; font-size: 1rem; font-weight: 400; }
.rb-label small { font-size: .75rem; opacity: .85; white-space: nowrap; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,10,6,.94); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 8px; }
.lb-btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-count { position: fixed; top: 24px; left: 18px; color: #fff; font-size: .9rem; opacity: .85; }
.lb-ask { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: auto; padding: .65rem 1.4rem; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- reviews ---------- */
.reviews { text-align: center; }
.rev-score { display: flex; align-items: baseline; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.rev-num { font-family: Georgia, serif; font-size: 3rem; color: var(--ink); }
.rev-stars { color: var(--marigold); font-size: 1.4rem; letter-spacing: .1em; }
.star-fade { opacity: .35; }
.rev-count { color: var(--ink-soft); font-size: .95rem; width: 100%; }
.rev-note { margin: 1.1rem 0 .6rem; font-size: .92rem; color: var(--ink-soft); }
.chips { list-style: none; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .35rem 1.1rem; text-align: left; }
.chips li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-size: .92rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.chips li:last-child { border-bottom: 0; }
.chips b { color: var(--green); font-weight: 700; white-space: nowrap; }

/* review carousel: swipeable cards with next-card peek */
.rev-quotes { text-align: left; margin-top: 1.3rem; display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem 1rem; scrollbar-width: none; }
.rev-quotes::-webkit-scrollbar { display: none; }
.rev-quote { flex: 0 0 85%; scroll-snap-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; }
.rev-quote-stars { color: var(--marigold); letter-spacing: .12em; margin-bottom: .45rem; }
.rev-quote p { font-size: .93rem; line-height: 1.55; }
.rev-quote footer { font-size: .82rem; color: var(--ink-soft); margin-top: auto; padding-top: .6rem; font-weight: 600; text-align: left; border-top: 1px dashed var(--line); }
@media (min-width: 640px) { .rev-quote { flex-basis: 46%; } }

/* ---------- location ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.dists { list-style: none; margin-top: 1.2rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem 1.1rem; }
.dists li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; font-size: .92rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.dists li:last-child { border-bottom: 0; }
.dists b { white-space: nowrap; color: var(--green); }
.getting { margin-top: 1.2rem; font-size: .92rem; background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
footer { text-align: center; padding: 2rem 1.2rem 2.4rem; color: var(--ink-soft); font-size: .88rem; border-top: 1px solid var(--line); }
footer a { color: var(--green); }
.fine { margin-top: .6rem; font-style: italic; }

/* ---------- sticky action bar ---------- */
.actionbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)); background: rgba(250, 246, 239, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 40; }
.ab-wa, .ab-call { flex: 1; text-align: center; border-radius: 999px; padding: .8rem .5rem; font-size: 1rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.ab-wa { background: var(--wa); color: #fff; flex: 1.6; }
.ab-call { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }

/* ---------- WhatsApp sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20,14,8,.5); z-index: 60; display: flex; align-items: flex-end; }
.sheet-backdrop[hidden] { display: none; }
.sheet { position: relative; background: var(--paper); border-radius: 18px 18px 0 0; padding: 1rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); width: 100%; max-width: 560px; margin: 0 auto; }
.sheet-bar { width: 44px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto .8rem; }
.sheet h3 { font-size: 1.25rem; }
.sheet-sub { font-size: .88rem; color: var(--ink-soft); margin: .2rem 0 .9rem; }
.sheet label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .8rem; }
.sheet input, .sheet select { width: 100%; margin-top: .25rem; padding: .6rem .7rem; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sheet-close { position: absolute; top: .8rem; right: .9rem; background: none; border: 0; font-size: 1.1rem; color: var(--ink-soft); cursor: pointer; padding: .3rem; }

/* ---------- larger screens: keep it a phone-like column ---------- */
@media (min-width: 720px) {
  .hero { min-height: 70svh; }
  .host { display: grid; grid-template-columns: 300px 1fr; gap: 1.6rem; align-items: start; }
  .host-copy { margin-top: 0; }
}
