body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  /* gradient pastel loang mint -> kem -> cam */
  background: linear-gradient(135deg,
    #d5efe9 0%,
    #f7f3e3 50%,
    #fce2d1 100%
  );
  color: #0f172a;
}


/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #d1f3f0, #f5eee3);
  border-radius: 0 0 14px 14px;   /* bo góc dưới */
  padding: 30px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
}
.brand .logo {
  background: white;
  border-radius: 12px;
  padding: 4px 6px;
  font-size: 14px;
  color: #ec4899;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.brand .space { color: #22c55e; }

/* Menu links */
.nav-links {
  display: flex;
  gap: 14px;
}
.chip {
  background: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: 0.2s;
}
.chip:hover { background: #f9fafb; transform: translateY(-2px); }

/* Action buttons */
.nav-actions {
  display: flex;
  gap: 10px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.2s;
}
.icon-btn:hover { transform: scale(1.05); }


/* ========== INTRO (y chang ảnh) ========== */
.intro {
  padding: 44px 0 32px;
  font-family: 'Inter', sans-serif;
}

/* Tiêu đề giữa + icon tím */
.intro-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 18px;
}
.intro-title svg {
  color: #7c3aed;
}

/* Card nền be nhạt */
.intro-card {
  max-width: 960px;
  margin: 0 auto;
  background: #fdfaf6;              /* màu be nhẹ */
  border: 1px solid #f1eae0;        /* viền be nhạt */
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.08),   /* bóng ngoài mềm */
    inset 0 1px 0 rgba(255,255,255,0.7); /* viền sáng trong */
  text-align: center;
  color: #374151;
  font-size: 15.5px;
  line-height: 1.7;
}


/* Đoạn văn */
.intro-card p {
  margin: 12px 0 14px;
  color: #374151;
}

/* Bullet list */
.intro-list {
  max-width: 740px;
  margin: 10px auto 16px;
  padding-left: 20px;
  text-align: left;   /* căn trái cho dễ đọc */
}
.intro-list li {
  margin: 6px 0;
  list-style: disc;
  color: #374151;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Callout xanh lá */
.intro-callout {
  display: inline-block;
  margin-top: 12px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
}



/* HERO */
.hero {
  text-align: center;
  padding: 110px 0;
}

.headline {
  font-size: 65px;           /* tăng cỡ chữ */
  font-weight: 800;          /* đậm hơn */
  line-height: 1.2;
  color: #1e293b;            /* xám đậm */
}

.heal {
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.sub {
  margin-top: 5px;
  margin-left: 650px;
  font-size: 18px;
  color: #475569;           /* xám trung tính */
  max-width: 620px;
  text-align: center;
}

/* Nút CTA */
.btn {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fdfdfd;                  /* nền trắng ngà */
  border-radius: 40px;                  /* bo tròn nhiều */
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.08),        /* bóng đổ */
    0 0 0 3px rgba(255,255,255,0.6);    /* glow viền sáng */
  transition: all .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.12),
    0 0 0 3px rgba(255,255,255,0.8);
}

.btn:active {
  transform: scale(0.97);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,0.15),
    0 0 0 2px rgba(255,255,255,0.6);
}



/* FEATURES */
.features {
  text-align: center;
  padding: 50px 0 80px;
}
.features .headline {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.features .sub {
  margin: 0 auto 28px;
  max-width: 600px;
  color: #475569;
  font-size: 16px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: #fff9f3;
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(0,0,0,0.1);
}
.card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.card p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 16px;
}
.arrow {
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}

/* Badge icon */
.badge {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}
.badge.blue {
  background: linear-gradient(180deg, #5ecbff, #6aa6ff);
}
.badge.yellow {
  background: linear-gradient(180deg, #fef08a, #bbf7d0);
}
.badge.pink {
  background: linear-gradient(180deg, #fda4af, #f9a8d4);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr; }
}



/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg,#fde7d7,#f5f5f5);
  padding: 50px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Logo + brand */
.brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.brand-footer .logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: #ec4899;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.brand-footer .brand-text {
  font-size: 18px;
  font-weight: 700;
}
.brand-footer .space { color: #22c55e; }
.tagline {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0;
}
.desc {
  font-size: 14px;
  color: #475569;
  margin: 6px 0 14px;
  line-height: 1.5;
}

/* Social icons */
.social {
  display: flex;
  gap: 12px;
}
.social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: 0.2s;
}
.social a:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* Footer columns */
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin: 6px 0;
}
.footer-col a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
}
.footer-col a:hover {
  color: #111827;
}

/* Copyright */
.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ========== AUTH MODAL (login / register) ========== */
.auth-modal {
  position: fixed; inset: 0;
  display: none; /* ẩn mặc định */
  align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(4px);
  z-index: 9999;
}
.auth-modal.show { display: flex; }

.auth-dialog {
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 22px 20px 20px;
  position: relative;
  animation: auth-pop .18s ease-out;
}
@keyframes auth-pop { from { transform: scale(.98); opacity: .6 } to { transform: scale(1); opacity: 1 } }

.auth-close {
  position: absolute; right: 10px; top: 8px;
  border: 0; background: transparent; font-size: 22px; cursor: pointer;
  color: #0f172a;
}

