/* ═════════════════════════════════════════════════════════════════════════════
   SHADCN / VERCEL INSPIRED TRAVEL DESIGN SYSTEM
   Clean, typography-driven, subtle borders, high contrast, consumer-grade travel feel
   ═════════════════════════════════════════════════════════════════════════════ */

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

:root {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadcn Dark Neutral Base (Zinc/Slate) */
  --background: #09090b;
  --foreground: #fafafa;
  --card: #09090b;
  --card-foreground: #fafafa;
  --card-border: rgba(255, 255, 255, 0.09);
  --popover: #09090b;
  --popover-foreground: #fafafa;
  
  --primary: #fafafa;
  --primary-foreground: #09090b;
  
  --secondary: #18181b;
  --secondary-foreground: #fafafa;
  --secondary-hover: #27272a;
  
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --muted-dim: #71717a;
  
  --accent: #27272a;
  --accent-foreground: #fafafa;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --input: rgba(255, 255, 255, 0.12);
  --ring: rgba(250, 250, 250, 0.2);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --header-h: 60px;
}

[data-theme="light"] {
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --card-border: rgba(0, 0, 0, 0.08);
  
  --primary: #09090b;
  --primary-foreground: #ffffff;
  
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --secondary-hover: #e4e4e7;
  
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --muted-dim: #a1a1aa;
  
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --input: rgba(0, 0, 0, 0.12);
  --ring: rgba(9, 9, 11, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Universal Link Reset — Never let browser default blue links appear */
a, a:visited, a:active {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER NAVIGATION (SHADCN / VERCEL STYLE) ──────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 10px #3b82f6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── BUTTONS (SHADCN VARIANTS) ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-default:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--foreground);
}
.btn-outline:hover {
  background: var(--secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}
.btn-ghost:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.btn-google:active {
  transform: scale(0.99);
}
[data-theme="dark"] .btn-google {
  background: #18181b;
  color: #f4f4f5;
  border-color: #27272a;
}
[data-theme="dark"] .btn-google:hover {
  background: #27272a;
  border-color: #3f3f46;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

/* ── HERO & SEARCH SECTION ────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-section {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  font-weight: 400;
  line-height: 1.6;
}

/* ── SEARCH PILL (VERCEL / AIRBNB FUSION) ──────────────────── */
.search-bar-wrap {
  max-width: 700px;
  margin: 0 auto 40px;
  background: var(--secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar-wrap:focus-within {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
}

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

/* ── CATEGORY PILLS ───────────────────────────────────────── */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pill-item {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-item:hover {
  color: var(--foreground);
  border-color: var(--border-strong);
}

.pill-item.active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* ── TRAVEL CARDS (LIFESTYLE & SERVICE CENTRIC) ───────────── */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.trip-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  cursor: pointer;
}

.trip-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.trip-thumb-wrap {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.trip-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trip-card:hover .trip-thumb {
  transform: scale(1.03);
}

.trip-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trip-duration-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trip-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trip-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--foreground);
}

.trip-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.trip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.trip-author {
  font-size: 0.8125rem;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.input-field {
  width: 100%;
  height: 38px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0 12px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 14px;
}

.input-field:focus {
  border-color: var(--foreground);
}

/* ── ANIMATIONS & TRANSITIONS ─────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION) ──────── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-wrap span {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .search-bar-wrap {
    padding: 6px 6px 6px 14px;
    margin-bottom: 28px;
  }

  .travel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    padding: 24px 16px;
  }
}

