@charset "UTF-8";
/*
 * Estrel Tower — Scroll Animations & Elevator Indicator
 * Optional: only active when body.estrel-animations is present.
 * Remove the class → zero visual changes.
 */


/* ============================
   ELEVATOR INDICATOR
   Fixed right edge, tower silhouette + moving dot
   ============================ */

.estrel-elevator {
    display: none;
}

/* Figma 391:51 — vertical stack of horizontal tick marks representing floors.
   Top label = highest floor (45), bottom label = 1. Scroll maps inverted so
   the top tick is "active" when the user is at the page top. */
body.estrel-animations .estrel-elevator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0.875rem;  /* ~14px — shifted ~10px left of the former 1.5rem */
    right: auto;
    top: 50%;
    /* translate3d forces a GPU compositing layer so the labels don't
       sub-pixel jitter while the page scrolls (was the "wackeln" issue). */
    transform: translate3d(0, -50%, 0);
    will-change: transform;
    z-index: 900;
    pointer-events: none;
    gap: 4px;
    /* Translucent pill + backdrop blur keeps labels + ticks legible when
       the page behind the elevator has a similar-tone background. */
    padding: 6px 3px;
    background: rgba(254, 245, 236, 0.35);
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border-radius: 8px;
}

/* Sunrise theme: slightly darker translucent wash so the deep-sea labels
   pop against any background colour. */
body.sunrise.estrel-animations .estrel-elevator {
    background: rgba(254, 245, 236, 0.45);
}

.estrel-elevator__track {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 3px 0;
    cursor: pointer;
    pointer-events: auto;
}

/* Default state: tick is dark. .is-faded → tick fades to light. JS sets
   .is-faded on every tick at or above the current scroll position, so the
   dark band shrinks from the top as the user scrolls.
   height: 1px (integer) instead of 1.5px — sub-pixel heights round
   inconsistently per row depending on devicePixelRatio, making some ticks
   look noticeably thicker than others. */
.estrel-elevator__tick {
    width: 11px;
    height: 1px;
    background: var(--color-deep-sea, #14172D);
    opacity: 1;
    border-radius: 0.5px;
    transition: opacity 0.2s ease;
}

.estrel-elevator__tick.is-faded {
    opacity: 0.25;
}

body.sunrise .estrel-elevator__tick {
    background: var(--color-deep-sea, #14172D);
}

/* Sunrise override above wins via body-class specificity (0,2,0,1) > the
   :first-child rule (0,0,2,0). Re-assert transparent on the spike tick
   with a matching body-class selector so the slash glyph stays visible. */
body.sunrise .estrel-elevator__tick:first-child {
    background: transparent;
}

/* Top tick = slanted "tower spike" — Figma 654:75: a 45° "/" line at the
   top of the indicator, mirroring the tower's pitched roof. Container keeps
   the tick's width so the column doesn't shift; height grows so the
   diagonal has room. Background goes transparent — the line is drawn by
   ::before. Parent's opacity (0.25 default → 1 when .is-active) cascades. */
.estrel-elevator__tick:first-child {
    width: 11px;
    height: 14px;
    background: transparent;
    border-radius: 0;
    position: relative;
}

.estrel-elevator__tick:first-child::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 17px;
    background: var(--color-deep-sea, #14172D);
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
}


/* ============================
   HIDE ELEVATOR ON MOBILE
   ============================ */

@media (max-width: 767px) {
    body.estrel-animations .estrel-elevator,
    .estrel-elevator {
        display: none !important;
    }
}


/* ============================
   SCROLL ATMOSPHERE
   Subtle warm overlay that increases with scroll
   ============================ */

.estrel-scroll-atmosphere {
    display: none;
}

body.estrel-animations .estrel-scroll-atmosphere {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(232, 168, 130, 0.08) 50%,
        rgba(255, 200, 150, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* ============================
   GALLERY LIGHTBOX
   Fullscreen image overlay with navigation
   ============================ */

.estrel-lightbox {
    display: none;
}

body.estrel-animations .estrel-lightbox {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.estrel-animations .estrel-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.estrel-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 23, 45, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.estrel-lightbox__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 2px;
    transition: opacity 0.15s ease;
}

.estrel-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid rgba(254, 245, 236, 0.3);
    border-radius: 50%;
    color: var(--color-butter-yellow);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    line-height: 1;
    padding: 0;
}

.estrel-lightbox__close:hover {
    background: rgba(254, 245, 236, 0.1);
    border-color: rgba(254, 245, 236, 0.5);
}

.estrel-lightbox__prev,
.estrel-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 245, 236, 0.08);
    border: 1.5px solid rgba(254, 245, 236, 0.2);
    border-radius: 50%;
    color: var(--color-butter-yellow);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    padding: 0;
}

.estrel-lightbox__prev { left: 1.5rem; }
.estrel-lightbox__next { right: 1.5rem; }

.estrel-lightbox__prev:hover,
.estrel-lightbox__next:hover {
    background: rgba(254, 245, 236, 0.15);
    border-color: rgba(254, 245, 236, 0.4);
}

@media (max-width: 767px) {
    .estrel-lightbox__prev { left: 0.75rem; }
    .estrel-lightbox__next { right: 0.75rem; }
    .estrel-lightbox__close { top: 1rem; right: 1rem; }
}
