/* ==========================================================================
   OK-KVYTOK.COM Design System — High-End Aero Tech (Porsche / Apple level)
   ========================================================================== */

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

:root {
  --color-primary: #004f9d;
  --color-primary-dark: #071527;
  --color-primary-light: #005caf;
  --color-primary-electric: #0077c8;
  --color-accent: #74c10e;
  --color-accent-hover: #86d918;
  --color-accent-dark: #5fa30a;
  --color-accent-light: #f2fce2;
  --color-success: #10b981;
  --color-surface: #ffffff;
  --color-bg: #f8fafc;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* SUPER FONT SMOOTHING ENGINE */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  font-family: var(--font-body);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01", "kern" 1;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  letter-spacing: -0.012em;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
  font-feature-settings: "cv02", "cv04", "cv11", "ss01", "kern" 1;
}

/* Tabular figures for numbers, time, prices */
.tabular-nums, .font-mono, [data-price], [data-time] {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile-friendly horizontal scroll that doesn't block vertical page scroll */
.country-scroll-container {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -15px rgba(7, 21, 39, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

/* Multi-tier diffused ambient shadow for high-end cards */
.card-premium {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0 1px 2px rgba(7, 21, 39, 0.03),
    0 4px 16px -2px rgba(7, 21, 39, 0.05),
    0 16px 36px -8px rgba(7, 21, 39, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card-premium:hover {
  border-color: rgba(0, 92, 175, 0.35);
  box-shadow: 
    0 1px 3px rgba(7, 21, 39, 0.05),
    0 12px 28px -4px rgba(0, 92, 175, 0.12),
    0 24px 52px -12px rgba(7, 21, 39, 0.08);
  transform: translateY(-3px);
}

/* ========================================================
   HIGH-END SEARCH TRIP CARDS
   ======================================================== */

.trip-card-base {
  background: #ffffff;
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Regular Trip Card */
.trip-card-regular {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 1px 2px rgba(7, 21, 39, 0.03),
    0 4px 16px -2px rgba(7, 21, 39, 0.04);
}

.trip-card-regular:hover {
  border-color: rgba(0, 92, 175, 0.35);
  box-shadow: 
    0 4px 12px rgba(7, 21, 39, 0.05),
    0 16px 36px -6px rgba(0, 92, 175, 0.10);
  transform: translateY(-2px);
}

/* Ultra-Premium Recommended Trip Card */
.trip-card-recommended {
  border: 1.5px solid rgba(116, 193, 14, 0.55);
  background: radial-gradient(ellipse at 15% 0%, rgba(116, 193, 14, 0.05) 0%, rgba(255, 255, 255, 0) 65%), #ffffff;
  box-shadow: 
    0 0 0 1px rgba(116, 193, 14, 0.15),
    0 4px 16px -2px rgba(116, 193, 14, 0.10),
    0 16px 36px -8px rgba(7, 21, 39, 0.06);
}

.trip-card-recommended:hover {
  border-color: rgba(116, 193, 14, 0.85);
  box-shadow: 
    0 0 0 2px rgba(116, 193, 14, 0.25),
    0 8px 24px -2px rgba(116, 193, 14, 0.18),
    0 24px 48px -10px rgba(7, 21, 39, 0.10);
  transform: translateY(-2px);
}

/* Recommended VIP Badge - Sleek Cockpit Tag */
.badge-recommended-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.28rem 0.85rem;
  background: linear-gradient(135deg, #071527 0%, #0d2646 100%);
  color: #ffffff;
  font-size: 0.6875rem; /* 11px */
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0 0 0.75rem 0.75rem;
  border-right: 1px solid rgba(116, 193, 14, 0.4);
  border-bottom: 1px solid rgba(116, 193, 14, 0.4);
  border-left: 1px solid rgba(116, 193, 14, 0.4);
  box-shadow: 
    0 4px 12px rgba(7, 21, 39, 0.18),
    0 1px 3px rgba(116, 193, 14, 0.2);
}

/* 3D Icon Presentation Box */
.icon-3d-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f0f7ff 65%, #e2effe 100%);
  border: 1px solid rgba(0, 92, 175, 0.12);
  box-shadow: 
    0 2px 8px -1px rgba(7, 21, 39, 0.05),
    0 8px 20px -3px rgba(0, 92, 175, 0.10),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1.25rem;
}

.card-premium:hover .icon-3d-wrapper {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(116, 193, 14, 0.4);
  box-shadow: 
    0 4px 12px -1px rgba(7, 21, 39, 0.08),
    0 14px 30px -4px rgba(116, 193, 14, 0.28),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
}

.icon-3d-wrapper img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(7, 21, 39, 0.12));
  transition: transform 0.35s ease;
}

.card-premium:hover .icon-3d-wrapper img {
  transform: scale(1.06);
}

/* Hero gradient with Highway Neon Glow (Smooth, no grid) */
.hero-gradient {
  background: linear-gradient(135deg, #071527 0%, #0c2340 50%, #082d54 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(116, 193, 14, 0.18) 0%, transparent 45%),
                    radial-gradient(circle at 15% 85%, rgba(0, 168, 255, 0.14) 0%, transparent 50%),
                    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Search Box Floating styling */
.search-widget-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(7, 21, 39, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-box {
  transition: all 0.2s ease;
  border: 1.5px solid #e2e8f0;
}
.search-input-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(11, 59, 117, 0.08);
}

/* Date input - clickable everywhere to open calendar */
input[type="date"] {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
input[type="date"]::-webkit-datetime-edit {
  cursor: pointer;
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15);
}

/* Swap button animation */
.btn-swap {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-swap:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  max-height: 320px;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.9);
  z-index: 60;
}

.autocomplete-item {
  transition: background-color 0.15s ease;
}
.autocomplete-item:hover, .autocomplete-item.selected {
  background-color: #f1f5f9;
}

/* Bus Seat Map Styling */
.bus-chassis {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 36px 36px 24px 24px;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.bus-seat {
  width: 44px;
  height: 48px;
  border-radius: 10px 10px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.bus-seat.free {
  background-color: #ffffff;
  border: 2px solid #94a3b8;
  color: #1e293b;
}
.bus-seat.free:hover {
  background-color: #eff6ff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 59, 117, 0.15);
}

.bus-seat.selected {
  background: linear-gradient(135deg, #74c10e, #10b981);
  border: 2px solid #5fa30a;
  color: #0b1a04;
  font-weight: 800;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(116, 193, 14, 0.4);
}

.bus-seat.occupied {
  background-color: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #cbd5e1;
  cursor: not-allowed;
}

.bus-seat::before {
  content: '';
  position: absolute;
  top: -4px;
  width: 24px;
  height: 4px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 2px;
}

.bus-seat-aisle {
  width: 32px;
}

/* Card Ticket Styles */
.ticket-boarding-pass {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  position: relative;
}

.perforated-cutout {
  position: relative;
}
.perforated-cutout::before, .perforated-cutout::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--color-bg);
  border-radius: 50%;
  top: -12px;
  z-index: 10;
}
.perforated-cutout::before {
  left: -12px;
}
.perforated-cutout::after {
  right: -12px;
}

.perforated-line {
  border-bottom: 2px dashed #cbd5e1;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Floating Messenger Widget */
.messenger-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  filter: drop-shadow(0 10px 20px rgba(11, 59, 117, 0.25));
}
