/* =================================================================
   Tazkarty V2 — Premium Design System CSS
   Bootstrap 5.3 companion · All 26 sections · 2000+ lines
   Google Fonts: Montserrat (EN) + Cairo (AR)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Cairo:wght@400;600;700;900&display=swap');

/* ================================================================
   SECTION 1 — CSS Custom Properties
   ================================================================ */
:root {
  /* Brand Colors */
  --tk-navy:        #0B1437;
  --tk-navy-dark:   #070D25;
  --tk-blue:        #1A5FFF;
  --tk-blue-dark:   #0D47D9;
  --tk-blue-light:  #EEF3FF;
  --tk-gold:        #C4922A;
  --tk-gold-light:  #FFF8ED;

  /* Status Colors */
  --tk-success:     #00C48C;
  --tk-warning:     #FF9F1C;
  --tk-danger:      #FF4D6D;

  /* Gray Scale */
  --tk-gray-50:     #F4F7FC;
  --tk-gray-100:    #EDF0F8;
  --tk-gray-200:    #DDE3F0;
  --tk-gray-400:    #9AA3B8;
  --tk-gray-500:    #637087;
  --tk-gray-700:    #3D4A66;
  --tk-gray-900:    #1A2340;

  /* Surface & Text */
  --tk-bg:          #F4F7FC;
  --tk-surface:     #FFFFFF;
  --tk-surface-2:   #F9FAFB;
  --tk-text:        #0B1437;
  --tk-text-2:      #1A2340;
  --tk-text-3:      #637087;
  --tk-text-4:      #9AA3B8;
  --tk-text-inv:    #FFFFFF;
  --tk-border:      rgba(0,0,0,0.07);
  --tk-border-2:    rgba(0,0,0,0.12);

  /* Glass */
  --tk-glass:       rgba(255,255,255,0.72);
  --tk-glass-border:rgba(255,255,255,0.40);
  --tk-glass-dark:  rgba(11,20,55,0.82);

  /* Focus */
  --tk-focus-ring:  rgba(26,95,255,0.22);

  /* Shadows */
  --tk-s1: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --tk-s2: 0 8px 24px rgba(0,0,0,0.09), 0 3px 8px rgba(0,0,0,0.05);
  --tk-s3: 0 16px 40px rgba(0,0,0,0.11), 0 6px 16px rgba(0,0,0,0.06);
  --tk-s4: 0 28px 60px rgba(0,0,0,0.13), 0 12px 24px rgba(0,0,0,0.07);
  --tk-s5: 0 40px 80px rgba(0,0,0,0.18), 0 20px 40px rgba(0,0,0,0.10);
  --tk-s-glow:      0 0 0 4px rgba(26,95,255,0.22);
  --tk-s-gold:      0 0 0 4px rgba(196,146,42,0.18);
  --tk-s-blue:      0 16px 48px rgba(26,95,255,0.28);

  /* Border Radius */
  --tk-r-xs:   4px;
  --tk-r-sm:   8px;
  --tk-r-md:   12px;
  --tk-r-lg:   18px;
  --tk-r-xl:   24px;
  --tk-r-2xl:  36px;
  --tk-r-pill: 9999px;

  /* Z-Index */
  --tk-z-dropdown:  1000;
  --tk-z-sticky:    1020;
  --tk-z-fixed:     1030;
  --tk-z-modal:     1050;
  --tk-z-overlay:   1060;
  --tk-z-toast:     1070;
  --tk-z-loading:   9999;

  /* Transitions */
  --tk-spring:  cubic-bezier(0.175,0.885,0.32,1.275);
  --tk-ease:    cubic-bezier(0.16,1,0.3,1);
  --tk-eout:    cubic-bezier(0,0,0.2,1);
  --tk-ein:     cubic-bezier(0.4,0,1,1);
  --tk-fast:    140ms;
  --tk-base:    260ms;
  --tk-slow:    420ms;
  --tk-x:       600ms;

  /* Extended Blue & Gold Palette — used in booking flow pages */
  --tk-blue-pale:  #EEF3FF;
  --tk-blue-2:     #0D47D9;
  --tk-gold-2:     #EDBB4A;

  /* Gradients */
  --tk-grad-brand: linear-gradient(135deg, #0B1437 0%, #0D47D9 100%);
  --tk-grad-blue:  linear-gradient(135deg, #1A5FFF 0%, #0D47D9 100%);
  --tk-grad-gold:  linear-gradient(135deg, #B8831E 0%, #EDBB4A 50%, #B8831E 100%);
  --tk-grad-card:  linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.72) 100%);
  --tk-grad-glass: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.06) 100%);
  --tk-grad-hero:  linear-gradient(160deg, rgba(7,13,37,0.88) 0%, rgba(11,20,55,0.60) 60%, transparent 100%);

  /* Typography */
  --tk-font-en: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --tk-font-ar: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --tk-font:    var(--tk-font-en);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --tk-bg:        #060C1E;
  --tk-surface:   #0E1535;
  --tk-surface-2: #111B3D;
  --tk-text:      #E8ECF8;
  --tk-text-2:    #C4CCE4;
  --tk-text-3:    #8A95B8;
  --tk-text-4:    #5A657E;
  --tk-border:    rgba(255,255,255,0.07);
  --tk-border-2:  rgba(255,255,255,0.12);
  --tk-gray-50:   #0E1535;
  --tk-gray-100:  #111B3D;
  --tk-gray-200:  #1A2455;
  --tk-blue-light:#0B1437;
  --tk-gold-light:#1A1206;
  --tk-s1: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.18);
  --tk-s2: 0 8px 24px rgba(0,0,0,0.30), 0 3px 8px rgba(0,0,0,0.20);
  --tk-s3: 0 16px 40px rgba(0,0,0,0.35), 0 6px 16px rgba(0,0,0,0.22);
  --tk-s4: 0 28px 60px rgba(0,0,0,0.40), 0 12px 24px rgba(0,0,0,0.25);
}

/* Arabic font application */
[lang="ar"],
[dir="rtl"] {
  --tk-font: var(--tk-font-ar);
}

/* ================================================================
   SECTION 2 — Base Reset
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--tk-font);
  background-color: var(--tk-bg);
  color: var(--tk-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[lang="ar"] body,
[dir="rtl"] body {
  font-family: var(--tk-font-ar);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--tk-fast) var(--tk-eout);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--tk-navy); }
::-webkit-scrollbar-thumb { background: var(--tk-blue); border-radius: var(--tk-r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--tk-blue-dark); }

/* Selection */
::selection { background: var(--tk-blue); color: #fff; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--tk-blue);
  outline-offset: 2px;
  border-radius: var(--tk-r-xs);
}

/* ================================================================
   SECTION 3 — Typography Scale
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tk-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tk-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800; }
h5 { font-size: 1.15rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }

p { color: var(--tk-text-3); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.tk-display-1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.tk-display-2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tk-subtitle {
  font-size: 1.2rem;
  color: var(--tk-text-3);
  line-height: 1.7;
  font-weight: 400;
}

.tk-caption {
  font-size: 0.875rem;
  color: var(--tk-text-4);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-lead {
  font-size: 1.2rem;
  color: var(--tk-text-2);
  line-height: 1.7;
}

.tk-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tk-blue);
  background: var(--tk-blue-light);
  padding: 4px 14px;
  border-radius: var(--tk-r-pill);
  margin-bottom: 12px;
}

/* ================================================================
   SECTION 4 — Button System
   ================================================================ */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--tk-r-lg);
  font-family: var(--tk-font);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform var(--tk-fast) var(--tk-spring),
    box-shadow var(--tk-fast) var(--tk-eout),
    background var(--tk-fast) var(--tk-eout),
    color var(--tk-fast) var(--tk-eout),
    border-color var(--tk-fast) var(--tk-eout);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tk-btn:hover  { transform: translateY(-2px); }
.tk-btn:active { transform: translateY(0) scale(0.98); }

/* Primary */
.tk-btn-primary {
  background: var(--tk-grad-blue);
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--tk-s1), 0 4px 18px rgba(26,95,255,0.30);
}
.tk-btn-primary:hover {
  box-shadow: var(--tk-s2), 0 10px 28px rgba(26,95,255,0.40);
  color: #fff !important;
}
.tk-btn-primary:focus-visible { outline-color: var(--tk-blue-dark); }

[data-theme="dark"] .tk-btn-primary {
  box-shadow: var(--tk-s1), 0 4px 18px rgba(26,95,255,0.50);
}

/* Gold */
.tk-btn-gold {
  background: var(--tk-grad-gold);
  color: var(--tk-navy) !important;
  border-color: transparent;
  box-shadow: var(--tk-s1), 0 4px 16px rgba(196,146,42,0.28);
}
.tk-btn-gold:hover {
  box-shadow: var(--tk-s2), 0 8px 24px rgba(196,146,42,0.38);
  color: var(--tk-navy) !important;
}

/* Outline */
.tk-btn-outline {
  background: transparent;
  color: var(--tk-blue);
  border-color: var(--tk-blue);
}
.tk-btn-outline:hover {
  background: var(--tk-blue-light);
  color: var(--tk-blue-dark);
  border-color: var(--tk-blue-dark);
}

