/* ================================================================
   quananngon.css — Styles cho trang Quán Ăn Ngon
   Du lịch Giá Rẻ
   ================================================================ */

:root {
  --primary: #c0392b;
  --primary-light: #e74c3c;
  --accent: #f4a825;
  --dark: #1c1c1c;
  --light-bg: #fdf8f5;
  --text-muted: #7a6a65;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Be Vietnam Pro', sans-serif; background: #fff; color: var(--dark); }


/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192,57,43,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  color: #1a6b4a; text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0.5rem 1.1rem; font-size: 0.88rem; font-weight: 500;
  color: var(--dark); text-decoration: none; border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(192,57,43,0.08); color: var(--primary);
}


/* ── PAGE HERO ── */
.page-hero {
  margin-top: 62px;
  background: linear-gradient(135deg, #6b0d0d 0%, #c0392b 55%, #e74c3c 100%);
  padding: 4rem 2rem 3.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 40%, rgba(244,168,37,0.18) 0%, transparent 70%);
}
.page-hero-content {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-block; background: rgba(244,168,37,0.2); color: var(--accent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; border: 1px solid rgba(244,168,37,0.35);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem);
  color: #fff; margin-bottom: 0.8rem;
}
.page-hero p { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.7; }


/* ── SEARCH BAR (sticky) ── */
.search-wrap {
  background: #fff; border-bottom: 1px solid #f5e8e6;
  padding: 1.2rem 2rem;
  position: sticky; top: 62px; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 200px; display: flex; align-items: center;
  border: 1.5px solid #e8d5d2; border-radius: 10px; padding: 0 14px; gap: 8px;
  transition: border-color 0.18s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none; outline: none; padding: 10px 0;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 0.88rem;
  color: var(--dark); width: 100%;
}
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px; border-radius: 20px; border: 1.5px solid #e8d5d2;
  background: #fff; font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
  font-family: 'Be Vietnam Pro', sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary); background: var(--primary); color: #fff;
}


/* ── LAYOUT CHUNG ── */
.container-main { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark); margin-bottom: 1.8rem;
}


/* ── BLOCK LIST TỈNH THÀNH ── */
#province-list { padding: 3.5rem 0; background: var(--light-bg); }

.province-block {
  background: #fff;
  border: 1px solid #f0e8e6;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.22s;
}
.province-block:hover { box-shadow: 0 6px 24px rgba(192,57,43,0.1); }

.province-header {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.province-header:hover { background: #fdf5f4; }
.province-header.open   { background: #fdf5f4; }

.province-thumb {
  width: 80px; height: 60px;
  border-radius: 10px; object-fit: cover; flex-shrink: 0;
}

.province-region {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 3px;
}
.province-name {
  font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 3px;
}
.province-meta { font-size: 0.78rem; color: var(--text-muted); }

.province-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.province-count {
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
  background: rgba(192,57,43,0.08); padding: 3px 10px; border-radius: 12px;
}
.toggle-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #e8d5d2;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.8rem;
  transition: transform 0.25s, border-color 0.2s;
}
.province-header.open .toggle-icon {
  transform: rotate(180deg); border-color: var(--primary); color: var(--primary);
}


/* ── IMAGE CAROUSEL ── */
.province-gallery {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.province-gallery.open { max-height: 340px; }

.gallery-inner {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid #f5ebe8;
}

.img-carousel-wrap { position: relative; }
.img-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 0.5rem;
}
.img-carousel::-webkit-scrollbar { display: none; }

.img-card {
  flex: 0 0 calc((100% - 42px) / 3);
  min-width: 200px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.img-card img {
  width: 100%; height: 170px;
  object-fit: cover; display: block;
  transition: transform 0.35s;
}
.img-card:hover img { transform: scale(1.06); }

.img-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 0.8rem; font-weight: 500;
}
.img-card-label small {
  display: block; font-size: 0.68rem;
  color: rgba(255,255,255,0.75); margin-bottom: 1px;
}

.img-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.9);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--dark);
  z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.18s, border-color 0.18s;
}
.img-carousel-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.img-carousel-btn.prev { left: -14px; }
.img-carousel-btn.next { right: -14px; }


/* ── NO RESULTS ── */
.no-results {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--text-muted); font-size: 0.88rem;
  border: 1.5px dashed #e8d5d2; border-radius: 14px;
}


/* ── FOOTER ── */
footer {
  background: #3d0a08; color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem; margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #fff; }
.footer-logo span { color: var(--accent); }
footer p { font-size: 0.82rem; }


/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.94);
  transition: transform 0.25s;
}
.lightbox-overlay.open .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-info {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
}
.lightbox-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.lightbox-info small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Nút X đóng */
.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
  z-index: 10000;
}
.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Nút prev / next của lightbox */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 10000;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav.prev { left: 1.2rem; }
.lightbox-nav.next { right: 1.2rem; }

/* Counter ảnh */
.lightbox-counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  z-index: 10000;
  letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .province-header { grid-template-columns: 64px 1fr auto; gap: 0.9rem; }
  .province-thumb { width: 64px; height: 48px; }
  .img-card { flex: 0 0 80%; }
}
