/* ═══════════════════════════════════════════════
   VangVieng Explorer — Design System v2
   Aesthetic: Organic Luxury · Lush Green · Warm Earth
   UPGRADED: Animations · Polish · Mobile UX
═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --green-900: #0a1f3d;
  --green-800: #0e2f5c;
  --green-700: #1050a0;
  --green-600: #1a6bbf;
  --green-500: #2589e0;
  --green-400: #4aaaf5;
  --green-300: #80c8ff;
  --green-100: #e0f2ff;
  --green-50:  #f0f9ff;

  --earth-700: #0a4a7a;
  --earth-500: #2272b0;
  --earth-300: #89c4f0;
  --earth-100: #e8f5ff;

  --gold:    #38bdf8;
  --gold-lt: #bae6fd;

  --dark:    #071830;
  --text:    #0f2d52;
  --muted:   #4a7aa0;
  --border:  #bde0f8;
  --bg:      #f4faff;
  --white:   #ffffff;

  --font-display: 'Cormorant Garamond', 'Noto Sans Lao', Georgia, serif;
  --font-body:    'Outfit', 'Noto Sans Lao', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(16, 80, 160, 0.08);
  --shadow-md: 0 8px 32px rgba(16, 80, 160, 0.13);
  --shadow-lg: 0 20px 60px rgba(16, 80, 160, 0.18);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── FONT DISPLAY SWAP (prevent CLS) ── */
@font-face { font-display: swap; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font-body); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 1.05rem; color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--dark); }

.nav-logo-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-logo strong { font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.9);
  transition: var(--transition);
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: var(--white); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  background: var(--green-100); color: var(--green-700);
}
.nav-ai {
  background: var(--gold) !important; color: var(--dark) !important;
  font-weight: 600; border-radius: var(--radius-xl);
}
.nav-ai:hover { background: var(--gold-lt) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: clamp(520px, 90vh, 100vh);
  background: linear-gradient(160deg, #071830 0%, #0e3a70 40%, #1a7ac0 80%, #38bdf8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: clamp(70px, 10vw, 110px) clamp(16px, 4vw, 24px) clamp(30px, 5vw, 60px);
}

/* Animated grain overlay for depth */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: floatShape 8s ease-in-out infinite;
}
.s1 { width: 600px; height: 600px; top: -150px; right: -150px; animation-delay: 0s; background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%); }
.s2 { width: 350px; height: 350px; bottom: 5%; left: -100px; animation-delay: 2.5s; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); }
.s3 { width: 250px; height: 250px; top: 35%; right: 18%; animation-delay: 4.5s; background: radial-gradient(circle, rgba(74,170,245,0.1) 0%, transparent 70%); }
.s4 { width: 180px; height: 180px; bottom: 20%; right: 8%; animation-delay: 1.5s; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  33%  { transform: translateY(-18px) scale(1.02) rotate(1deg); }
  66%  { transform: translateY(-8px) scale(0.99) rotate(-0.5deg); }
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 700px; width: 100%; text-align: center;
  animation: heroFadeIn 1s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.weather-widget {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 6px 16px; margin-bottom: 14px;
  font-family: var(--font-body);
  cursor: default;
}
.weather-icon { font-size: 1.1rem; line-height: 1; }
.weather-temp {
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
}
.weather-desc {
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 8px; margin-left: 2px;
}
@media (max-width: 480px) {
  .weather-widget { padding: 5px 12px; gap: 6px; }
  .weather-temp { font-size: 0.88rem; }
  .weather-desc { font-size: 0.72rem; }
}

.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 8px 20px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.05em; backdrop-filter: blur(10px);
}

.hero-title {
  font-family: 'Noto Sans Lao', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 800; line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.hero-highlight {
  color: #ffffff;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8 0%, #ffffff 50%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2em;
  font-weight: 800;
  filter: drop-shadow(0 0 20px rgba(125,211,252,0.9)) drop-shadow(0 0 50px rgba(56,189,248,0.6));
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(125,211,252,0.9)) drop-shadow(0 0 50px rgba(56,189,248,0.6)); }
  50%       { filter: drop-shadow(0 0 35px rgba(255,255,255,1)) drop-shadow(0 0 80px rgba(56,189,248,0.9)); }
}