[data-theme="dark"] .tk-btn-outline {
  color: #6ea2ff;
  border-color: #6ea2ff;
}
[data-theme="dark"] .tk-btn-outline:hover {
  background: rgba(26,95,255,0.15);
  color: #fff;
}

/* Ghost */
.tk-btn-ghost {
  background: transparent;
  color: var(--tk-text-2);
  border-color: var(--tk-border-2);
}
.tk-btn-ghost:hover {
  border-color: var(--tk-blue);
  color: var(--tk-blue);
  background: var(--tk-blue-light);
}

[data-theme="dark"] .tk-btn-ghost {
  color: var(--tk-text-3);
  border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .tk-btn-ghost:hover {
  border-color: var(--tk-blue);
  color: #fff;
  background: rgba(26,95,255,0.12);
}

/* Icon Button */
.tk-btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--tk-r-md);
  flex-shrink: 0;
}

/* Size Modifiers */
.tk-btn-lg {
  padding: 14px 32px;
  font-size: 13px;
  border-radius: var(--tk-r-xl);
}

.tk-btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--tk-r-md);
}

/* Ripple element (injected by JS) */
.tk-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: tkRipple 0.65s linear;
  pointer-events: none;
}

/* ================================================================
   SECTION 5 — Card System
   ================================================================ */
.tk-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-lg);
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-s2);
  overflow: hidden;
}

.tk-card-body { padding: 24px; }
.tk-card-header { padding: 18px 24px; border-bottom: 1px solid var(--tk-border); }
.tk-card-footer { padding: 14px 24px; border-top: 1px solid var(--tk-border); background: var(--tk-gray-50); }

.tk-card-hover {
  transition:
    transform var(--tk-base) var(--tk-spring),
    box-shadow var(--tk-base) var(--tk-eout);
}
.tk-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--tk-s3);
}

.tk-card-glass {
  background: var(--tk-glass);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid var(--tk-glass-border);
}

[data-theme="dark"] .tk-card {
  background: var(--tk-surface);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .tk-card-glass {
  background: rgba(14,21,53,0.75);
  border-color: rgba(255,255,255,0.08);
}

/* ================================================================
   SECTION 6 — Header
   ================================================================ */
.tk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--tk-z-fixed);
  background: transparent;
  transition:
    background var(--tk-base) var(--tk-eout),
    box-shadow var(--tk-base) var(--tk-eout),
    backdrop-filter var(--tk-base) var(--tk-eout);
}

/* Solid header variant — for booking/payment/confirmation pages (no hero behind) */
.tk-header-solid {
  background: #ffffff !important;
  box-shadow: 0 2px 16px rgba(11,20,55,0.09) !important;
  backdrop-filter: none !important;
  position: sticky !important;
}
.tk-header-solid .tk-brand-name { color: var(--tk-navy) !important; }
.tk-header-solid .tk-nav-link   { color: var(--tk-text-2) !important; }
.tk-header-solid .tk-dark-toggle { color: var(--tk-text-3); background: var(--tk-gray-100); border-color: var(--tk-border-2); }
.tk-header-solid .tk-lang-trigger { color: var(--tk-text-2); border-color: var(--tk-border-2); }
.tk-header-solid .tk-menu-toggle span { background: var(--tk-navy); }

/* ── Bootstrap Navbar variant (.tk-navbar) — used in booking/content pages ── */
.tk-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(11,20,55,0.07);
  box-shadow: 0 2px 16px rgba(11,20,55,0.08);
  padding: 0;
}
.tk-topbar + .tk-navbar { box-shadow: none; border-bottom: 1px solid rgba(11,20,55,0.07); }

.tk-navbar .navbar-brand {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tk-navbar .tk-brand-badge {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #1A5FFF 0%, #0B35CC 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,95,255,0.30);
}
.tk-navbar .tk-brand-name {
  font-family: var(--tk-font); font-weight: 900;
  font-size: 22px; color: var(--tk-navy);
  letter-spacing: -0.04em; line-height: 1;
}
.tk-navbar .nav-link {
  font-family: var(--tk-font); font-size: 13px; font-weight: 600;
  color: var(--tk-text-2);
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--tk-fast), background var(--tk-fast);
}
.tk-navbar .nav-link:hover,
.tk-navbar .nav-link.active { color: var(--tk-blue); background: var(--tk-blue-light); }
.tk-navbar .dropdown-toggle::after { border-top-color: var(--tk-text-4); vertical-align: 0.2em; }

/* Dropdown */
.tk-dd {
  border: 1px solid var(--tk-gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(11,20,55,0.12);
  padding: 6px;
  min-width: 190px;
}
.tk-dd .dropdown-item {
  border-radius: 8px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; color: var(--tk-text-2);
  transition: background var(--tk-fast), color var(--tk-fast);
}
.tk-dd .dropdown-item:hover { background: var(--tk-blue-light); color: var(--tk-blue); }
.tk-dd .dropdown-item.active { background: var(--tk-blue); color: #fff; }

/* Mobile toggler */
.tk-toggler {
  border: 2px solid var(--tk-gray-200); border-radius: 10px;
  padding: 7px 10px; background: transparent; outline: none;
}
.tk-toggler:focus { box-shadow: none; }
.tk-toggler span {
  display: block; width: 22px; height: 2.5px;
  background: var(--tk-navy); border-radius: 2px;
  transition: all 0.2s;
}
.tk-toggler span + span { margin-top: 5px; }

/* Bootstrap navbar btn variants in tk-navbar */
.tk-navbar .tk-btn-ghost {
  font-size: 13px; font-weight: 700;
  color: var(--tk-text-2); background: transparent;
  border: 1.5px solid var(--tk-gray-200); border-radius: 10px;
  padding: 8px 18px; transition: all var(--tk-fast);
}
.tk-navbar .tk-btn-ghost:hover { border-color: var(--tk-blue); color: var(--tk-blue); background: var(--tk-blue-light); }
.tk-navbar .tk-btn-primary {
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark));
  color: #fff; border: none; border-radius: 10px;
  padding: 9px 20px; transition: opacity var(--tk-fast);
}
.tk-navbar .tk-btn-primary:hover { opacity: 0.88; color: #fff; }

.tk-header.scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 20px rgba(11,20,55,0.10);
  border-bottom: 1px solid rgba(11,20,55,0.07);
}

[data-theme="dark"] .tk-header.scrolled {
  background: rgba(7,13,37,0.95);
}

/* Topbar */
.tk-topbar {
  background: var(--tk-navy-dark);
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.tk-topbar a {
  color: rgba(255,255,255,0.7);
  transition: color var(--tk-fast) var(--tk-eout);
}
.tk-topbar a:hover { color: #fff; }

/* Brand */
.tk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.tk-brand-mark {
  width: 40px;
  height: 40px;
  background: var(--tk-grad-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tk-font);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,95,255,0.35);
}

.tk-brand-name {
  font-family: var(--tk-font);
  font-weight: 900;
  font-size: 22px;
  color: var(--tk-navy);
  letter-spacing: -0.04em;
  line-height: 1;
}

.tk-header.scrolled .tk-brand-name { color: var(--tk-navy); }
.tk-header:not(.scrolled) .tk-brand-name { color: #fff; }

[data-theme="dark"] .tk-brand-name { color: #fff; }

/* Nav Links */
.tk-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--tk-r-sm);
  transition: color var(--tk-fast) var(--tk-eout), background var(--tk-fast) var(--tk-eout);
}

.tk-header.scrolled .tk-nav-link { color: var(--tk-text-2); }
[data-theme="dark"] .tk-nav-link { color: rgba(255,255,255,0.75); }

.tk-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--tk-blue);
  border-radius: var(--tk-r-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tk-base) var(--tk-ease);
}

.tk-nav-link:hover,
.tk-nav-link.active {
  color: var(--tk-blue);
  background: var(--tk-blue-light);
}

.tk-header:not(.scrolled) .tk-nav-link:hover,
.tk-header:not(.scrolled) .tk-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.tk-nav-link:hover::after,
.tk-nav-link.active::after { transform: scaleX(1); }

/* Nav Actions */
.tk-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tk-dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--tk-fast), color var(--tk-fast), border-color var(--tk-fast);
  cursor: pointer;
}

.tk-dark-toggle:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.tk-header.scrolled .tk-dark-toggle {
  color: var(--tk-text-3);
  background: var(--tk-gray-100);
  border-color: var(--tk-border-2);
}
.tk-header.scrolled .tk-dark-toggle:hover {
  color: var(--tk-blue);
  background: var(--tk-blue-light);
}

.tk-lang-trigger {
  padding: 6px 14px;
  border-radius: var(--tk-r-pill);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: background var(--tk-fast), color var(--tk-fast), border-color var(--tk-fast);
}

.tk-lang-trigger:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.tk-header.scrolled .tk-lang-trigger {
  color: var(--tk-text-2);
  border-color: var(--tk-border-2);
}
.tk-header.scrolled .tk-lang-trigger:hover {
  background: var(--tk-gray-100);
}

