/*
 * Travel Booking System — Custom Styles
 * Supplements Tailwind CSS. Inter font loaded via <link> in layout.
 */

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Line clamp utilities ────────────────────────────────── */
.line-clamp-1, .line-clamp-2, .line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ── Package card hover lift ─────────────────────────────── */
.package-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}

/* ── Smooth page entry ───────────────────────────────────── */
main {
  animation: pageFadeIn 0.25s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Chatbot scrollbar ───────────────────────────────────── */
#chat-messages {
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 2px;
}

/* ── Chatbot message bubble transitions ──────────────────── */
#chat-messages > div {
  animation: bubbleIn 0.2s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Prose (rich package description) ───────────────────── */
.prose p   { margin-bottom: 1rem; line-height: 1.75; }
.prose h2  { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #111827; }
.prose h3  { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1f2937; }
.prose ul  { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol  { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li  { margin-bottom: 0.35rem; }
.prose strong { font-weight: 600; color: #111827; }
.prose a   { color: #0ea5e9; text-decoration: underline; }

/* ── WhatsApp float pulse ────────────────────────────────── */
.wa-pulse {
  animation: waPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ── Focus ring consistency ──────────────────────────────── */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* ── Responsive images ───────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Thumbnail hover overlay ─────────────────────────────── */
.thumb-hover {
  position: relative;
  overflow: hidden;
}
.thumb-hover img {
  transition: transform 0.5s ease;
}
.thumb-hover:hover img {
  transform: scale(1.08);
}

/* ── Steps indicator ─────────────────────────────────────── */
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ── Print styles ────────────────────────────────────────── */
@media print {
  header, footer, .no-print, .wa-float { display: none !important; }
  main  { padding: 0 !important; }
  body  { background: white !important; }
  .print-break { page-break-before: always; }
}
