/* =========================================================
   AREA.CSS – Nepal Area Guide Complete Styles
   ========================================================= */

/* =========================================================
   SECTION 1: ROOT VARIABLES
   ========================================================= */
:root {
  --green-darker: #083a24;
  --green-dark: #005a30;
  --green: #00703c;
  --green-light: #e8f5ef;
  --green-bright: #00a855;
  --gold: #DAA520;
  --gold-light: #f5e6b8;
  --white: #ffffff;
  --black: #1a1a2e;
  --text: #222831;
  --text-soft: #667085;
  --text-light: #8896ab;
  --bg-light: #f5f7fb;
  --bg-card: #ffffff;
  --line: #e8edf4;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1440px;
  --font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   SECTION 2: BASE STYLES
   ========================================================= */
.ntg-area {
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.7;
}

.area-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   AREA HERO (detail page) — background image hero
   ========================================================= */

.area-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 130px;   /* clears the fixed nav on desktop — adjust if still overlapping */
  padding-bottom: 64px;
  padding-left: 20px;
  padding-right: 20px;
  overflow: hidden;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 20, 0.7) 0%,
    rgba(10, 30, 20, 0.3) 35%,
    rgba(10, 30, 20, 0.55) 70%,
    rgba(10, 30, 20, 0.85) 100%
  );
  z-index: 0;
}

.detail-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.detail-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-hero-top {
  color: var(--white);
}

.detail-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.detail-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.detail-subtitle-en {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ---------- Stats Dashboard ---------- */
.detail-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.stat-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.stat-icon {
  font-size: 16px;
  line-height: 1;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .area-hero {
    padding-top: 120px; /* mobile nav offset — adjust this one if mobile still overlaps */
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-hero-inner {
    gap: 18px;
  }

  .detail-stats-grid {
    gap: 8px;
  }

  .stat-pill {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .area-hero {
    padding-top: 120px;
  }

  .detail-title {
    font-size: 22px;
  }
}
/* ---------- 3.2 INTRO ---------- */
.area-intro {
  padding: 64px 0 40px;
}

.area-intro-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 860px) {
  .area-intro-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.area-intro-text h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--green-darker);
  font-weight: 700;
}

.area-intro-text p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 15px;
}

.area-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.area-intro-points li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-darker);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-intro-points li span {
  font-size: 26px;
  color: var(--gold);
  line-height: 1.2;
}

.area-map-placeholder {
  background: linear-gradient(145deg, var(--green-light), #d4ebe0);
  border-radius: var(--radius-md);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 2px dashed #a8cbb8;
  padding: 20px;
  text-align: center;
}

.area-map-placeholder p {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
}

.area-map-placeholder small {
  opacity: 0.7;
}

/* ---------- 3.3 SECTION HEADER ---------- */
.area-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.area-section-header h2 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--green-darker);
  font-weight: 700;
}

.area-section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- 3.4 PROVINCE GRID ---------- */
.area-provinces {
  padding: 20px 0 64px;
}

.province-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .province-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .province-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.province-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.province-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.province-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.province-card:hover::before {
  opacity: 1;
}

.province-card-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.province-card-body {
  flex: 1;
  min-width: 0;
}

.province-card-title {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-darker);
}

.province-card-en {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.province-card-capital {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text);
}

.province-card-meta .badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.province-card-arrow {
  font-size: 18px;
  color: var(--green);
  opacity: 0.5;
  transition: var(--transition);
}

.province-card:hover .province-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ---------- 3.5 HIGHLIGHTS ---------- */
.area-highlights {
  padding: 48px 0 64px;
  background: var(--bg-card);
}

.highlight-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  border: 1px solid var(--line);
  transition: var(--transition);
}

.highlight-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
  transform: translateY(-2px);
}

.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--green-darker);
  font-weight: 700;
}

.highlight-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- 3.6 CTA ---------- */
.area-cta {
  padding: 48px 0 72px;
}

.area-cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.area-cta-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0,90,48,0.3);
}

