﻿:root {
    --hl-size: 260px; /* circle diameter (larger size) */
    --hl-pad: 22px; /* inner padding around the image */
    --hl-bg: rgba(17, 24, 39, .65); /* overlay backdrop */
    --hl-text: #f8fafc; /* text color */
    --hl-ring: #60a5fa; /* ring color base */
    --hl-ring2: #a78bfa; /* ring gradient end */
    --hl-glow: rgba(96,165,250,.55); /* outer glow */
}

/* ===== Overlay shell ===== */
#hotelLoader {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2147483000;
    background: var(--hl-bg);
    backdrop-filter: saturate(140%) blur(2px);
}

    #hotelLoader.active {
        display: flex
    }

    #hotelLoader .hl-wrap {
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 20px
    }

/* ===== Chip (ring + inner image holder) ===== */
.hl-chip {
    position: relative;
    width: var(--hl-size);
    height: var(--hl-size);
}

/* rotating gradient ring (donut using mask) */
.hl-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: conic-gradient(from 0deg, var(--hl-ring), var(--hl-ring2), var(--hl-ring));
    -webkit-mask: radial-gradient(calc(50% - var(--hl-pad)) circle, transparent 97%, #000 98%), radial-gradient(50% 50% at 50% 50%, #000 68%, transparent 69%);
    mask: radial-gradient(calc(50% - var(--hl-pad)) circle, transparent 97%, #000 98%), radial-gradient(50% 50% at 50% 50%, #000 68%, transparent 69%);
    animation: hl-spin 1.25s linear infinite;
    box-shadow: 0 0 32px var(--hl-glow);
}

/* inner circle that holds the image */
.hl-inner {
    position: absolute;
    inset: var(--hl-pad);
    border-radius: 999px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 0% 0%, #0ea5e9 0%, #312e81 60%, #0b132b 100%);
    box-shadow: inset 0 0 24px rgba(0,0,0,.35), 0 10px 28px rgba(2,6,23,.35);
}

/* two-layer imgs for crossfade */
.hl-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .35s ease;
}

    .hl-img.show {
        opacity: 1
    }

/* subtle pulsing dot in the corner */
.hl-pulse {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: hl-pulse 1.3s ease-out infinite;
}

/* caption + dots */
.hl-title {
    color: var(--hl-text);
    font: 600 20px/1.2 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto;
    letter-spacing: .2px;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.hl-dots {
    display: flex;
    gap: 8px;
}

.hl-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hl-text);
    opacity: .35;
}

    .hl-dot:nth-child(1) {
        animation: hl-dot 1s infinite .0s
    }

    .hl-dot:nth-child(2) {
        animation: hl-dot 1s infinite .15s
    }

    .hl-dot:nth-child(3) {
        animation: hl-dot 1s infinite .3s
    }

/* ===== Animations ===== */
@keyframes hl-spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes hl-dot {
    0%, 80%, 100% {
        opacity: .25;
        transform: translateY(0)
    }

    40% {
        opacity: 1;
        transform: translateY(-3px)
    }
}

@keyframes hl-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,.65)
    }

    70% {
        box-shadow: 0 0 0 14px rgba(34,197,94,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0)
    }
}

/* ===== Theme: light option (call setSpinnerTheme('light')) ===== */
.hl-light {
    --hl-bg: rgba(255,255,255,.75);
    --hl-text: #0f172a;
    --hl-glow: rgba(99,102,241,.45);
}
