/* ==========================================================================
   RESET & BIẾN MÀU THEO YÊU CẦU TRANG KỶ YẾU TIẾN VÀM CỎ
   ========================================================================== */
:root {
  /* Bảng màu trang Kỷ yếu */
  --color-green-1: #66bb6a;
  --color-green-2: #a5d6a7;
  --color-peach-1: #e69689;
  --color-peach-2: #e3bab4;
  
  --color-title-green: #43a047;
  --color-white: #ffffff;
  --bg-page: #ffffff;
  
  --radius-card: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-page);
  color: #333333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Khung bọc trung tâm: Mobile 480px, PC ngang 960px đồng bộ toàn bộ website */
.kyyeu-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 14px 60px 14px;
}

@media (min-width: 768px) {
  .kyyeu-wrapper {
    max-width: 960px;
    padding: 36px 20px 80px 20px;
  }
}

/* ==================== PHẦN 1: TIÊU ĐỀ & MIÊU TẢ ==================== */
.section-header {
  text-align: center;
  margin-bottom: 18px;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-title-green);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.description {
  font-size: 0.82rem;
  font-weight: 500;
  color: #557557;
  line-height: 1.45;
}

/* ==================== PHẦN 2: DẢI ẢNH CUỘN NGANG (TỶ LỆ 2:3) ==================== */
.section-carousel {
  margin-bottom: 22px;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 14px 2px;
  
  /* 1. Ẩn thanh cuộn trên Firefox */
  scrollbar-width: none !important;
  
  /* 2. Ẩn thanh cuộn trên IE/Edge cũ */
  -ms-overflow-style: none !important;
}

/* 3. Ẩn triệt để thanh cuộn trên Chrome, Safari, Cốc Cốc, Android, iOS */
.carousel-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.carousel-item {
  position: relative;
  flex: 0 0 calc(28% - 6px); /* Hiển thị ~3.5 hình trên mobile như ảnh mẫu */
  aspect-ratio: 2 / 3; /* Chuẩn tỷ lệ 2:3 */
  border-radius: 10px;
  overflow: hidden;
  background-color: #f1f1f1;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  outline: none;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(14% - 8px); /* Màn hình ngang hiển thị nhiều hình hơn hẳn */
  }
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Overlay tối đi 10% */
.item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}

/* HIỆU ỨNG CHẠM / HOVER: ZOOM 10% VÀ OVERLAY TỐI 10% */
.carousel-item:hover img,
.carousel-item:focus img,
.carousel-item:active img {
  transform: scale(1.10); /* Zoom hình 10% */
}

.carousel-item:hover .item-overlay,
.carousel-item:focus .item-overlay,
.carousel-item:active .item-overlay {
  background: rgba(0, 0, 0, 0.10); /* Overlay tối đi 10% */
}

/* ==================== PHẦN 3: 4 CARD BẢNG GIÁ ==================== */
.section-pricing {
  margin-bottom: 22px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr; /* Màn hình dọc điện thoại: 1 cột */
  gap: 12px;
}

/* Màn hình ngang máy tính: trở thành 2 cột */
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.price-card {
  border-radius: var(--radius-card);
  padding: 16px 18px;
  color: var(--color-white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.price-card:hover, .price-card:active {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card-name {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.35;
  text-transform: uppercase;
}

.card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0.96;
}

/* 2 Card đầu: Gradient #66bb6a và #a5d6a7 */
.card-gradient-green {
  background: linear-gradient(135deg, var(--color-green-1) 0%, var(--color-green-2) 100%);
}

/* 2 Card sau: Gradient #e69689 và #e3bab4 */
.card-gradient-peach {
  background: linear-gradient(135deg, var(--color-peach-1) 0%, var(--color-peach-2) 100%);
}

/* ==================== PHẦN 4: BUTTON LIÊN HỆ ĐẶT LỊCH ==================== */
.section-cta {
  display: flex;
  justify-content: center;
  margin: 18px 0 28px 0;
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 44px;
  background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(102, 187, 106, 0.35);
  transition: var(--transition-smooth);
}

.btn-booking:hover, .btn-booking:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 187, 106, 0.5);
  filter: brightness(1.06);
}

/* ==================== PHẦN 5: SHOW ẢNH GOOGLE DRIVE (TỶ LỆ 1:1) ==================== */
.section-gallery {
  margin-top: 24px;
  text-align: center;
}

.gallery-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-peach-1);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gallery-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-filter {
  padding: 6px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--color-peach-1);
  color: var(--color-peach-1);
  background-color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-filter:hover, .btn-filter:active {
  background-color: var(--color-peach-1);
  color: #ffffff;
}

.gallery-status {
  font-size: 0.85rem;
  color: var(--color-peach-1);
  font-weight: 600;
  padding: 20px 0;
}

/* Quy tắc lưới ảnh: 3 cột Mobile dọc, 6 cột PC ngang */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
}

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Chuẩn tỷ lệ vuông 1:1 */
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.03);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-thumb img.loaded {
  opacity: 1;
}

/* ==================== LIGHTBOX POPUP ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84); /* Làm tối nền để xem ảnh rõ hơn */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.lb-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lb-counter {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

@media (max-width: 767px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}