/* Color Variables based on Logo */
:root {
  --terra-coral: #e77a5b;
  --terra-dark: #1f2436;
  --bg-light-tint: #fcfdfe;
}

.text-terra {
  color: var(--terra-coral) !important;
}

.bg-terra-dark {
  background-color: var(--terra-dark) !important;
}

/* Custom Header Styling Modifications */
.custom-navbar {
  padding-top: 12px;
  padding-bottom: 12px;
  transition: all 0.3s ease-in-out;
}

/* Regular state text links */
.custom-navbar .navbar-nav .nav-link {
  color: #1f2436 !important; /* Logo Deep Navy */
  padding-left: 15px !important;
  padding-right: 15px !important;
  position: relative;
  transition: color 0.25s ease;
}

/* Highlight Hover and Active Link States explicitly */
.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link.active,
.custom-navbar .navbar-nav .show > .nav-link {
  color: #e77a5b !important; /* Logo Coral Orange */
}

/* Optional Bottom Accent Bar for Desktop Screens on Active Link */
@media (min-width: 992px) {
  .custom-navbar .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: #e77a5b;
    border-radius: 2px;
  }
}

/* Explicit Dropdown Menu Cleanups */
.custom-navbar .dropdown-menu {
  background-color: #ffffff;
  padding: 10px 0;
  margin-top: 10px !important;
}

/* Stripping out borders, dots, or unwanted frames from sub-menus */
.custom-navbar .dropdown-menu li,
.custom-navbar .dropdown-item {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
}

