﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

html, body, #app {
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
.snap-y {
    -webkit-overflow-scrolling: touch;
}

.ymaps-2-1-79-ground-pane {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* Гарантируем что карта занимает всю площадь */
#map {
    position: absolute;
    top: 5vw; /* высота хедера в единицах viewport width */
left: 0;
right: 0;
bottom: 0; 
width: 100%;
height: calc(100% - 5vw);
}
    #map:active {
        cursor: grabbing;
    }
/* Стили для контента поверх карты */
.content-overlay {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

    /* Для текста на карте */
    .content-overlay h1 {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .content-overlay p {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }

/* Гарантируем что элементы управления Яндекс Карт видны */
.ymaps-2-1-79-zoom__plus,
.ymaps-2-1-79-zoom__minus {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
}

    .ymaps-2-1-79-zoom__plus:hover,
    .ymaps-2-1-79-zoom__minus:hover {
        background-color: white !important;
    }
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
#map, .ymaps-2-1-79-map {
    width: 100% !important;
    height: 100% !important;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhla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uMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}




/* Staggered delays */
.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

/* Add this to your global stylesheet (e.g., app.css or site.css)
   It won't work in an isolated .razor.css file because 
   Swiper adds classes dynamically.
*/

/* --- Requirement 4: 10% of next slide --- */
/* We set the slide width to 90%. 'auto' slidesPerView handles the rest. */
.swiper-container-values .swiper-slide {
    width: 90%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}


/* --- Requirement 7: Active slide is lifted --- */
/* First, "lower" all slides */
.swiper-container-values .swiper-slide {
    transform: scale(0.95); /* Slightly smaller */
    opacity: 0.6; /* Faded */
}

/* Then, "lift" the active slide */
.swiper-container-values .swiper-slide-active {
    transform: scale(1) translateY(-10px); /* Full size and lifted */
    opacity: 1; /* Full opacity */
    z-index: 10; /* Ensure it's on top */
}


/* --- Requirement 5: Custom Filling Bullets --- */

/* Container for the bullets */
.swiper-pagination-values {
    /* Use flexbox (Tailwind: flex justify-center) */
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -20px; /* Position below the slider */
    width: 100%;
    z-index: 20;
}

/* Individual bullet */
.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    margin: 0 6px;
    /* Remove default Swiper styles */
    background: transparent;
    opacity: 1;
}

/* The SVG rings */
.progress-ring__bg {
    fill: transparent;
    stroke: #e0e0e0; /* Tailwind: stroke-gray-300 */
    stroke-width: 2;
}

.progress-ring__fg {
    fill: transparent;
    stroke: #007aff; /* Tailwind: stroke-blue-600 */
    stroke-width: 2;
    transform: rotate(-90deg); /* Start at the top */
    transform-origin: 50% 50%;
    /* Circumference = 2 * PI * R = 2 * 3.14 * 8 = 50.24 */
    stroke-dasharray: 50.24;
    stroke-dashoffset: 50.24; /* Start as empty */
    /* This is the key! We animate this property */
    transition: stroke-dashoffset 0.3s ease;
}

/* When a bullet is active... */
.swiper-pagination-bullet-active .progress-ring__fg {
    /* We use the CSS variable set by the 'autoplayTimeLeft' event.
       We calculate the offset based on that variable.
       offset = 50.24 * (1 - progress)
    */
    stroke-dashoffset: calc(50.24 * (1 - var(--swiper-autoplay-progress, 0)));
    /* This makes the transition smooth when moving *between* slides,
       but the 'autoplayTimeLeft' event will override it during the countdown.
    */
    transition: stroke-dashoffset 0.1s linear;
}
/* =============================== */
/* Base tile and customizable speed */
/* =============================== */

.tile-reveal {
    position: relative;
    overflow: hidden;
    --reveal-duration: 1400ms; /* default if user doesn't override */
}

    .tile-reveal::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 40;
        pointer-events: none;
        will-change: transform;
    }

/* =============================== */
/* Reveal TOP */
/* =============================== */
.reveal-top::before {
    transform: translateY(0);
}

.reveal-top.revealed::before {
    animation: revealTop var(--reveal-duration) cubic-bezier(0.25,0.8,0.25,1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealTop {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

/* =============================== */
/* Reveal BOTTOM */
/* =============================== */
.reveal-bottom::before {
    transform: translateY(0);
}

.reveal-bottom.revealed::before {
    animation: revealBottom var(--reveal-duration) cubic-bezier(0.25,0.8,0.25,1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealBottom {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

/* =============================== */
/* Reveal LEFT */
/* =============================== */
.reveal-left::before {
    transform: translateX(0);
}

.reveal-left.revealed::before {
    animation: revealLeft var(--reveal-duration) cubic-bezier(0.25,0.8,0.25,1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* =============================== */
/* Reveal RIGHT */
/* =============================== */
.reveal-right::before {
    transform: translateX(0);
}

.reveal-right.revealed::before {
    animation: revealRight var(--reveal-duration) cubic-bezier(0.25,0.8,0.25,1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

#loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.3s ease;
}

.top-10 {
    top: calc(var(--spacing) * 10);
}
.top-12 {
    top: calc(var(--spacing) * 12);
}
.top-14 {
    top: calc(var(--spacing) * 14);
}
.top-20 {
    top: calc(var(--spacing) * 20);
}
.top-22 {
    top: calc(var(--spacing) * 22);
}
.left-10 {
    left: calc(var(--spacing) * 10);
}
.left-12 {
    left: calc(var(--spacing) * 12);
}
.left-14 {
    left: calc(var(--spacing) * 14);
}
.left-18 {
    left: calc(var(--spacing) * 18);
}

/* UNIVERSAL BUTTONS */
.nav-btn {
    width: 48px;
    height: 48px;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Smooth scale and background fade */
    transition: transform 0.2s ease, background-image 0.2s ease;
}

    /* ======================
   PREVIOUS (LEFT)
   ====================== */
    .nav-btn.prev {
        background-image: url("/images/buttons/CommonButtons/left.svg");
    }

        .nav-btn.prev:hover:not(:disabled) {
            background-image: url("/images/buttons/CommonButtons/left hover.svg");
            transform: scale(1.08);
            cursor: pointer;
        }

    /* ======================
   NEXT (RIGHT)
   ====================== */
    .nav-btn.next {
        background-image: url("/images/buttons/CommonButtons/right.svg");
    }

        .nav-btn.next:hover:not(:disabled) {
            background-image: url("/images/buttons/CommonButtons/right hover.svg");
            transform: scale(1.08);
            cursor: pointer;
        }

    /* ======================
   LEFT END (JUMP TO START)
   ====================== */
    .nav-btn.left-end {
        background-image: url("/images/buttons/CommonButtons/left end.svg");
    }

        .nav-btn.left-end:hover:not(:disabled) {
            background-image: url("/images/buttons/CommonButtons/left end hover.svg");
            transform: scale(1.08);
            cursor: pointer;
        }

    /* ======================
   RIGHT END (JUMP TO END)
   ====================== */
    .nav-btn.right-end {
        background-image: url("/images/buttons/CommonButtons/right end.svg");
    }

        .nav-btn.right-end:hover:not(:disabled) {
            background-image: url("/images/buttons/CommonButtons/right end hover.svg");
            transform: scale(1.08);
            cursor: pointer;
        }

    /* ======================
   ACCESSIBILITY & STATE
   ====================== */
    .nav-btn:focus-visible {
        outline: 2px solid red;
        outline-offset: 3px;
    }

    .nav-btn.disabled,
    .nav-btn:disabled {
        opacity: 0.4;
        pointer-events: none;
    }