:root {
  --cam: #f4623a;
  --cam-dam: #d9481f;
  --xanh: #2e7d32;
  --xanh-nhat: #eef7e8;
  --kem: #fffaf4;
  --chu: #2f2a26;
  --header: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--chu);
  background: var(--kem);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Menu */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.logo { font-weight: 700; color: var(--cam-dam); text-decoration: none; }
.menu-toggle { font-size: 1.6rem; background: none; border: 0; color: var(--xanh); padding: 6px 10px; cursor: pointer; }
.menu {
  display: none;
  position: absolute; top: var(--header); left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 12px rgba(0, 0, 0, .1);
}
.menu.open { display: block; }
.menu a { display: block; padding: 12px 16px; color: var(--xanh); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--cam-dam); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header) + 20px) 20px 40px;
  text-align: center; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .6)),
              url("../images/hero.webp") center / cover no-repeat;
}
.hero h1 {
  font-family: "Lobster", cursive;
  font-weight: 400;
  font-size: clamp(2.75rem, 13vw, 6rem);
  line-height: 1.35; /* đủ chỗ cho dấu tiếng Việt */
  padding: 0 6px;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #ffd23f 15%, #ff9a2e 50%, #ff5c7a 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .7)) drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
}
.hero p { font-size: clamp(1rem, 4.5vw, 1.35rem); font-style: italic; margin: 14px auto 24px; max-width: 520px; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  color: #fff; font-weight: 700; text-decoration: none;
}
.btn-call { background: var(--cam-dam); }
.btn-zalo { background: #0068ff; }
.btn-map { background: var(--xanh); }

/* Chung */
.section { position: relative; padding: 56px 16px; }
.section-green { background: var(--xanh-nhat); }
.section h2 { text-align: center; color: var(--xanh); font-size: 1.8rem; margin-bottom: 28px; }
.section h2::after { content: ""; display: block; width: 60px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--cam); }

/* Hình trang trí */
.deco { position: absolute; top: 12px; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; pointer-events: none; }
.deco-right { right: 12px; }
.deco-left { left: 12px; }