.auth-tabs {
  display: flex; gap: 8px; margin: 2px 0 16px;
}
.auth-tab {
  flex: 1; padding: 10px 12px; cursor: pointer;
  border: 1px solid #e2e8f0; border-radius: 12px;
  background: #f8fafc; color: #0f172a; font-weight: 600;
}
.auth-tab.active { background: #e6f7f3; border-color: #bbf7d0; }

.auth-pane { display: none; flex-direction: column; gap: 10px; }
.auth-pane.show { display: flex; }

.auth-pane label { font-size: 14px; color: #475569; }
.auth-pane input {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px;
  background: #fff; outline: none; font-size: 15px;
}
.auth-pane input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(165,180,252,.25); }

.auth-btn {
  border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: linear-gradient(90deg,#22c55e,#3b82f6);
  color: #fff; font-weight: 700;
  box-shadow: 0 8px 18px rgba(34,197,94,.25);
}
.auth-btn:hover { transform: translateY(-1px); }

.auth-msg { min-height: 18px; font-size: 14px; }
.auth-msg.error { color: #dc2626; }
.auth-msg.ok { color: #0ea5e9; }

/* Utility cho ẩn/hiện nếu bạn dùng class .hidden */
.hidden { display: none !important; }

.auth-modal{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(15,23,42,.35); backdrop-filter: blur(4px); z-index: 9999;
}
.auth-dialog{ width:min(520px,92vw); background:#fff; border-radius:18px; padding:22px 20px; position:relative; }
.auth-close{ position:absolute; right:10px; top:8px; border:0; background:transparent; font-size:22px; cursor:pointer; }
.auth-tabs{ display:flex; gap:8px; margin:2px 0 16px; }
.auth-tab{ flex:1; padding:10px 12px; border:1px solid #e2e8f0; border-radius:12px; background:#f8fafc; cursor:pointer; font-weight:600; }
.auth-tab.active{ background:#e6f7f3; border-color:#bbf7d0; }
.auth-pane{ display:none; flex-direction:column; gap:10px; }
.auth-pane.show{ display:flex; }
.auth-btn{ border:0; border-radius:12px; padding:12px 14px; background:#0ea5e9; color:#fff; cursor:pointer; }


/* user name */
/* Tên user: giới hạn chiều rộng + ellipsis */
#user-info {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  max-width: 120px;                
  text-align: center;              
  white-space: nowrap;             
  overflow: hidden;                
  text-overflow: ellipsis;         
}

/* căn giữa khối icon + tên */
.user-box {                        
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* nút đăng xuất */
#logout-btn {
  font-size: 12px;
  color: #dc2626;
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 2px;
}
#logout-btn:hover { text-decoration: underline; }


/* ===== Upcoming events ===== */
.hs-events { padding: 20px 0 34px; }
.hs-events-head{
  display:flex; align-items:center; gap:14px; justify-content:center; margin-bottom:18px;
}
.hs-events-head h2{
  font-size:38px; font-weight:800; color:#0f172a; letter-spacing:.2px;
}
.hs-events-icon{
  width:56px; height:56px; display:grid; place-items:center; border-radius:14px;
  background:#e8fff0; box-shadow:0 6px 18px rgba(0,0,0,.08); font-size:26px;
}
.hs-cards{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media (max-width: 1100px){ .hs-cards{ grid-template-columns:1fr; } }

.hs-card{
  background:#fff; border-radius:18px; box-shadow:0 16px 36px rgba(0,0,0,.08);
  overflow:hidden; display:flex; flex-direction:column;
}
.hs-card__cover{ width:100%; height:220px; object-fit:cover; }
.hs-card__body{ padding:16px 18px; }
.hs-tag{ background:#f1f5f9; border-radius:20px; font-size:12px; padding:4px 8px; margin-right:6px; }
.hs-title{ font-weight:800; font-size:20px; margin:8px 0 10px; color:#0f172a; }
.hs-meta{ font-size:14px; color:#475569; display:grid; gap:6px; }
.hs-card__foot{
  display:flex; align-items:center; justify-content:space-between; padding:14px 18px 18px;
}
.hs-price{ font-weight:800; color:#0f172a; }
.hs-btn{
  background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:10px 14px;
  text-decoration:none; color:#0f172a; font-weight:600; box-shadow:0 6px 16px rgba(0,0,0,.06);
}
.hs-btn:hover{ background:#f8fafc; }

/* ===== Partner CTA ===== */
.partner-cta{ padding: 16px 0 50px; }
.partner-cta__inner{
  background:linear-gradient(135deg,#fff7ef,#f5faf7);
  border-radius:24px; padding:22px; display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}
.partner-cta__title{ font-size:24px; font-weight:800; color:#0f172a; margin-bottom:6px; }
.partner-cta__text p{ margin:0; color:#475569; }
.partner-cta__btn{
  background:#fff; border-radius:999px; padding:12px 18px; text-decoration:none; color:#0f172a;
  box-shadow:0 10px 24px rgba(0,0,0,.10); font-weight:700; border:1px solid #eef2f7;
}
.partner-cta__btn:hover{ background:#f9fafb; }


/* đảm bảo modal nổi trên navbar nếu navbar có z-index cao */
.auth-modal { z-index: 9999; }     /* bạn đã set OK */


#map { contain: layout paint size; }     /* giúp trình duyệt cô lập layout/map */
.leaflet-container { will-change: transform; }

/* đặt avatar và info theo cột */
.user-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;            /* khoảng cách giữa avatar và text */
}

/* khối nhỏ hiển thị tên + logout */
.user-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.user-mini .user-name {
  font-weight: 800;
  color: #253047;      /* đậm như hình */
  font-size: 16px;
}

.user-mini .logout-link {
  margin-top: 4px;
  background: none;
  border: 0;
  color: #d93025;      /* đỏ */
  font-weight: 700;
  cursor: pointer;
}

.user-mini .logout-link:hover { text-decoration: underline; }

.btn-mini{
  display:inline-block;
  padding:6px 12px;
  border-radius:12px;
  border:1px solid #9cd0ff;
  background:#eef7ff;
  color:#0b76d1;
  font-weight:700;
  font-size:14px;
  margin-top:6px;
}
.btn-mini:hover{ filter:brightness(0.98); }








