/* Skip link for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 10px !important;
  left: 10px !important;
}

h1,
h2 {
  color: #2f3336;
}

:root {
  --isz-nav-offset: 104px;
  --isz-section-space: clamp(2.75rem, 6vw, 4.75rem);
  --isz-container-edge: clamp(1rem, 3vw, 1.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: var(--isz-nav-offset);
  overflow-x: hidden;
  color: #343a40;
}

main {
  display: block;
}

img,
iframe {
  max-width: 100%;
}

.section-block,
.page-shell {
  margin-top: 0 !important;
}

.section-block {
  padding-top: var(--isz-section-space);
  padding-bottom: var(--isz-section-space);
}

.page-shell {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.container,
.container-fluid {
  padding-left: var(--isz-container-edge);
  padding-right: var(--isz-container-edge);
}

/* Adjust the value based on the height of your navbar */
section {
  scroll-margin-top: calc(var(--isz-nav-offset) + 12px);
}


/* Navbar Styles */
.navbar {
  margin-bottom: 20px;
  padding: 15px 20px; /* Increase padding for a bigger navbar */
  background-color: #f8f9fa; /* Ensure background color is set */
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add box shadow for elevation */
  position: fixed; /* Keep navbar fixed at the top */
  width: 100%; /* Ensure navbar spans the full width */
  z-index: 1000; /* Ensure navbar stays on top of other elements */
  font-weight: bold;
  min-height: var(--isz-nav-offset);
  /* Override Bootstrap 5 CSS variables so all nav links match the brand title */
  --bs-navbar-color: #2f3336;
  --bs-navbar-hover-color: #2f3336;
  --bs-navbar-active-color: #2f3336;
  --bs-navbar-brand-color: #2f3336;
  --bs-navbar-brand-hover-color: #2f3336;
  --bs-navbar-disabled-color: rgba(47, 51, 54, 0.5);
}

.navbar-brand {
  display: flex;
  align-items: center; /* Center the text vertically with the logo */
  min-width: 0;
  max-width: calc(100% - 60px);
}

.navbar-toggler {
  flex-shrink: 0;
  margin-left: auto;
}

.navbar-collapse {
  flex-basis: 100%;
}

.navbar-nav {
  gap: 0.25rem;
}
.navbar-brand img {
  width: 60px; /* Increase width for a bigger logo */
  height: 60px; /* Increase height for a bigger logo */
  margin-right: 10px;
}