/* Giới thiệu */
.about { max-width: 720px; margin: 0 auto; text-align: center; }
.about p { line-height: 1.8; text-wrap: balance; overflow-wrap: break-word; }
.about p + p { margin-top: 16px; }
.about p:first-child { font-size: 1.18rem; font-weight: 600; color: #1b5e20; }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.about-photos img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
/* Điện thoại: đoạn dài hơn 6 dòng không "balance" được, dùng "pretty" để tránh dòng cuối lẻ chữ */
@media (max-width: 767px) {
  .about p:not(:first-child) { text-wrap: pretty; }
}

/* Trải nghiệm */
.icon { font-size: 2.4rem; }

/* Khối 1: Check-in */
.feature-checkin {
  margin: 0 -16px;
  padding: 36px 16px 28px;
  text-align: center;
  background: linear-gradient(160deg, #ffe3c2, #ffd3cc 55%, #fff1d6);
}
.feature-head { max-width: 760px; margin: 0 auto 24px; }
.badge {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  background: linear-gradient(90deg, #ff8a2e, #ff5c7a);
  color: #fff; font-size: .85rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(255, 92, 122, .35);
}
.feature-head h3 { color: var(--cam-dam); font-size: clamp(1.9rem, 7.5vw, 3rem); line-height: 1.25; margin: 12px 0; }
.feature-head p { font-size: 1.05rem; }

/* Collage kiểu polaroid, các khung cao bằng nhau; hàng cuối thiếu ảnh thì tự canh giữa */
.gallery.polaroids { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; max-width: 1200px; padding: 6px 4px; }
.gallery.polaroids button {
  width: calc(50% - 6px); aspect-ratio: auto;
  padding: 6px 6px 22px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 8px 18px rgba(80, 40, 10, .25);
  transform: rotate(-2deg);
  transition: transform .3s, box-shadow .3s;
}
.gallery.polaroids button:nth-child(even) { transform: rotate(2deg); }
.gallery.polaroids button:nth-child(3n) { transform: rotate(-1deg); }
.gallery.polaroids img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: 4px; color: transparent; }
.gallery.polaroids button:hover img { transform: none; }
.gallery.polaroids button:hover,
.gallery.polaroids button:focus-visible { position: relative; z-index: 1; transform: rotate(0) scale(1.04); box-shadow: 0 14px 30px rgba(80, 40, 10, .35); }

/* Khối 2: Đi xuồng */
.feature-boat { display: grid; gap: 20px; max-width: 1100px; margin: 40px auto 0; }
.boat-text { order: -1; text-align: center; } /* điện thoại: chữ trên, ảnh dưới */
.boat-text h3 { color: var(--xanh); font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.3; margin: 4px 0 12px; }
.boat-text p { font-size: 1.05rem; }
.gallery.boat-photos { display: block; width: 100%; columns: 2; column-gap: 10px; }
.gallery.boat-photos button { display: block; width: 100%; aspect-ratio: auto; margin-bottom: 10px; border-radius: 16px; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); break-inside: avoid; }
.gallery.boat-photos img { height: auto; }

/* Các trải nghiệm còn lại */
.more-title { text-align: center; color: var(--xanh); font-size: 1.3rem; margin: 44px 0 18px; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; margin: 0 auto; }
.card { width: calc(50% - 6px); background: #fff; border-radius: 16px; padding: 16px 10px; text-align: center; box-shadow: 0 4px 14px rgba(46, 125, 50, .12); }
.card .icon { font-size: 1.9rem; }
.card h3 { color: var(--cam-dam); margin: 4px 0; font-size: 1rem; line-height: 1.35; }
.card p { font-size: .88rem; line-height: 1.45; }

/* Hiện dần khi cuộn */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.is-waiting:not(.is-visible) { opacity: 0; transform: translateY(24px); }

/* Bảng giá */
.price-box { max-width: 480px; margin: 0 auto; padding: 28px 22px; background: #fff; border: 3px solid var(--cam); border-radius: 20px; }
.price { text-align: center; font-size: 2.8rem; font-weight: 800; color: var(--cam-dam); }
.price span { font-size: 1.1rem; font-weight: 500; }
.price-child { text-align: center; margin-bottom: 20px; }
.price-box h3 { color: var(--xanh); margin-bottom: 8px; }
.price-box ul { list-style: none; }
.price-box li { position: relative; padding: 6px 0 6px 28px; }
.price-box li::before { content: "✅"; position: absolute; left: 0; }

/* Thư viện ảnh */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 1100px; margin: 0 auto; }
.gallery button { border: 0; padding: 0; background: #dde8d6; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: 94vw; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: calc(50% - 22px); }
.lb-next { right: 8px; top: calc(50% - 22px); }
body.no-scroll { overflow: hidden; }

/* Liên hệ */
.contact { max-width: 520px; margin: 0 auto; text-align: center; }
.contact p { margin-bottom: 12px; }
.contact a:not(.btn) { color: var(--xanh); font-weight: 600; }
.phones { list-style: none; margin-bottom: 16px; }
.phones li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.phones strong { min-width: 130px; font-size: 1.15rem; }
.phones .btn { padding: 8px 18px; }

/* Footer: chừa chỗ cho nút nổi */
.footer { background: var(--xanh); color: #fff; text-align: center; padding: 24px 16px 96px; }

/* Nút nổi trên điện thoại */
.float-buttons { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; gap: 12px; }
.float-buttons a {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.float-call { background: var(--cam-dam); }
.float-call span { font-size: .75rem; }
.float-zalo { background: #0068ff; }

/* Máy tính bảng, máy tính */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .menu { display: flex; position: static; box-shadow: none; }
  .menu a { padding: 8px 12px; }
  .deco { width: 110px; height: 110px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gallery.polaroids { gap: 24px; padding: 10px; }
  .gallery.polaroids button { padding: 10px 10px 34px; }
  .gallery.polaroids button { width: calc(50% - 12px); }
  .feature-boat { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; margin-top: 56px; }
  .boat-text { order: 0; text-align: left; }
  .card { width: calc(20% - 10px); }
  .float-buttons { display: none; }
  .footer { padding-bottom: 24px; }
}

/* Màn hình rộng: collage check-in 5 cột (10 ảnh = 2 hàng đủ) */
@media (min-width: 1024px) {
  .gallery.polaroids button { width: calc(20% - 20px); }
}

/* Khoảnh khắc miệt vườn: 6 ảnh = 2 cột x 3 hàng hoặc 3 cột x 2 hàng.
   Nếu có ảnh lỗi bị ẩn, ảnh còn lại giãn ra để hàng cuối không khuyết ô. */
.gallery.polaroids.moments button { flex: 1 1 calc(50% - 6px); width: auto; }
@media (min-width: 768px) {
  .gallery.polaroids.moments button { flex-basis: calc(33.333% - 16px); }
}

/* Máy tính bảng: thu gọn menu để không rớt dòng */
.menu a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 959px) {
  .logo { font-size: .85rem; white-space: nowrap; }
  .menu a { padding: 8px 5px; font-size: .8rem; }
}