/* Mobile Nav */
.tk-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--tk-z-fixed) + 5);
  background: rgba(7,13,37,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 80px 24px 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--tk-slow) var(--tk-ease);
}

.tk-mobile-nav.open {
  display: flex;
  transform: translateY(0);
}

.tk-mobile-nav .tk-nav-link {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
}

.tk-mobile-nav .tk-nav-link:hover {
  color: #fff;
  background: none;
}

.tk-mobile-nav .tk-nav-link::after { display: none; }

/* Hamburger Toggle */
.tk-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--tk-r-sm);
  transition: background var(--tk-fast);
}

.tk-menu-toggle:hover { background: rgba(255,255,255,0.12); }
.tk-header.scrolled .tk-menu-toggle:hover { background: var(--tk-gray-100); }

.tk-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s var(--tk-ease);
}

.tk-header.scrolled .tk-menu-toggle span { background: var(--tk-navy); }

.tk-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tk-menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tk-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[dir="rtl"] .tk-nav-link::after { transform-origin: right; }

/* ================================================================
   SECTION 7 — Hero Section
   ================================================================ */
.tk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.tk-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--tk-grad-hero);
  z-index: 1;
}

.tk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,55,0.5) 0%, rgba(11,20,55,0.2) 50%, rgba(11,20,55,0.7) 100%);
  z-index: 1;
}

.tk-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.tk-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  margin-bottom: 16px;
}

.tk-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

[lang="ar"] .tk-hero-title,
[dir="rtl"] .tk-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

/* Parallax Background */
.tk-hero[data-parallax] {
  background-attachment: fixed;
}

/* ================================================================
   SECTION 8 — Search Widget
   ================================================================ */
.tk-search-widget {
  background: var(--tk-surface);
  border-radius: var(--tk-r-2xl);
  box-shadow: var(--tk-s4);
  padding: 28px 32px;
  max-width: 980px;
  margin: -80px auto 0;
  position: relative;
  z-index: 10;
  border: 1px solid var(--tk-border);
}

[data-theme="dark"] .tk-search-widget {
  background: var(--tk-surface);
  border-color: rgba(255,255,255,0.08);
}

.tk-search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tk-border);
  flex-wrap: wrap;
}

.tk-search-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--tk-r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-3);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--tk-fast) var(--tk-eout);
  position: relative;
}

.tk-search-tab::after {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--tk-blue);
  border-radius: var(--tk-r-pill);
  transition: transform var(--tk-base) var(--tk-ease);
}

.tk-search-tab:hover { color: var(--tk-blue); background: var(--tk-blue-light); }
.tk-search-tab.active { color: var(--tk-blue); background: var(--tk-blue-light); border-color: rgba(26,95,255,0.25); }
.tk-search-tab.active::after { transform: translateX(-50%) scaleX(1); }

[data-theme="dark"] .tk-search-tab:hover,
[data-theme="dark"] .tk-search-tab.active {
  background: rgba(26,95,255,0.15);
  color: #6ea2ff;
}

.tk-search-panel { display: none; }
.tk-search-panel.active { display: block; }

.tk-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.tk-search-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tk-search-field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--tk-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 4px;
}

.tk-search-field .tk-field-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  color: var(--tk-text-4);
  font-size: 13px;
  pointer-events: none;
  transition: color var(--tk-fast) var(--tk-eout);
}

[dir="rtl"] .tk-search-field .tk-field-icon {
  right: auto;
  left: 14px;
}

.tk-search-input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--tk-border-2);
  border-radius: var(--tk-r-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-text);
  background: var(--tk-surface-2);
  font-family: var(--tk-font);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--tk-fast) var(--tk-eout),
    box-shadow var(--tk-fast) var(--tk-eout),
    background var(--tk-fast) var(--tk-eout);
}

[dir="rtl"] .tk-search-input { padding: 12px 14px 12px 40px; text-align: right; }

.tk-search-input::placeholder { color: var(--tk-text-4); font-weight: 500; }

.tk-search-input:focus {
  outline: none;
  border-color: var(--tk-blue);
  background: var(--tk-surface);
  box-shadow: 0 0 0 3px var(--tk-focus-ring);
}

.tk-search-field:focus-within .tk-field-icon { color: var(--tk-blue); }

[data-theme="dark"] .tk-search-input {
  background: var(--tk-surface-2);
  border-color: rgba(255,255,255,0.12);
  color: var(--tk-text);
}
[data-theme="dark"] .tk-search-input:focus {
  background: var(--tk-surface);
  border-color: var(--tk-blue);
}

.tk-search-submit {
  width: 100%;
  height: 56px;
  background: var(--tk-grad-blue);
  color: #fff;
  border: none;
  border-radius: var(--tk-r-lg);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--tk-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--tk-s1), 0 4px 18px rgba(26,95,255,0.30);
  position: relative;
  overflow: hidden;
  transition: transform var(--tk-fast) var(--tk-spring), box-shadow var(--tk-fast) var(--tk-eout);
}

.tk-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--tk-s2), 0 10px 28px rgba(26,95,255,0.42);
}

/* Datepicker wrap */
.tk-datepicker-wrap { position: relative; }
.tk-datepicker-wrap .flatpickr-input { cursor: pointer; }

/* Autocomplete */
.tk-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border-2);
  border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-s3);
  z-index: var(--tk-z-dropdown);
  max-height: 220px;
  overflow-y: auto;
}

.tk-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-text-2);
  cursor: pointer;
  transition: background var(--tk-fast) var(--tk-eout);
}

.tk-autocomplete-item:hover { background: var(--tk-blue-light); color: var(--tk-blue); }
.tk-autocomplete-item:first-child { border-radius: var(--tk-r-lg) var(--tk-r-lg) 0 0; }
.tk-autocomplete-item:last-child { border-radius: 0 0 var(--tk-r-lg) var(--tk-r-lg); }

/* ================================================================
   SECTION 9 — Section Layouts
   ================================================================ */
.tk-section {
  padding: 80px 0;
}

.tk-section-dark {
  background: var(--tk-navy);
  color: var(--tk-text-inv);
}

.tk-section-dark h1,
.tk-section-dark h2,
.tk-section-dark h3,
.tk-section-dark h4,
.tk-section-dark h5,
.tk-section-dark h6 { color: #fff; }

.tk-section-dark p { color: rgba(255,255,255,0.7); }

.tk-section-light { background: var(--tk-gray-50); }

[data-theme="dark"] .tk-section-light { background: var(--tk-surface-2); }

.tk-section-title {
  text-align: center;
  margin-bottom: 52px;
}

.tk-section-title h2 {
  margin-bottom: 12px;
}

.tk-section-title .tk-subtitle {
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .tk-section { padding: 56px 0; }
  .tk-section-title { margin-bottom: 36px; }
}

/* ================================================================
   SECTION 10 — Flight Result Card
   ================================================================ */
.tk-flight-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-s1);
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform var(--tk-base) var(--tk-spring), box-shadow var(--tk-base) var(--tk-eout);
}

.tk-flight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tk-s3);
}

.tk-flight-card-main {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.tk-flight-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.tk-airline-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--tk-r-md);
  object-fit: contain;
  border: 1px solid var(--tk-border);
  background: var(--tk-gray-50);
  flex-shrink: 0;
  padding: 4px;
}

.tk-airline-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--tk-r-md);
  background: var(--tk-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--tk-blue);
  flex-shrink: 0;
}

.tk-flight-time-block { min-width: 70px; }

.tk-flight-time {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--tk-text);
  line-height: 1;
}

.tk-flight-airport {
  font-size: 13px;
  color: var(--tk-text-4);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.tk-flight-route {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.tk-flight-duration {
  font-size: 13px;
  color: var(--tk-text-3);
  font-weight: 600;
}

.tk-route-line {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-route-line-inner {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--tk-blue), rgba(26,95,255,0.25));
  border-radius: var(--tk-r-pill);
  position: relative;
}

.tk-route-plane {
  font-size: 13px;
  color: var(--tk-blue);
}

.tk-stops-pill {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: var(--tk-r-pill);
  font-weight: 700;
}

.tk-stops-direct {
  background: rgba(0,196,140,0.12);
  color: var(--tk-success);
}

.tk-stops-1 {
  background: rgba(255,159,28,0.12);
  color: var(--tk-warning);
}

.tk-stops-2plus {
  background: rgba(255,77,109,0.12);
  color: var(--tk-danger);
}

.tk-flight-card-price {
  background: linear-gradient(135deg, #f7f9ff, var(--tk-blue-light));
  border-left: 1px solid var(--tk-border);
  padding: 20px 24px;
  min-width: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

[dir="rtl"] .tk-flight-card-price { border-left: none; border-right: 1px solid var(--tk-border); }

.tk-flight-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--tk-navy);
  line-height: 1;
}

.tk-flight-price-note {
  font-size: 13px;
  color: var(--tk-text-4);
  font-weight: 600;
}

/* Expand area */
.tk-flight-details {
  display: none;
  border-top: 1px solid var(--tk-border);
  padding: 20px 24px;
  background: var(--tk-gray-50);
}

.tk-flight-details.open { display: block; }

.tk-flight-expand-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--tk-fast);
}

