/* ============================================================
   TRAVELK DESIGN SYSTEM v1
   Liquid Glass + Booking-grade UI

   REGOLA FERREA: NESSUNA EMOJI IN UI. MAI.
   Solo icone SVG stilizzate (set Lucide).
   ============================================================ */

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

:root {
  --tk-blue: #0B5FFF;
  --tk-blue-deep: #003B9A;
  --tk-blue-soft: #E8F0FF;
  --tk-orange: #FF6A3D;
  --tk-gold: #F5B544;
  --tk-mint: #00C9A7;
  --tk-coral: #FF5470;
  --tk-ink: #0A0E27;
  --tk-slate-700: #2E3548;
  --tk-slate-500: #6B7390;
  --tk-slate-300: #C7CDE0;
  --tk-slate-100: #EEF1F8;
  --tk-snow: #F8FAFD;
  --tk-glass-light: rgba(255, 255, 255, 0.72);
  --tk-glass-light-strong: rgba(255, 255, 255, 0.88);
  --tk-glass-dark: rgba(11, 15, 30, 0.55);
  --tk-glass-border: rgba(255, 255, 255, 0.35);
  --tk-glass-border-soft: rgba(255, 255, 255, 0.18);
  --tk-grad-sky: linear-gradient(135deg, #0B5FFF 0%, #00C9A7 100%);
  --tk-grad-sunset: linear-gradient(135deg, #FF6A3D 0%, #F5B544 100%);
  --tk-grad-night: linear-gradient(180deg, #0A0E27 0%, #003B9A 100%);
  --tk-grad-page: linear-gradient(180deg, #F8FAFD 0%, #EEF1F8 100%);
  --tk-shadow-sm: 0 2px 8px rgba(11, 15, 30, 0.06);
  --tk-shadow-md: 0 8px 24px rgba(11, 15, 30, 0.10);
  --tk-shadow-lg: 0 16px 48px rgba(11, 15, 30, 0.16);
  --tk-shadow-glass: 0 8px 32px rgba(11, 15, 30, 0.12), inset 0 1px 0 rgba(255,255,255,0.5);
  --tk-r-sm: 8px;
  --tk-r-md: 12px;
  --tk-r-lg: 16px;
  --tk-r-xl: 24px;
  --tk-r-2xl: 32px;
  --tk-r-full: 9999px;
  --tk-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tk-dur-fast: 150ms;
  --tk-dur: 250ms;
  --tk-dur-slow: 400ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tk-ink);
  background: var(--tk-grad-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tk-display { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.tk-h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.tk-h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.tk-h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.tk-body-lg { font-size: 16px; line-height: 1.55; font-weight: 400; }
.tk-body { font-size: 14px; line-height: 1.55; font-weight: 400; }
.tk-small { font-size: 12.5px; line-height: 1.5; font-weight: 500; }
.tk-tiny { font-size: 10.5px; line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.tk-text-muted { color: var(--tk-slate-500); }
.tk-text-secondary { color: var(--tk-slate-700); }
.tk-text-brand { color: var(--tk-blue); }

.tk-glass {
  background: var(--tk-glass-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--tk-glass-border);
  border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-glass);
}
.tk-glass-strong {
  background: var(--tk-glass-light-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--tk-glass-border);
  border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-glass);
}

.tk-card {
  background: white;
  border-radius: var(--tk-r-lg);
  border: 1px solid var(--tk-slate-100);
  box-shadow: var(--tk-shadow-sm);
  overflow: hidden;
  transition: transform var(--tk-dur) var(--tk-ease), box-shadow var(--tk-dur) var(--tk-ease);
}
.tk-card:hover { transform: translateY(-2px); box-shadow: var(--tk-shadow-md); }

.tk-card-glass {
  background: var(--tk-glass-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--tk-glass-border);
  border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-glass);
  overflow: hidden;
  transition: transform var(--tk-dur) var(--tk-ease), box-shadow var(--tk-dur) var(--tk-ease);
}
.tk-card-glass:hover { transform: translateY(-2px); box-shadow: var(--tk-shadow-lg); }

.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--tk-r-md);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--tk-dur-fast) var(--tk-ease); white-space: nowrap;
}
.tk-btn:active { transform: scale(0.97); }
.tk-btn-primary { background: var(--tk-blue); color: white; box-shadow: 0 4px 12px rgba(11,95,255,0.25); }
.tk-btn-primary:hover { background: var(--tk-blue-deep); }
.tk-btn-gradient { background: var(--tk-grad-sky); color: white; box-shadow: 0 4px 16px rgba(11,95,255,0.3); }
.tk-btn-sunset { background: var(--tk-grad-sunset); color: white; box-shadow: 0 4px 16px rgba(255,106,61,0.3); }
.tk-btn-glass {
  background: var(--tk-glass-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--tk-glass-border);
  color: var(--tk-ink);
}
.tk-btn-glass:hover { background: var(--tk-glass-light-strong); }
.tk-btn-ghost { background: transparent; color: var(--tk-blue); }
.tk-btn-ghost:hover { background: var(--tk-blue-soft); }
.tk-btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: var(--tk-r-sm); }
.tk-btn-lg { padding: 16px 28px; font-size: 16px; }

