/* ==============================================
   Ghoomers Pakistan - Custom Styles
   Built with Bootstrap 5 + Custom CSS
   ============================================== */

/* --- Variables --- */
:root {
  --brand: #C85A2E;
  --brand-hover: #A84820;
  --brand-light: #FDF3EE;
  --forest: #1B4D3E;
  --forest-hover: #143D30;
  --gold: #C9A84C;
  --sand: #FAF8F5;
  --sand-dark: #F0EDE8;
  --ink: #2D2A26;
  --ink-secondary: #6B6560;
  --ink-muted: #9B958F;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- Brand Colors --- */
.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.text-forest { color: var(--forest) !important; }
.bg-forest { background-color: var(--forest) !important; }
.bg-sand { background-color: var(--sand) !important; }

/* --- Top Bar --- */
.top-bar { background: var(--forest); }

/* --- Navbar --- */
.main-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1030;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.main-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.main-nav .nav-link:hover {
  color: var(--brand);
  background: var(--sand-dark);
}
.main-nav .nav-link.active {
  color: var(--brand) !important;
  background: var(--brand-light);
}
.btn-brand {
  background: var(--brand);
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.btn-brand:hover {
  background: var(--brand-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200,90,46,0.3);
}
.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: white;
}
.btn-forest {
  background: var(--forest);
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
}
.btn-forest:hover { background: var(--forest-hover); color: white; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem 1rem;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: white; width: 40px; }

/* --- Search Card --- */
.search-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  overflow: hidden;
}
.search-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.search-tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.search-tab-btn.active {
  background: var(--brand);
  color: white;
}
.search-tab-btn:hover:not(.active) {
  background: var(--sand-dark);
}
.search-field {
  background: var(--sand-dark);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.search-field:focus-within {
  border-color: var(--brand);
}
.search-field input, .search-field select {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  color: var(--ink);
}
.search-field label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

/* --- Filter Chips --- */
.filter-chip {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--sand-dark);
  color: var(--ink-secondary);
}
.filter-chip:hover { background: var(--brand-light); color: var(--brand); }
.filter-chip.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(200,90,46,0.2);
}
.filter-chip.forest.active {
  background: var(--forest);
  box-shadow: 0 4px 12px rgba(27,77,62,0.2);
}

/* --- Cards --- */
.card-tour {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.card-tour:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.card-tour .card-img {
  height: 220px;
  overflow: hidden;
}
.card-tour .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card-tour:hover .card-img img { transform: scale(1.05); }
.tour-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Guide Card --- */
.guide-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s;
  height: 100%;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.guide-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--brand-light);
}

/* --- Stats Section --- */
.stats-section {
  background: var(--forest);
  color: white;
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

/* --- Footer --- */
.footer-main {
  background: #1a1a1a;
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hover-link { transition: color 0.2s, padding-left 0.2s; }
.hover-link:hover { color: var(--brand) !important; padding-left: 4px; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}
.social-icon:hover {
  background: var(--brand);
  color: white;
}

/* --- WhatsApp Widget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
}
.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
  color: white;
}

/* --- Section Header --- */
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brand);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* --- Trust Badges --- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.trust-badge:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* --- Testimonial --- */
.testimonial-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* --- Newsletter --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--forest) 0%, #0f2e24 100%);
  color: white;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--forest);
}

/* --- Hero Search Results --- */
.search-results {
  margin-top: 1.5rem;
}
.result-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.result-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* --- Tour Detail Page --- */
.tour-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
}
.tour-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

/* --- Accordion Custom --- */
.accordion-custom .accordion-button {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.75rem !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: none;
}
.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand-light);
}
.accordion-custom .accordion-body {
  padding: 1.25rem;
}
.accordion-custom .accordion-item {
  border: none;
  margin-bottom: 0.5rem;
  background: transparent;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .brand-name { font-size: 1.1rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- Form Controls --- */
.form-control-custom {
  background: var(--sand-dark);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.form-control-custom:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200,90,46,0.1);
  outline: none;
  background: white;
}

/* --- Price Tag --- */
.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.price-tag small {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  font-weight: 400;
}

/* --- Difficulty Badges --- */
.badge-easy { background: #E8F5E9; color: #2E7D32; }
.badge-moderate { background: #FFF3E0; color: #EF6C00; }
.badge-challenging { background: #FFEBEE; color: #C62828; }

/* --- Sticky Sidebar --- */
.sticky-sidebar {
  position: sticky;
  top: 90px;
}

/* --- Mobile Offcanvas --- */
.offcanvas { max-width: 340px; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--ink-muted); border-radius: 3px; }
