:where([class^="ri-"])::before {
    content: "\f3c2";
}

@font-face {
    font-family: 'Ermilov';
    src: url('/static/base/assets/fonts/Ermilov/Ermilov-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FixelText';
    src: url('/static/base/assets/fonts/FixelText/FixelText-Medium.woff2') format('woff2'),
        url('/static/base/assets/fonts/FixelText/FixelText-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FixelText';
    src: url('/static/base/assets/fonts/FixelText/FixelText-Regular.woff2') format('woff2'),
        url('/static/base/assets/fonts/FixelText/FixelText-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.font-fixel {
    font-family: 'FixelText', sans-serif;
}

.font-ermilov {
    font-family: 'Ermilov', sans-serif;
}



.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;

    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Коли треба тільки показати модалку (display: flex) */
.modal.show {
    display: flex;
}

/* Коли треба анімацію появи */
.modal.visible {
    opacity: 1;
    transform: scale(1);
}

.modal.active {
    display: flex;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    ring: 2px;
    ring-color: #377DFF;
}

.notification {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: #377DFF;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 1rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* styles.css */

/* Загальні стилі */
.button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button-primary {
    background-color: #123D36;
    /* color.primary */
    color: white;
}

.button-secondary {
    background-color: #E9DFC7;
    /* color.secondary */
    color: #123D36;
    /* color.primary */
}

/* Вхідні поля */
.input {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 8px;
    background-color: #F8F8F8;
    border: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #D1D5DB;
    /* gray-400 */
}

/* Контейнери та розташування */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

#map {
    height: 100%;
    width: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.thumbnail-img:hover {
    opacity: 1;
}

#modalImage {
    width: auto;
    max-width: 90%;
    max-height: 99vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    #modalImage {
        width: 100vw;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }
}



.gallery-button {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.gallery-button:hover {
    background: white;
}

@media (max-width: 640px) {
    .thumbnail-img {
        width: 48px;
        height: 48px;
    }

    .gallery-button {
        padding: 0.5rem;
    }

    .gallery-button i {
        font-size: 1.25rem;
    }
}

.mobile-map {
    height: 240px !important;
}

.gallery-section {
    width: 100%;
    margin-bottom: 2rem;
    /* відступ після галереї */
}

.content-section {
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

#scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    padding-bottom: 120px;
}

@media (min-width: 768px) {
    #scroll-container {
        padding-bottom: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@layer utilities {
    @keyframes zoomPulse1 {

        0%,
        5% {
            opacity: 0;
            transform: scale(0.5);
        }

        25% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1);
        }

        75% {
            opacity: 0;
            transform: scale(0.5);
        }

        100% {
            opacity: 0;
            transform: scale(0.5);
        }
    }

    @keyframes zoomPulse2 {

        0%,
        15% {
            opacity: 0;
            transform: scale(0.5);
        }

        35% {
            opacity: 1;
            transform: scale(1);
        }

        60% {
            opacity: 1;
            transform: scale(1);
        }

        80% {
            opacity: 0;
            transform: scale(0.5);
        }

        100% {
            opacity: 0;
            transform: scale(0.5);
        }
    }

    @keyframes zoomPulse3 {

        0%,
        25% {
            opacity: 0;
            transform: scale(0.5);
        }

        45% {
            opacity: 1;
            transform: scale(1);
        }

        70% {
            opacity: 1;
            transform: scale(1);
        }

        90% {
            opacity: 0;
            transform: scale(0.5);
        }

        100% {
            opacity: 0;
            transform: scale(0.5);
        }
    }

    .zoom-anim-1 {
        animation: zoomPulse1 2s ease-in-out infinite;
    }

    .zoom-anim-2 {
        animation: zoomPulse2 2s ease-in-out infinite;
    }

    .zoom-anim-3 {
        animation: zoomPulse3 2s ease-in-out infinite;
    }

    .zoom-anim-4 {
        animation: zoomPulse1 2s ease-in-out infinite reverse;
    }

    .w-21 {
        width: 180px;
    }

    .h-21 {
        height: 180px;
    }
}
