/* =========================================================
   MULTIVENDOR BOOKING — DESIGN SYSTEM
   ========================================================= */
:root {
  --brand-primary: #4F46E5;   /* indigo */
  --brand-primary-dark: #3730A3;
  --brand-accent: #F59E0B;    /* amber */
  --brand-teal: #14B8A6;
  --brand-pink: #EC4899;
  --brand-danger: #EF4444;
  --brand-success: #22C55E;
  --bg-soft: #F8F9FC;
  --text-dark: #1E1B2E;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 8px 24px rgba(79,70,229,0.08);
  --shadow-card: 0 4px 14px rgba(0,0,0,0.06);
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Poppins', sans-serif; font-weight: 600; }

/* ---------- NAVBAR ---------- */
.navbar-gradient {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}
.navbar-gradient .nav-link, .navbar-gradient .navbar-brand { color: #fff !important; }
.navbar-gradient .nav-link:hover { color: var(--brand-accent) !important; }

/* ---------- SIDEBAR (admin/vendor panels) ---------- */
.app-sidebar {
  width: 250px;
  min-height: calc(100vh - 56px);
  background: #ffffff;
  border-right: 1px solid #eee;
  padding: 20px 14px;
}
.app-sidebar .nav-link {
  color: #4B5563;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 4px;
  font-weight: 500;
  transition: all .15s ease;
}
.app-sidebar .nav-link i { width: 20px; margin-right: 8px; color: var(--brand-primary); }
.app-sidebar .nav-link:hover { background: #EEF2FF; color: var(--brand-primary); }
.app-sidebar .nav-link.active { background: var(--brand-primary); color: #fff; }
.app-sidebar .nav-link.active i { color: #fff; }

/* ---------- STAT CARDS ---------- */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.stat-card small { opacity: .85; font-weight: 500; letter-spacing: .3px; }
.stat-card h3 { font-size: 30px; margin: 6px 0 0; font-weight: 700; }
.stat-card i.stat-icon { position: absolute; right: 14px; top: 14px; font-size: 34px; opacity: .25; }

.bg-grad-indigo { background: linear-gradient(135deg, #6366F1, #4338CA); }
.bg-grad-teal   { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
.bg-grad-amber  { background: linear-gradient(135deg, #FBBF24, #B45309); }
.bg-grad-pink   { background: linear-gradient(135deg, #F472B6, #BE185D); }
.bg-grad-green  { background: linear-gradient(135deg, #4ADE80, #15803D); }
.bg-grad-cyan   { background: linear-gradient(135deg, #22D3EE, #0E7490); }
.bg-grad-dark   { background: linear-gradient(135deg, #475569, #1E293B); }
.bg-purple { background: linear-gradient(135deg, #A78BFA, #6D28D9); }
.bg-teal   { background: linear-gradient(135deg, #2DD4BF, #0F766E); }

/* ---------- CARDS / TABLES ---------- */
.card { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card-header { background: #fff; border-bottom: 1px solid #F1F1F5; font-weight: 600; border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
table.table thead { background-color: #F5F6FB; }
table.table th { font-weight: 600; color: #4B5563; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.badge { border-radius: 20px; padding: 5px 12px; font-weight: 500; }

/* ---------- BUTTONS ---------- */
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); border-radius: var(--radius-md); }
.btn-primary:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }
.btn { border-radius: var(--radius-md); font-weight: 500; }

/* ---------- PUBLIC WEBSITE ---------- */
.hero-section {
  background: linear-gradient(120deg, #4F46E5 0%, #6D28D9 55%, #EC4899 100%);
  color: #fff;
  padding: 90px 0 130px;
  border-radius: 0 0 40px 40px;
}
.hero-section h1 { font-size: 42px; font-weight: 700; }
.hero-section p.lead { font-size: 18px; opacity: .92; }

.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  padding: 26px;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

.nav-tabs.service-tabs .nav-link {
  border: none; border-radius: 30px; font-weight: 600; color: #6B7280; padding: 10px 22px;
}
.nav-tabs.service-tabs .nav-link.active { background: var(--brand-primary); color: #fff; }
.nav-tabs.service-tabs { border: none; gap: 8px; }

.listing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
  height: 100%;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.listing-card .listing-img { height: 190px; object-fit: cover; width: 100%; }
.listing-card .price-tag { font-size: 20px; font-weight: 700; color: var(--brand-primary); }
.listing-card .rating-pill { background: var(--brand-success); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }

.section-title { font-weight: 700; margin-bottom: 6px; }
.section-subtitle { color: #6B7280; margin-bottom: 30px; }

.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #EEF2FF; color: var(--brand-primary); font-size: 26px; margin-bottom: 14px;
}

footer.site-footer { background: #1E1B2E; color: #cbd5e1; padding: 50px 0 20px; margin-top: 60px; }
footer.site-footer a { color: #cbd5e1; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }

/* Ride-along floating badge for "Add a local ride" prompts */
.ride-add-banner {
  background: linear-gradient(90deg, #14B8A6, #0EA5E9);
  color: #fff; border-radius: var(--radius-md); padding: 14px 18px;
}

/* =========================================================
   MATERIAL INTERACTIVITY LAYER (ripples, reveal, motion)
   ========================================================= */

/* Ripple effect */
.ripple-surface { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
.btn-outline-primary .ripple-effect,
.btn-outline-light .ripple-effect,
.btn-light .ripple-effect { background: rgba(79,70,229,0.25); }
@keyframes ripple-anim {
  to { transform: scale(2.6); opacity: 0; }
}

/* Navbar scroll shadow */
.navbar-gradient { transition: box-shadow .25s ease, padding .25s ease; }
.navbar-scrolled { box-shadow: 0 6px 20px rgba(79,70,229,0.25); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].reveal-visible { opacity: 1; transform: translateY(0); }

/* Back to top FAB */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(79,70,229,0.4);
  opacity: 0; visibility: hidden; transform: scale(.8);
  transition: all .25s ease; z-index: 999; border: none;
}
#backToTop.show { opacity: 1; visibility: visible; transform: scale(1); }
#backToTop:hover { background: var(--brand-primary-dark); }

/* Floating "Book Now" mobile FAB */
.mobile-book-fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 998;
  background: var(--brand-primary); color: #fff; text-align: center;
  padding: 14px; border-radius: 16px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(79,70,229,0.35); display: none;
}
@media (max-width: 767px) { .mobile-book-fab.active { display: block; } }

/* Quantity steppers (rooms/passengers) */
.stepper { display: flex; align-items: center; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; width: fit-content; }
.stepper button { border: none; background: #F5F6FB; width: 36px; height: 36px; font-weight: 700; color: var(--brand-primary); }
.stepper input { width: 44px; text-align: center; border: none; font-weight: 600; }
.stepper input:focus { outline: none; }

/* Image gallery thumbnails */
.gallery-thumb { border-radius: 10px; cursor: pointer; opacity: .65; transition: opacity .2s; height: 70px; object-fit: cover; width: 100%; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; outline: 2px solid var(--brand-primary); }

/* Sticky booking summary card */
.sticky-summary { position: sticky; top: 90px; }

/* Filter chip buttons (search pages) */
.filter-chip {
  display: inline-block; padding: 8px 16px; border-radius: 30px;
  border: 1px solid #E5E7EB; background: #fff; font-size: 13px; font-weight: 500;
  color: #4B5563; cursor: pointer; transition: all .15s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* Skeleton loading shimmer (for async-feeling lists) */
.skeleton { background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Testimonial cards */
.testimonial-card { border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); padding: 26px; height: 100%; }
.testimonial-card .stars { color: var(--brand-accent); margin-bottom: 10px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Stats band */
.stats-band { background: linear-gradient(135deg,#EEF2FF,#F5F3FF); border-radius: var(--radius-lg); padding: 40px 20px; }
.stats-band h2 { font-size: 36px; font-weight: 700; color: var(--brand-primary); margin-bottom: 4px; }

/* Sort/tab pill row */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   V2 POLISH — richer motion, better depth, nicer everything
   ========================================================= */

/* ---------- Smoother global transitions ---------- */
a, button, .btn, .card, .listing-card, .nav-link { transition: all .2s ease; }

/* ---------- Sticky navbar: glassmorphism on scroll ---------- */
.navbar-gradient.navbar-scrolled {
  background: linear-gradient(90deg, rgba(79,70,229,.97) 0%, rgba(55,48,163,.97) 100%);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(79,70,229,.28);
}
.navbar-gradient .nav-link { position: relative; }
.navbar-gradient .nav-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--brand-accent); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.navbar-gradient .nav-link:hover::after { transform: scaleX(1); }

/* ---------- Hero: subtle animated gradient shimmer ---------- */
.hero-section {
  background-size: 200% 200%;
  animation: heroGradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-section h1 { animation: fadeInUp .8s ease both; }
.hero-section p.lead { animation: fadeInUp .8s ease .15s both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating decorative blobs behind hero content */
.hero-section::before, .hero-section::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08); filter: blur(2px);
  animation: floatBlob 9s ease-in-out infinite;
}
.hero-section::before { width: 180px; height: 180px; top: -40px; left: 6%; }
.hero-section::after { width: 120px; height: 120px; bottom: -30px; right: 8%; animation-delay: -4s; }
@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.08); }
}

/* ---------- Listing cards: richer hover ---------- */
.listing-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.listing-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 40px rgba(79,70,229,.16); }
.listing-card .listing-img { transition: transform .5s ease; }
.listing-card:hover .listing-img { transform: scale(1.08); }
.listing-card { will-change: transform; }
.listing-card > .position-relative, .listing-card > img { overflow: hidden; }

/* ---------- Buttons: lift + glow on hover ---------- */
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,70,229,.35); }
.btn-outline-primary:hover, .btn-outline-success:hover, .btn-outline-secondary:hover { transform: translateY(-2px); }

/* ---------- Feature icons: gentle bounce on hover ---------- */
.feature-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.feature-icon:hover, .col-md-3:hover .feature-icon, .col-md-4:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }

/* ---------- Testimonial cards: soft lift ---------- */
.testimonial-card { transition: transform .25s ease, box-shadow .25s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }

/* ---------- Stats band: count-up numbers pop ---------- */
.stats-band h2 { transition: transform .2s ease; }
.stats-band .col-6:hover h2, .stats-band .col-md-3:hover h2 { transform: scale(1.08); }

/* ---------- Section title underline accent ---------- */
.section-title { position: relative; display: inline-block; padding-bottom: 10px; }
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-pink));
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ---------- Rating pill: subtle pulse ---------- */
.rating-pill { animation: none; }
.listing-card:hover .rating-pill { animation: pillPulse .6s ease; }
@keyframes pillPulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Filter chips: springy select ---------- */
.filter-chip { transition: all .2s cubic-bezier(.34,1.56,.64,1); }
.filter-chip.active { transform: scale(1.05); }
.filter-chip:active { transform: scale(.96); }

/* ---------- Form focus glow ---------- */
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}

/* ---------- Search card: entrance animation ---------- */
.search-card { animation: fadeInUp .7s ease .1s both; }

/* ---------- Badges: subtle glow for status ---------- */
.badge.bg-success { box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.badge.bg-danger { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

/* ---------- Loading spinner (for async-feeling actions) ---------- */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%;
  margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: btnSpin .6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- Price tag: gentle emphasis ---------- */
.price-tag { transition: color .2s ease; }
.listing-card:hover .price-tag { color: var(--brand-primary-dark); }

/* ---------- Footer: fade its links in on hover ---------- */
footer.site-footer a { transition: color .2s ease, padding-left .2s ease; }
footer.site-footer a:hover { padding-left: 4px; }

/* ---------- Mobile polish ---------- */
@media (max-width: 767px) {
  .hero-section h1 { font-size: 30px; }
  .hero-section { padding: 60px 0 100px; }
  .search-card { margin-top: -60px; padding: 18px; }
}

/* ---------- Success checkmark: celebratory pop + ring pulse ---------- */
.success-check-anim {
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
}
.success-check-anim::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 3px solid #22C55E; opacity: 0; animation: successRing 1s ease-out .3s both;
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes successRing {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