.navbar-brand span {
  display: block;
  min-width: 0;
  font-size: clamp(0.95rem, 3vw, 1.5rem); /* Scale brand text down on small screens */
  font-weight: bold; /* Make the text bold */
  color: #2f3336;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 12px;
  }

  .navbar-brand {
    max-width: calc(100% - 52px);
  }

  .navbar-brand img {
    width: 44px;
    height: 44px;
    margin-right: 8px;
  }

  .navbar-brand span {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --isz-nav-offset: 88px;
  }

  .navbar {
    margin-bottom: 0;
  }

  .navbar-collapse {
    margin-top: 0.9rem;
    padding: 0.65rem;
    background-color: #f8f9fa;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar .navbar-collapse ul li > a {
    border-radius: 10px;
    padding: 0.85rem 1rem;
  }
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-item,
.navbar-nav .menu-item > a {
  font-size: 1.1rem; /* Increase font size for better visibility */
  font-weight: 700;
  padding: 10px 15px; /* Increase padding for better spacing */
  color: #2f3336;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-item:hover,
.navbar-nav .menu-item > a:hover {
  background-color: #6c7680; /* Change background color on hover */
  color: white; /* Change text color on hover */
}

/* Force consistency for all anchors generated inside the collapsed nav */
.navbar .navbar-collapse ul li > a {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: #2f3336 !important;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.navbar .navbar-collapse ul li > a:hover,
.navbar .navbar-collapse ul li > a:focus {
  background-color: #6c7680 !important;
  color: #ffffff !important;
}

/* Ensure active/current links use the exact same hover color as all others */
.navbar .navbar-collapse ul li.current-menu-item > a:hover,
.navbar .navbar-collapse ul li.current-menu-parent > a:hover,
.navbar .navbar-collapse ul li.current_page_item > a:hover,
.navbar .navbar-collapse ul li.current_page_parent > a:hover,
.navbar .navbar-collapse ul li > a.active:hover,
.navbar-light .navbar-nav .nav-link.active:hover,
.navbar-light .navbar-nav .dropdown-item.active:hover {
  background-color: #6c7680 !important;
  color: #ffffff !important;
}

/* Keep menu text color consistent on load/current page */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:visited,
.navbar-light .navbar-nav .dropdown-item,
.navbar-light .navbar-nav .dropdown-item:focus,
.navbar-light .navbar-nav .dropdown-item:visited,
.navbar-light .navbar-nav .menu-item > a,
.navbar-light .navbar-nav .menu-item > a:focus,
.navbar-light .navbar-nav .menu-item > a:visited {
  color: #2f3336;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .dropdown-item.active,
.navbar-light .navbar-nav .show > .dropdown-item,
.navbar-light .navbar-nav .current-menu-item > .nav-link,
.navbar-light .navbar-nav .current-menu-item > .dropdown-item,
.navbar-light .navbar-nav .current-menu-parent > .nav-link,
.navbar-light .navbar-nav .current-menu-parent > .dropdown-item,
.navbar-light .navbar-nav .current_page_item > .nav-link,
.navbar-light .navbar-nav .current_page_item > .dropdown-item,
.navbar-light .navbar-nav .current_page_parent > .nav-link,
.navbar-light .navbar-nav .current_page_parent > .dropdown-item {
  color: #2f3336;
  background-color: transparent;
}
/* Home Section */
#home {
  padding: 1rem 0 var(--isz-section-space);
}

.carousel-item img {
  width: 100%;
  height: clamp(320px, 62vw, 540px);
  object-fit: cover;
}

.carousel-inner {
  width: 100%;
  max-width: 100%;
}

.carousel {
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2rem);
}

/* Introduction Section */
#introduction {
  background-color: #f0f0f0; /* Light grey background */
  padding: var(--isz-section-space) 0;
}

#introduction h2 {
  color: #343a40;
}

#introduction p {
  color: #555;
}

/* Gallery Section */
#gallery {
  padding: var(--isz-section-space) 0;
}

#gallery h2 {
  color: #343a40;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay effect on gallery items */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Modal Styles */
.modal-content {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item img {
  max-height: 80vh;
  object-fit: cover;
}


/* Packages Section */
#packages {
  padding: var(--isz-section-space) 0;
}

/* Extra breathing room on the home page only */
body.home #gallery,
body.home #packages {
  padding-left: var(--isz-container-edge);
  padding-right: var(--isz-container-edge);
  padding-top: var(--isz-section-space);
  padding-bottom: var(--isz-section-space);
}

@media (min-width: 992px) {
  body.home #gallery,
  body.home #packages {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.card {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-body {
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.card-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: -1;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: white;
}

.packages-grid > [class*="col-"] {
  display: flex;
}

.package-card {
  width: 100%;
  display: flex;
  height: 100%;
  margin-bottom: 0;
}

.package-card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(210px, 27vw, 260px);
  height: 100%;
  padding: 1.1rem;
}

.package-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.package-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.package-card-actions .btn {
  flex: 1 1 140px;
}

@media (max-width: 991px) {
  .package-card-body {
    min-height: clamp(190px, 40vw, 230px);
    padding: 1rem;
  }
}

@media (max-width: 767px) {
  .package-card-body {
    min-height: 0;
  }
}

/* Booking Section */
#book {
  padding: var(--isz-section-space) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#book h2 {
  color: #343a40;
  margin-bottom: 30px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Loading and status messages */