.area-cta-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.area-cta-box p {
  margin: 0 0 24px;
  opacity: 0.9;
  font-size: 15px;
}

.area-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-darker);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
}

.area-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   SECTION 4: DETAIL PAGE (area/detail.php)
   ========================================================= */

.ntg-area-detail {
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.7;
}

/* ---------- 4.1 HERO with Background Image ---------- */
.detail-hero {
  position: relative;
  padding: 60px 20px 40px;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

@media (min-width: 768px) {
  .detail-hero {
    padding: 80px 20px 50px;
    min-height: 320px;
  }
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,58,36,0.65) 0%, rgba(0,90,48,0.55) 50%, rgba(0,112,60,0.50) 100%);
  z-index: 0;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.detail-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.detail-badge-icon {
  font-size: 13px;
  line-height: 1;
}

.detail-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 2px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.detail-title-en {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 4px;
}

.detail-subtitle-en {
  font-size: 16px;
  opacity: 0.92;
  margin: 0 0 2px;
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* ---------- 4.2 STATS DASHBOARD ---------- */
.detail-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  font-size: 11px;
}

.stat-pill:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-icon {
  font-size: 12px;
  line-height: 1;
}

.stat-value {
  font-weight: 700;
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
}

.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 4.3 HERO 404 ---------- */
.detail-hero-404 {
  min-height: 300px;
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%) !important;
  background-image: none !important;
}

.detail-error-msg {
  font-size: 14px;
  opacity: 0.8;
  margin: 8px 0 20px;
  background: rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

/* =========================================================
   SECTION: BREADCRUMB
   ========================================================= */
.area-breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.area-breadcrumb-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .area-breadcrumb-container {
    padding: 0 30px;
  }
}
@media (min-width: 1200px) {
  .area-breadcrumb-container {
    padding: 0 40px;
  }
}
.area-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .area-breadcrumb-list {
    justify-content: flex-start;
    font-size: 12px;
  }
}
.area-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
}
.area-breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--line);
  font-size: 16px;
  font-weight: 300;
}
@media (min-width: 768px) {
  .area-breadcrumb-item:not(:last-child)::after {
    margin: 0 10px;
  }
}
.area-breadcrumb-item a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.area-breadcrumb-item a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
.area-breadcrumb-item.is-current {
  color: var(--text);
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .area-breadcrumb-item.is-current {
    max-width: 250px;
  }
}
@media (min-width: 992px) {
  .area-breadcrumb-item.is-current {
    max-width: 350px;
  }
}
/* ---------- 4.5 MAIN LAYOUT ---------- */
.detail-main {
  padding: 24px 0 48px;
  background: var(--bg-light);
}

.detail-main .detail-container {
  max-width: 100%;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .detail-main .detail-container {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) {
  .detail-main .detail-container {
    padding: 0 40px;
  }
}

/* ---------- 4.6 SINGLE BODY ---------- */
.detail-single-body {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1200px) {
  .detail-single-body {
    max-width: 1400px;
  }
}

/* ---------- 4.7 CONTENT LAYOUT (Carousel + Description) ---------- */
.content-detail-body {
  padding: 0 !important;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 4.8 CAROUSEL ---------- */
.content-carousel-wrapper {
  background: var(--bg-light);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--white);
}

/* Carousel Thumbnails */
.carousel-thumbnails {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0,0,0,0.05);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 2px;
}

.carousel-thumbnail {
  flex: 0 0 50px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .carousel-thumbnail {
    flex: 0 0 60px;
    height: 45px;
  }
}

.carousel-thumbnail:hover {
  opacity: 0.8;
}

.carousel-thumbnail.active {
  border-color: var(--green);
  opacity: 1;
}

.carousel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 4.9 CONTENT DESCRIPTION ---------- */
.content-description-wrapper {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 450px;
}

@media (min-width: 768px) {
  .content-description-wrapper {
    padding: 20px 18px;
    max-height: 520px;
  }
}

.content-description-wrapper .content-summary {
  font-size: 14px;
  line-height: 1.8;
  color: #2d3748;
  padding: 12px 14px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
  margin: 0;
}

