:root {
    --melex-blue: #004a99;
    --dark-blue: #003366;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0 !important;
    padding-top: 0 !important;
    overflow-x: hidden;
}

.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-bg {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item {
    height: 100vh;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 3s;
    transition-property: opacity;
}

.carousel-fade .carousel-item-next, 
.carousel-fade .carousel-item-prev {
    opacity: 1 !important;
    z-index: 1;
}

.carousel-fade .active.carousel-item-start, 
.carousel-fade .active.carousel-item-end {
    opacity: 0 !important;
    z-index: 2;
    transition: opacity 3s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
}


.gallery-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;      
    justify-content: center;
}


.gallery-item-wrapper {
    flex: 1 1 calc(33.333% - 20px); 
    min-width: 300px;               
}

.gallery-img-page {
    width: 100%;
    height: 250px;     
    object-fit: cover;   
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-img-page {
    transform: scale(1.03); 
}

@media (max-width: 768px) {
    .gallery-item-wrapper {
        flex: 1 1 100%;
    }
}

.shadow-text {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.phone-badge {
    background-color: var(--melex-blue);
    display: inline-block;
    padding: 15px 45px;
    font-size: 2.5rem;
    font-weight: bold;
    border-radius: 50px;
    border: 3px solid var(--white);
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transition: 0.3s ease;
}

.phone-badge:hover {
    background-color: var(--white);
    color: var(--melex-blue) !important;
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--melex-blue);
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.subpage-header {
    background-color: var(--dark-blue);
    border-bottom: 4px solid var(--melex-blue);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.gallery-item-wrapper {
    flex: 0 1 calc(33.333% - 20px); 
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img-page {
    width: 100%;
    height: 250px;
    object-fit: cover !important;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-link {
    display: block;
    text-decoration: none;
    outline: none;
}

.gallery-link:hover .gallery-img-page {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .gallery-item-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .gallery-img-page {
        height: 200px; 
    }
}

.hero-static-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

.hero-static-bg {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0 !important;
    display: block;
}

.icon-square {
    width: 60px;
    height: 60px;
    background-color: var(--melex-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.contact-box:hover .icon-square {
    transform: rotate(5deg) scale(1.1);
    background-color: white !important;
    color: var(--melex-blue) !important;
    border: 1px solid var(--melex-blue);
}

.contact-box:hover .icon-square i {
    color: var(--melex-blue) !important;
}

.transparent-form {
    background-color: transparent !important;
}

.transparent-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    padding: 12px;
}

.footer-blue {
    background-color: var(--dark-blue);
    border-top: 5px solid var(--melex-blue);
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 170px;
    width: auto;
}

@media (max-width: 768px) {
    .phone-badge { font-size: 1.6rem; padding: 10px 25px; }
    .navbar { height: auto !important; min-height: 70px !important; }
    .navbar-nav .nav-link { line-height: normal !important; padding: 10px !important; }
    .gallery-item-wrapper { flex: 1 1 100%; }
}

.navbar {
    min-height: 90px !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.navbar .container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand img {
    height: 60px !important;
    width: auto !important;
    object-fit: contain;
}

.navbar-nav .nav-link {
    line-height: 90px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--melex-blue) !important;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--dark-blue) !important;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-radius: 0 0 10px 10px !important;
}

.dropdown-item {
    font-weight: 600 !important;
    color: var(--melex-blue) !important;
    padding: 10px 20px !important;
}

.dropdown-item:hover {
    background-color: var(--melex-blue) !important;
    color: white !important;
}

@media (max-width: 991px) {
    .navbar {
        height: auto !important; 
    }
    
    .navbar-collapse {
        background-color: #ffffff !important; 
        width: 100%;
        margin: 0;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-link {
        line-height: normal !important;
        padding: 15px 0 !important;
        color: var(--melex-blue) !important;
        border-bottom: 1px solid #eee;
    }
}

.map-section {
    margin-bottom: 0 !important;
    line-height: 0;
}

.map-section iframe {
    display: block;
}

.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

.hero-static-bg-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    z-index: 1;
}

.hero-content-overlay {
    position: relative; 
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding-top: 60px; 
    padding-bottom: 60px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content-overlay .row.mb-5.mt-5 {
    margin-top: 0 !important; 
    margin-bottom: 40px !important;
}

.tour-box {
    background: rgba(0, 74, 153, 0.95);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-box:hover {
    transform: translateY(-20px);
    background: rgba(0, 51, 102, 1);
    border-color: #ffffff;
}

.tour-img {
    height: 280px; 
    background-size: cover;
    background-position: center;
}

.tour-body {
    padding: 40px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-body h5 {
    font-size: 1.7rem; 
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tour-body p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.5;
    flex-grow: 1; 
}

.tour-body .btn {
    padding: 15px 30px;
    font-weight: 800;
    font-size: 1.1rem;
    border-width: 3px;
    text-transform: uppercase;
    margin-top: auto;
}

@media (max-width: 1400px) {
    .tour-img { height: 220px; }
    .tour-body { padding: 30px; }
}

@media (max-width: 768px) {
    .hero-static-bg-main {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 60vh !important; 
    }
    .hero-container {
        height: auto !important;
        min-height: 50vh !important;
    }
    .hero-content-overlay {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .tour-img { height: 200px; }
    .tour-body { padding: 25px; }
    .display-3 { font-size: 2.2rem; } 
}


        .zoom-cursor { cursor: zoom-in; transition: transform 0.3s ease; }
        .zoom-cursor:hover { transform: scale(1.02); }

        .lb-data .lb-close {
            position: fixed !important;
            top: 20px !important;
            right: 20px !important;
            width: 35px !important;
            height: 35px !important;
            background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854z'/%3E%3C/svg%3E") center no-repeat !important;
            background-size: 20px !important;
            border-radius: 5px !important;
            opacity: 1 !important;
            z-index: 1000000 !important;
        }