.tk-flight-expand-btn:hover { color: var(--tk-blue-dark); }

[data-theme="dark"] .tk-flight-card {
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .tk-flight-card-price {
  background: var(--tk-surface-2);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .tk-flight-details {
  background: var(--tk-navy-dark);
}

/* ================================================================
   SECTION 11 — Hotel Card
   ================================================================ */
.tk-hotel-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  overflow: hidden;
  box-shadow: var(--tk-s1);
  border: 1px solid var(--tk-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--tk-base) var(--tk-spring), box-shadow var(--tk-base) var(--tk-eout);
}

.tk-hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tk-s3);
}

.tk-hotel-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.tk-hotel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--tk-ease);
}

.tk-hotel-card:hover .tk-hotel-img img { transform: scale(1.07); }

.tk-hotel-img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

[dir="rtl"] .tk-hotel-img-badge { left: auto; right: 12px; }

.tk-hotel-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--tk-text-3);
  cursor: pointer;
  transition: color var(--tk-fast), background var(--tk-fast);
  z-index: 2;
  border: none;
}

.tk-hotel-wishlist:hover,
.tk-hotel-wishlist.active { color: var(--tk-danger); }

[dir="rtl"] .tk-hotel-wishlist { right: auto; left: 12px; }

.tk-hotel-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tk-hotel-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--tk-text);
  line-height: 1.3;
}

.tk-hotel-loc {
  font-size: 13px;
  color: var(--tk-text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-hotel-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tk-star-rating {
  display: flex;
  gap: 2px;
  font-size: 13px;
  color: var(--tk-gold);
}

.tk-star-rating .empty { color: var(--tk-gray-200); }
.tk-star-rating .half { color: var(--tk-gold); }

.tk-review-badge {
  font-size: 13px;
  font-weight: 700;
  background: var(--tk-navy);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--tk-r-sm);
}

.tk-review-count {
  font-size: 13px;
  color: var(--tk-text-4);
}

.tk-amenity-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tk-amenity-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--tk-gray-100);
  color: var(--tk-text-3);
  border-radius: var(--tk-r-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-hotel-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.tk-hotel-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--tk-blue);
  line-height: 1;
}

.tk-hotel-price-note {
  font-size: 13px;
  color: var(--tk-text-4);
  font-weight: 500;
  margin-top: 2px;
}

[data-theme="dark"] .tk-hotel-card { border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .tk-amenity-pill { background: var(--tk-surface-2); }

/* ================================================================
   SECTION 12 — Car Card
   ================================================================ */
.tk-car-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  overflow: hidden;
  box-shadow: var(--tk-s1);
  border: 1px solid var(--tk-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--tk-base) var(--tk-spring), box-shadow var(--tk-base) var(--tk-eout);
}

.tk-car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tk-s3);
}

.tk-car-img {
  height: 180px;
  overflow: hidden;
  background: var(--tk-gray-50);
  position: relative;
}

.tk-car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--tk-ease);
}

.tk-car-card:hover .tk-car-img img { transform: scale(1.06); }

.tk-car-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 11px;
  background: var(--tk-navy);
  color: #fff;
  border-radius: var(--tk-r-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[dir="rtl"] .tk-car-type-badge { left: auto; right: 10px; }

.tk-car-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.tk-car-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--tk-text);
}

.tk-car-specs-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tk-car-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--tk-text-3);
  font-weight: 600;
}

.tk-car-spec i { color: var(--tk-blue); font-size: 13px; }

.tk-car-location {
  font-size: 13px;
  color: var(--tk-text-4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-car-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.tk-car-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--tk-blue);
  line-height: 1;
}

.tk-car-price-note { font-size: 13px; color: var(--tk-text-4); margin-top: 2px; }

[data-theme="dark"] .tk-car-card { border-color: rgba(255,255,255,0.07); }

/* ================================================================
   SECTION 13 — Destination Card
   ================================================================ */
.tk-destination-card {
  position: relative;
  border-radius: var(--tk-r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  text-decoration: none;
  box-shadow: var(--tk-s2);
}

.tk-destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--tk-ease);
}

.tk-destination-card:hover img { transform: scale(1.08); }

.tk-destination-overlay {
  position: absolute;
  inset: 0;
  background: var(--tk-grad-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.tk-destination-name {
  font-family: var(--tk-font);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tk-destination-country {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.tk-destination-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tk-r-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

[dir="rtl"] .tk-destination-badge { right: auto; left: 12px; }

/* ================================================================
   SECTION 14 — Filter Sidebar
   ================================================================ */
.tk-filter-sidebar {
  position: sticky;
  top: 90px;
}

.tk-filter-panel {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-s1);
  padding: 22px;
  margin-bottom: 16px;
}

.tk-filter-panel-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--tk-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.tk-filter-panel-title .tk-filter-chevron {
  font-size: 13px;
  color: var(--tk-text-4);
  transition: transform var(--tk-fast) var(--tk-ease);
}

.tk-filter-panel-title.collapsed .tk-filter-chevron { transform: rotate(180deg); }

.tk-filter-body { transition: height var(--tk-base) var(--tk-ease); overflow: hidden; }

.tk-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-text-2);
}

.tk-filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: var(--tk-r-xs);
  accent-color: var(--tk-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.tk-filter-check:hover { color: var(--tk-blue); }

.tk-filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--tk-text-4);
  font-weight: 600;
}

[dir="rtl"] .tk-filter-count { margin-left: 0; margin-right: auto; }

/* Price Range Slider */
.tk-price-range-wrap { padding: 8px 0; }

.tk-price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-2);
  margin-bottom: 10px;
}

.tk-range-slider {
  position: relative;
  height: 4px;
  background: var(--tk-gray-200);
  border-radius: var(--tk-r-pill);
  margin: 10px 4px;
}

.tk-range-slider-fill {
  position: absolute;
  height: 100%;
  background: var(--tk-grad-blue);
  border-radius: var(--tk-r-pill);
}

.tk-range-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tk-blue);
  border: 2px solid #fff;
  box-shadow: var(--tk-s2);
  cursor: pointer;
  transition: transform var(--tk-fast) var(--tk-spring);
}

.tk-range-thumb:hover { transform: translate(-50%, -50%) scale(1.2); }
.tk-range-thumb:active { transform: translate(-50%, -50%) scale(1.1); }

/* Star Rating Filter */
.tk-star-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.tk-star-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-radius: var(--tk-r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-3);
  border: 1.5px solid var(--tk-border-2);
  background: transparent;
  cursor: pointer;
  transition: all var(--tk-fast) var(--tk-eout);
}

.tk-star-filter-btn:hover { border-color: var(--tk-gold); color: var(--tk-gold); }
.tk-star-filter-btn.active { background: var(--tk-gold-light); border-color: var(--tk-gold); color: var(--tk-gold); }

[data-theme="dark"] .tk-filter-panel { border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .tk-star-filter-btn.active { background: rgba(196,146,42,0.12); }

/* ================================================================
   SECTION 15 — Booking Steps
   ================================================================ */
.tk-booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tk-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tk-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--tk-border-2);
  background: var(--tk-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--tk-text-3);
  transition: all var(--tk-fast) var(--tk-eout);
  flex-shrink: 0;
}

.tk-step.active .tk-step-num {
  background: var(--tk-grad-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,95,255,0.30);
}

.tk-step.done .tk-step-num {
  background: var(--tk-success);
  border-color: transparent;
  color: #fff;
}

.tk-step-info { display: flex; flex-direction: column; }

.tk-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-3);
  line-height: 1.2;
  white-space: nowrap;
}

.tk-step.active .tk-step-label { color: var(--tk-blue); }
.tk-step.done .tk-step-label { color: var(--tk-success); }

.tk-step-sublabel {
  font-size: 13px;
  color: var(--tk-text-4);
}

.tk-step-connector {
  flex: 1 1 40px;
  max-width: 80px;
  height: 2px;
  background: var(--tk-border-2);
  margin: 0 4px;
  border-radius: var(--tk-r-pill);
  transition: background var(--tk-base) var(--tk-eout);
}

.tk-step-connector.done { background: var(--tk-success); }

@media (max-width: 575.98px) {
  .tk-step-info { display: none; }
  .tk-step-connector { max-width: 30px; }
}

/* ================================================================
   SECTION 16 — Form System
   ================================================================ */
.tk-form-group {
  position: relative;
  margin-bottom: 20px;
}

/* Floating Label */
.tk-form-group.floating .tk-form-control {
  padding-top: 22px;
  padding-bottom: 8px;
  height: 58px;
}

.tk-form-group.floating label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--tk-text-4);
  font-weight: 500;
  pointer-events: none;
  transition: all var(--tk-fast) var(--tk-ease);
  background: transparent;
}

[dir="rtl"] .tk-form-group.floating label { left: auto; right: 16px; }

.tk-form-group.floating .tk-form-control:focus ~ label,
.tk-form-group.floating .tk-form-control:not(:placeholder-shown) ~ label {
  top: 14px;
  transform: translateY(0);
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-2);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.tk-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tk-border-2);
  border-radius: var(--tk-r-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--tk-text);
  background: var(--tk-surface);
  font-family: var(--tk-font);
  line-height: 1.5;
  transition:
    border-color var(--tk-fast) var(--tk-eout),
    box-shadow var(--tk-fast) var(--tk-eout);
  appearance: none;
  -webkit-appearance: none;
}

