/* =========================================================
   URBAN EDGE REAL ESTATE
   PREMIUM LOADER
========================================================= */


/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

#ue-loader,
#ue-loader * {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   MAIN LOADER
--------------------------------------------------------- */

.ue-loader {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    z-index: 999999;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(197, 160, 89, 0.08),
            transparent 35%
        ),
        #080808;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    opacity: 1;

    visibility: visible;

    transition:
        opacity 1.2s cubic-bezier(.77,0,.18,1),
        visibility 1.2s;

}


/* ---------------------------------------------------------
   HIDDEN STATE
--------------------------------------------------------- */

.ue-loader.ue-loader-hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


/* ---------------------------------------------------------
   BACKGROUND GLOW
--------------------------------------------------------- */

.ue-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(70px);

    opacity: 0.25;

    animation:
        ueGlowMove 9s ease-in-out infinite alternate;

}


.ue-glow-one {

    width: 350px;
    height: 350px;

    background: rgba(190, 153, 83, 0.15);

    top: -150px;
    left: -120px;

}


.ue-glow-two {

    width: 300px;
    height: 300px;

    background: rgba(255, 255, 255, 0.06);

    bottom: -130px;
    right: -100px;

    animation-delay: 2s;

}


@keyframes ueGlowMove {

    from {
        transform: translate3d(0,0,0) scale(1);
    }

    to {
        transform: translate3d(30px,-20px,0) scale(1.15);
    }

}


/* ---------------------------------------------------------
   ARCHITECTURAL DRAWING
--------------------------------------------------------- */

.ue-architecture {

    position: relative;

    width: min(390px, 80vw);

    margin-bottom: 5px;

    overflow: hidden;

}


.ue-building {

    width: 100%;

    display: block;

}


/* ---------------------------------------------------------
   ARCHITECTURAL LINES
--------------------------------------------------------- */

.draw-line {

    fill: none;

    stroke: rgba(203, 170, 104, 0.9);

    stroke-width: 1.2;

    stroke-linecap: round;

    stroke-linejoin: round;

    stroke-dasharray: 1000;

    stroke-dashoffset: 1000;

    animation:
        ueDrawBuilding 3.8s
        cubic-bezier(.65,0,.35,1)
        forwards;

}


/* ---------------------------------------------------------
   ARCHITECTURE STAGGER
--------------------------------------------------------- */

.draw-line:nth-of-type(1) {
    animation-delay: 0.25s;
}

.draw-line:nth-of-type(2) {
    animation-delay: 0.55s;
}

.draw-line:nth-of-type(3) {
    animation-delay: 0.8s;
}

.draw-line:nth-of-type(4) {
    animation-delay: 1.05s;
}

.draw-line:nth-of-type(5) {
    animation-delay: 1.25s;
}

.draw-line:nth-of-type(6) {
    animation-delay: 1.45s;
}

.draw-line:nth-of-type(7) {
    animation-delay: 1.65s;
}


/* ---------------------------------------------------------
   DRAWING ANIMATION
--------------------------------------------------------- */

@keyframes ueDrawBuilding {

    to {

        stroke-dashoffset: 0;

    }

}


/* =========================================================
   ✨ SHIMMERING STAR
========================================================= */

.ue-shimmer-star {

    position: absolute;

    top: 10%;

    left: -15%;

    width: 55px;

    height: 55px;

    border-radius: 50%;

    pointer-events: none;

    z-index: 20;

    opacity: 0;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,1) 0%,
            rgba(255,240,190,0.95) 5%,
            rgba(203,170,104,0.75) 18%,
            rgba(203,170,104,0.25) 40%,
            transparent 72%
        );

    filter: blur(1px);

    animation:
        ueShimmerMove 4.5s
        cubic-bezier(.4,0,.2,1)
        infinite;

}


/* ---------------------------------------------------------
   STAR CENTER
--------------------------------------------------------- */

.ue-shimmer-star span {

    position: absolute;

    width: 5px;

    height: 5px;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 5px #ffffff,
        0 0 12px #f4dfaa,
        0 0 25px rgba(203,170,104,0.9),
        0 0 45px rgba(203,170,104,0.5);

}


/* ---------------------------------------------------------
   HORIZONTAL STAR FLARE
--------------------------------------------------------- */

.ue-shimmer-star span::before {

    content: "";

    position: absolute;

    width: 60px;

    height: 1px;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.95),
            transparent
        );

}


/* ---------------------------------------------------------
   VERTICAL STAR FLARE
--------------------------------------------------------- */

.ue-shimmer-star span::after {

    content: "";

    position: absolute;

    width: 1px;

    height: 60px;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,0.95),
            transparent
        );

}


/* ---------------------------------------------------------
   STAR MOVEMENT
--------------------------------------------------------- */