@media (min-width: 768px) {
  .content-description-wrapper .content-summary {
    font-size: 15px;
    padding: 14px 18px;
  }
}

.content-description-wrapper .content-body {
  font-size: 14px;
  line-height: 1.8;
  color: #2d3748;
}

@media (min-width: 768px) {
  .content-description-wrapper .content-body {
    font-size: 15px;
  }
}

.content-description-wrapper .content-body p:last-child {
  margin-bottom: 0;
}

.content-description-wrapper .content-body h2 {
  font-size: 18px;
  margin: 16px 0 10px;
  color: var(--green-darker);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

@media (min-width: 768px) {
  .content-description-wrapper .content-body h2 {
    font-size: 20px;
  }
}

.content-description-wrapper .content-body h3 {
  font-size: 16px;
  margin: 14px 0 8px;
  color: var(--green-darker);
}

@media (min-width: 768px) {
  .content-description-wrapper .content-body h3 {
    font-size: 18px;
  }
}

/* ---------- 4.10 EXTRA INFO ---------- */
.content-extra-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (min-width: 480px) {
  .content-extra-info {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.extra-info-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

@media (min-width: 768px) {
  .extra-info-item {
    font-size: 13px;
    padding: 5px 10px;
    gap: 5px;
  }
}

.extra-info-icon {
  font-size: 13px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .extra-info-icon {
    font-size: 15px;
  }
}

.extra-info-label {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 11px;
}

@media (min-width: 768px) {
  .extra-info-label {
    font-size: 12px;
  }
}

.extra-info-value {
  color: var(--green-darker);
  font-weight: 600;
  font-size: 12px;
}

@media (min-width: 768px) {
  .extra-info-value {
    font-size: 13px;
  }
}

/* ---------- 4.11 DETAIL BODY (fallback) ---------- */
.detail-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .detail-body {
    padding: 24px 20px;
  }
}

.detail-body:hover {
  box-shadow: var(--shadow-md);
}

.detail-body h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--green-darker);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-weight: 700;
}

@media (min-width: 768px) {
  .detail-body h2 {
    font-size: 20px;
    margin: 0 0 14px;
    padding-bottom: 10px;
  }
}

.detail-heading-en {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-soft);
}

.detail-body p {
  margin: 0 0 10px;
  color: #2d3748;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .detail-body p {
    font-size: 15px;
    margin: 0 0 12px;
  }
}

/* ---------- 4.12 CHILD LOCATIONS ---------- */
.detail-children {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .detail-children {
    padding: 20px 18px;
  }
}

.detail-children:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-darker);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 18px;
    margin: 0 0 12px;
    padding-bottom: 8px;
  }
}

.children-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

@media (min-width: 768px) {
  .children-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
}

.child-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  overflow: hidden;
}

.child-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (min-width: 768px) {
  .child-card {
    padding: 11px 12px;
    gap: 6px;
  }
}

.child-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--green);
  background: var(--bg-card);
}

.child-card:hover::before {
  opacity: 1;
}

.child-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.child-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--green-darker);
  line-height: 1.3;
  min-width: 0;
}

@media (min-width: 768px) {
  .child-name {
    font-size: 13px;
  }
}

.child-name-en {
  display: block;
  font-weight: 500;
  font-size: 0.8em;
  color: var(--text-soft);
  margin-top: 1px;
}

.child-count-pill {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .child-count-pill {
    font-size: 10px;
  }
}

.child-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
}

.child-meta {
  font-size: 10px;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .child-meta {
    font-size: 11px;
  }
}

/* =========================================================
   SECTION: SEARCH - COMPLETELY REDESIGNED
   ========================================================= */

.detail-search-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.detail-search-section:hover {
  box-shadow: var(--shadow-md);
}

/* Search Container */
.search-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