.tk-form-control::placeholder { color: var(--tk-text-4); font-weight: 400; }

.tk-form-control:focus {
  outline: none;
  border-color: var(--tk-blue);
  box-shadow: 0 0 0 3px var(--tk-focus-ring);
}

.tk-form-control.tk-form-error-state {
  border-color: var(--tk-danger);
  box-shadow: 0 0 0 3px rgba(255,77,109,0.15);
}

.tk-form-control.tk-form-success-state {
  border-color: var(--tk-success);
  box-shadow: 0 0 0 3px rgba(0,196,140,0.15);
}

.tk-form-error {
  font-size: 13px;
  color: var(--tk-danger);
  font-weight: 600;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tk-form-success-msg {
  font-size: 13px;
  color: var(--tk-success);
  font-weight: 600;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Password toggle */
.tk-pwd-wrap {
  position: relative;
}

.tk-pwd-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--tk-text-4);
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
  transition: color var(--tk-fast);
}

[dir="rtl"] .tk-pwd-toggle { right: auto; left: 14px; }
.tk-pwd-toggle:hover { color: var(--tk-text-2); }

/* Date range picker */
.tk-daterange-wrap { position: relative; }

[data-theme="dark"] .tk-form-control {
  background: var(--tk-surface-2);
  border-color: rgba(255,255,255,0.12);
  color: var(--tk-text);
}
[data-theme="dark"] .tk-form-control:focus {
  background: var(--tk-surface);
  border-color: var(--tk-blue);
}

/* ================================================================
   SECTION 17 — Dashboard Layout
   ================================================================ */
.tk-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.tk-sidebar {
  background: var(--tk-navy);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.tk-sidebar::-webkit-scrollbar { width: 4px; }
.tk-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.tk-sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tk-sidebar-nav { padding: 16px 12px; flex: 1; }

.tk-sidebar-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 10px 8px 6px;
}

.tk-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--tk-r-md);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all var(--tk-fast) var(--tk-eout);
  position: relative;
  margin-bottom: 2px;
}

.tk-sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.tk-sidebar-link.active {
  background: rgba(26,95,255,0.20);
  color: #fff;
}

.tk-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--tk-blue);
  border-radius: 0 var(--tk-r-pill) var(--tk-r-pill) 0;
}

[dir="rtl"] .tk-sidebar-link.active::before {
  left: auto;
  right: 0;
  border-radius: var(--tk-r-pill) 0 0 var(--tk-r-pill);
}

.tk-sidebar-link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.tk-sidebar-badge {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--tk-blue);
  color: #fff;
  border-radius: var(--tk-r-pill);
  min-width: 20px;
  text-align: center;
}

[dir="rtl"] .tk-sidebar-badge { margin-left: 0; margin-right: auto; }

.tk-dashboard-main { padding: 28px 32px; overflow-y: auto; }

.tk-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.tk-page-title { font-size: 1.5rem; font-weight: 900; color: var(--tk-text); margin: 0; }
.tk-breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tk-text-4);
}
.tk-breadcrumb-trail a { color: var(--tk-text-3); font-weight: 600; }
.tk-breadcrumb-trail a:hover { color: var(--tk-blue); }
.tk-breadcrumb-trail .sep { color: var(--tk-gray-200); }

/* Stat Card */
.tk-stat-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  border: 1px solid var(--tk-border);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--tk-s1);
  transition: transform var(--tk-base) var(--tk-spring), box-shadow var(--tk-base) var(--tk-eout);
}

.tk-stat-card:hover { transform: translateY(-3px); box-shadow: var(--tk-s2); }

.tk-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--tk-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tk-stat-icon-blue  { background: var(--tk-blue-light); color: var(--tk-blue); }
.tk-stat-icon-gold  { background: var(--tk-gold-light); color: var(--tk-gold); }
.tk-stat-icon-green { background: rgba(0,196,140,0.12); color: var(--tk-success); }
.tk-stat-icon-red   { background: rgba(255,77,109,0.12); color: var(--tk-danger); }

.tk-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--tk-text);
  line-height: 1;
  margin-bottom: 4px;
}

.tk-stat-label { font-size: 13px; color: var(--tk-text-3); font-weight: 600; }

.tk-stat-trend {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.tk-trend-up { color: var(--tk-success); }
.tk-trend-down { color: var(--tk-danger); }

@media (max-width: 1023.98px) {
  .tk-dashboard { grid-template-columns: 1fr; }
  .tk-sidebar { position: fixed; left: -280px; z-index: var(--tk-z-overlay); height: 100%; transition: left var(--tk-slow) var(--tk-ease); }
  .tk-sidebar.open { left: 0; }
  .tk-dashboard-main { padding: 20px 16px; }
}

[data-theme="dark"] .tk-stat-card { border-color: rgba(255,255,255,0.07); }

/* ================================================================
   SECTION 18 — Skeleton Loaders
   ================================================================ */
.tk-skeleton {
  background: var(--tk-gray-200);
  border-radius: var(--tk-r-sm);
  position: relative;
  overflow: hidden;
}

.tk-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.60) 50%,
    transparent 100%
  );
  animation: tkShimmer 1.6s ease-in-out infinite;
}

[data-theme="dark"] .tk-skeleton { background: var(--tk-gray-700); }
[data-theme="dark"] .tk-skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
}

.tk-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: var(--tk-r-pill);
}

.tk-skeleton-text.w-75 { width: 75%; }
.tk-skeleton-text.w-50 { width: 50%; }
.tk-skeleton-text.w-33 { width: 33%; }

.tk-skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: var(--tk-r-lg);
}

.tk-skeleton-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  border: 1px solid var(--tk-border);
  overflow: hidden;
  padding: 20px;
}

.tk-skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.tk-skeleton-btn {
  height: 42px;
  width: 120px;
  border-radius: var(--tk-r-lg);
}

/* ================================================================
   SECTION 19 — Badges & Trust Elements
   ================================================================ */
.tk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--tk-r-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tk-badge-blue    { background: var(--tk-blue-light); color: var(--tk-blue); }
.tk-badge-navy    { background: var(--tk-navy); color: #fff; }
.tk-badge-gold    { background: var(--tk-gold-light); color: var(--tk-gold); }
.tk-badge-green   { background: rgba(0,196,140,0.12); color: var(--tk-success); }
.tk-badge-red     { background: rgba(255,77,109,0.12); color: var(--tk-danger); }
.tk-badge-orange  { background: rgba(255,159,28,0.12); color: var(--tk-warning); }
.tk-badge-gray    { background: var(--tk-gray-100); color: var(--tk-gray-500); }

/* Special badges */
.tk-badge-popular {
  background: linear-gradient(135deg, #FF6B35, #FF9F1C);
  color: #fff;
}

.tk-badge-deal {
  background: linear-gradient(135deg, var(--tk-success), #00A87A);
  color: #fff;
}

.tk-badge-verified {
  background: linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark));
  color: #fff;
}

/* Trust Badges */
.tk-trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tk-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border-2);
  border-radius: var(--tk-r-lg);
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-2);
  box-shadow: var(--tk-s1);
}

.tk-trust-badge i { color: var(--tk-success); font-size: 13px; }

/* Star Rating display */
.tk-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.tk-stars i {
  font-size: 13px;
  color: var(--tk-gold);
}

.tk-stars .fa-star-half-alt { color: var(--tk-gold); }
.tk-stars .far { color: var(--tk-gray-200); }

/* ================================================================
   SECTION 20 — Empty States
   ================================================================ */
.tk-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 300px;
}

.tk-empty-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.tk-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tk-text);
  margin-bottom: 8px;
}

.tk-empty-state p {
  color: var(--tk-text-3);
  max-width: 360px;
  margin-bottom: 24px;
}

/* ================================================================
   SECTION 21 — Footer
   ================================================================ */
.tk-footer {
  background: var(--tk-navy);
  color: rgba(255,255,255,0.7);
}

.tk-footer-top {
  padding: 70px 0 50px;
}

.tk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 991.98px) {
  .tk-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 575.98px) {
  .tk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tk-footer-top { padding: 40px 0 30px; }
}

.tk-footer-brand-desc {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 280px;
}

.tk-footer-heading {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tk-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tk-fast) var(--tk-eout), gap var(--tk-fast) var(--tk-ease);
  font-weight: 500;
}

.tk-footer-links a:hover {
  color: #fff;
  gap: 10px;
}

.tk-social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tk-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--tk-fast) var(--tk-eout);
  background: transparent;
}

.tk-social-btn:hover {
  background: var(--tk-blue);
  color: #fff;
  border-color: var(--tk-blue);
  transform: translateY(-2px);
}

.tk-payment-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tk-payment-badge {
  height: 24px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--tk-r-sm);
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}