.hero-sub {
  color: rgba(255,255,255,0.8); font-size: clamp(0.82rem, 2.5vw, 1rem);
  margin-bottom: clamp(20px, 4vw, 36px); line-height: 1.8;
}

/* Search Box */
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-xl);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,0.1);
  margin-bottom: 20px;
  transition: var(--transition);
}
.search-box:focus-within {
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,0.3);
}
.search-icon { font-size: 1.1rem; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; background: none;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  padding: 12px 28px; border-radius: var(--radius-xl);
  background: var(--green-700); color: var(--white);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition); flex-shrink: 0;
}
.search-btn:hover { background: var(--green-600); transform: scale(1.02); }

/* Quick Tags */
.quick-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  padding: 8px 18px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500;
  transition: var(--transition); backdrop-filter: blur(8px);
}
.tag:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* Hero Scroll */
.hero-scroll {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 0.75rem; z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}
.scroll-arrow { font-size: 1rem; }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
/* ── HERO WIDGETS (weather + stats) ── */
.hero-widgets {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 16px;
}
.weather-widget,
.stats-widget {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 8px 18px; height: 38px;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.stats-widget { gap: 5px; }
.weather-icon { font-size: 0.95rem; }
.weather-temp {
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  font-weight: 700; color: var(--white);
}
.weather-desc {
  font-size: clamp(0.68rem, 1.5vw, 0.75rem);
  color: rgba(255,255,255,0.7);
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 7px;
}
.stats-widget-item {
  font-size: clamp(0.72rem, 1.7vw, 0.84rem);
  font-weight: 600; color: var(--white); white-space: nowrap;
}
.stats-widget-item .stat-num { font-weight: 800; }
.stats-widget-dot { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

@media (max-width: 480px) {
  .hero-widgets { gap: 8px; }
  .weather-widget, .stats-widget { padding: 6px 12px; height: 34px; }
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { padding: clamp(28px, 5vw, 60px) 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: clamp(20px, 3vw, 36px);
}
.section-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--green-500); text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--dark); font-weight: 600; line-height: 1.15;
  letter-spacing: 0.01em;
}
.see-all {
  font-size: 0.9rem; font-weight: 600; color: var(--green-600);
  padding: 8px 0; border-bottom: 2px solid var(--green-300);
  transition: var(--transition); white-space: nowrap;
}
.see-all:hover { color: var(--green-800); border-color: var(--green-600); }

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.categories-section { background: var(--white); }
.categories-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.cat-card {
  display: flex; flex-direction: row; align-items: center;
  gap: 12px;
  padding: 14px 14px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: var(--transition); cursor: pointer;
  border: 1px solid transparent;
  min-height: unset;
}
@media (min-width: 768px) {
  .cat-card {
    flex-direction: column; align-items: flex-start;
    padding: 24px 20px 32px; gap: 0;
  }
  .cat-icon { margin-bottom: 10px; }
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-attraction { background: linear-gradient(135deg, #e0f2ff 0%, #bae6fd 100%); border-color: #7dd3fc; }
.cat-hotel      { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #93c5fd; }
.cat-restaurant { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-color: #7dd3fc; }
.cat-activity   { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border-color: #a5b4fc; }

.cat-icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }
.cat-info h3 { font-size: clamp(0.72rem, 2vw, 0.88rem); font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.cat-info p  { font-size: clamp(0.6rem, 1.6vw, 0.72rem); color: var(--muted); line-height: 1.3; }
.cat-arrow { position: absolute; bottom: 10px; right: 12px; font-size: 0.9rem; color: var(--muted); }
.cat-arrow {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 1.1rem; color: var(--muted);
  transition: var(--transition);
}
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--green-600); }

/* Hero Logo */
.hero-logo-wrap {
  margin: 0 auto 24px;
  display: flex; justify-content: center;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
  animation: logoFloat 4s ease-in-out infinite;
}
.hero-logo-img {
  width: min(340px, 75vw);
  height: auto;
  border-radius: 50%;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
/* Language Dropdown */
.lang-dropdown {
  position: relative; margin-left: 8px;
}
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 1rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.lang-toggle:hover { background: rgba(255,255,255,0.25); }
.navbar.scrolled .lang-toggle {
  background: var(--bg); border-color: var(--border); color: var(--dark);
}
.lang-arrow { font-size: 0.65rem; opacity: 0.7; transition: var(--transition); }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  overflow: hidden; min-width: 140px; z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; animation: fadeIn 0.15s ease; }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  font-family: var(--font-body); text-align: left;
  transition: var(--transition); background: none;
}
.lang-option:hover  { background: var(--bg); color: var(--green-700); }
.lang-option.active { background: var(--green-100); color: var(--green-700); font-weight: 700; }

@media (max-width: 768px) {
  .lang-dropdown { margin-left: 4px; }
  .lang-toggle { padding: 5px 10px; font-size: 0.8rem; }
  #langLabel { display: none; }
}

.featured-section { background: var(--bg); }
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.place-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(16,80,160,0.07);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  cursor: pointer;
  border: none;
  position: relative;
  opacity: 0;
  animation: cardReveal 0.5s ease forwards;
}
.place-card:nth-child(1) { animation-delay: 0.05s; }
.place-card:nth-child(2) { animation-delay: 0.10s; }
.place-card:nth-child(3) { animation-delay: 0.15s; }
.place-card:nth-child(4) { animation-delay: 0.20s; }
.place-card:nth-child(5) { animation-delay: 0.25s; }
.place-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.place-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 20px 50px rgba(16,80,160,0.18);
}

/* Image area */
.card-img-placeholder {
  width: 100%; aspect-ratio: 3/2;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
  transition: transform 0.4s ease;
}
.place-card:hover .card-img-placeholder { transform: scale(1.04); }
.card-img-placeholder img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.card-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

/* Eco badge */
.card-eco-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,0.92);
  color: #059669; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

