/* ==========================================================================
   CÔNG TRÌNH THANH NIÊN - SỐ HÓA DI TÍCH PHƯỜNG THỚI AN, QUẬN 12, TP.HCM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #2563eb;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   NAVBAR & HEADER
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo img {
  height: 42px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================
   HERO BANNER (MẪU 1)
   ========================================== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 160px 24px 120px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.42) 100%),
              url('anhtrang.png') center 35% / cover no-repeat;
  color: #ffffff;
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 1px 6px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.4);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Floating White Cards Mockup Bar - Bottom boundary overlay */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 10;
  width: calc(100% - 48px);
  transform: translate(-50%, 50%);
}

.stat-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.35s ease;
  text-align: left;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.18);
  border-color: rgba(37, 99, 235, 0.3);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-info .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
}

.stat-info .stat-val {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ==========================================
   SECTIONS & LAYOUT (MẪU 1)
   ========================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary-sm:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.25);
  color: #ffffff;
}

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #2563eb, #38bdf8);
  border-radius: 4px;
  margin: 10px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* Section: Vùng Đất Thới An */
/* Section: Vùng Đất Thới An (Redesigned Balanced Grid) */
.vung-dat-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.vung-dat-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.vung-dat-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.vung-dat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.vung-dat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  border-color: #bfdbfe;
}

.vung-dat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.vung-dat-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.vung-dat-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.vung-dat-card-note {
  display: block;
  font-size: 0.76rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
}

.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 140px;
  gap: 14px;
}

.gallery-grid-4 .img-large {
  grid-column: span 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gallery-grid-4 .img-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Section: Con Người Thới An (4 Cards 1 Row) */
.con-nguoi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.con-nguoi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.35s ease;
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.con-nguoi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(30, 64, 175, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.con-nguoi-img-wrap {
  position: relative;
  height: 195px;
  width: 100%;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.con-nguoi-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.con-nguoi-card:hover .con-nguoi-img {
  transform: scale(1.08);
}

.con-nguoi-badge-icon {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.con-nguoi-card:hover .con-nguoi-badge-icon {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(-50%) scale(1.1);
}

.con-nguoi-body {
  padding: 30px 20px 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.con-nguoi-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.con-nguoi-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section: Đặc Điểm Nổi Bật (5 Modern Colorful Cards) */
.dac-diem-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 0;
}

.dac-diem-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 18px 22px;
  border: 1.5px solid var(--card-border, var(--border-color));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.dac-diem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12);
}

.dac-diem-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.dac-diem-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.dac-diem-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.dac-diem-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dac-diem-card-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.dac-diem-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section: Sliders / Heritage Carousel */
.di-san-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

/* ==========================================
   TRANG TỔNG QUAN DI TÍCH (MẪU 2: di-san.html)
   ========================================== */
.page-header {
  position: relative;
  padding: 150px 24px 110px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.42) 100%),
              url('anhtrang.png') center 35% / cover no-repeat;
  color: #ffffff;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.page-subtitle {
  font-size: 1.08rem;
  color: #ffffff;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Map Card & Floating Legend */
.map-card-wrapper {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

#map-overview {
  width: 100%;
  height: 100%;
}

.map-legend-box {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-width: 230px;
}

.legend-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.legend-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-total {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

/* Filter Bar & Search */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 11px 40px 11px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.search-box i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* Heritage Cards Grid (MẪU 2) */
.heritage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.heritage-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(20% - 16px);
  min-width: 215px;
  max-width: 236px;
}

.heritage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-badge-num {
  display: none !important;
}

.heritage-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.heritage-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.heritage-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.heritage-card-cat {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.heritage-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.heritage-card-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-card-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-link:hover {
  gap: 10px;
}

/* ==========================================
   TRANG CHI TIẾT DI TÍCH (MẪU 3: chi-tiet.html)
   ========================================== */
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 95px 0 18px;
  flex-wrap: wrap;
}

.breadcrumb-bar {
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-bar a {
  color: var(--primary);
  font-weight: 600;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-back-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2);
}

/* Detail Hero Header - Clean Modern White Card */
.detail-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  color: #0f172a;
  padding: 36px 40px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.detail-hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.detail-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #0f172a;
  line-height: 1.25;
}

.detail-address {
  font-size: 0.98rem;
  color: #2563eb;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.detail-summary {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.detail-hero-img-box {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.detail-hero-img:hover {
  transform: scale(1.03);
}

/* Floating Metrics Bar */
.detail-metrics-grid {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.metric-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  flex: 1;
  min-width: 210px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  display: block;
}

.metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Content Split Section */
.detail-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: center;
}

.detail-text-col {
  display: flex;
  flex-direction: column;
}

.detail-text-col h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.detail-text-col p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.highlight-badges-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.hl-badge-card {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.hl-badge-card i {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.hl-badge-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hl-badge-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.gallery-slider {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  border: 1.5px solid rgba(30, 64, 175, 0.12);
  background: var(--bg-main);
  height: fit-content;
}

.main-slide-wrap {
  width: 100%;
  height: 380px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.35s ease;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.25);
}

.btn-prev {
  left: 14px;
}

.btn-next {
  right: 14px;
}

.thumbs-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-main);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid rgba(30, 64, 175, 0.1);
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.thumbs-row::-webkit-scrollbar {
  display: none;
}