@media (max-width: 580px) {
  .search-box {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Search Field Wrapper */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 180px;
  background: var(--bg-light);
  border: 2px solid var(--line);
  border-radius: 50px;
  transition: var(--transition);
  overflow: hidden;
}

@media (min-width: 768px) {
  .search-field {
    min-width: 280px;
  }
}

.search-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,112,60,0.1);
}

/* Search Input */
.search-query-input {
  flex: 1;
  padding: 8px 16px 8px 22px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  height: 42px;
  min-width: 100px;
  width: 100%;
}

@media (min-width: 768px) {
  .search-query-input {
    padding: 10px 20px 10px 28px;
    font-size: 15px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .search-query-input {
    padding: 6px 12px 6px 18px;
    font-size: 13px;
    height: 36px;
  }
}

.search-query-input::placeholder {
  color: var(--text-light);
  font-size: 13px;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .search-query-input::placeholder {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .search-query-input::placeholder {
    font-size: 12px;
  }
}

/* Search Action Button */
.search-action-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  height: 42px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  justify-content: center;
  margin-right: 4px;
}

@media (min-width: 768px) {
  .search-action-button {
    padding: 10px 28px;
    font-size: 14px;
    height: 48px;
    min-width: 100px;
    margin-right: 4px;
  }
}

@media (max-width: 480px) {
  .search-action-button {
    padding: 6px 14px;
    font-size: 12px;
    height: 36px;
    min-width: 60px;
    gap: 4px;
    margin-right: 3px;
  }
}

.search-action-button:hover {
  background: var(--green-dark);
  transform: scale(1.02);
}

.search-action-button:active {
  transform: scale(0.98);
}

.search-action-button .search-action-icon {
  font-size: 14px;
  line-height: 1;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .search-action-button .search-action-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .search-action-button .search-action-icon {
    font-size: 12px;
  }
}

.search-action-button .search-action-label {
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .search-action-button .search-action-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .search-action-button .search-action-label {
    font-size: 11px;
  }
}

/* Active/Clear State */
.search-action-button.has-text {
  background: #6c7a8a;
}

.search-action-button.has-text:hover {
  background: #e74c3c;
  transform: scale(1.02);
}

/* Hide label on very small screens */
@media (max-width: 400px) {
  .search-action-button .search-action-label {
    display: none;
  }
  
  .search-action-button {
    padding: 6px 12px;
    min-width: 40px;
  }
  
  .search-action-button .search-action-icon {
    font-size: 16px;
  }
}

/* Search Result Count */
.search-result-count {
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  min-width: 90px;
  flex-shrink: 0;
  display: none;
  font-weight: 500;
  padding: 4px 8px;
}

@media (min-width: 768px) {
  .search-result-count {
    font-size: 14px;
    min-width: 110px;
  }
}

@media (max-width: 580px) {
  .search-result-count {
    width: 100%;
    text-align: center;
    min-width: unset;
    font-size: 12px;
  }
}

.search-result-count.has-results {
  display: block;
  animation: fadeInResult 0.3s ease;
}

@keyframes fadeInResult {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- 4.14 RELATED CONTENT — "Things to do" (OTA style) ---------- */
.detail-related {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
  .detail-related {
    padding: 24px 22px;
  }
}

.detail-related:hover {
  box-shadow: var(--shadow-md);
}

.related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 6px;
}

.related-heading .section-title {
  margin: 0;
  border: none;
  padding: 0;
}

.related-heading-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .related-heading-count {
    font-size: 12px;
  }
}

/* Category filter tabs — Lake / Place / Attraction / ... */
.type-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 16px;
  margin-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.type-tabs::-webkit-scrollbar {
  height: 4px;
}

.type-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-light);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.type-tab-icon {
  font-size: 13px;
  line-height: 1;
}

.type-tab-count {
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  background: rgba(0,0,0,0.06);
  padding: 1px 7px;
  border-radius: 999px;
}

.type-tab:hover {
  border-color: var(--green);
  color: var(--green-darker);
  background: var(--white);
}

.type-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,112,60,0.25);
}