.tk-footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.tk-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.tk-footer-contact-item i { color: var(--tk-gold); margin-top: 2px; flex-shrink: 0; }
.tk-footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--tk-fast); }
.tk-footer-contact-item a:hover { color: #fff; }

.tk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tk-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.tk-footer-bottom a { color: rgba(255,255,255,0.6); transition: color var(--tk-fast); }
.tk-footer-bottom a:hover { color: #fff; }

/* ================================================================
   SECTION 22 — Dark Mode (component-level)
   ================================================================ */
[data-theme="dark"] .tk-search-widget {
  background: var(--tk-surface);
}

[data-theme="dark"] .tk-flight-card,
[data-theme="dark"] .tk-hotel-card,
[data-theme="dark"] .tk-car-card {
  background: var(--tk-surface);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .tk-filter-panel,
[data-theme="dark"] .tk-card {
  background: var(--tk-surface);
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .tk-destination-card { box-shadow: var(--tk-s2); }

[data-theme="dark"] .tk-footer {
  background: #04081A;
}

[data-theme="dark"] .tk-eyebrow {
  background: rgba(26,95,255,0.20);
}

[data-theme="dark"] body {
  background-color: var(--tk-bg);
}

[data-theme="dark"] .tk-section-light { background: var(--tk-surface-2); }

[data-theme="dark"] .flatpickr-calendar {
  background: var(--tk-surface) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: var(--tk-text) !important;
}

[data-theme="dark"] .flatpickr-day { color: var(--tk-text); }
[data-theme="dark"] .flatpickr-day:hover { background: var(--tk-surface-2) !important; }

/* ================================================================
   SECTION 23 — RTL Support
   ================================================================ */
[dir="rtl"] body { text-align: right; }

[dir="rtl"] .tk-brand { flex-direction: row-reverse; }

[dir="rtl"] .tk-search-field .tk-field-icon {
  right: auto;
  left: 14px;
}

[dir="rtl"] .tk-search-input { padding-left: 40px; padding-right: 14px; text-align: right; }

[dir="rtl"] .tk-nav-links { flex-direction: row-reverse; }
[dir="rtl"] .tk-nav-actions { flex-direction: row-reverse; }

[dir="rtl"] .tk-route-plane { transform: scaleX(-1); }

[dir="rtl"] .tk-flight-card-price {
  border-left: none;
  border-right: 1px solid var(--tk-border);
}

[dir="rtl"] .tk-sidebar-link::before {
  left: auto; right: 0;
  border-radius: var(--tk-r-pill) 0 0 var(--tk-r-pill);
}

[dir="rtl"] .tk-footer-links a { flex-direction: row-reverse; }

[dir="rtl"] .tk-stat-badge,
[dir="rtl"] .tk-sidebar-badge {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .tk-footer-grid { direction: rtl; }

[dir="rtl"] .tk-booking-steps { flex-direction: row-reverse; }

[dir="rtl"] .tk-form-group.floating label { left: auto; right: 16px; }

[dir="rtl"] .tk-autocomplete { left: auto; right: 0; }

[dir="rtl"] .tk-topbar { direction: rtl; }

[dir="rtl"] .tk-hotel-img-badge { left: auto; right: 12px; }
[dir="rtl"] .tk-hotel-wishlist { right: auto; left: 12px; }

[dir="rtl"] .tk-car-type-badge { left: auto; right: 10px; }

/* ================================================================
   SECTION 24 — Animations & Keyframes
   ================================================================ */
@keyframes tkFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tkFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes tkRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes tkShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes tkPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.8; }
}

@keyframes tkSpin {
  to { transform: rotate(360deg); }
}

@keyframes tkBounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.08); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* Reveal classes */
.tk-reveal {
  transition:
    opacity 0.65s var(--tk-ease),
    transform 0.65s var(--tk-ease);
}

/* JS adds .tk-will-animate only to below-fold elements — content is always visible without JS */
.tk-reveal.tk-will-animate {
  opacity: 0;
  transform: translateY(24px);
}

.tk-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tk-reveal.d1 { transition-delay: 0.10s; }
.tk-reveal.d2 { transition-delay: 0.20s; }
.tk-reveal.d3 { transition-delay: 0.30s; }
.tk-reveal.d4 { transition-delay: 0.40s; }
.tk-reveal.d5 { transition-delay: 0.50s; }

/* Legacy delay attributes */
.tk-reveal[data-delay="1"] { transition-delay: 0.10s; }
.tk-reveal[data-delay="2"] { transition-delay: 0.20s; }
.tk-reveal[data-delay="3"] { transition-delay: 0.30s; }
.tk-reveal[data-delay="4"] { transition-delay: 0.40s; }
.tk-reveal[data-delay="5"] { transition-delay: 0.50s; }

/* ================================================================
   SECTION 25 — Mobile Utilities
   ================================================================ */

/* Bottom Navigation Bar */
.tk-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--tk-z-fixed);
  background: var(--tk-surface);
  border-top: 1px solid var(--tk-border);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 991.98px) {
  .tk-bottom-nav { display: flex; }
}

.tk-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--tk-r-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-text-4);
  text-decoration: none;
  transition: color var(--tk-fast) var(--tk-eout), background var(--tk-fast);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--tk-font);
}

.tk-bottom-nav-item i { font-size: 18px; transition: transform var(--tk-fast) var(--tk-spring); }

.tk-bottom-nav-item:hover { color: var(--tk-blue); background: var(--tk-blue-light); }
.tk-bottom-nav-item:hover i { transform: translateY(-2px); }

.tk-bottom-nav-item.active { color: var(--tk-blue); }
.tk-bottom-nav-item.active i { transform: translateY(-2px); }

[data-theme="dark"] .tk-bottom-nav {
  background: var(--tk-surface);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .tk-bottom-nav-item:hover,
[data-theme="dark"] .tk-bottom-nav-item.active {
  background: rgba(26,95,255,0.12);
}

/* Sticky CTA */
.tk-sticky-cta {
  position: fixed;
  bottom: 68px;
  left: 16px;
  right: 16px;
  z-index: calc(var(--tk-z-fixed) - 1);
  display: none;
}

@media (max-width: 767.98px) {
  .tk-sticky-cta { display: block; }
}

.tk-sticky-cta .tk-btn-primary {
  width: 100%;
  height: 52px;
  font-size: 13px;
  border-radius: var(--tk-r-xl);
  box-shadow: var(--tk-s4);
}

/* Sticky Search Bar */
.tk-sticky-search {
  display: none;
  position: sticky;
  top: 60px;
  z-index: calc(var(--tk-z-sticky) - 1);
  background: var(--tk-surface);
  border-bottom: 1px solid var(--tk-border);
  padding: 10px 0;
  box-shadow: var(--tk-s1);
  animation: tkSlideDown 0.3s var(--tk-ease);
}

.tk-sticky-search.visible { display: block; }

/* Touch targets */
.tk-touch {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Body offset for bottom nav */
@media (max-width: 991.98px) {
  body { padding-bottom: 64px; }
}

/* ================================================================
   SECTION 26 — Loading Overlay
   ================================================================ */
#tk-loading {
  position: fixed;
  inset: 0;
  z-index: var(--tk-z-loading);
  background: var(--tk-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s var(--tk-eout), visibility 0.5s;
}

#tk-loading.tk-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tk-loading-brand {
  width: 60px;
  height: 60px;
  background: var(--tk-grad-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  font-family: var(--tk-font);
  animation: tkPulse 1.5s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(26,95,255,0.35);
}

.tk-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--tk-blue-light);
  border-top-color: var(--tk-blue);
  animation: tkSpin 0.75s linear infinite;
}

[data-theme="dark"] #tk-loading {
  background: var(--tk-navy-dark);
}

/* ================================================================
   EXTRA — Bootstrap Overrides & Flatpickr
   ================================================================ */
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px var(--tk-focus-ring);
  border-color: var(--tk-blue);
}

.form-check-input:checked {
  background-color: var(--tk-blue);
  border-color: var(--tk-blue);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--tk-focus-ring);
  border-color: var(--tk-blue);
}

.form-range::-webkit-slider-thumb { background: var(--tk-blue); }
.form-range::-moz-range-thumb { background: var(--tk-blue); border: none; }

.btn-close:focus { box-shadow: none; outline: none; }

.dropdown-menu {
  border-radius: var(--tk-r-lg);
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-s3);
  padding: 8px;
}

.dropdown-item {
  border-radius: var(--tk-r-sm);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  transition: background var(--tk-fast), color var(--tk-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--tk-blue-light);
  color: var(--tk-blue);
}

/* Flatpickr */
.flatpickr-calendar {
  border-radius: var(--tk-r-xl) !important;
  box-shadow: var(--tk-s3) !important;
  border: 1px solid var(--tk-border) !important;
  font-family: var(--tk-font) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--tk-blue) !important;
  border-color: var(--tk-blue) !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--tk-blue) !important;
  border-color: var(--tk-blue) !important;
}

