/* Nhà Mây Lưng Đồi — homestay Đà Lạt. Tông đất: xanh thông, đất nung, kem. */
:root {
  --cream: #f6f0e6;
  --paper: #fffaf2;
  --sand: #efe4d2;
  --pine: #2f5d50;
  --pine-deep: #1f3f36;
  --pine-soft: #dbe6dc;
  --clay: #a8552c;
  --clay-deep: #8a4421;
  --ink: #2e261f;
  --muted: #65584b;
  --line: #e2d6c3;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(46, 38, 31, .35);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--pine); color: #fff; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }
.ico { width: 18px; height: 18px; flex: none; fill: currentColor; vertical-align: -3px; }
.eyebrow {
  margin: 0 0 .7em; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep);
}

/* ---- Nút ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 800 1rem/1.2 var(--sans); transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-deep); color: #fff; }
.btn-clay { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -10px rgba(168, 85, 44, .8); }
.btn-clay:hover { background: var(--clay-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 800 1rem var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link-btn.inline { display: inline; min-height: 0; color: var(--pine); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(246, 240, 230, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 10px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; }
.brand-text small { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.main-nav { order: 3; flex: 1 0 100%; margin: 0 -20px; min-width: 0; }
.main-nav ul {
  display: flex; gap: 4px; margin: 0; padding: 0 12px 4px; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap;
  font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; border-radius: 999px;
}
.main-nav a:hover { background: var(--sand); color: var(--pine-deep); }

/* ---- Hero ---- */
.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--pine); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust .ico { color: var(--pine); }
.hero-trust .ico.star { color: #c98a1c; }
.hero-trust strong { color: var(--ink); }

.hero-art { position: relative; }
.scene {
  display: block; width: 100%; height: auto; border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow); background: var(--sand);
}
.mist { animation: drift 14s ease-in-out infinite alternate; }
.mist-b { animation-duration: 18s; animation-direction: alternate-reverse; }
.smoke { animation: rise 4s ease-in-out infinite; transform-origin: 312px 288px; }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
@keyframes rise { 0%, 100% { opacity: .35; transform: translateY(4px); } 50% { opacity: .85; transform: translateY(-4px); } }
.hero-card {
  position: absolute; left: -6px; bottom: 22px; width: 190px; padding: 14px 16px; border-radius: 18px;
  background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-card-title { margin: 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero-card-temp { margin: 2px 0 4px; font: 600 2.2rem/1 var(--serif); color: var(--pine); }
.hero-card-temp span { font-size: 1.1rem; }
.hero-card-note { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--ink); }

/* ---- Thông tin nhanh ---- */
.facts { padding: 6px 0 10px; }
.facts-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0 auto; list-style: none;
  padding-left: 20px; padding-right: 20px;
}
.facts-row li {
  display: flex; flex-direction: column; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line);
}
.facts-row li:first-child { border-radius: 18px 0 0 0; }
.facts-row li:nth-child(2) { border-radius: 0 18px 0 0; }
.facts-row li:nth-child(3) { border-radius: 0 0 0 18px; }
.facts-row li:last-child { border-radius: 0 0 18px 0; }
.facts-k { font-size: .8rem; font-weight: 700; color: var(--muted); }
.facts-v { font: 600 1.15rem/1.3 var(--serif); color: var(--pine-deep); }