.type-tab.active .type-tab-count {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

@media (min-width: 768px) {
  .type-tab {
    padding: 9px 18px;
    font-size: 13.5px;
  }
}

/* Card grid — single column on small/medium screens, 4 columns on large screens */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

/* Professional OTA-style card: image fixed on the left, content on the
   right — this row layout is intentionally identical at every screen
   size. Cards are comfortably sized on the single-column small-screen
   layout, then scale down to fit the compact 4-column desktop grid. */
.related-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  min-height: 128px;
  box-shadow: 0 1px 3px rgba(8,58,36,0.04);
}

@media (min-width: 900px) {
  .related-card {
    border-radius: var(--radius-sm);
    min-height: 100px;
  }
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.related-card-image {
  position: relative;
  flex: 0 0 36%;
  max-width: 160px;
  overflow: hidden;
  background: var(--line);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .related-card-image {
    flex: 0 0 40%;
    max-width: 120px;
  }
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.06);
}

.related-card-type {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(8,58,36,0.82);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .related-card-type {
    top: 6px;
    left: 6px;
    font-size: 8.5px;
    padding: 3px 7px;
  }
}

.related-card-type-icon {
  font-size: 10px;
  line-height: 1;
}

@media (min-width: 900px) {
  .related-card-type-icon {
    font-size: 9px;
  }
}

.related-card-featured {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  background: var(--gold);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .related-card-featured {
    bottom: 6px;
    left: 6px;
    font-size: 8.5px;
    padding: 3px 7px;
  }
}

.related-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .related-card-body {
    padding: 8px 9px;
  }
}

.related-card-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-darker);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-name-en {
  display: block;
  font-weight: 500;
  font-size: 0.82em;
  color: var(--text-soft);
}

@media (min-width: 900px) {
  .related-card-body h4 {
    font-size: 12px;
    margin: 0 0 3px;
    line-height: 1.35;
  }
}

.related-sub {
  margin: 0 0 4px;
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .related-sub {
    font-size: 10px;
    margin: 0 0 3px;
  }
}

.related-summary {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .related-summary {
    font-size: 10px;
    margin: 0 0 5px;
    line-height: 1.45;
  }
}

.related-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

@media (min-width: 900px) {
  .related-cta {
    gap: 3px;
    font-size: 10.5px;
  }
}

.related-cta span {
  transition: transform 0.25s ease;
}

.related-card:hover .related-cta span {
  transform: translateX(3px);
}

.related-card.is-hidden {
  display: none !important;
}

.related-empty-state {
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  padding: 32px 16px;
  margin: 0;
}

/* Numbered pagination (10 items per page, in-place — no page reload) */
.related-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.related-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.related-page-btn:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green-darker);
  background: var(--green-light);
}

.related-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.related-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.related-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.related-page-num:hover {
  background: var(--bg-light);
  color: var(--green-darker);
}

.related-page-num.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,112,60,0.25);
}

.related-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 34px;
  color: var(--text-light);
  font-size: 13px;
  user-select: none;
}

.related-page-showall {
  min-width: auto;
  width: auto;
  padding: 0 14px;
  margin-left: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.related-page-showall.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

@media (min-width: 768px) {
  .related-pagination {
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .related-page-btn,
  .related-page-num {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .related-page-showall {
    min-width: auto;
    width: auto;
    margin-left: 10px;
    padding: 0 18px;
    font-size: 13px;
  }
}

/* ---------- 4.16 QUICK LINKS ---------- */
.detail-quicklinks {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .detail-quicklinks {
    padding: 20px 18px;
  }
}

.detail-quicklinks:hover {
  box-shadow: var(--shadow-md);
}

.quicklinks-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-darker);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

@media (min-width: 768px) {
  .quicklinks-title {
    font-size: 16px;
    margin: 0 0 12px;
    padding-bottom: 8px;
  }
}

.quicklinks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

@media (min-width: 768px) {
  .quicklinks-list {
    gap: 8px 16px;
  }
}

.quicklinks-list li {
  font-size: 13px;
}

@media (min-width: 768px) {
  .quicklinks-list li {
    font-size: 14px;
  }
}

.quicklinks-list a {
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  padding: 2px 0;
}

@media (min-width: 768px) {
  .quicklinks-list a {
    gap: 6px;
  }
}

.quicklinks-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ---------- 4.17 CTA ---------- */
.detail-cta {
  padding: 32px 0 40px;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .detail-cta {
    padding: 36px 0 48px;
  }
}

.detail-cta-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .detail-cta-box {
    padding: 36px 24px;
  }
}

.detail-cta-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0,90,48,0.3);
}