/* Rating badge */
.card-rating-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.55);
  color: var(--white); font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

/* Body */
.card-body { padding: 14px 16px 16px; }
.card-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-600);
  margin-bottom: 4px; display: block;
}
.card-title {
  font-size: 0.97rem; font-weight: 700;
  color: var(--dark); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.card-rating { font-size: 0.8rem; font-weight: 600; color: var(--gold); }
.card-price  { font-size: 0.8rem; color: var(--muted); }
.card-desc { display: none; }
.card-meta { display: none; }

/* ══════════════════════════════════════════
   ECO BANNER
══════════════════════════════════════════ */
.eco-banner {
  background: linear-gradient(135deg, #0e2f5c 0%, #1a6bbf 100%);
  padding: clamp(32px,5vw,56px) 0; position: relative; overflow: hidden;
}
.eco-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.eco-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); }
.e1 { width: 400px; height: 400px; top: -100px; right: -50px; }
.e2 { width: 250px; height: 250px; bottom: -80px; left: 5%; }

.eco-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: clamp(20px,4vw,40px);
}
.eco-text { max-width: 500px; }
.eco-tag {
  display: inline-block; margin-bottom: 16px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  padding: 6px 16px; border-radius: var(--radius-xl); font-size: 0.8rem; font-weight: 600;
}
.eco-text h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--white); margin-bottom: 16px; font-weight: 600; letter-spacing: 0.01em;
}
.eco-text p { color: rgba(255,255,255,0.75); font-size: clamp(0.82rem,2vw,0.95rem); margin-bottom: clamp(14px,2.5vw,24px); }
.btn-eco {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius-xl);
  background: var(--white); color: var(--green-700);
  font-weight: 700; font-size: 0.9rem; transition: var(--transition);
}
.btn-eco:hover { background: var(--green-100); transform: translateY(-2px); }

.eco-icons { display: flex; gap: clamp(14px,3vw,24px); flex-wrap: wrap; align-items: center; }
.eco-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 500;
}
.eco-icon-item:first-child { font-size: 2rem; }
.eco-icon-item span { font-size: 0.8rem; }

/* ══════════════════════════════════════════
   AI PROMO
══════════════════════════════════════════ */
.ai-promo-section { background: var(--white); }
.ai-promo-card {
  display: flex; align-items: center; gap: clamp(24px,5vw,60px);
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f2ff 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(28px,4vw,48px) clamp(20px,4vw,48px); flex-wrap: wrap;
}
.ai-promo-left { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.ai-bubble {
  display: flex; align-items: flex-start; gap: 12px;
}
.ai-bubble.reply { flex-direction: row-reverse; }
.ai-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-100); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ai-avatar.bot { background: var(--green-700); }
.ai-msg {
  background: var(--white); border-radius: var(--radius-md); border-radius: 16px 16px 16px 4px;
  padding: 14px 18px; box-shadow: var(--shadow-sm); max-width: 280px;
}
.ai-msg.bot-msg {
  background: var(--green-700); color: var(--white);
  border-radius: 16px 16px 4px 16px;
}
.ai-msg p { font-size: 0.85rem; line-height: 1.6; }