.custom-navbar .dropdown-item {
  color: #1f2436 !important;
  padding: 8px 20px !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Dropdown link interactions */
.custom-navbar .dropdown-item:hover {
  background-color: rgba(
    231,
    122,
    91,
    0.08
  ) !important; /* Very soft brand orange tint */
  color: #e77a5b !important;
  padding-left: 24px !important; /* Subtle slide-out indicator animation */
}

/* Mobile responsive navigation optimization */
@media (max-width: 991px) {
  .custom-navbar .navbar-collapse {
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
  }

  .custom-navbar .navbar-nav .nav-link {
    padding: 10px 0 !important;
  }

  .custom-navbar .navbar-nav .nav-link.active::after {
    display: none; /* Hide bottom line on phone stacks */
  }

  .custom-navbar .dropdown-menu {
    box-shadow: none !important;
    background-color: #f8f9fa; /* Slightly off-white for sub-levels on phone views */
    padding-left: 15px;
  }
}

/* Custom heights and scaling for video elements */
.custom-carousel-height {
  height: 554px;
}

/* Force video to fill container without distortion */
.object-fit-cover {
  object-fit: cover;
}

/* Color matched to your Terra Travel Logo */
.text-terra {
  color: #e77a5b;
}

/* Carousel Caption Enhancements */
.carousel-caption {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ensures text is always readable over moving videos */
  left: 10% !important;
  right: 10% !important;
}

/* Mobile Responsiveness Fine-Tuning */
@media (max-width: 576px) {
  .custom-carousel-height {
    height: 380px; /* Reduces slider height slightly on mobile devices for improved presentation */
  }

  .carousel-caption h2 {
    font-size: 1.4rem; /* Scale down heading on smartphones */
  }

  .small-mobile-text {
    font-size: 0.85rem; /* Shrinks description paragraph so text does not overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits paragraph to 3 lines on tiny screens if needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Custom Card Hover Animation */
.custom-card {
  transition:
    transform 0.25s ease-in-out,
    box-shadow 0.25s ease-in-out;
}

.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

/* Custom Terra Travel Button Styling */
.btn-terra {
  background-color: #e77a5b; /* The exact coral/orange from your logo */
  color: #ffffff;
  border: none;
  transition: all 0.25s ease-in-out;
}

.btn-terra:hover {
  background-color: #1f2436; /* The exact deep navy from your logo */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(231, 122, 91, 0.3); /* Subtle orange glow on hover */
}

/* Optional: Outline version if you need a secondary button */
.btn-outline-terra {
  background-color: transparent;
  color: #1f2436;
  border: 2px solid #1f2436;
  transition: all 0.25s ease-in-out;
}

.btn-outline-terra:hover {
  background-color: #e77a5b;
  border-color: #e77a5b;
  color: #ffffff;
}

/* Custom Header Underline decoration */
.custom-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #e77a5b; /* Terra Coral */
  border-radius: 2px;
}

/* Feature Icon Circle Containers */
.icon-box {
  width: 50px;
  height: 50px;
  background-color: rgba(
    231,
    122,
    91,
    0.12
  ); /* Pale version of your logo's coral */
  color: #e77a5b; /* Main logo coral */
  transition: all 0.25s ease-in-out;
}

/* Feature Item Interaction Animations */
.custom-feature-card {
  transition:
    transform 0.25s ease-in-out,
    box-shadow 0.25s ease-in-out;
  background: #ffffff;
}

.custom-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Inverts icon styling when container is hovered to create premium feel */
.custom-feature-card:hover .icon-box {
  background-color: #e77a5b;
  color: #ffffff;
}

/* Custom Immersive CTA Background */
.custom-cta-bg {
  /* Using a dark, moody mountain/road image that works perfectly for a travel brand */
  background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect for desktop screens */
}

/* Ensure helper layer stack order works flawlessly */
.z-0 {
  z-index: 0;
}
.z-1 {
  z-index: 1;
}

/* Text opacity styling for readability */
.text-light-50 {
  color: rgba(255, 255, 255, 0.85);
}

/* Button Fine-Tuning & Interaction */
.custom-cta-btn {
  transition: all 0.3s ease-in-out;
}

.custom-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(231, 122, 91, 0.4) !important;
}

/* Subtle animation on the luggage icon when hovered */
.custom-cta-btn:hover .animate-luggage {
  display: inline-block;
  animation: shake 0.5s ease infinite;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Mobile Screen Scaling Fixes */
@media (max-width: 768px) {
  .custom-cta-bg {
    background-attachment: scroll; /* Disables parallax on mobile to save performance */
  }
  .custom-cta-bg h2 {
    font-size: 2rem !important; /* Prevents text overflowing past viewport edge */
  }
  .style-lead-text {
    font-size: 1rem !important;
  }
  .custom-cta-btn {
    width: 100%; /* Makes button large, tappable, and finger-friendly on mobile screens */
    padding: 12px 20px !important;
  }
}

/* About Hero Section */
.about-hero {
  background:
    linear-gradient(rgba(31, 36, 54, 0.8), rgba(31, 36, 54, 0.8)),
    url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px 0;
}

/* Feature Icons Box */
.about-icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(231, 122, 91, 0.1);
  color: var(--terra-coral);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Review Section Styling */
.review-card {
  background: #ffffff;
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}
.user-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(231, 122, 91, 0.2);
}
.star-rating {
  color: #ffc107;
}

/* Deep premium theme matched to the navy blue in your logo */
.bg-terra-dark {
  background-color: #1f2436;
}

/* Secondary palette text control variables */
.text-light-75 {
  color: rgba(255, 255, 255, 0.75);
}
.text-light-50 {
  color: rgba(255, 255, 255, 0.5);
}
.text-terra {
  color: #e77a5b;
}

/* Clean styling for standard link groups */
.footer-links a,
.footer-contact-info a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact-info a:hover {
  color: #e77a5b; /* Highlight with logo orange */
}

/* Rounded Circle Configurations for Social Media Links */
.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.social-icon:hover {
  background-color: #e77a5b;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Action Floating Utilities (WhatsApp & Back-to-Top) */
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  width: 42px;
  height: 42px;
  border: none;
}
.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: white;
}