/* ---- Section chung ---- */
.section { padding: 64px 0; }
.section-sand { background: var(--sand); }
.section-pine { background: var(--pine-deep); color: #eef3ee; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p:last-child { color: var(--muted); }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark .eyebrow { color: #f2c08f; }

/* ---- Phòng ---- */
.rooms { display: grid; gap: 22px; }
.room {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(46, 38, 31, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.room-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #2f5d50; }
.room-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.room:hover .room-photo { transform: scale(1.05); }
.room-art::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(20, 32, 28, .28)); pointer-events: none; }
.room-a .room-art { background: linear-gradient(160deg, #f0c9a0 0%, #d99a6c 60%, #b5653a 100%); }
.room-b .room-art { background: linear-gradient(160deg, #c7d8c5 0%, #7fa08a 55%, #2f5d50 100%); }
.room-c .room-art { background: linear-gradient(160deg, #f8e2a8 0%, #e9b866 55%, #c98a1c 100%); }
.room-d .room-art { background: linear-gradient(160deg, #b9a48c 0%, #7c5a40 55%, #4a3322 100%); }
.room-badge {
  position: absolute; z-index: 2; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 800;
}
.room-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.room-body > p { color: var(--muted); font-size: .98rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; color: var(--pine); }
.room-meta li { display: flex; align-items: center; gap: 6px; }
.price { margin-top: auto; display: flex; align-items: baseline; gap: 4px; }
.price strong { font: 700 1.6rem/1 var(--serif); color: var(--ink); }
.price span { color: var(--muted); font-weight: 700; }

.price-notes { display: grid; gap: 16px; margin-top: 30px; }
.note { padding: 20px 22px; border-radius: 18px; background: var(--pine-soft); }
.note h3 { font-size: 1.05rem; color: var(--pine-deep); }
.note ul { margin: 0; padding-left: 1.1em; font-size: .97rem; }
.note li { margin-bottom: 4px; }

/* ---- Trải nghiệm ---- */
.exp-grid { display: grid; gap: 18px; }
.exp {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.exp h3 { color: #fff; }
.exp p { color: #d6e2d8; font-size: .98rem; }
.exp-ico { width: 44px; height: 44px; color: #f2c08f; margin-bottom: 14px; }
.exp-price { margin: auto 0 0; font: 600 1.35rem/1.3 var(--serif); color: #fff !important; }
.exp-price span { font: 700 .88rem var(--sans); color: #c9d8cd; }
.exp-sub { margin: 2px 0 0; font-size: .9rem !important; }
.exp .link-btn { color: #f2c08f; margin-top: 6px; align-self: flex-start; }

/* ---- Vì sao ---- */
.why { display: grid; gap: 30px; }
.why-intro p:last-child { color: var(--muted); font-size: 1.05rem; }
.why-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: why; }
.why-list li {
  position: relative; padding: 20px 20px 18px 74px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  counter-increment: why;
}
.why-list li::before {
  content: "0" counter(why); position: absolute; left: 20px; top: 18px; font: italic 600 1.7rem/1 var(--serif); color: var(--clay);
}
.why-list h3 { margin-bottom: .25em; font-size: 1.12rem; }
.why-list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---- Các bước đặt ---- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--paper); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%;
  background: var(--pine); color: #fff; font: 700 1.2rem var(--serif);
}
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.book-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--pine); color: #fff;
}
.book-cta p { margin: 0; font: 600 1.2rem/1.4 var(--serif); }

/* ---- Đánh giá ---- */
.reviews { display: grid; gap: 18px; }
.review { margin: 0; padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.review:nth-child(2) { background: #fbefe2; }
.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; fill: #c98a1c; }
.review blockquote { margin: 0 0 14px; }
.review blockquote p { margin: 0; font: italic 500 1.12rem/1.6 var(--serif); }
.review figcaption { font-size: .92rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* ---- Hỏi đáp ---- */
.faq-wrap { display: grid; gap: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
  cursor: pointer; list-style: none; font: 600 1.08rem/1.4 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); color: var(--pine); font: 700 1.3rem/1 var(--sans); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 60em; }

/* ---- Liên hệ ---- */
.contact { display: grid; gap: 22px; }
.contact-card { padding: 28px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card address { font-style: normal; }
.contact-card address p { margin-bottom: .9em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-actions .btn { flex: 1 1 180px; }
.distances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.distances li {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 18px; border-radius: 18px;
  background: linear-gradient(170deg, var(--pine) 0%, var(--pine-deep) 100%); color: #d6e2d8;
}
.distances li:nth-child(2), .distances li:nth-child(3) { background: linear-gradient(170deg, #c47a4c 0%, var(--clay-deep) 100%); color: #fbe7d6; }
.distances strong { font: 600 1.5rem/1.2 var(--serif); color: #fff; }

/* ---- Footer ---- */
.site-footer { padding: 34px 0 110px; background: var(--ink); color: #d9cfc2; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #b4a898; }
.footer-brand { font: 600 1.3rem var(--serif); color: #fff; margin-bottom: .4em; }
.footer-row p:last-child { margin-bottom: 0; }

/* ---- Màn hình lớn hơn ---- */
@media (min-width: 640px) {
  .rooms, .exp-grid, .price-notes, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: repeat(4, 1fr); }
  .facts-row li:first-child { border-radius: 18px 0 0 18px; }
  .facts-row li:nth-child(2), .facts-row li:nth-child(3) { border-radius: 0; }
  .facts-row li:last-child { border-radius: 0 18px 18px 0; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-card { left: -40px; bottom: 40px; }
  .rooms { grid-template-columns: repeat(4, 1fr); }
  .exp-grid { grid-template-columns: repeat(4, 1fr); }
  .price-notes, .reviews { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .contact { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  .section { padding: 92px 0; }
  .site-footer { padding-bottom: 40px; }
  .footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; }
  .footer-row p { margin: 0; }
}

@media (min-width: 1100px) {
  .header-row { flex-wrap: nowrap; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
  .main-nav { order: 0; flex: 1 1 auto; margin: 0; }
  .main-nav ul { justify-content: flex-end; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mist, .smoke { animation: none; }
  .btn, .room { transition: none; }
}

/* Ảnh thật nhà gỗ trên đồi thông, khung vòm */
.hero-art .hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 600 / 560; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }

/* Ô khoảng cách có ảnh thật của điểm đến, phủ lớp tối phía dưới để chữ dễ đọc */
.distances li.has-photo { position: relative; overflow: hidden; isolation: isolate; min-height: 150px; }
.distances .place-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.distances li.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 28, 24, .05) 25%, rgba(12, 28, 24, .78) 100%); }
.distances li.has-photo:hover .place-photo { transform: scale(1.05); }
.distances li.has-photo span { color: #f1efe8; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .distances .place-photo { transition: none; } }
