:root {
  --primary-color: #c17a3a;
  --secondary-color: #8b6f47;
  --dark-color: #2c2416;
  --light-color: #f5f1ed;
  --accent-color: #d4a574;
  --text-dark: #333;
  --text-light: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

/* Navbar */
.navbar {
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0.5rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* Add dark background to prevent white flash between transitions */
  background-color: #1a1410;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100vh;
}

/* Use Bootstrap's default carousel transitions with opacity */
.hero-carousel .carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enable smooth fade transitions */
.hero-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.hero-carousel.carousel-fade .active.carousel-item-start,
.hero-carousel.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}

.hero-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

/* Proper positioning for carousel caption */
.hero-carousel .carousel-caption {
  position: static;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 2;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
  z-index: 3;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
  left: 30px;
}

.hero-carousel .carousel-control-next {
  right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(193, 122, 58, 0.8);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

/* Carousel caption animations */
.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Page Header */
.page-header {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 76px;
}

.page-header-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.page-header-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 122, 58, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Safari Cards */
.safari-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.safari-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.safari-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.safari-card-body {
  padding: 1.5rem;
}

.safari-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.safari-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Wildlife Preview */
.wildlife-preview {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.wildlife-preview:hover {
  transform: scale(1.05);
}

.wildlife-preview img {
  transition: transform 0.3s ease;
}

.wildlife-preview:hover img {
  transform: scale(1.1);
}

/* Feature Boxes */
.feature-box {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-box h4 {
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.stars {
  color: #ffc107;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-color);
}

/* Safari Detail Cards */
.safari-detail-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.safari-detail-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.safari-detail-body {
  padding: 2rem;
}

.safari-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.safari-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.95rem;
}

.safari-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safari-highlights ul {
  list-style: none;
  padding-left: 0;
}

.safari-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.safari-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Included Items */
.included-item {
  padding: 1.5rem;
}

.included-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Destinations */
.destination-section {
  padding: 3rem 0;
}

.destination-title {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.destination-features ul {
  list-style: none;
  padding-left: 0;
}

.destination-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.destination-features .bi-check-circle-fill {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Season Cards */
.season-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.season-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.season-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Team Cards */
.team-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-bio {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Value Cards */
.value-card {
  text-align: center;
}

.value-image {
  overflow: hidden;
  border-radius: 8px;
}

.value-image img {
  transition: transform 0.3s ease;
}

.value-card:hover .value-image img {
  transform: scale(1.05);
}

/* Conservation Items */
.conservation-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.conservation-item .bi-check-circle-fill {
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Award Cards */
.award-card {
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.award-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Gallery */
.gallery-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.gallery-grid {
  margin-top: 2rem;
}

.gallery-item {
  transition: opacity 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h5 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.gallery-overlay p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Contact Form */
.contact-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e0e0e0;
  padding: 0.75rem;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(193, 122, 58, 0.25);
}

/* Contact Info */
.contact-info-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-info-item h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-info-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

.office-image {
  border-radius: 8px;
  overflow: hidden;
}

.social-connect {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.social-links-large {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 5px;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-large:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
}

/* FAQ */
.faq-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h5 {
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-item .bi-question-circle-fill {
  color: var(--primary-color);
}

.faq-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Map Section */
.map-section {
  height: 450px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Section */
.cta-section {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 0 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact i {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header-content h1 {
    font-size: 2rem;
  }

  .safari-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .gallery-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}
