/*
 * UP Tourism Portal — Main Stylesheet (assets/css/style.css)
 * Design: Clean, government-grade, saffron + deep-green palette
 */

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Colours */
  --saffron:        #FF6B00;
  --saffron-light:  #FF8C42;
  --saffron-pale:   #FFF3E8;
  --deep-green:     #1A3C34;
  --forest:         #2D6A4F;
  --forest-mid:     #40916C;
  --cream:          #FDFAF5;
  --gold:           #C9A84C;
  --gold-light:     #E8C96A;
  --maroon:         #6D0B0B;
  --text-dark:      #1A1A1A;
  --text-mid:       #444444;
  --text-muted:     #777777;
  --border-light:   rgba(0,0,0,0.08);

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.16);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-accent:  'Bebas Neue', sans-serif;

  /* Layout */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --nav-h:      72px;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ─── Typography ─────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--saffron-pale);
  color: var(--saffron);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-saffron {
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}
.btn-saffron:hover {
  background: #e55a00;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.28);
}
.btn-saffron:active { transform: translateY(0); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

.btn-green {
  background: var(--forest-mid);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.btn-green:hover { background: var(--forest); color: #fff; }

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--deep-green);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1001;
}
.topbar a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar .divider { width: 1px; height: 12px; background: rgba(255,255,255,0.2); margin: 0 12px; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-h);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar-main.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.99);
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text span:first-child {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--deep-green);
}
.nav-logo-text span:last-child {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
}

.nav-link-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link-item:hover  { color: var(--saffron); background: var(--saffron-pale); }
.nav-link-item.active { color: var(--saffron); }

.nav-cta {
  background: var(--saffron) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #e55a00 !important; color: #fff !important; }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
  display: none;
  min-width: 640px;
  z-index: 999;
  animation: fadeDropDown 0.2s ease;
}
.nav-item-drop:hover .mega-menu { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }

@keyframes fadeDropDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s;
}
.mega-item:hover { background: var(--saffron-pale); }
.mega-icon {
  width: 40px; height: 40px;
  background: var(--saffron-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mega-item:hover .mega-icon { background: var(--saffron); }
.mega-text strong { display: block; font-size: 13px; font-weight: 600; }
.mega-text span   { font-size: 11px; color: var(--text-muted); }

.mobile-menu-btn {
  background: none; border: none;
  font-size: 24px; color: var(--text-dark);
  cursor: pointer; padding: 4px;
  display: flex; align-items: center;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 2px;
  padding-top: calc(var(--nav-h) + 24px);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.mobile-nav-link:hover { background: var(--saffron-pale); color: var(--saffron); }

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,18,12,0.78) 0%, rgba(8,18,12,0.28) 65%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.75;
}

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 48px; }
.hero-stat {}
.hero-stat .num {
  font-family: var(--font-accent, 'Bebas Neue', sans-serif);
  font-size: 38px;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }

/* Slide dots */
.slide-dots { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.slide-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%; cursor: pointer;
  border: none; padding: 0;
  transition: all 0.3s;
}
.slide-dot.active { width: 24px; border-radius: 3px; background: #fff; }

.hero-thumbs { position: absolute; bottom: 28px; right: 28px; z-index: 10; display: flex; gap: 10px; }
.hero-thumb {
  width: 68px; height: 50px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  opacity: 0.6;
}
.hero-thumb.active { border-color: var(--gold); opacity: 1; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Search Box ─────────────────────────────────────────────── */
.search-section { position: relative; z-index: 20; margin-top: -52px; padding: 0 16px; }
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  border: 1px solid var(--border-light);
}
.search-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.search-tab {
  padding: 8px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.search-tab.active { color: var(--saffron); border-bottom-color: var(--saffron); }
.search-tab:hover  { color: var(--saffron); }

.search-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }

.search-field label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.search-field select,
.search-field input {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.search-field select:focus,
.search-field input:focus { border-color: var(--saffron); background: #fff; }

.search-btn {
  background: var(--saffron); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 0 28px; height: 46px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.search-btn:hover { background: #e55a00; }

/* ─── Package Cards ──────────────────────────────────────────── */
.pkg-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--text-dark);
}
.pkg-img { height: 200px; overflow: hidden; position: relative; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.pkg-card:hover .pkg-img img { transform: scale(1.06); }
.pkg-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--saffron); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.pkg-badge.green  { background: var(--forest-mid); }
.pkg-badge.gold   { background: var(--gold); }
.pkg-badge.blue   { background: #0056b3; }
.pkg-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted);
  cursor: pointer; border: none; transition: all 0.2s;
}
.pkg-wishlist:hover { background: #fff; color: #e74c3c; }
.pkg-body { padding: 18px; }
.pkg-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pkg-meta-item {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.pkg-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.pkg-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.pkg-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.pkg-price .from   { font-size: 10px; color: var(--text-muted); display: block; }
.pkg-price .amount { font-size: 22px; font-weight: 700; color: var(--saffron); font-family: var(--font-display); }
.pkg-price .per    { font-size: 11px; color: var(--text-muted); }
.pkg-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }

/* ─── Social Buttons ─────────────────────────────────────────── */
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 16px;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* ─── WhatsApp Float ─────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.38);
  transition: all 0.25s;
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
  0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,0.38); }
  50%      { box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: #111; color: rgba(255,255,255,0.65); }
.footer-main { padding: 60px 0 40px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  display: block;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 22px; max-width: 320px; }
.footer-col h5 {
  color: #fff; font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--saffron); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-contact-item i { color: var(--saffron); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ─── Animations ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* ─── Gallery ────────────────────────────────────────────────── */
.gallery-img { transition: transform 0.45s ease; }
.gal-item:hover .gallery-img { transform: scale(1.08); }

/* ─── Prose content (rich text from CMS) ────────────────────── */
.prose-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 24px 0 12px; }
.prose-content h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 20px 0 10px; }
.prose-content p  { margin-bottom: 16px; }
.prose-content ul { margin-bottom: 16px; padding-left: 20px; }
.prose-content li { margin-bottom: 6px; }
.prose-content a  { color: var(--saffron); }
.prose-content img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow-sm); }
.prose-content blockquote {
  border-left: 4px solid var(--saffron);
  padding: 12px 20px;
  background: var(--saffron-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 20px 0;
}

/* ─── User Dashboard ─────────────────────────────────────────── */
.dash-stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

/* ─── Booking Status Badges ──────────────────────────────────── */
.status-pending   { background: #fff3cd; color: #856404; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-confirmed { background: #d4edda; color: #155724; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-cancelled { background: #f8d7da; color: #721c24; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.status-completed { background: #cce5ff; color: #004085; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; }

/* ─── Star Ratings ───────────────────────────────────────────── */
.text-warning { color: var(--gold) !important; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .desktop-nav { display: none !important; }
  .search-row  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-thumbs { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .hero { max-height: 700px; }
  .hero-title { font-size: clamp(34px, 9vw, 56px); }
  .hero-stats { gap: 20px; }
  .search-section { margin-top: -32px; }
  .search-row { grid-template-columns: 1fr; }
  .search-card { padding: 18px; }
}

@media (max-width: 576px) {
  .wa-float { width: 46px; height: 46px; font-size: 22px; bottom: 20px; right: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats .hero-stat .num { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .stagger-child, .hero-slide, .pkg-card, .dest-card { transition: none !important; animation: none !important; }
}