.btn-top-scroll {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.btn-top-scroll:hover {
  background-color: #e77a5b;
  color: white;
  border-color: #e77a5b;
}

/* Small Device Polishments */
@media (max-width: 576px) {
  footer .row {
    text-align: left;
  }
  .footer-contact-info li {
    font-size: 0.9rem;
  }
}

/* Core Branding Colors matched to Logo */
:root {
  --terra-coral: #e77a5b;
  --terra-dark: #1f2436;
  --terra-light: #f8f9fa;
}

.text-terra {
  color: var(--terra-coral) !important;
}
.bg-terra-dark {
  background-color: var(--terra-dark) !important;
}

/* Services Hero Header Banner */
.services-hero {
  background:
    linear-gradient(rgba(31, 36, 54, 0.85), rgba(31, 36, 54, 0.85)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  padding: 140px 0 90px 0;
}

/* Premium Filter Nav Tabs Pills */
.custom-nav-pills .nav-link {
  color: var(--terra-dark);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 30px;
  margin: 0 5px 10px 5px;
  transition: all 0.3s ease;
}

.custom-nav-pills .nav-link.active,
.custom-nav-pills .nav-link:hover {
  background-color: var(--terra-coral) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(231, 122, 91, 0.25);
  border-color: var(--terra-coral);
}

/* Service Cards Core Structure */
.service-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Clean clean boundary frame line */
  border-radius: 20px;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Top Accent Line (Fixes the rendering blur) */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--terra-coral);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Stable Glitch-Free Hover States */
.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(31, 36, 54, 0.08) !important;
}

/* Icon Container Box Wrapper */
.service-icon-wrapper {
  width: 65px;
  height: 65px;
  background-color: rgba(231, 122, 91, 0.08);
  color: var(--terra-coral);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--terra-coral);
  color: #ffffff;
  transform: rotateY(180deg);
}

/* Process Timeline Section */
.process-step {
  position: relative;
  text-align: center;
}

.process-badge {
  width: 50px;
  height: 50px;
  background-color: var(--terra-coral);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(231, 122, 91, 0.3);
}

