:root {
    --primary-color: #00b4d8;
    --secondary-color: #ade8f4;
    --light-grey: #f0f0f0;
    --dark-color: #03045e;
    --bg-dark: #020122;
    --header-bg: #020122; /* Will be overridden by inline style */
    --footer-bg: #020122; /* Will be overridden by inline style */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--light-grey);
}

.navbar {
    background: var(--header-bg) !important; /* Use variable from inline style */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.navbar .nav-link {
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 8px;
    color: #fff;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 50%; /* Underline effect */
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-section .hero-background-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
}
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover; /* This is the key property */
}
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-content h1 { font-size: 5rem; font-weight: 700; }
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.8rem; color: #fff; }
.section-title span { color: var(--primary-color); }

/* --- Search Bar --- */
.search-container {
    margin-top: 30px;
    position: relative;
    width: 60%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.search-container.show {
    opacity: 1;
    transform: translateY(0);
}
#search-bar {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.4s ease-in-out;
}
#search-bar:focus {
    outline: none;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.7);
}
#search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    border: none;
    color: var(--dark-color); /* Changed icon color to dark */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#search-button:hover {
    background-color: var(--secondary-color);
}
#search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    max-height: 300px;
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10; /* Added z-index */
}
#search-results.has-results {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
#search-results .search-result-item {
    display: flex;
    padding: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
    color: #fff;
}
#search-results .search-result-item:hover {
    background-color: rgba(0, 180, 216, 0.2);
}
#search-results .search-result-item:last-child {
    border-bottom: none;
}
.search-result-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}
.search-result-content {
    flex-grow: 1;
    text-align: left;
}
.search-result-content h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.search-result-content p {
    font-size: 0.9rem;
    margin: 5px 0;
    color: var(--light-grey);
    transition: color 0.2s ease;
}
.search-result-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 10px;
}
.search-result-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: color 0.2s ease;
}
.search-result-book-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-result-book-btn:hover {
    background-color: #fff;
    color: var(--dark-color);
}

/* --- Hero Book Now Button --- */
.btn-hero-book {
    margin-top: 25px; /* Slightly reduced margin */
    padding: 12px 30px; /* Reduced padding */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem; /* Reduced font size */
    display: inline-block;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.4);
    transition: all 0.4s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}
.btn-hero-book.show {
    opacity: 1;
    transform: translateY(0);
}
.btn-hero-book:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.6);
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* --- Other Sections --- */
.service-card { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 180, 216, 0.3); padding: 40px 20px; text-align: center; border-radius: 15px; transition: all 0.3s ease-in-out; height: 100%; }
.service-card:hover { transform: translateY(-10px); background: rgba(0, 180, 216, 0.1); }
.service-card .icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; }
.service-card h5 { color: #fff; }
.service-card p { color: var(--secondary-color); }
.package-card { background: linear-gradient(145deg, #03045e, #020122); border: 1px solid rgba(0, 180, 216, 0.4); border-radius: 15px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.package-card .card-title { color: #fff; }
.package-card .card-text { color: var(--secondary-color); }
.package-card .price { font-size: 1.5rem; font-weight: 600; color: #fff; }
.contact-info p { font-size: 1.1rem; color: var(--light-grey); }
.contact-info i { color: var(--primary-color); font-size: 1.5rem; margin-right: 15px; }
#map { width: 100%; height: 100%; min-height: 350px; border-radius: 15px; border: 2px solid var(--primary-color); }
.map-responsive {
    overflow:hidden;
    padding-bottom:100%;
    position:relative;
    height:0;
}
.map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
    border-radius: 15px;
}

/* --- Gallery --- */
.gallery-swiper { width: 100%; padding-top: 10px; padding-bottom: 50px; }
.swiper-slide { height: auto; }
.gallery-item-wrapper { overflow: hidden; border-radius: 15px; height: 280px; background-color: #03045e; cursor: pointer; position: relative; }
.gallery-item-wrapper.embed-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.gallery-item-wrapper.embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.gallery-item-wrapper .gallery-item { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item-wrapper:hover .gallery-item { transform: scale(1.1); }
.gallery-item-wrapper .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 4rem; color: rgba(255, 255, 255, 0.8); opacity: 0; transition: opacity 0.3s ease; }
.gallery-item-wrapper:hover .play-icon { opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary-color); }

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh; /* Adjust hero section height for mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Adjust font size for mobile */
    }

    .search-container {
        width: 90%;
    }

    .section-title {
        font-size: 1.8rem; /* Adjust section titles for mobile */
        margin-bottom: 40px;
    }

    .section {
        padding: 50px 15px; /* Adjust padding for mobile */
    }

    .service-card, .package-card {
        padding: 25px 15px;
        margin-bottom: 20px; /* Add space between stacked cards */
    }

    .contact-info {
        margin-bottom: 30px; /* Add space between contact info and map on mobile */
    }

    .contact-info p {
        font-size: 1rem;
    }

    /* Style for the expanded mobile menu */
    .navbar-collapse {
        background-color: rgba(2, 1, 34, 0.95); /* Dark, semi-transparent background */
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .nav-link {
        padding: 10px 0; /* Adjust padding for menu items */
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important; /* Smaller font size for the brand name */
    }

    footer p {
        font-size: 0.8rem; /* Smaller font size for footer text */
    }
}