.thumb-img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.thumb-img.active,
.thumb-img:hover {
  opacity: 1;
  border: 2px solid var(--primary);
}

/* Values Grid (Balanced Flex Cards) */
.values-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.value-card {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  flex: 1;
  min-width: 260px;
}

.value-card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Location Mini Map */
.mini-map-box {
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

/* Share & Banner Bottom */
.share-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.share-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.share-btns {
  display: flex;
  gap: 12px;
}

.btn-share {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-share:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.callout-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  margin-bottom: 80px;
}

.callout-text h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.callout-text p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-light:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER (THEO MOCKUP CHUẨN MỚI)
   ========================================== */
footer {
  background: #f0f7ff;
  color: #334155;
  padding: 50px 0 0;
  font-size: 0.95rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  width: 100%;
}

.footer-logo-row img {
  height: 195px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-brand h3 {
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-align: center;
}

.footer-brand p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  text-align: center;
  max-width: 95%;
}

.footer-col-title {
  color: #1e40af;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-links a {
  color: #334155;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-social-links a:hover {
  color: #2563eb;
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  background: #2563eb;
  color: #ffffff;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}

/* Floating Back To Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 99;
  transition: all 0.3s ease;
}

.btn-back-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.5);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--primary-light);
}

/* Responsive Styles Across All Screens */
@media (max-width: 1024px) {
  .heritage-grid { grid-template-columns: repeat(3, 1fr); }
  .con-nguoi-grid { grid-template-columns: repeat(2, 1fr); }
  .vung-dat-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dac-diem-container { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 1.05rem;
  }

  .hero {
    padding: 95px 16px 40px !important;
    min-height: auto !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .hero-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 24px !important;
  }

  .hero-stats {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(50%) !important;
    grid-template-columns: 1fr !important;
    margin: 24px auto 0 !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .stat-item {
    padding: 16px 18px !important;
    border-radius: 14px !important;
  }

  .section[style*="padding-top"] {
    padding-top: 40px !important;
  }

  .vung-dat-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .vung-dat-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .con-nguoi-grid {
    grid-template-columns: 1fr !important;
  }

  .dac-diem-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .heritage-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Responsive Grid Layouts for Tong Quan Page */
.tong-quan-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tong-quan-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tong-quan-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tong-quan-quote-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 70px;
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: calc(100% - 24px) !important;
  }
  .stat-item {
    padding: 12px 10px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }
  .stat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }
  .stat-label {
    font-size: 0.68rem !important;
  }
  .stat-val {
    font-size: 0.95rem !important;
  }
  .heritage-card {
    flex: 0 1 calc(50% - 12px) !important;
    min-width: 260px !important;
    max-width: 100% !important;
  }
  .tong-quan-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .tong-quan-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .tong-quan-dev-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .tong-quan-quote-box {
    padding: 24px 20px !important;
  }
  .detail-hero, #detail-hero-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 24px 20px !important;
  }
  .detail-hero-info {
    width: 100% !important;
    order: 1 !important;
  }
  .detail-hero-img-box {
    width: 100% !important;
    height: 250px !important;
    order: 2 !important;
  }
  .detail-split-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .gallery-slider {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 480px !important;
    padding: 120px 16px 80px !important;
  }
  .hero-title {
    font-size: 1.65rem !important;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: calc(100% - 16px) !important;
  }
  .stat-item {
    padding: 10px 4px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  .stat-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .stat-info {
    align-items: center !important;
  }
  .stat-label {
    font-size: 0.62rem !important;
    margin-bottom: 2px !important;
  }
  .stat-val {
    font-size: 0.8rem !important;
  }
  .vung-dat-section-mobile-pad {
    padding-top: 75px !important;
  }

  .detail-split-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .main-slide-wrap {
    height: 260px !important;
  }

  .heritage-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .heritage-card {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .detail-hero, #detail-hero-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px 16px !important;
  }

  .detail-hero-info {
    width: 100% !important;
    order: 1 !important;
  }

  .detail-hero-img-box {
    width: 100% !important;
    height: 220px !important;
    order: 2 !important;
  }

  .detail-title {
    font-size: 1.6rem !important;
  }

  .dac-diem-container {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tong-quan-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tong-quan-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tong-quan-dev-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .share-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 16px !important;
  }

  .share-btns {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .btn-share {
    flex: 1 !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }

  .detail-metrics-grid {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .metric-card {
    min-width: 100% !important;
  }
}

/* ==========================================
   PURE PHOTO GALLERY & LIGHTBOX MODAL
   ========================================== */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-photo-item {
  position: relative;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.35s ease;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 64, 175, 0.18);
}

.gallery-photo-item:hover img {
  transform: scale(1.06);
}

.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-photo-item:hover .gallery-photo-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-photo-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Lightbox Fullscreen Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