.flatpickr-day.inRange {
  background: var(--tk-blue-light) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.flatpickr-day.today {
  border-color: var(--tk-blue) !important;
  font-weight: 700;
}

.flatpickr-months .flatpickr-month {
  background: var(--tk-navy) !important;
  color: #fff !important;
  border-radius: var(--tk-r-xl) var(--tk-r-xl) 0 0 !important;
}

.flatpickr-weekdays { background: var(--tk-navy) !important; }
span.flatpickr-weekday { background: var(--tk-navy) !important; color: rgba(255,255,255,0.65) !important; }

.flatpickr-prev-month,
.flatpickr-next-month {
  fill: #fff !important;
  color: #fff !important;
}

/* ================================================================
   EXTRA — Utility Classes
   ================================================================ */
.tk-divider { height: 1px; background: var(--tk-border); }

.tk-link {
  color: var(--tk-blue);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--tk-fast) var(--tk-spring), color var(--tk-fast);
}

.tk-link:hover { color: var(--tk-blue-dark); gap: 8px; }

.tk-img-cover { width: 100%; height: 100%; object-fit: cover; }

/* Stats Bar (homepage) */
.tk-stats-bar { background: var(--tk-navy); padding: 44px 0; }

.tk-stat-item { text-align: center; }

.tk-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #EDBB4A;
  font-family: var(--tk-font);
  display: block;
  line-height: 1.1;
}

.tk-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  display: block;
}

/* Breadcrumb (page hero) */
.tk-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}

.tk-breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--tk-fast); }
.tk-breadcrumb a:hover { color: #fff; }
.tk-breadcrumb .sep { opacity: 0.5; }

/* Page Hero */
.tk-page-hero {
  background: var(--tk-grad-brand);
  padding: 100px 0 60px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tk-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tk-page-hero h1 { color: #fff; position: relative; z-index: 1; }
.tk-page-hero p   { color: rgba(255,255,255,0.82); position: relative; z-index: 1; }

/* Sort dropdown */
.tk-sort-select {
  padding: 8px 36px 8px 14px;
  border-radius: var(--tk-r-lg);
  border: 1.5px solid var(--tk-border-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-text-2);
  background: var(--tk-surface);
  font-family: var(--tk-font);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA3B8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--tk-fast), box-shadow var(--tk-fast);
}

.tk-sort-select:focus {
  outline: none;
  border-color: var(--tk-blue);
  box-shadow: 0 0 0 3px var(--tk-focus-ring);
}

[dir="rtl"] .tk-sort-select {
  background-position: left 10px center;
  padding: 8px 14px 8px 36px;
}

/* Blog Cards */
.tk-blog-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  overflow: hidden;
  box-shadow: var(--tk-s1);
  border: 1px solid var(--tk-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tk-base) var(--tk-eout);
}

.tk-blog-card:hover { box-shadow: var(--tk-s2); }

.tk-blog-img { height: 200px; overflow: hidden; }
.tk-blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--tk-ease);
}
.tk-blog-card:hover .tk-blog-img img { transform: scale(1.05); }

.tk-blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tk-blog-tag {
  display: inline-block;
  background: var(--tk-blue-light);
  color: var(--tk-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--tk-r-pill);
  margin-bottom: 10px;
}

.tk-blog-title { font-size: 13px; font-weight: 800; color: var(--tk-text); margin-bottom: 8px; line-height: 1.4; }
.tk-blog-excerpt { font-size: 13px; color: var(--tk-text-3); flex: 1; margin-bottom: 14px; }
.tk-blog-meta { font-size: 13px; color: var(--tk-text-4); font-weight: 600; }

/* Feature Cards */
.tk-feature-card {
  background: var(--tk-surface);
  border-radius: var(--tk-r-xl);
  border: 1px solid var(--tk-border);
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  transition: box-shadow var(--tk-base) var(--tk-eout), transform var(--tk-base) var(--tk-spring);
}

.tk-feature-card:hover { box-shadow: var(--tk-s2); transform: translateY(-3px); }

.tk-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--tk-r-lg);
  background: var(--tk-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--tk-blue);
  margin: 0 auto 18px;
}

/* CTA Banner */
.tk-cta-section {
  background: var(--tk-grad-brand);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tk-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tk-cta-section h2  { color: #fff; position: relative; z-index: 1; }
.tk-cta-section p   { color: rgba(255,255,255,0.85); position: relative; z-index: 1; margin-bottom: 32px; }

/* Auth Pages */
.tk-auth-page { min-height: 100vh; display: flex; }

.tk-auth-form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--tk-surface);
}

.tk-auth-hero-col {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tk-auth-form-wrap { width: 100%; max-width: 440px; }

.tk-auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,13,37,0.75);
  backdrop-filter: blur(2px);
}

.tk-auth-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.tk-auth-hero-content h2 { color: #fff; }
.tk-auth-hero-content p  { color: rgba(255,255,255,0.75); }

@media (max-width: 767.98px) {
  .tk-auth-hero-col { display: none; }
  .tk-auth-form-col { padding: 40px 24px; }
}

/* ================================================================
   RESPONSIVE — Final Media Queries
   ================================================================ */
@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .tk-search-widget {
    margin: -40px auto 0;
    padding: 20px 18px;
    border-radius: var(--tk-r-xl);
  }

  .tk-search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tk-hero-title { font-size: 2.2rem; }
  .tk-hero-content { padding: 90px 0 60px; }

  .tk-flight-card-main { flex-direction: column; }
  .tk-flight-card-price {
    border-left: none;
    border-top: 1px solid var(--tk-border);
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  [dir="rtl"] .tk-flight-card-price {
    border-right: none;
    border-top: 1px solid var(--tk-border);
  }

  .tk-stats-bar .row > [class*="col"] + [class*="col"] {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 8px;
  }

  .tk-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .tk-header:not(.scrolled) .tk-brand-name { color: var(--tk-navy); }
}

@media (min-width: 992px) {
  .tk-bottom-nav { display: none !important; }
  body { padding-bottom: 0; }
}

/* Navbar collapse fix for Bootstrap */
@media (max-width: 991.98px) {
  .navbar-collapse .navbar-nav { padding: 12px 0; }
  .navbar-collapse .d-flex {
    padding: 12px 0 8px;
    border-top: 1px solid var(--tk-border);
    margin-top: 8px;
  }
}

/* ================================================================
   RESPONSIVE ADDITIONS — Mobile (≤767.98px) & Tablet (768–1023.98px)
   All rules below are additive — no desktop (≥1024px) styles are
   modified.  Added 2026-06-10.
   ================================================================ */

/* ── 1. Touch targets: buttons must be at least 44px tall on mobile ── */
@media (max-width: 767.98px) {
  .tk-btn,
  .tk-btn-primary,
  .tk-btn-ghost,
  .tk-btn-outline,
  .tk-btn-gold {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  /* Icon-only and small buttons keep square proportions but still hit 44px */
  .tk-btn-icon {
    width: 44px;
    height: 44px;
  }

  .tk-btn-sm {
    min-height: 40px;  /* small variant: relax slightly but keep close */
  }

  /* Social / dark-toggle / lang buttons in header */
  .tk-dark-toggle,
  .tk-social-btn {
    width: 44px;
    height: 44px;
  }

  .tk-lang-trigger {
    padding: 10px 16px;
    min-height: 44px;
  }
}

/* ── 2. Topbar: hide on mobile to reclaim vertical space ── */
@media (max-width: 767.98px) {
  .tk-topbar {
    display: none;
  }
}

/* ── 3. Header / Navbar mobile treatment ── */
@media (max-width: 991.98px) {
  /* Ensure header is never taller than needed on mobile */
  .tk-header .container,
  .tk-navbar .container,
  .tk-navbar .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hamburger toggler: enlarge hit area to 44×44 px */
  .tk-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--tk-r-md);
    /* Compensate right-edge spacing so it doesn't hug the viewport edge */
    margin-right: -6px;
  }

  /* Bootstrap toggler */
  .tk-toggler {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -6px;
  }
}

/* Collapsed Bootstrap navbar menu: comfortable spacing & readable items */
@media (max-width: 991.98px) {
  .tk-navbar .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid var(--tk-border);
    padding: 8px 0 16px;
    margin-top: 0;
    /* Prevent the open menu from creating a horizontal scroll */
    overflow-x: hidden;
  }

  [data-theme="dark"] .tk-navbar .navbar-collapse {
    background: var(--tk-surface);
  }

  /* Each nav link should be a comfortable tap target */
  .tk-navbar .nav-link {
    padding: 11px 16px;
    min-height: 44px;
    border-radius: 0;
    display: flex;
    align-items: center;
  }

  .tk-navbar .nav-link:hover,
  .tk-navbar .nav-link.active {
    border-radius: var(--tk-r-sm);
    margin: 0 8px;
  }

  /* Action buttons inside collapsed nav */
  .tk-navbar .tk-btn-ghost,
  .tk-navbar .tk-btn-primary {
    width: 100%;
    justify-content: center;
    margin: 4px 0;
    min-height: 44px;
  }
}

