/* ============================================
   ChillParcel - Modern Pure CSS Design System
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - will be overridden per operator */
  --primary: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  --secondary: #2c3e50;
  --accent: #e74c3c;

  /* Neutral Colors */
  --text: #2c3e50;
  --text-light: #666;
  --text-muted: #999;
  --border: #e0e0e0;
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-sans: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Container */
  --container-max: 1200px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

ul, ol {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

main {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  background-color: var(--header-bg, var(--primary));
  color: var(--header-color, white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--header-color, white);
}

.nav-brand:hover {
  color: var(--header-color, white);
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--header-color, white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-link {
  color: var(--header-color, white);
  opacity: 0.9;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--header-color, white);
  opacity: 1;
  background-color: color-mix(in srgb, var(--header-color, white) 15%, transparent);
}


/* Mobile navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg, var(--primary));
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-xs);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--header-bg, var(--primary)) 0%, var(--primary-dark) 100%);
  color: var(--header-color, white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-4xl);
  color: var(--header-color, white);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* ============================================
   Search/Tracking Form
   ============================================ */

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: var(--space-sm);
}

.search-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-lg);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: var(--space-md) var(--space-xl);
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-btn:hover {
  background: #1a252f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .search-form {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

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

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

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn.action-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.action-btn.action-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.action-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .quick-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Search Box & Autocomplete
   ============================================ */

.search-box {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 600px;
}

.autocomplete-wrapper {
  flex: 1;
  position: relative;
}

.autocomplete-wrapper .search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-fast);
}

.autocomplete-wrapper .search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  z-index: 100;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: var(--bg);
}

.autocomplete-item.selected {
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.autocomplete-name {
  flex: 1;
}

.autocomplete-name mark {
  background: color-mix(in srgb, var(--primary) 30%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.autocomplete-type {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--bg);
  border-radius: var(--radius-full);
}

.autocomplete-empty {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .search-box {
    flex-direction: column;
  }
}

.location-search-wrapper {
  margin-top: var(--space-xl);
  text-align: center;
}

.search-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.search-box-centered {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Quick Links Grid
   ============================================ */

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  color: var(--text);
}

.quick-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--primary);
}

.quick-link-icon {
  font-size: 32px;
}

.quick-link-label {
  font-weight: 600;
  font-size: var(--font-size-base);
}

@media (max-width: 640px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* ============================================
   Section
   ============================================ */

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-light);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #1a252f;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* ============================================
   Posts List
   ============================================ */

.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-item {
  display: block;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  color: inherit;
}

.post-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-item-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--secondary);
  transition: color var(--transition-fast);
}

.post-item:hover .post-item-title {
  color: var(--primary);
}

.post-item-text {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ============================================
   Region Sections (Branch Page)
   ============================================ */

.region-section {
  padding: var(--space-lg) 0;
}

.region-section:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.region-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
}

.region-icon {
  font-size: 24px;
}

.region-count {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-muted);
}

/* ============================================
   Branch Table
   ============================================ */

.branch-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.branch-table th,
.branch-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.branch-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--secondary);
  width: 140px;
}

.branch-table tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Tags
   ============================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--bg);
  color: var(--text-light);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   Contact Banner
   ============================================ */

.contact-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-banner-title {
  font-size: var(--font-size-xl);
  color: white;
  margin-bottom: var(--space-md);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.9);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Utilities
   ============================================ */

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

/* ============================================
   Breadcrumb
   ============================================ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumb-item::after {
  content: '/';
  color: var(--border);
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-link {
  color: var(--text-light);
}

.breadcrumb-link:hover {
  color: var(--primary);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 var(--space-sm);
}

/* Nearest CTA Box */
.nearest-cta {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, white), color-mix(in srgb, var(--primary) 5%, white));
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.nearest-cta p {
  margin-bottom: var(--space-md);
  color: var(--text);
}

/* Province Stats */
.province-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

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

.province-stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.province-stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* ============================================
   Nearest Branch Page
   ============================================ */

.nearest-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.nearest-subtitle {
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

.nearest-action {
  margin-top: var(--space-xl);
}

.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xl);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.btn-gps:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.btn-gps:active {
  transform: translateY(-2px);
}

.btn-gps svg {
  flex-shrink: 0;
}

.gps-hint {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.step-item {
  text-align: center;
  padding: var(--space-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.step-item h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

.step-item p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Nearest Stats */
.nearest-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius-lg);
}

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

.nearest-stat-number {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.nearest-stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--font-size-xl);
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-light);
  line-height: 1.7;
}

/* Related Links */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.related-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.related-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-link svg {
  flex-shrink: 0;
  color: var(--primary);
}

@media (max-width: 640px) {
  .btn-gps {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
  }

  .nearest-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* ============================================
   Interactive Map with Sidebar
   ============================================ */

.map-section {
  margin-bottom: var(--space-xl);
}

.map-wrapper {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--bg-white);
}

/* Map Sidebar */
.map-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.map-sidebar-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-count {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-search {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  background: var(--bg-white);
  width: 100%;
}

.sidebar-search:focus {
  outline: none;
  border-color: var(--primary);
}

.map-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.map-item {
  padding: var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.map-item:hover {
  background: var(--bg-white);
}

.map-item.active {
  background: var(--primary);
  color: white;
}

.map-item.active .map-item-meta {
  color: rgba(255,255,255,0.8);
}

.map-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-item-name {
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.map-item-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Map Main Area */
.map-main {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
}

.map-selected-info {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg);
  border-top: 1px solid var(--border);
  gap: var(--space-md);
}

.map-selected-info.show {
  display: flex;
}

.selected-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selected-name {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.selected-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.selected-nav {
  display: flex;
  gap: var(--space-sm);
}

.nav-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

/* Map Responsive */
@media (max-width: 768px) {
  .map-wrapper {
    flex-direction: column;
    height: auto;
  }

  .map-sidebar {
    width: 100%;
    max-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .map-main {
    height: 280px;
  }

  .map-selected-info {
    flex-direction: column;
    text-align: center;
  }

  .selected-nav {
    justify-content: center;
  }
}

/* Tracking Widget Section */
.tracking-widget-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--border);
}

.tracking-widget-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.tracking-widget-form .search-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.tracking-widget-form .search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.tracking-widget-form .btn {
  white-space: nowrap;
  padding: var(--space-md) var(--space-xl);
}

@media (max-width: 480px) {
  .tracking-widget-form {
    flex-direction: column;
  }

  .tracking-widget-form .btn {
    width: 100%;
  }
}
