/* =========================================================
   APLUS ADVENTURES TOURISM — MAIN STYLESHEET
   Design System: Navy / White / Gold — Premium Travel Brand
   ========================================================= */

:root {
  --navy: #0a1f44;
  --navy-dark: #061530;
  --navy-light: #123167;
  --gold: #d4af37;
  --gold-light: #e8cc6f;
  --brand-purple: #501261;
  --brand-purple-dark: #23081f;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text-dark: #1a1a1a;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.18);
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

a { text-decoration: none; transition: var(--transition); }

.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-off-white { background-color: var(--off-white) !important; }

/* ---------- Buttons ---------- */
.btn-gold {
  background: var(--gold);
  border: none;
  color: var(--navy-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--navy-dark);
}
.btn-outline-navy {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius);
  border: none;
  transition: var(--transition);
}
.btn-navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-2px); }

/* ---------- Top Info Bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: var(--gray-light);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar a { color: var(--gray-light); }
.topbar a:hover { color: var(--gold); }
.topbar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-left: 6px;
  color: var(--white);
}
.topbar .social-icons a:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Navbar ---------- */
.navbar-main {
  background: var(--white);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-main.scrolled { padding: 8px 0; }
.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
}
.brand-logo span { color: var(--gold); }
.brand-logo-link { display: flex; align-items: center; }
.brand-logo-img {
  height: 74px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}
.navbar-main.scrolled .brand-logo-img { height: 56px; }
.footer-logo-badge {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
}
.footer-logo-badge::before {
  content: '';
  position: absolute;
  inset: -18px -26px;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.06) 55%, rgba(212,175,55,0) 75%);
  border-radius: 20px;
  z-index: 0;
  pointer-events: none;
}
.footer-logo-img {
  position: relative;
  z-index: 1;
  height: 92px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
@media (max-width: 575px) {
  .brand-logo-img { height: 54px; }
  .navbar-main.scrolled .brand-logo-img { height: 46px; }
  .footer-logo-img { height: 72px; }
}
.navbar-main .nav-link {
  color: var(--navy);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}
.navbar-main .nav-link.active,
.navbar-main .nav-link:hover { color: var(--gold); }
.navbar-main .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
}
.nav-auth-btns .btn { padding: 8px 20px; font-size: 0.9rem; }

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; background: var(--navy-dark); }
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  min-height: 92vh;
  min-height: 92svh;
}
.hero-slider .carousel-item {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,21,48,0.78) 0%, rgba(6,21,48,0.5) 45%, rgba(6,21,48,0.88) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); width: 100%; }
.hero-content .eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
}
.hero-content h1 {
  color: var(--white);
  font-size: 3.6rem;
  line-height: 1.14;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(22px);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  opacity: 0;
  transform: translateY(22px);
}
.hero-content .d-flex.gap-3,
.hero-content .hero-stats {
  opacity: 0;
  transform: translateY(22px);
}
.carousel-item.active .hero-content .eyebrow { animation: heroRise .7s ease .15s forwards; }
.carousel-item.active .hero-content h1 { animation: heroRise .8s ease .3s forwards; }
.carousel-item.active .hero-content p { animation: heroRise .8s ease .45s forwards; }
.carousel-item.active .hero-content .d-flex.gap-3 { animation: heroRise .8s ease .6s forwards; }
.carousel-item.active .hero-content .hero-stats { animation: heroRise .8s ease .75s forwards; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow, .hero-content h1, .hero-content p,
  .hero-content .d-flex.gap-3, .hero-content .hero-stats { opacity: 1; transform: none; animation: none; }
}

