:root {
  --primary: #5ba879;
  --primary-soft: #ebf7f0;
  --accent: #ffb85c;
  --text-main: #24333b;
  --text-muted: #6f7b81;
  --bg: #f7faf9;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(20, 60, 40, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition-fast: 0.25s ease;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout chung */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.5rem auto 0;
  font-size: 0.98rem;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 249, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 63, 35, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.logo span {
  color: var(--text-main);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  margin-left: 0.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.98rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(33, 111, 73, 0.28);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  border-radius: 99px;
  width: 100%;
  background: var(--text-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 60px 0 auto 0;
    background: rgba(247, 250, 249, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.7rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    border-bottom: 1px solid rgba(15, 63, 35, 0.06);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    margin-top: 0.3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

/* Nút chung */
.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 18px 30px rgba(33, 111, 73, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(33, 111, 73, 0.34);
  background: #4b9468;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(97, 140, 118, 0.25);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 50, 30, 0.08);
}

/* Hero – chỉ dùng cho trang chủ */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top left, #fdf8ec 0, #f4fbf7 40%, #f3f9ff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(91, 168, 121, 0.09);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-label span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--text-muted);
  max-width: 460px;
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta strong {
  display: block;
  color: var(--text-main);
  font-size: 1.02rem;
}

.hero-gallery {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.hero-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 420px;
}

.hero-small-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  position: absolute;
  width: 60%;
  bottom: -18%;
  right: 2%;
}

.hero-small-grid img {
  border-radius: var(--radius-md);
  height: 110px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(15, 63, 35, 0.22);
}

.hero-badge {
  position: absolute;
  left: -6%;
  top: 12%;
  background: var(--white);
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
}

.hero-badge strong {
  display: block;
  color: var(--primary);
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-gallery {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-small-grid {
    position: static;
    width: 100%;
    margin-top: 0.9rem;
  }

  .hero-badge {
    left: auto;
    right: 4%;
    top: -8%;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3.2rem 0;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-badge {
    display: none;
  }
}

/* Lưới chung dùng lại cho nhiều trang */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

@media (max-width: 880px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-text p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-photo,
.exp-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-photo img,
.exp-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* Phòng nghỉ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.room-card img {
  height: 180px;
  object-fit: cover;
}

.room-body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.room-body h3 {
  font-size: 1.1rem;
}

.room-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.room-price {
  margin-top: 0.3rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.room-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.room-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .rooms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tiện ích */
#tien-ich-page {
  background: #ffffff;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.amenity {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.amenity span {
  font-size: 1.3rem;
}

.amenity strong {
  font-size: 0.96rem;
}

@media (max-width: 960px) {
  .amenities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .amenities-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Thư viện ảnh */
.gallery-wrap {
  background: radial-gradient(circle at top, #ffffff 0, #f4fbf7 52%, #f9f5ff 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  box-shadow: 0 12px 28px rgba(15, 63, 35, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 260px;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Trải nghiệm */
.exp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.exp-card {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-card span {
  font-size: 1.1rem;
}

.exp-card strong {
  font-size: 0.96rem;
}

@media (max-width: 520px) {
  .exp-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Liên hệ */
.contact-wrap {
  background: radial-gradient(circle at top, #f4fbf7 0, #ffffff 55%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.6rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

input,
textarea {
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 170, 153, 0.5);
  font-family: inherit;
  font-size: 0.92rem;
  background: #fdfdfd;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(91, 168, 121, 0.2);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
}

.contact-info strong {
  color: var(--text-main);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 0.83rem;
  margin-top: 0.6rem;
}

/* Footer */
footer {
  padding: 1.8rem 0 2.2rem;
  background: #ffffff;
  border-top: 1px solid rgba(15, 63, 35, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--primary);
}