/* ── 4. Mobile nav overlay: close button tap target ── */
@media (max-width: 767.98px) {
  .tk-mobile-nav {
    padding: 72px 20px 80px;
  }

  .tk-mobile-nav .tk-nav-link {
    font-size: 18px;
    padding: 13px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── 5. Hero section mobile & tablet ── */
@media (max-width: 767.98px) {
  .tk-hero {
    min-height: 85vh;
    /* Disable fixed attachment on mobile — causes scroll jitter on iOS */
    background-attachment: scroll !important;
  }

  .tk-hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .tk-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .tk-hero-content {
    padding: 80px 0 48px;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-hero {
    min-height: 75vh;
    background-attachment: scroll !important;
  }

  .tk-hero-content {
    padding: 100px 0 60px;
  }
}

/* ── 6. Search widget tablet & mobile ── */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-search-widget {
    padding: 22px 24px;
    margin: -60px auto 0;
  }

  .tk-search-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767.98px) {
  /* --- Widget container ---
     Reduce negative pull so the widget doesn't overlap hero text too
     aggressively on small screens.  Box-sizing + max-width prevent
     horizontal bleed when the parent container has side padding.    */
  .tk-search-widget {
    margin: -32px auto 0;
    padding: 18px 14px 22px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }

  /* --- Tab strip ---
     Switch from flex-wrap to single-row horizontal scroll so tabs
     NEVER wrap (wrapping breaks the ::after bottom-indicator that is
     absolutely positioned relative to the un-wrapped baseline).
     Negative horizontal margins + matching padding let the strip fill
     the widget edge-to-edge while the content stays within padding.  */
  .tk-search-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .tk-search-tabs::-webkit-scrollbar { display: none; }

  /* --- Individual tab ---
     Prevent shrink/wrap; enforce 44 px minimum touch target height.  */
  .tk-search-tab {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Active-tab bottom indicator: re-align to the updated padding-bottom */
  .tk-search-tab::after {
    bottom: -15px;
  }

  /* --- Search form ---
     Force single column; min-width: 0 on the grid itself prevents
     auto-min from causing grid columns to overflow their track.       */
  .tk-search-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  /* --- Field wrapper ---
     min-width: 0 is critical for grid children — without it the browser
     defaults to auto which equals the content's max-content width,
     potentially wider than the 1fr track.                             */
  .tk-search-field {
    min-width: 0;
  }

  /* --- Inputs & selects ---
     Explicit box-sizing + min-width: 0 guarantee full-width layout
     even when the input has a browser-default min-width (e.g. date
     inputs on some Android WebView builds).  Height 48 px keeps a
     comfortable touch target without feeling oversized.               */
  .tk-search-input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* --- Datepicker wrapper ---
     The hidden alt-input that flatpickr injects can inherit a
     browser default min-width; zero it out so it never causes bleed.  */
  .tk-datepicker-wrap {
    min-width: 0;
  }
  .tk-datepicker-wrap .flatpickr-input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* --- Submit button ---
     Already width: 100% in base rules; add explicit height and min-height
     so the tap target is always ≥ 44 px on touch devices.             */
  .tk-search-submit {
    width: 100%;
    height: 50px;
    min-height: 44px;
  }
}

/* ── 7. Stats bar mobile grid ── */
@media (max-width: 767.98px) {
  .tk-stats-bar {
    padding: 32px 0;
  }

  .tk-stats-bar .row {
    row-gap: 24px;
  }

  .tk-stat-item {
    padding: 0 8px;
  }

  .tk-stat-num {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-stats-bar {
    padding: 36px 0;
  }
}

/* ── 8. Section title: scale subtitle and eyebrow on mobile ── */
@media (max-width: 767.98px) {
  .tk-section-title {
    text-align: center;
    padding: 0 8px;
  }

  .tk-section-title .tk-subtitle {
    font-size: 1rem;
  }

  .tk-eyebrow {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  /* Display headings: clamp already handles most cases but add a floor */
  .tk-display-1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .tk-display-2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .tk-subtitle {
    font-size: 1rem;
  }
}

/* ── 9. Flight card: prevent min-width overflow on narrow screens ── */
@media (max-width: 767.98px) {
  .tk-flight-card-body {
    padding: 16px;
    gap: 12px;
  }

  .tk-flight-card-price {
    min-width: 0;  /* Remove fixed min-width that can cause horizontal scroll */
    padding: 14px 16px;
  }

  /* Route line can shrink below 80px on very small phones */
  .tk-flight-route {
    min-width: 60px;
  }

  .tk-flight-time-block {
    min-width: 60px;
  }

  .tk-flight-time {
    font-size: 1.25rem;
  }
}

/* ── 10. Hotel / Car / Destination card: reduce image height on mobile ── */
@media (max-width: 767.98px) {
  .tk-hotel-img {
    height: 200px;
  }

  .tk-hotel-body {
    padding: 14px 16px;
  }

  .tk-hotel-footer {
    padding: 12px 16px;
  }

  .tk-car-img {
    height: 160px;
  }

  .tk-car-body {
    padding: 14px 16px;
  }

  .tk-car-footer {
    padding: 10px 16px;
  }
}

/* ── 11. Card body padding: reduce on mobile ── */
@media (max-width: 767.98px) {
  .tk-card-body {
    padding: 16px;
  }

  .tk-card-header,
  .tk-card-footer {
    padding: 12px 16px;
  }
}

/* ── 12. Filter sidebar: collapse to off-canvas / flat on mobile ── */
@media (max-width: 767.98px) {
  /* Filter sidebar loses sticky positioning on mobile so it flows naturally */
  .tk-filter-sidebar {
    position: static;
  }

  .tk-filter-panel {
    padding: 16px;
  }
}

/* ── 13. Footer: center bottom bar content & fix social icon gap on mobile ── */
@media (max-width: 767.98px) {
  .tk-footer-top {
    padding: 36px 0 24px;
  }

  .tk-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 0;
  }

  .tk-footer-bottom p {
    text-align: center;
  }

  .tk-social-links {
    justify-content: center;
  }

  .tk-social-btn {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .tk-payment-badges {
    justify-content: center;
  }

  .tk-footer-brand-desc {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .tk-footer-bottom {
    gap: 10px;
  }
}

/* ── 14. Page hero: reduce padding on mobile / tablet ── */
@media (max-width: 767.98px) {
  .tk-page-hero {
    padding: 70px 0 40px;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-page-hero {
    padding: 88px 0 50px;
  }
}

/* ── 15. CTA section: reduce padding on mobile ── */
@media (max-width: 767.98px) {
  .tk-cta-section {
    padding: 52px 0;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-cta-section {
    padding: 64px 0;
  }
}

/* ── 16. Booking steps: improve readability on tablet ── */
@media (min-width: 576px) and (max-width: 767.98px) {
  .tk-step-label {
    font-size: 13px;
    white-space: normal;
    max-width: 72px;
    text-align: center;
  }

  .tk-step-sublabel {
    display: none;
  }
}

/* ── 17. Dashboard sidebar: ensure proper left offset on RTL mobile ── */
@media (max-width: 1023.98px) {
  [dir="rtl"] .tk-sidebar {
    left: auto;
    right: -280px;
    transition: right var(--tk-slow) var(--tk-ease);
  }

  [dir="rtl"] .tk-sidebar.open {
    right: 0;
    left: auto;
  }
}

/* ── 18. Auth pages: tablet needs a slimmer hero column ── */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .tk-auth-form-col {
    padding: 48px 32px;
    flex: 1.2;
  }

  .tk-auth-hero-col {
    flex: 0.8;
  }

  .tk-auth-hero-content {
    padding: 48px 32px;
  }
}

/* ── 19. Stat cards in dashboard: single column on small mobile ── */
@media (max-width: 575.98px) {
  .tk-stat-card {
    padding: 16px;
    gap: 12px;
  }

  .tk-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .tk-stat-value {
    font-size: 1.5rem;
  }
}

/* ── 20. Flatpickr calendar: full-width on small screens ── */
@media (max-width: 767.98px) {
  .flatpickr-calendar {
    width: calc(100vw - 32px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: var(--tk-r-lg) !important;
  }
}

/* ── 21. Trust badges: wrap nicely on mobile ── */
@media (max-width: 767.98px) {
  .tk-trust-badges {
    gap: 8px;
  }

  .tk-trust-badge {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ── 22. Autocomplete dropdown: always full-width on mobile ── */
@media (max-width: 767.98px) {
  .tk-autocomplete {
    position: fixed;
    left: 16px !important;
    right: 16px !important;
    width: auto;
    z-index: var(--tk-z-modal);
  }
}

/* ── 23. Dropdown menu: prevent overflow on mobile ── */
@media (max-width: 767.98px) {
  .tk-dd {
    min-width: 160px;
    max-width: calc(100vw - 32px);
  }
}

/* ── 24. Feature cards: reduce padding on mobile ── */
@media (max-width: 767.98px) {
  .tk-feature-card {
    padding: 20px 16px;
  }

  .tk-feature-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: 14px;
  }
}

/* ── 25. Prevent horizontal overflow from fixed min-widths ── */
@media (max-width: 479.98px) {
  /* On very small phones (iPhone SE, Galaxy A03), remove minimum widths
     that would cause the flight card route segment to overflow */
  .tk-flight-route { min-width: 48px; }
  .tk-flight-time-block { min-width: 52px; }
  .tk-flight-card-price { min-width: 0; }

  /* Reduce stat number size to fit 2-per-row on narrow screens */
  .tk-stat-num { font-size: 1.5rem; }
}