#loadingMessage, #successMessage, #errorMessage {
  font-weight: 500;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

#loadingMessage {
  background-color: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

#successMessage {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

#errorMessage {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.btn-info {
  background-color: #17a2b8;
  border: none;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-primary {
  background-color: #007bff;
  border: none;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Client Reviews Section */
#reviews {
  background-color: #f9f9f9; /* Example background color */
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 8px;
}

#reviews h2 {
  font-size: 2rem; /* Increase font size for the heading */
  text-align: center; /* Center-align the heading */
  margin-bottom: 20px; /* Add space below the heading */
}

#reviews .card {
  border: none; /* Remove border from cards */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

#reviews .card-body {
  padding: 20px;
}

#reviews .card-title {
  font-size: 1.25rem; /* Increase font size for card titles */
  color: #343a40; /* Example color for card titles */
}

#reviews .card-text {
  font-size: 1rem; /* Example font size for card text */
  color: #495057;
}

#reviews .rating {
  color: #ffcc00; /* Color for the stars */
  font-size: 1.2rem; /* Adjust the size of the stars */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Apply fade-in to sections */
#introduction, #gallery, #packages, #book, #reviews {
  animation: fadeInUp 0.8s ease-out;
}

/* Stagger animations for cards */
#packages .card:nth-child(1) { animation-delay: 0.1s; }
#packages .card:nth-child(2) { animation-delay: 0.2s; }
#packages .card:nth-child(3) { animation-delay: 0.3s; }
#packages .card:nth-child(4) { animation-delay: 0.4s; }
#packages .card:nth-child(5) { animation-delay: 0.5s; }
#packages .card:nth-child(6) { animation-delay: 0.6s; }

#reviews .card:nth-child(1) { animation-delay: 0.1s; }
#reviews .card:nth-child(2) { animation-delay: 0.2s; }
#reviews .card:nth-child(3) { animation-delay: 0.3s; }

/* Footer */
footer {
  padding: 1.25rem 0 0;
}

footer .fa {
  padding: 5px;
  font-size: 20px;
  width: 35px;
  text-align: center;
  text-decoration: none;
  margin: 3px 2px;
}

footer .fa:hover {
  opacity: 0.7;
}

footer .fa-facebook {
  background: #3b5998;
  color: white;
}

footer .fa-twitter {
  background: #55acee;
  color: white;
}

footer .fa-instagram {
  background: #125688;
  color: white;
}

footer .fa-linkedin {
  background: #007bb5;
  color: white;
}

footer .text-center {
  background-color: #343a40;
  color: white;
  padding: 0.9rem 0;
}

footer .fa-envelope,
footer .fa-phone {
  margin-right: 5px; /* Reduce margin */
}


footer .img-fluid {
    max-width: 100%; /* Ensure images are responsive */
  }
  
  .secure-payments-img {
    max-width: 150px; /* Adjust the size of the secure payments image */
    margin-top: 10px;
  }

  #loadingMessage {
    margin-top: 20px;
    font-size: 16px;
    color: #007bff;
  }

footer .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

footer .row {
  row-gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .section-block,
  .page-shell {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  #home {
    padding-top: 0.5rem;
  }

  .carousel-item img {
    height: 320px;
  }

  .carousel-caption {
    display: block !important;
    font-size: 0.95rem;
    padding: 0.85rem;
  }

  .carousel-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .carousel-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .gallery-item img {
    height: 220px;
  }

  .btn-primary,
  #book .btn,
  #reviews .btn {
    width: 100%;
  }

  .package-card-actions {
    flex-direction: column;
  }

  .package-card-actions .btn {
    width: 100%;
    flex-basis: auto;
  }

  #book form,
  #reviews,
  footer .col-md-6,
  footer .col-lg-3 {
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-item img {
    height: 420px;
  }

  .package-card-body {
    min-height: 230px;
  }
}
    