/* === Global Theme === */
body {
  background-color: #f8f9fa;
  color: #1b1f2b;
  font-family: 'Segoe UI', sans-serif;
}

h1, h2, h3 {
  color: #1b2a49;
  font-weight: 600;
  position: relative;
  margin-bottom: 1rem;
  display: inline-block; /* 👈 Ensures underline matches text width */
}


h1 {
  text-align: center;
}

h2, h3 {
  display: inline-block;
}

h1::after, h2::after, h3::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%; /* underline matches heading width */
  background-color: #2c2c2c;
  margin-top: 0.5rem;
}

.center h2, .center h3 {
  display: inline-block !important; /* 💥 OVERRIDE block from .center */
  text-align: center;
}

.welcome-heading,
.tour-heading {
  display: block;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid #2c2c2c;
  width: 100%;
  margin-bottom: 1.5rem;
  text-align: center;
}

.welcome-heading::after,
.tour-heading::after {
  display: none !important;
}

.tour-heading {
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* === Section Styling === */
section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

.container-wide {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 15px;
}

.center {
  text-align: center;
}

.center ul {
  list-style-position: inside;
  padding: 0;
  display: inline-block;
  text-align: left;
}

h2.center, h3.center {
  display: block;
  width: 100%;
}

/* === Buttons === */
.btn-primary {
  background-color: #1b2a49;
  border-color: #1b2a49;
}

.btn-primary:hover {
  background-color: #2c2c2c;
  border-color: #2c2c2c;
}

/* === Gallery === */
.glightbox img {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glightbox img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* === Cards === */
.service-block,
.tour-block {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.tour-block {
  padding-bottom: 3rem;
  border-bottom: 4px solid #2c2c2c;
}

.service-block:hover,
.tour-block:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blue-border-right {
  border-right: 3px solid rgba(0, 0, 0, 0.096);
  padding-right: 2rem;
}

/* === Details List === */
.details-list {
  list-style: none;
  padding: 0;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 1.5rem;
}

.details-list li {
  padding: 12px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.details-list li:hover {
  background-color: #f8f9fa;
}

.details-list li:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.details-list li:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.detail-label {
  font-weight: 600;
  color: #1b2a49;
  font-size: 0.95rem;
}

.detail-value {
  color: #1b1f2b;
  font-weight: 500;
  text-align: right;
}

/* === iFrame === */
.iframe-container {
  height: 80vh;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Modals === */
.custom-modal-size {
  max-width: 80vw;
  margin: auto;
}

@media (max-width: 768px) {
  .custom-modal-size {
    max-width: 95vw;
  }
}

/* === Header / Navbar === */
html {
  scroll-padding-top: 125px;
}

header.transparent-header,
header.transparent-header.scrolled {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  width: 100%;
  position: absolute;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 10;
  transition: height 0.3s ease, padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

header.transparent-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  background-color: #2c2c2c !important; /* <--- UPDATE THIS */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 20;
  padding: 0.25rem 1rem;
}

header.transparent-header {
  height: 250px;
  padding: 1rem 1rem;
}

.navbar {
  background: transparent !important;
  box-shadow: none !important;
}

.navbar-brand {
  flex-shrink: 0;
}

.logo-img {
  height: 250px;
  transition: height 0.3s ease, transform 0.3s ease;
  transform-origin: left center;
}

header.scrolled .logo-img,
header.transparent-header.scrolled .logo-img {
  height: 80px;
  transform: scale(0.8);
}

.navbar-nav.nav-links {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 0;
  margin-left: 1rem;
  max-width: none;
}

.navbar-nav.nav-links .nav-link {
  color: white !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: x-large;
  text-align: center;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 1rem 0.5rem;
}

.navbar-nav.nav-links .nav-link:hover {
  color: #f2f2f2 !important;
  box-shadow: inset 0 -2px 0 #f2f2f2;
}

@media (max-width: 991.98px) {
  .navbar-nav.nav-links {
    flex-direction: column !important;
    align-items: center;
  }
  .navbar-nav.nav-links .nav-item {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .navbar-nav .btn {
    width: 100%;
  }
}

/* === Hero === */
.hero-image {
  position: relative;
  background-image: url('../images/hero/HomePageHero.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  z-index: 1;
  color: white; /* Ensure all text inside is white */
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* darkens image */
  z-index: 2;
}

.hero-image .container {
  position: relative;
  z-index: 3; /* bring text above overlay */
}

.hero-image h1,
.hero-image p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* optional readability boost */
}

.hero-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid white;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  transition: border-width 0.3s ease;
}

.hero-heading:hover {
  border-bottom-width: 6px;
}

.hero-heading::after {
  display: none !important;
}

.navbar-toggler {
  border: 2px solid white;          /* Makes the outline white */
  padding: 0.25rem 0.75rem;         /* Optional: adjust size */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  header.transparent-header,
  header.transparent-header.scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #212529 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem !important;
    height: auto !important;
  }

  .navbar-collapse {
    background-color: #212529;
    padding: 1rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav.nav-links {
    flex-direction: column;
    align-items: center;
    background-color: #212529;
    padding: 1rem 0;
    border-radius: 0 0 8px 8px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link {
    color: white !important;
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav.nav-links {
    flex-direction: column;
    align-items: center;
    background-color: #212529;
    padding: 1rem 0;
    border-radius: 0 0 8px 8px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link {
    color: white !important;
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse.collapse.show {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav.nav-links .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    color: white !important;
  }

  .navbar-toggler {
    border: 2px solid white;
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 991.98px) {
  header.transparent-header {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  header.transparent-header.scrolled {
    background-color: #212529 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }

  .navbar-collapse {
    background-color: #212529;
    padding: 1rem;
  }

  .navbar-toggler {
    border: 2px solid white;
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }
}

body {
  background-color: #f8f9fa;
}

/* Optional: override specific sections if needed */
section,
footer,
header {
  background-color: #f8f9fa !important;
}

.service-block {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2rem 0; /* Optional: keeps spacing consistent */
}

.service-block + .service-block {
  margin-top: 4rem;
}

section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-bottom: none !important;
}

.tours-hero {
  background-image: url('../images/hero/TourPageHero.jpg'); /* or another specific image */
}

/* Custom shorter hero for internal pages */
.half-height {
  height: 50vh; /* Half of viewport height */
}

.tours-hero.half-height {
  height: 50vh;
  position: relative;
}

body.zoom-out .hero-image {
  background-size: 95%; /* zoomed-out */
}

.contact-hero {
  background-image: url('../images/hero/ContactUsPageHero.jpg'); /* or another specific image */
}

.services-hero {
  background-image: url('../images/hero/ServicesPageHero.jpg'); /* or another specific image */
}

.gallery-hero {
  background-image: url('../images/hero/GalleryPageHero.jpg'); /* or another specific image */
}

.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #2c2c2c;      /* Bootstrap primary blue */
  color: #fff;
  border-color: #2c2c2c;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); /* blue outline glow */
  transform: scale(1.05);
}

.filter-btn {
  border-color: #0a1a2f;
  color: #0a1a2f;
  background-color: transparent;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #0a1a2f;
  color: #fff;
  border-color: #0a1a2f;
}

/* Override for Like What You See Buttons */
.btn-outline-primary,
.btn-outline-secondary {
  color: #0a1a2f;
  border-color: #0a1a2f;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #0a1a2f;
  color: #fff;
  border-color: #0a1a2f;
}

/* In style.css */
@media (max-width: 575.98px) {
  .logo-img {
    max-width: 120px; /* Shrinks the logo */
    height: auto;
  }

  .navbar-nav {
    flex-direction: column;
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .navbar-collapse {
    margin-top: 0.5rem;
  }
}

.navbar .container-fluid {
  flex-wrap: wrap;
}

.navbar-nav .nav-link {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 575.98px) {
  .navbar-collapse {
    max-height: none; /* ensure it's not cropped */
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 0; /* remove extra spacing between links */
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;   /* tighter padding */
    font-size: 0.9rem;         /* slightly smaller text */
    line-height: 1.1;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }

  .logo-img {
    max-width: 120px; /* shrink logo slightly if needed */
    height: auto;
  }
}

.navbar-collapse {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

header.scrolled {
  background-color: #0a2740; /* or your preferred dark color */
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  transition: all 0.3s ease-in-out;
}

.logo-img {
  transition: max-width 0.3s ease;
}

header.scrolled .logo-img {
  max-width: 120px; /* or whatever smaller size fits */
}

.logo-img {
  max-height: 250px;
  transition: all 0.3s ease; /* Smooth resize and movement */
}

/* When header is scrolled */
.scrolled .logo-img {
  max-height: 65px; /* Shrinks smoothly */
  margin-left: 10px; /* Nudges left if needed */
}

.scrolled .logo-img {
  max-height: 65px;
  transform: translateX(-10px);
}

/* Base bar styles */
.custom-toggler-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
}

.custom-toggler-icon .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

/* Position each bar */
.custom-toggler-icon .top-bar {
  top: 4px;
}
.custom-toggler-icon .middle-bar {
  top: 10px;
}
.custom-toggler-icon .bottom-bar {
  top: 16px;
}

/* When menu is open (add .menu-open to button) */
.navbar-toggler.menu-open .top-bar {
  transform: rotate(45deg);
  top: 10px;
}
.navbar-toggler.menu-open .middle-bar {
  opacity: 0;
}
.navbar-toggler.menu-open .bottom-bar {
  transform: rotate(-45deg);
  top: 10px;
}

.navbar-toggler-icon {
  background-image: none !important;
}

/* Add to your main CSS (e.g. style.css) */
.navbar-nav {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-height: 450px) and (orientation: landscape) {
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .navbar-brand img {
    max-height: 100px;
  }

  .navbar-toggler {
    padding: 0.3rem 0.5rem;
  }

  .navbar-collapse {
    max-height: 60vh;
    overflow-y: auto;
  }
}

@media (max-height: 450px) and (orientation: landscape) {
  .hero-heading {
    font-size: 2rem;
  }

  .hero-image .lead {
    font-size: 1rem;
  }

  .hero-image {
    padding: 2rem 1rem;
  }
}

.navbar-collapse {
  max-height: 80vh;
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}

@media (max-height: 450px) and (orientation: landscape) {
  .logo-img {
    max-height: 50px;
  }
}
