/* Các trang HOME, HÌNH ẢNH, CÁC DỊCH VỤ, HOMESTAY (dựng ở api/page.js). Màu và chữ giống trang menu. */
:root { color-scheme: light; --bg: #fbf8f3; --ink: #1c1b19; --gray: #7d776e; --line: #ebe4d8; --green: #2e5e4e; --green-d: #1f4237; --coral: #e4592f; --butter: #f7ead0; --mint: #dfece4; --peach: #fbe1d6; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* Đầu trang và thanh các trang */
.hbg { background: linear-gradient(180deg, rgba(31,66,55,.80) 0%, rgba(31,66,55,.70) 55%, rgba(31,66,55,.90) 100%), url('/api/header') center 45% / cover no-repeat, var(--green-d); }
.top { color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 20px; }
.top small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #f08a68; }
.top h1 { font-size: clamp(34px, 9vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 2px; }
.top p { font-size: 14px; color: #cfe3d8; margin-top: 4px; }
.top .year { flex: none; text-align: right; font-size: 20px; font-weight: 800; color: var(--butter); line-height: 1.1; letter-spacing: .02em; }
.kinds { padding-bottom: 14px; }
.kinds .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds a { display: block; text-decoration: none; text-align: center; border-radius: 14px; padding: 10px 8px; font-size: 14.5px; font-weight: 700; line-height: 1.2; color: #fff; background: rgba(255,255,255,.12); }
.kinds a small { display: block; font-size: 11.5px; font-weight: 500; color: #cfe3d8; margin-top: 2px; }
.kinds a[aria-current] { background: var(--butter); color: var(--green-d); }
.kinds a[aria-current] small { color: #6b4f22; }
@media (min-width: 760px) { .kinds .wrap { grid-template-columns: repeat(3, 1fr); } }

/* Nội dung */
.pg { padding-top: 26px; padding-bottom: 30px; max-width: 860px; }
.en { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--coral); }
.pt { font-size: clamp(26px, 6vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.lead { font-size: 17px; color: #4a463f; margin-top: 12px; }
.cvr { margin-top: 18px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--mint); }
.prose { margin-top: 12px; }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 8px; }
.prose p { margin: 10px 0; }
.prose ul { margin: 10px 0 10px 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--coral); font-weight: 600; }
.prose b { font-weight: 700; }
.tbl { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); }
.tbl tr:first-child th { background: var(--mint); border-top: 0; color: var(--green-d); }
.tbl td:last-child, .tbl th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }

/* Thư viện ảnh */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal figure { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gal a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint); }
.gal img { transition: transform .25s; }
.gal a:hover img { transform: scale(1.04); }
.gal figcaption { font-size: 13px; color: #4a463f; padding: 8px 10px 10px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .gal img { transition: none; } }
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb img { width: auto; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lb span { color: #fff; font-size: 14px; margin-top: 10px; text-align: center; }

/* Thẻ dịch vụ */
.cards { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 16 / 9; background: var(--mint); }
.card .tx { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { margin-top: 6px; font-size: 15px; color: #3d3a34; }
.card p a { color: var(--coral); font-weight: 600; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--coral); text-decoration: none; }

.sub { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 30px 0 4px; }
.back { color: var(--coral); text-decoration: none; font-weight: 700; letter-spacing: 0; font-size: 13px; }
.olist { margin: 8px 0 0 20px; }
.olist li { margin: 6px 0; }
.olist a { color: var(--coral); font-weight: 600; }
.cta { margin-top: 28px; padding: 14px 16px; background: var(--mint); border-radius: 14px; color: var(--green-d); }
.cta a { color: var(--coral); font-weight: 700; }

/* Ảnh và video của từng dịch vụ */
.media { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.media summary { cursor: pointer; font-weight: 700; color: var(--coral); list-style: none; display: flex; align-items: center; gap: 6px; min-height: 36px; }
.media summary::-webkit-details-marker { display: none; }
.media summary::before { content: "+"; display: inline-flex; width: 22px; height: 22px; border-radius: 11px; background: var(--peach); align-items: center; justify-content: center; font-weight: 800; }
.media[open] summary::before { content: "\2212"; }
.media .gal { margin-top: 10px; grid-template-columns: repeat(2, 1fr); }
.vids { display: grid; gap: 12px; margin-top: 12px; }
.vid { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vid video { width: 100%; height: auto; max-height: 70vh; background: #000; display: block; }
.vid .yt { aspect-ratio: 16 / 9; background: #000; }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid figcaption { font-size: 13px; color: #4a463f; padding: 8px 10px 10px; }
@media (min-width: 700px) { .pg > .vids { grid-template-columns: 1fr 1fr; } }

/* Thanh gọi cố định phía dưới */
.call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--green-d); }
.call a { flex: 1; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 23px; text-decoration: none; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.15; }
.call .a { background: var(--coral); color: #fff; }
.call .b { background: rgba(255,255,255,.12); color: #fff; }
@media (min-width: 760px) { .call { justify-content: center; } .call a { flex: 0 0 280px; } }