/* Hero info stats */
.hero-stats { padding-top: 6px; }
.hero-stat {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.2;
}
.hero-stat strong i { color: var(--gold); font-size: 1.1rem; margin-left: 4px; }
.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Hero slider controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(10,31,68,0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-indicators {
  position: absolute;
  z-index: 5;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-indicators button {
  width: 34px; height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  padding: 0;
  transition: var(--transition);
}
.hero-indicators button.active { background: var(--gold); width: 46px; }
@media (max-width: 767px) {
  .hero-arrow { display: none; }
  .hero-indicators { bottom: 90px; }
}

.page-hero {
  position: relative;
  padding: 160px 0 90px;
  background-size: cover;
  background-position: center;
}
.page-hero::before { content:''; position:absolute; inset:0; background: rgba(6,21,48,0.78); }
.page-hero .container { position: relative; z-index: 2; color: var(--white); }
.page-hero h1 { color: var(--white); }
.breadcrumb-custom a { color: var(--gold); }
.breadcrumb-custom span { color: rgba(255,255,255,0.6); }

/* ---------- Search Widget ---------- */
.search-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.search-widget label { font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.search-widget .form-control, .search-widget .form-select {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 12px 14px;
}
.search-widget .form-control:focus, .search-widget .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* ---------- Section Titles ---------- */
.section-pad { padding: 90px 0; }
.section-title .eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.section-title h2 { font-size: 2.4rem; margin-top: 8px; }
.section-title p { color: var(--gray); max-width: 600px; }

/* ---------- Destination Cards ---------- */
.destination-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-sm);
}
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.destination-card:hover img { transform: scale(1.08); }
.destination-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,68,0) 40%, rgba(6,21,48,0.92) 100%);
}
.destination-card .content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px; color: var(--white);
}
.destination-card .content h4 { color: var(--white); margin-bottom: 6px; }
.destination-card .content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 14px; }
.destination-card .btn-explore {
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.destination-card .btn-explore:hover { color: var(--gold-light); gap: 10px; }

/* ---------- Tour Cards ---------- */
.tour-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  background: var(--white);
}
.tour-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.tour-card .img-wrap { position: relative; height: 230px; overflow: hidden; }
.tour-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tour-card:hover .img-wrap img { transform: scale(1.1); }
.tour-card .price-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: var(--navy-dark);
  font-weight: 700; padding: 6px 14px; border-radius: 30px; font-size: 0.9rem;
}
.tour-card .duration-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(6,21,48,0.75); color: var(--white);
  font-size: 0.8rem; padding: 4px 12px; border-radius: 30px;
}
.tour-card .body { padding: 22px; }
.tour-card .location { color: var(--gray); font-size: 0.85rem; }
.tour-card .rating { color: var(--gold); font-size: 0.85rem; }
.tour-card h5 { margin: 8px 0; }
.tour-card p.desc { color: var(--gray); font-size: 0.9rem; }
.tour-card .footer-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--gray-light); padding-top: 14px; margin-top: 14px;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); background: var(--navy); }
.service-card:hover h4, .service-card:hover p { color: var(--white); }
.service-card:hover .icon-circle { background: var(--gold); color: var(--navy-dark); }
.icon-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(10,31,68,0.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px; transition: var(--transition);
}
.service-card p { color: var(--gray); font-size: 0.9rem; }