@keyframes ueShimmerMove {

    0% {

        left: -18%;

        top: 65%;

        opacity: 0;

        transform:
            scale(0.35)
            rotate(0deg);

    }

    10% {

        opacity: 1;

    }

    35% {

        opacity: 1;

        transform:
            scale(0.8)
            rotate(10deg);

    }

    55% {

        opacity: 1;

        transform:
            scale(1.15)
            rotate(20deg);

    }

    75% {

        opacity: 0.75;

        transform:
            scale(0.9)
            rotate(30deg);

    }

    100% {

        left: 108%;

        top: 8%;

        opacity: 0;

        transform:
            scale(0.45)
            rotate(45deg);

    }

}


/* ---------------------------------------------------------
   WINDOWS
--------------------------------------------------------- */

.ue-window {

    fill: rgba(202, 169, 103, 0.15);

    stroke: rgba(202, 169, 103, 0.65);

    stroke-width: 0.8;

    opacity: 0;

    animation:
        ueWindowsAppear 1.2s
        ease forwards;

    animation-delay: 2.5s;

}


@keyframes ueWindowsAppear {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}


/* ---------------------------------------------------------
   BRAND
--------------------------------------------------------- */

.ue-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-top: -5px;

    opacity: 0;

    transform: translateY(15px);

    animation:
        ueBrandReveal 1.2s
        cubic-bezier(.16,1,.3,1)
        forwards;

    animation-delay: 2.4s;

}


@keyframes ueBrandReveal {

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ---------------------------------------------------------
   UE MARK
--------------------------------------------------------- */

.ue-mark {

    width: 48px;

    height: 48px;

    border: 1px solid rgba(203, 170, 104, 0.8);

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: Georgia, serif;

    font-size: 15px;

    letter-spacing: 2px;

    color: #cbaa68;

    position: relative;

}


/* ---------------------------------------------------------
   CORNER DETAILS
--------------------------------------------------------- */

.ue-mark::before,
.ue-mark::after {

    content: "";

    position: absolute;

    width: 6px;

    height: 6px;

    border-color: #cbaa68;

}


.ue-mark::before {

    top: -1px;

    left: -1px;

    border-top: 1px solid;

    border-left: 1px solid;

}


.ue-mark::after {

    bottom: -1px;

    right: -1px;

    border-bottom: 1px solid;

    border-right: 1px solid;

}


/* ---------------------------------------------------------
   BRAND NAME
--------------------------------------------------------- */

.ue-brand-name {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.ue-brand-name span {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

    letter-spacing: 5px;

    font-weight: 400;

}


.ue-brand-name small {

    font-size: 8px;

    letter-spacing: 5px;

    color: #cbaa68;

}


/* ---------------------------------------------------------
   LOADING INFORMATION
--------------------------------------------------------- */

.ue-loading-info {

    width: min(350px, 72vw);

    margin-top: 38px;

    opacity: 0;

    animation:
        ueLoadingReveal 1s ease forwards;

    animation-delay: 2.6s;

}


@keyframes ueLoadingReveal {

    to {

        opacity: 1;

    }

}


/* ---------------------------------------------------------
   LOADING TEXT
--------------------------------------------------------- */

.ue-loading-text {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

    font-size: 8px;

    letter-spacing: 2.5px;

    color: rgba(255,255,255,0.55);

}


#ue-progress {

    color: #cbaa68;

    font-variant-numeric: tabular-nums;

}


/* ---------------------------------------------------------
   PROGRESS TRACK
--------------------------------------------------------- */

.ue-progress-track {

    width: 100%;

    height: 1px;

    background: rgba(255,255,255,0.15);

    overflow: hidden;

}


/* ---------------------------------------------------------
   PROGRESS BAR
--------------------------------------------------------- */

.ue-progress-bar {

    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(203,170,104,0.3),
            #cbaa68,
            #f1dfb0
        );

    box-shadow:
        0 0 12px rgba(203,170,104,0.6);

    transition:
        width 0.18s linear;

}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.ue-footer {

    position: absolute;

    bottom: 28px;

    left: 50%;

    transform: translateX(-50%);

    white-space: nowrap;

    font-size: 7px;

    letter-spacing: 4px;

    color: rgba(255,255,255,0.35);

    opacity: 0;

    animation:
        ueFooterReveal 1.2s ease forwards;

    animation-delay: 2.8s;

}


@keyframes ueFooterReveal {

    to {

        opacity: 1;

    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .ue-architecture {

        width: 290px;

    }


    .ue-brand-name span {

        font-size: 17px;

        letter-spacing: 4px;

    }


    .ue-brand-name small {

        font-size: 7px;

        letter-spacing: 3px;

    }


    .ue-mark {

        width: 42px;

        height: 42px;

        font-size: 13px;

    }


    .ue-loading-info {

        width: 75vw;

        margin-top: 30px;

    }


    .ue-footer {

        bottom: 20px;

        font-size: 6px;

        letter-spacing: 3px;

    }


    .ue-shimmer-star {

        width: 42px;

        height: 42px;

    }

}


/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ue-loader,
    .ue-loader * {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}

/* =========================================================
   URBAN EDGE LOGO
========================================================= */

.ue-mark {

    width: 48px;
    height: 48px;

    border: 1px solid rgba(203, 170, 104, 0.8);

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;

}


.ue-mark img {

    width: 78%;

    height: 78%;

    object-fit: contain;

    display: block;

}