/*contact css */
.contact-hero {
  background:
    linear-gradient(rgba(31, 36, 54, 0.85), rgba(31, 36, 54, 0.85)),
    url("https://images.unsplash.com/photo-1534536281715-e28d76689b4d?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  padding: 140px 0 90px 0;
}
.info-card-wrapper {
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.contact-icon-box {
  width: 45px;
  height: 45px;
  background-color: rgba(231, 122, 91, 0.1);
  color: var(--terra-coral);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistance-badge {
  background: linear-gradient(135deg, #1f2436, #2c334d);
  border-left: 4px solid var(--terra-coral);
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--terra-coral) !important;
  box-shadow: 0 0 0 0.25px rgba(231, 122, 91, 0.25) !important;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nested-service-group {
  display: none;
  animation: fadeInSlider 0.35s ease forwards;
}

@keyframes fadeInSlider {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* weekend_package_css */
.destination-hero {
  background:
    linear-gradient(rgba(31, 36, 54, 0.8), rgba(31, 36, 54, 0.8)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  padding: 150px 0 100px 0;
}

.itinerary-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.itinerary-header {
  background-color: var(--terra-dark);
  color: #ffffff;
  padding: 25px 30px;
}

.timeline-badge {
  background-color: rgba(231, 122, 91, 0.15);
  color: var(--terra-coral);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-block;
}

.custom-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #edf2f7;
}

.custom-accordion .accordion-item:last-child {
  border-bottom: none;
}

.custom-accordion .accordion-button {
  font-weight: 600;
  color: var(--terra-dark);
  background-color: #ffffff;
  padding: 20px 30px;
  box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--terra-coral);
  background-color: #fcfdfd;
}

.custom-accordion .accordion-button::after {
  background-size: 1.25rem;
}

.itinerary-body-content {
  padding: 25px 30px 35px 30px;
  color: #4a5568;
  line-height: 1.7;
  text-align: justify;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.quick-link-card {
  border-radius: 16px;
  border: 1px solid #edf2f7;
  background: #ffffff;
}

.quick-link-item {
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--terra-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 500;
}

.quick-link-item:hover {
  background-color: rgba(231, 122, 91, 0.08);
  color: var(--terra-coral);
  padding-left: 25px;
}

/* packages-style */
    .packages-hero {
        background: linear-gradient(rgba(31, 36, 54, 0.75), rgba(31, 36, 54, 0.75)), 
                    url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1400&q=80');
        background-size: cover;
        background-position: center;
        padding: 150px 0 80px 0;
      }

      /* Category Tab Filter Navigation */
      .filter-nav .nav-link {
        color: var(--terra-dark);
        font-weight: 600;
        border: 1px solid rgba(0, 0, 0, 0.08);
        padding: 10px 24px;
        border-radius: 30px;
        transition: all 0.2s ease;
        background: #fff;
      }

      .filter-nav .nav-link.active {
        background-color: var(--terra-coral) !important;
        border-color: var(--terra-coral) !important;
        color: #fff !important;
      }

      /* Custom Grid Tour Cards */
      .tour-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .tour-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
      }

      .tour-img-wrapper {
        position: relative;
        height: 230px;
        overflow: hidden;
      }

      .tour-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .tour-card:hover .tour-img-wrapper img {
        transform: scale(1.05);
      }

      .tour-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: var(--terra-dark);
        color: #fff;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
      }

      .tour-price-tag {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--terra-dark);
      }

/* blogs styles */
.blog-hero {
        background: linear-gradient(rgba(31, 36, 54, 0.75), rgba(31, 36, 54, 0.75)), 
                    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1400&q=80');
        background-size: cover;
        background-position: center;
        padding: 150px 0 90px 0;
      }

      .blog-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
      }

      .blog-img-wrapper {
        position: relative;
        height: 220px;
        overflow: hidden;
      }

      .blog-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .blog-card:hover .blog-img-wrapper img {
        transform: scale(1.06);
      }

      .blog-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: var(--terra-coral);
        color: #fff;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
      }

      .search-box .form-control {
        border-radius: 30px 0 0 30px;
        border: 1px solid #cbd5e1;
        padding-left: 20px;
      }

      .search-box .btn {
        border-radius: 0 30px 30px 0;
        background-color: var(--terra-dark);
        color: white;
      }

      .search-box .btn:hover {
        background-color: #2d344d;
      }

      .sidebar-box {
        background: white;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.04);
      }

      .tag-cloud a {
        display: inline-block;
        padding: 6px 14px;
        background: var(--bg-light-tint);
        color: var(--terra-dark);
        text-decoration: none;
        border-radius: 20px;
        font-size: 0.85rem;
        margin-bottom: 8px;
        margin-right: 4px;
        transition: all 0.2s ease;
      }

      .tag-cloud a:hover {
        background: var(--terra-coral);
        color: white;
      }

      /* domestic tour style */
  .gujarat-hero {
        background:
          linear-gradient(rgba(31, 36, 54, 0.75), rgba(31, 36, 54, 0.75)),
          url("images/tourism/sun-temple-gujarat.jpg");
        background-size: cover;
        background-position: center;
        padding: 150px 0 100px 0;
      }

      .package-card {
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 20px;
        background: #ffffff;
        overflow: hidden;
        transition:
          transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
          box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      }

      .package-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(31, 36, 54, 0.08) !important;
      }

      .package-img-wrapper {
        position: relative;
        height: 240px;
        overflow: hidden;
      }

      .package-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .package-card:hover .package-img-wrapper img {
        transform: scale(1.08);
      }

      .package-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: var(--terra-coral);
        color: #ffffff;
        padding: 6px 14px;
        font-size: 0.8rem;
        font-weight: 700;
        border-radius: 30px;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(231, 122, 91, 0.3);
      }

      .package-meta-item {
        font-size: 0.85rem;
        color: #6c757d;
        display: inline-flex;
        align-items: center;
      }

      .package-meta-item i {
        color: var(--terra-coral);
        margin-right: 5px;
      }

      .pricing-box {
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
        padding-top: 15px;
      }