/* ===== Logo Management ===== */
/* Default state - dark logo visible, light logo hidden */
.navbar-logo-dark {
    display: block;
    height: 60px;
    transition: all 0.3s ease;
}
.navbar-logo-light {
    display: none;
    height: 60px;
    transition: all 0.3s ease;
}

/* Scrolled state - light logo visible, dark logo hidden */
#mainNavbar.scrolled .navbar-logo-dark {
    display: none;
}
#mainNavbar.scrolled .navbar-logo-light {
    display: block;
}

/* ===== Navbar Colors & Transitions ===== */
#mainNavbar {
    background-color: #0d6efd !important;
    transition: all 0.3s ease;
}
#mainNavbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== Nav Links ===== */
/* Default state */
.navbar-light .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
    transition: color 0.3s ease;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link.active {
    color: #ffcc00 !important;
}

/* Scrolled state */
#mainNavbar.scrolled.navbar-light .navbar-nav .nav-link {
    color: #56565a !important;
}
#mainNavbar.scrolled.navbar-light .navbar-nav .nav-link:hover,
#mainNavbar.scrolled.navbar-light .navbar-nav .nav-link:focus,
#mainNavbar.scrolled.navbar-light .navbar-nav .nav-link.active {
    color: #ffcc00 !important;
}

/* Screen loading overlay styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
}

/* Optional: Add animation to the spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    animation-duration: 0.75s;
}

/* ===== Hero Section Styles ===== */
.hero-section {
    color: #fff;
    padding: 125px 0; /* Slightly more padding */
    position: relative;
    overflow: hidden;
}

/* Carousel takes full height */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Carousel items full height */
.carousel-item {
    height: 100vh;
    min-height: 500px; /* Fallback */
}

/* Images cover the space */
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Dark overlay for better text contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Ensure content stays above */
.position-relative.z-index-1 {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}
.testimonial-card {
    border-left: 4px solid #0d6efd;
}

/* This covers the about us page */
.about-hero {
    color: white;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.about-hero-bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.mission-card {
    border-top: 4px solid #0d6efd;
}

/* This covers the Services page */
.service-hero {
    color: white;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.service-hero-bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.service-card {
    transition: transform 0.3s;
    border-top: 4px solid #0d6efd;
}
.service-card:hover {
    transform: translateY(-15px);
}
/* This covers the Gallery page */
.gallery-hero {
    color: white;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.gallery-hero-bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
/* Carousel styling */
.gallery-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.carousel-item {
    height: 300px;
    overflow: hidden;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 10px;
}

/* Modal styling for image preview */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 1055;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* this covers the contact section */
.contact-hero {
    color: white;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.contact-hero-bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.contact-card {
    border-left: 4px solid #0d6efd;
    transition: transform 0.3s;
}
.contact-card:hover {
    transform: translateY(-5px);
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}


.footer-logo {
    height: 80px; /* Adjust as needed */
    width: auto;
    max-height: 100%; /* Ensures it doesn't exceed navbar height */
}

/* back to top */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}
/* 404 error page styles */
.error-icon {
    font-size: 6rem;
    color: #0d6efd;
    margin-bottom: 2rem;
}
.error-content {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Ensure tour modal has proper styling */
#tourModal .modal-content {
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.2) !important;
    border-radius: 0.5rem !important;
}

#tourModal .modal-body {
    padding: 1rem !important;
    text-align: left !important;
}

#tourModal .modal-header,
#tourModal .modal-footer {
    background-color: #fff !important;
}

/* Ensure stay modal has proper styling */
#stayModal .modal-content {
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.2) !important;
    border-radius: 0.5rem !important;
}

#stayModal .modal-body {
    padding: 1rem !important;
    text-align: left !important;
}

#stayModal .modal-header,
#stayModal .modal-footer {
    background-color: #fff !important;
}
