/* ==========================================================================
   Modern 5-Star Luxury Preloader - The Bungalow, Habarana
   ========================================================================== */


div#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999999;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

#status {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
    padding: 24px;
}

/* Luxury Gold Spinner Ring */
.loader::before {
    content: '';
    display: block;
    width: 62px;
    height: 62px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    border: 2.5px solid rgba(233, 185, 71, 0.2);
    border-top: 2.5px solid #E9B947;
    border-right: 2.5px solid #E9B947;
    animation: luxurySpin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    -webkit-animation: luxurySpin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    box-shadow: 0 0 24px rgba(233, 185, 71, 0.18);
}

/* Subtle Gold Pulse Glow */
.loader::after {
    content: '';
    position: absolute;
    top: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 185, 71, 0.3) 0%, rgba(233, 185, 71, 0) 70%);
    animation: luxuryPulse 1.8s ease-in-out infinite alternate;
    -webkit-animation: luxuryPulse 1.8s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Branded Luxury Typography */
.loader h1 {
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: transparent !important;
}

.loader h1::before {
    content: 'THE BUNGALOW';
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.loader h1::after {
    content: 'HABARANA \2022  LUXURY VILLA';
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: #c9931c;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Shimmering Gold Accent Dots */
.loader span {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 14px 4px 0 4px !important;
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #E9B947 !important;
    opacity: 0.3;
    animation: luxuryDots 1.4s infinite ease-in-out both !important;
    -webkit-animation: luxuryDots 1.4s infinite ease-in-out both !important;
}

.loader span:nth-child(2) {
    animation-delay: -0.32s !important;
    -webkit-animation-delay: -0.32s !important;
}

.loader span:nth-child(3) {
    animation-delay: -0.16s !important;
    -webkit-animation-delay: -0.16s !important;
}

.loader span:nth-child(4) {
    animation-delay: 0s !important;
    -webkit-animation-delay: 0s !important;
}

/* Keyframe Animations */
@keyframes luxurySpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes luxurySpin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes luxuryPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.35;
    }
    100% {
        transform: scale(1.25);
        opacity: 0.85;
    }
}

@-webkit-keyframes luxuryPulse {
    0% {
        -webkit-transform: scale(0.85);
        opacity: 0.35;
    }
    100% {
        -webkit-transform: scale(1.25);
        opacity: 0.85;
    }
}

@keyframes luxuryDots {
    0%, 80%, 100% {
        transform: scale(0.65);
        opacity: 0.25;
    }
    40% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 8px rgba(233, 185, 71, 0.6);
    }
}

@-webkit-keyframes luxuryDots {
    0%, 80%, 100% {
        -webkit-transform: scale(0.65);
        opacity: 0.25;
    }
    40% {
        -webkit-transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 8px rgba(233, 185, 71, 0.6);
    }
}