/********** Template CSS **********/


:root {
    --primary: #3383b6;
    --secondary: #FF6922;
    --light: #EFFDF5;
    --dark: #0E2E50;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.full-width-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}
/*** Navbar ***/
.nav-bar {
    position: relative;
    margin-top: 45px;
    
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
    border: 1px dashed var(--primary) !important;
}

.icon1 {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
    
}

.logo {
    padding: 155px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 50px;
    
}
/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}


/*** Category ***/
.cat-item div {
    background: #FFFFFF;
    border: 1px dashed rgba(0, 185, 142, .3);
    transition: .5s;
}

.cat-item:hover div {
    background: var(--primary);
    border-color: transparent;
}

.cat-item div * {
    transition: .5s;
}

.cat-item:hover div * {
    color: #FFFFFF !important;
}


/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed rgba(0, 185, 142, .3) !important;
}

.property-item .border-end {
    border-right: 1px dashed rgba(0, 185, 142, .3) !important;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
/* modified */
.navbar .navbar-brand .text-primary {
    color: var(--primary) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Also targets any links or icons using the primary color that might be stubborn */
.nav-bar a.nav-link.active,
.nav-bar a.nav-link:hover {
    color: var(--primary) !important;
}




/* --- 1. Map Container Setup --- */
.hawaii-map-container {
    /* Important: Must be relative to position the hotspots absolutely */
    position: relative; 
    max-width: 900px; /* Adjust based on your map image size */
}

/* --- 2. Hotspot Pin Styling --- */
.map-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 20; /* Keep pins on top */
    /* Adjust these to fine-tune pin position on the map */
    transform: translate(-50%, -50%); 
}

.hotspot-pin {
    display: block;
    padding: 5px 10px;
    background-color: var(--bs-danger); /* Use a bright color like red or yellow */
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s;
}

.map-hotspot:hover .hotspot-pin {
    background-color: var(--bs-primary); /* Change color on hover */
}

/* --- 3. Pop-up Tooltip Styling (The HOVER effect!) --- */
.popup-image-tooltip {
    position: absolute;
    /* Position the pop-up above and slightly to the side of the pin */
    bottom: 120%; 
    left: 100%; 
    width: 200px; /* Fixed width for the pop-up box */
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    /* CRITICAL: Hides the pop-up by default */
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    
    /* Initial position before hover */
    transform: translateY(10px); 
    z-index: 30; /* Ensure it's above everything else */
}

/* CRITICAL: Shows the pop-up when the parent hotspot is hovered */
.map-hotspot:hover .popup-image-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slides up slightly on reveal */
}

.popup-image-tooltip img {
    height: 100px; /* Fixed height for consistent image size */
    object-fit: cover;
    border-radius: 4px;
}

.tooltip-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.tooltip-description {
    font-size: 12px;
    margin: 0;
    color: #555;
}

/* Optional: Arrow pointer for the pop-up */
.popup-image-tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Position below the box */
    left: 15px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ddd transparent transparent transparent;
}

#moreText {
    /* Initially hide the content */
    display: none;
    /* Optional: for a smooth transition */
    opacity: 0;
    transition: opacity 0.5s ease;
}

#moreText.show {
    /* Class added by JavaScript to show the content */
    display: block;
    opacity: 1;
}
.hidden {
    display: none;
}

/* Target only mobile screens (adjust max-width if needed for your setup) */
@media (max-width: 991.98px) {
    
    /* Target the main navbar container */
    .navbar.navbar-expand-lg {
        /* Force Flexbox layout */
        display: flex;
        
        /* Pushes the logo (first item) to the left and the toggler (last item) to the right */
        justify-content: space-between !important; 
        
        /* Vertically align both items */
        align-items: center !important; 
    }
    
    /* Reduce the size of the logo text on smaller screens so it doesn't push the icon down */
    .navbar-brand h2 {
        font-size: 1.2rem; /* Reduce font size */
        white-space: nowrap; /* Prevent the title from wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Reduce the size of the logo image itself to free up horizontal space */
    .navbar-brand .logo img {
        width: 80px !important; /* Smaller width for mobile */
        height: auto !important;
    }
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.map-container {
    position: relative; /* Essential for positioning the popup */
    display: inline-block;
    max-width: 100%;
}

#hawaii-map {
    display: block;
    width: 100%;
    height: auto;
}

/* Style for the Pop-up Box */
#image-popup {
    position: absolute;
    top: 50%;
    left: 100%; /* Initially position it to the right of the map */
    transform: translate(20px, -50%); /* Adjust for spacing and vertical centering */
    border: 5px solid #005f73;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevents the popup from blocking mouse events */
    transition: opacity 0.3s ease;
    max-width: 300px;
}

#popup-image {
    display: block;
    width: 100%;
    height: auto;
}

#popup-caption {
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    color: #005f73;
    background-color: #e0fbfc;
}

/* Optional: Highlight the areas for visibility during development */
area:hover {
    outline: 2px solid red; /* You won't see this in most browsers, but it's a good practice */
    cursor: pointer;
}