.ai-promo-right { flex: 1; min-width: 260px; }
.ai-label {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--green-600); text-transform: uppercase;
}
.ai-promo-right h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--dark); margin-bottom: 16px; font-weight: 600; letter-spacing: 0.01em;
}
.ai-promo-right p { color: var(--muted); font-size: clamp(0.82rem,2vw,0.95rem); margin-bottom: clamp(14px,2.5vw,24px); line-height: 1.6; }
.btn-primary {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius-xl);
  background: var(--green-700); color: var(--white);
  font-weight: 700; font-size: 0.9rem; transition: var(--transition);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--green-900);
  padding: clamp(32px,5vw,52px) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(24px,4vw,40px); padding-bottom: clamp(24px,4vw,40px);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  font-size: 1.2rem; color: var(--white); margin-bottom: 14px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 220px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.footer-links a, .footer-contact p {
  display: block; font-size: 0.83rem; color: rgba(255,255,255,0.55);
  margin-bottom: 10px; transition: var(--transition);
}
.footer-links a:hover { color: var(--green-300); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.loading-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%; border-radius: var(--radius-lg);
  animation: shimmer 1.5s infinite; height: 320px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center; padding: 60px 24px; color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── 1. HAMBURGER MENU — slide down panel, ບໍ່ fullscreen ── */
  .nav-links {
    display: none;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0; z-index: 999;
    padding: 8px 0 16px;
    box-shadow: 0 8px 32px rgba(16,80,160,0.12);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    font-size: 0.95rem !important;
    color: var(--text) !important;
    padding: 12px 24px !important;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link.nav-ai {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    margin: 8px 16px 0;
    border-radius: var(--radius-xl);
    width: calc(100% - 32px);
    text-align: center;
    border-bottom: none;
  }
  .hamburger { display: flex; z-index: 1000; }

  /* stats now in hero widgets — no override needed */

  .search-box { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .search-btn { width: 100%; padding: 12px; border-radius: var(--radius-md); }

  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .eco-content { flex-direction: column; }
  .eco-icons { justify-content: center; }
  .ai-promo-card { padding: 24px 20px; gap: 20px; }
}

@media (max-width: 480px) {
  .quick-tags { gap: 8px; }
  .tag { font-size: 0.78rem; padding: 6px 14px; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   HAMBURGER — slide animation upgrade
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger span { transition: transform 0.25s ease, opacity 0.2s ease; }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ══════════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 28px; right: 24px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-700);
  color: var(--white); font-size: 1.1rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(16,80,160,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--green-600);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 28px rgba(16,80,160,0.4);
}

/* ══════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--dark); color: var(--white);
  padding: 12px 22px; border-radius: var(--radius-xl);
  font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  max-width: 320px; text-align: center;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast.success { background: #065f46; }
.toast.error   { background: #7f1d1d; }
.toast.info    { background: var(--green-700); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ══════════════════════════════════════════
   CATEGORY CARDS — springy hover
══════════════════════════════════════════ */
.cat-card {
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
}
.cat-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ══════════════════════════════════════════
   SEARCH BOX — focus glow
══════════════════════════════════════════ */
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(56,189,248,0.35), var(--shadow-md);
}

/* ══════════════════════════════════════════
   STAGGERED HERO ELEMENTS
══════════════════════════════════════════ */
.hero-badge    { animation: heroFadeIn 0.8s ease-out 0.1s both; }
.hero-title    { animation: heroFadeIn 0.8s ease-out 0.2s both; }
.hero-sub      { animation: heroFadeIn 0.8s ease-out 0.35s both; }
.search-box    { animation: heroFadeIn 0.8s ease-out 0.45s both; }
.quick-tags    { animation: heroFadeIn 0.8s ease-out 0.55s both; }
.hero-widgets  { animation: heroFadeIn 0.8s ease-out 0.65s both; }