.tk-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--tk-slate-300); border-radius: var(--tk-r-md);
  background: white; font-family: inherit; font-size: 14px; color: var(--tk-ink);
  transition: all var(--tk-dur-fast) var(--tk-ease); outline: none;
}
.tk-input:focus { border-color: var(--tk-blue); box-shadow: 0 0 0 4px rgba(11,95,255,0.12); }

.tk-search {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--tk-glass-light-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--tk-glass-border);
  border-radius: var(--tk-r-full);
  box-shadow: var(--tk-shadow-sm);
  transition: all var(--tk-dur) var(--tk-ease);
}
.tk-search:focus-within { box-shadow: var(--tk-shadow-md), 0 0 0 4px rgba(11,95,255,0.12); }
.tk-search input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14px; }

.tk-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--tk-r-full);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tk-badge-blue { background: var(--tk-blue-soft); color: var(--tk-blue-deep); }
.tk-badge-mint { background: rgba(0,201,167,0.12); color: #008870; }
.tk-badge-orange { background: rgba(255,106,61,0.12); color: #C44A20; }
.tk-badge-gold { background: rgba(245,181,68,0.15); color: #B07A0B; }
.tk-badge-coral { background: rgba(255,84,112,0.12); color: #C73C57; }
.tk-badge-slate { background: var(--tk-slate-100); color: var(--tk-slate-700); }

.tk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--tk-r-full);
  background: var(--tk-slate-100); color: var(--tk-slate-700);
  font-size: 12.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--tk-dur-fast) var(--tk-ease);
}
.tk-chip:hover { background: var(--tk-blue-soft); color: var(--tk-blue-deep); }
.tk-chip-active { background: var(--tk-blue); color: white; }

.tk-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--tk-glass-light-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--tk-glass-border);
  padding: 16px 20px;
}

.tk-bottom-nav {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--tk-glass-light-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--tk-glass-border);
  border-radius: var(--tk-r-2xl);
  box-shadow: var(--tk-shadow-lg);
  display: flex; justify-content: space-around; padding: 10px 6px;
  z-index: 100; max-width: 480px; margin: 0 auto;
}
.tk-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 12px; border-radius: var(--tk-r-md);
  color: var(--tk-slate-500); text-decoration: none;
  font-size: 10.5px; font-weight: 600;
  transition: all var(--tk-dur-fast) var(--tk-ease);
}
.tk-bottom-nav-item:hover { color: var(--tk-blue); background: var(--tk-blue-soft); }
.tk-bottom-nav-item.active { color: var(--tk-blue); }
.tk-bottom-nav-item svg { width: 22px; height: 22px; }

.tk-hero {
  position: relative; border-radius: var(--tk-r-2xl); overflow: hidden;
  padding: 32px 24px; color: white; background: var(--tk-grad-sky);
  box-shadow: var(--tk-shadow-lg);
}
.tk-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}

.tk-container { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.tk-stack { display: flex; flex-direction: column; }
.tk-stack-2 { gap: 8px; }
.tk-stack-3 { gap: 12px; }
.tk-stack-4 { gap: 16px; }
.tk-stack-6 { gap: 24px; }
.tk-row { display: flex; align-items: center; }
.tk-row-2 { gap: 8px; }
.tk-row-3 { gap: 12px; }
.tk-row-4 { gap: 16px; }
.tk-grow { flex: 1; }

.tk-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes tk-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tk-fade-up { animation: tk-fade-up var(--tk-dur-slow) var(--tk-ease) both; }

@media (min-width: 768px) {
  .tk-container { max-width: 720px; }
  .tk-bottom-nav { display: none; }
}
