/* ==========================================================================
   DAINTY TOURS UGANDA - MASTER STYLESHEET
   Palette: Uganda Forest Emerald (#0d4a29 / #166534), Safari Gold (#f59e0b / #d97706),
   Crisp White (#ffffff) & Deep Slate (#0f172a)
   ========================================================================== */

:root {
  --dtu-green-dark: #072e18;
  --dtu-green-primary: #0d4a29;
  --dtu-green-mid: #156b3c;
  --dtu-green-light: #dcfce7;
  --dtu-green-soft: #f3faf6;
  --dtu-gold-primary: #f59e0b;
  --dtu-gold-hover: #d97706;
  --dtu-orange-accent: #ea580c;
  --dtu-dark: #0f172a;
  --dtu-text: #1e293b;
  --dtu-muted: #64748b;
  --dtu-border: #e2e8f0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 4px 12px rgba(7, 46, 24, 0.06);
  --shadow-md: 0 12px 28px rgba(7, 46, 24, 0.11);
  --shadow-lg: 0 20px 45px rgba(7, 46, 24, 0.16);
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dtu-text);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   Top Info Bar & Main Navigation Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--dtu-green-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--dtu-gold-primary);
}

.navbar-dainty {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(7, 46, 24, 0.08);
  padding: 0.7rem 0;
  transition: all 0.3s ease;
}

.navbar-brand-logo {
  height: 48px;
  width: auto;
}

.navbar-dainty .nav-link {
  color: var(--dtu-dark);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.55rem 0.95rem !important;
  border-radius: 8px;
  position: relative;
}

.navbar-dainty .nav-link:hover,
.navbar-dainty .nav-link.active {
  color: var(--dtu-green-primary);
  background: var(--dtu-green-soft);
}

.btn-book-nav {
  background: linear-gradient(135deg, var(--dtu-gold-primary) 0%, var(--dtu-orange-accent) 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.62rem 1.35rem !important;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-book-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.45);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-gold {
  background: linear-gradient(135deg, var(--dtu-gold-primary) 0%, var(--dtu-gold-hover) 100%);
  color: #072e18;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.78rem 1.75rem;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.32);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--dtu-gold-hover) 0%, var(--dtu-orange-accent) 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--dtu-green-primary) 0%, var(--dtu-green-mid) 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 0.78rem 1.75rem;
  box-shadow: 0 8px 20px rgba(13, 74, 41, 0.25);
}

.btn-emerald:hover {
  background: var(--dtu-green-dark);
  color: var(--dtu-gold-primary);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  border: 2px solid var(--dtu-green-primary);
  color: var(--dtu-green-primary);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.65rem 1.45rem;
}

.btn-outline-emerald:hover {
  background: var(--dtu-green-primary);
  color: #ffffff;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--dtu-green-light);
  color: var(--dtu-green-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
  color: var(--dtu-green-dark);
}

/* --------------------------------------------------------------------------
   Hero Section & Slider
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-color: var(--dtu-green-dark);
  overflow: hidden;
  color: #ffffff;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(5, 31, 16, 0.88) 0%, rgba(13, 74, 41, 0.68) 55%, rgba(7, 46, 24, 0.78) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4.5rem 0;
}

.hero-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde68a;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-heading span {
  color: var(--dtu-gold-primary);
}

.hero-description {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 660px;
  margin-bottom: 2rem;
}

.hero-search-bar {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2.75rem;
  color: var(--dtu-dark);
}

/* --------------------------------------------------------------------------
   Tour & Destination Cards
   -------------------------------------------------------------------------- */
.tour-card,
.destination-card,
.feature-card,
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--dtu-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card:hover,
.destination-card:hover,
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--dtu-green-dark);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.tour-card:hover .card-img-wrap img,
.destination-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 46, 24, 0.88);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.card-price-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--dtu-gold-primary);
  color: #072e18;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-body-custom {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.83rem;
  color: var(--dtu-muted);
  margin-bottom: 0.65rem;
}

.tour-meta i {
  color: var(--dtu-green-primary);
}

/* --------------------------------------------------------------------------
   Why Choose Us & Feature Boxes
   -------------------------------------------------------------------------- */
.feature-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--dtu-green-light) 0%, #bbf7d0 100%);
  color: var(--dtu-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.15rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  background: var(--dtu-green-primary);
  color: var(--dtu-gold-primary);
}

/* --------------------------------------------------------------------------
   Page Banner Header (Subpages)
   -------------------------------------------------------------------------- */
.page-hero-banner {
  background: linear-gradient(120deg, rgba(7, 46, 24, 0.92), rgba(21, 107, 60, 0.84)),
              url('../images/destinations/bwindi.svg') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 3.75rem;
  position: relative;
}

.page-hero-banner h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

/* --------------------------------------------------------------------------
   Gallery Grid & Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 265px;
  box-shadow: var(--shadow-sm);
  background: var(--dtu-green-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 27, 14, 0.9) 0%, rgba(5, 27, 14, 0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 10, 0.94);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-height: 76vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dtu-gold-primary);
  color: #072e18;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-prev { left: -12px; }
.lightbox-next { right: -12px; }
.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1050;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.42);
  animation: pulseWhatsapp 2.5s infinite;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: translateY(-3px) scale(1.03);
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-dainty {
  background: var(--dtu-green-dark);
  color: rgba(255, 255, 255, 0.84);
  padding-top: 4.5rem;
}

.footer-dainty h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: var(--dtu-gold-primary);
  padding-left: 4px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-btn:hover {
  background: var(--dtu-gold-primary);
  color: #072e18;
}

/* --------------------------------------------------------------------------
   Administrator Dashboard Layout
   -------------------------------------------------------------------------- */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 265px;
  background: var(--dtu-green-dark);
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  margin: 0.15rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: var(--dtu-green-primary);
  color: var(--dtu-gold-primary);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-card-admin {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Visual Tour Package Selector on Book Now Page */
.visual-tour-option {
  cursor: pointer;
  transition: all 0.22s ease;
}

.visual-tour-option:hover {
  border-color: var(--dtu-green-primary) !important;
  background-color: var(--dtu-green-soft) !important;
  transform: translateY(-2px);
}

.visual-tour-option.selected-tour-card {
  border: 2px solid var(--dtu-gold-primary) !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 4px 12px rgba(13, 74, 41, 0.1);
}

@media (max-width: 991.98px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}