.detail-cta-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .detail-cta-box h2 {
    font-size: 22px;
    margin: 0 0 10px;
  }
}

.detail-cta-box p {
  margin: 0 0 16px;
  opacity: 0.9;
  font-size: 14px;
}

@media (min-width: 768px) {
  .detail-cta-box p {
    font-size: 15px;
    margin: 0 0 20px;
  }
}

.detail-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-darker);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-size: 14px;
}

@media (min-width: 768px) {
  .detail-btn {
    padding: 10px 28px;
    font-size: 15px;
  }
}

.detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #f7fafc;
}

/* =========================================================
   SECTION 5: RESPONSIVE DESIGN
   ========================================================= */

/* ---------- 5.1 TABLET ---------- */
@media (max-width: 991px) {
  .detail-stats-grid {
    gap: 5px;
  }
  
  .stat-pill {
    padding: 3px 10px;
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 11px;
  }
  
  .stat-label {
    font-size: 8px;
  }
  
  .detail-main {
    padding: 20px 0 36px;
  }
  
  .detail-single-body {
    gap: 20px;
  }
}

/* ---------- 5.2 MOBILE ---------- */
@media (max-width: 767px) {
  .area-hero {
    padding: 48px 16px 40px;
  }
  
  .area-intro {
    padding: 40px 0 24px;
  }
  
  .area-provinces {
    padding: 12px 0 40px;
  }
  
  .area-highlights {
    padding: 32px 0 40px;
  }
  
  .area-cta {
    padding: 32px 0 48px;
  }
  
  .detail-hero {
    padding: 48px 16px 32px;
    min-height: 220px;
  }
  
  .detail-title {
    font-size: 22px;
  }
  
  .detail-subtitle-en {
    font-size: 14px;
  }
  
  .detail-stats-grid {
    gap: 4px;
    margin-top: 6px;
  }
  
  .stat-pill {
    padding: 3px 8px;
    font-size: 9px;
    gap: 3px;
  }
  
  .stat-icon {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 10px;
  }
  
  .stat-label {
    font-size: 7px;
  }
  
  .detail-main {
    padding: 16px 0 28px;
  }
  
  .detail-single-body {
    gap: 16px;
  }
  
  .detail-main .detail-container {
    padding: 0 12px;
  }
  
  .quicklinks-list {
    flex-direction: column;
    gap: 4px;
  }
  
  .detail-breadcrumb {
    padding: 8px 0;
  }
  
  .detail-breadcrumb-list {
    font-size: 12px;
    justify-content: center;
  }
  
  .detail-breadcrumb-item:not(:last-child)::after {
    margin: 0 7px;
  }
  
  .detail-breadcrumb-item.is-current {
    max-width: 140px;
  }
  
  .children-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 6px;
  }
  
  .child-card {
    padding: 8px 9px;
  }
  
  .child-name {
    font-size: 11px;
  }
  
  .child-meta {
    font-size: 9px;
  }
  
  .child-count-pill {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .related-empty-state {
    font-size: 12.5px;
    padding: 24px 12px;
  }

  .type-tabs {
    padding: 12px 2px 14px;
    gap: 6px;
  }

  .type-tab {
    padding: 7px 13px;
    font-size: 12px;
  }
  
  .carousel-thumbnail {
    flex: 0 0 40px;
    height: 32px;
  }
  
  .content-description-wrapper {
    max-height: 350px;
    padding: 12px 10px;
  }
  
  .content-extra-info {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  
  .extra-info-item {
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* ---------- 5.3 SMALL MOBILE ---------- */
@media (max-width: 479px) {
  .area-hero-title {
    font-size: 24px;
  }
  
  .area-hero-lead {
    font-size: 14px;
  }
  
  .detail-hero {
    padding: 40px 12px 24px;
    min-height: 180px;
  }
  
  .detail-title {
    font-size: 20px;
  }
  
  .detail-subtitle-en {
    font-size: 13px;
  }
  
  .detail-badge {
    font-size: 10px;
    padding: 2px 12px;
  }
  
  .stat-pill {
    padding: 2px 6px;
    font-size: 8px;
    gap: 2px;
  }
  
  .stat-icon {
    font-size: 9px;
  }
  
  .stat-value {
    font-size: 9px;
  }
  
  .stat-label {
    font-size: 6px;
  }
  
  .detail-main .detail-container {
    padding: 0 8px;
  }
  
  .children-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .child-card {
    padding: 7px 8px;
  }
  
  .child-name {
    font-size: 10px;
  }
  
  .child-meta {
    font-size: 8px;
  }
  
  .child-count-pill {
    font-size: 8.5px;
    padding: 1px 5px;
  }
  
  .content-extra-info {
    grid-template-columns: 1fr 1fr;
  }
  
  .extra-info-item {
    font-size: 10px;
    padding: 2px 4px;
    gap: 2px;
  }
  
  .extra-info-icon {
    font-size: 11px;
  }
  
  .extra-info-label {
    font-size: 9px;
  }
  
  .extra-info-value {
    font-size: 10px;
  }
  
  .carousel-thumbnail {
    flex: 0 0 32px;
    height: 26px;
  }
  
  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .content-description-wrapper {
    max-height: 300px;
    padding: 10px 8px;
  }
  
  .quicklinks-list li {
    font-size: 12px;
  }
}

/* =========================================================
   SECTION 6: ANIMATIONS
   ========================================================= */
.detail-body,
.detail-children,
.detail-search-section,
.detail-related,
.detail-quicklinks,
.related-card,
.child-card,
.content-detail-body {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.content-detail-body { animation-delay: 0.05s; }
.detail-body { animation-delay: 0.05s; }
.detail-children { animation-delay: 0.10s; }
.detail-search-section { animation-delay: 0.12s; }
.detail-related { animation-delay: 0.15s; }
.detail-quicklinks { animation-delay: 0.18s; }

.related-card:nth-child(1) { animation-delay: 0.10s; }
.related-card:nth-child(2) { animation-delay: 0.14s; }
.related-card:nth-child(3) { animation-delay: 0.18s; }
.related-card:nth-child(4) { animation-delay: 0.22s; }
.related-card:nth-child(5) { animation-delay: 0.26s; }
.related-card:nth-child(6) { animation-delay: 0.30s; }
.related-card:nth-child(7) { animation-delay: 0.34s; }
.related-card:nth-child(8) { animation-delay: 0.38s; }
.related-card:nth-child(9) { animation-delay: 0.42s; }

.child-card:nth-child(1) { animation-delay: 0.08s; }
.child-card:nth-child(2) { animation-delay: 0.11s; }
.child-card:nth-child(3) { animation-delay: 0.14s; }
.child-card:nth-child(4) { animation-delay: 0.17s; }
.child-card:nth-child(5) { animation-delay: 0.20s; }
.child-card:nth-child(6) { animation-delay: 0.23s; }
.child-card:nth-child(7) { animation-delay: 0.26s; }
.child-card:nth-child(8) { animation-delay: 0.29s; }
.child-card:nth-child(9) { animation-delay: 0.32s; }
.child-card:nth-child(10) { animation-delay: 0.35s; }
.child-card:nth-child(11) { animation-delay: 0.38s; }
.child-card:nth-child(12) { animation-delay: 0.41s; }

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

/* =========================================================
   SECTION 7: SCROLLBAR & SELECTION
   ========================================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-dark);
}

::selection {
  background: var(--green);
  color: var(--white);
}