/* ---------- Why Choose Us ---------- */
.why-item { display: flex; gap: 18px; margin-bottom: 30px; }
.why-item .icon-box {
  min-width: 60px; height: 60px; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-box { text-align: center; color: var(--white); }
.stat-box h2 { color: var(--gold); font-size: 2.8rem; }
.stat-box p { color: rgba(255,255,255,0.75); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  margin: 10px;
}
.testimonial-card .quote-icon { color: var(--gold); font-size: 1.8rem; opacity: 0.5; }
.testimonial-card .stars { color: var(--gold); font-size: 0.85rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial-card .author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author h6 { margin: 0; }
.testimonial-card .author span { font-size: 0.8rem; color: var(--gray); }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.newsletter-section h3 { color: var(--white); }
.newsletter-section p { color: rgba(255,255,255,0.75); }
.newsletter-section .form-control { border-radius: 8px 0 0 8px; padding: 14px; border: none; }
.newsletter-section .btn-gold { border-radius: 0 8px 8px 0; }

/* ---------- Footer ---------- */
.footer-main {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-dark) 45%, var(--brand-purple-dark) 100%);
  color: rgba(255,255,255,0.7);
  padding-top: 70px;
  position: relative;
}
.footer-main h5 { color: var(--white); margin-bottom: 20px; }
.footer-main a { color: rgba(255,255,255,0.65); }
.footer-main a:hover { color: var(--gold); }
.footer-main ul { list-style: none; padding: 0; }
.footer-main ul li { margin-bottom: 10px; }
.footer-main .brand-logo { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 50px; font-size: 0.85rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-right: 8px; color: var(--white);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Forms (auth, contact, booking) ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 60px 0;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card .side-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-card .side-panel h3 { color: var(--white); }
.auth-card .form-side { padding: 50px; }
.form-control-custom {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 13px 16px;
}
.form-control-custom:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.form-label-custom { font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 6px; }

.card-elevated {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
}

/* ---------- Tour Filters ---------- */
.btn-reset-filters {
  border: none;
  background: none;
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 8px;
  text-decoration: underline;
}
.btn-reset-filters:hover { color: var(--gold); }
.filter-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.9rem;
  pointer-events: none;
}
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.category-pills .pill {
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 30px;
  transition: var(--transition);
}
.category-pills .pill:hover { border-color: var(--gold); color: var(--gold); }
.category-pills .pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.no-results-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px dashed var(--gray-light);
}
.no-results-box i { font-size: 2.2rem; color: var(--gold); margin-bottom: 14px; }

/* ---------- Dashboards ---------- */
.dash-sidebar {
  background: var(--navy);
  min-height: 100vh;
  color: var(--white);
  padding: 30px 0;
}
.dash-sidebar .brand-logo { color: var(--white); padding: 0 24px 30px; display:block; }
.dash-sidebar a.dash-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px; color: rgba(255,255,255,0.75);
  font-weight: 500; border-left: 3px solid transparent;
}
.dash-sidebar a.dash-link:hover, .dash-sidebar a.dash-link.active {
  background: rgba(255,255,255,0.06); color: var(--white); border-left-color: var(--gold);
}
.dash-content { background: var(--off-white); min-height: 100vh; padding: 34px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 18px;
}
.stat-card .icon-circle { margin: 0; min-width: 56px; height: 56px; }
.stat-card h3 { margin: 0; font-size: 1.8rem; }
.stat-card span { color: var(--gray); font-size: 0.85rem; }
.badge-status-pending { background: #fef3c7; color: #92400e; }
.badge-status-confirmed { background: #d1fae5; color: #065f46; }
.badge-status-cancelled { background: #fee2e2; color: #991b1b; }

.table-custom thead { background: var(--navy); color: var(--white); }
.table-custom thead th { border: none; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table-custom td, .table-custom th { padding: 16px; vertical-align: middle; }

/* ---------- Itinerary Timeline ---------- */
.itinerary-timeline { position: relative; padding-left: 40px; }
.itinerary-timeline::before {
  content: ''; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-light);
}
.itinerary-day { position: relative; margin-bottom: 30px; }
.itinerary-day::before {
  content: ''; position: absolute; left: -40px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
}
.itinerary-day h5 { margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-main { border-radius: var(--radius); overflow: hidden; height: 420px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb { border-radius: 8px; overflow: hidden; height: 100px; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-thumb:hover img { transform: scale(1.1); }

/* ---------- Misc ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

.preloader {
  position: fixed; inset: 0; background: var(--navy); z-index: 9999;
  display: flex; align-items: center; justify-content: center; transition: opacity .4s ease, visibility .4s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }

[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-show { opacity: 1; transform: translateY(0); }

@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.4rem; }
  .section-title h2 { font-size: 1.9rem; }
  .newsletter-section { padding: 40px 24px; text-align: center; }
  .auth-card .side-panel { display: none; }
}
