/* ======= map-stores ======= */

.js-store-highlighted {
    transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease !important;
}

.js-store-highlighted:hover {
    opacity: 0.8 !important;
    stroke-width: 3px !important;
}

/* ======= alert ======== */

.alert-js {
    position: fixed;
    right: 16px;
    top: 16px;
    max-width: 700px;
    min-height: 50px;
    padding: 16px 20px;
    border-radius: 6px;
    background-color: #0d6efd;
    font-size: 14px;
    padding-right: 50px;
    color: #FFFFFF;
    z-index: 1060;
    display: none;
    transition: 0;
}

.alert_danger {
    background-color: #dc3545;
}

.alert_success {
    background-color: #198754;
}

.alert-js__close {
    position: absolute;
    right: 12px;
    top: 14px;
    cursor: pointer;
    color: #FFFFFF;
}

.alert-js__close svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .alert-js {
        max-width: none;
        left: 16px;
    }
}

/* ======= error-page ======= */

.error-page {
    padding: 4rem 0 4rem;
}

.error-page__code {
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.5rem;
    color: #646464;
    text-transform: uppercase;
}

.error-page__title {
    margin-top: 1.5rem;
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 110%;
    color: #0B0D15;
    letter-spacing: -0.04em;
}

.error-page__description {
    margin-top: 1.5rem;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #0B0D15;
    max-width: 33.6875rem;
}

.error-page__app {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
}

.error-page__app img {
    height: 2.5rem;
}

.error-page__app-item {
    font-weight: 600;
}

@media (max-width: 992px) {
    .error-page__code {
        font-size: 1rem;
    }

    .error-page__title {
        font-size: 2.5rem;
        line-height: 117%;
        margin-top: 0.75rem;
    }
    
    .error-page__description {
        font-size: 1rem;
        line-height: 140%;
        max-width: 26.8125rem;
    }
}

@media (max-width: 768px) {
    .error-page {
        padding-top: 3.125rem;
    }

    .error-page__code {
        font-size: 0.875rem;
        line-height: 1.5rem;
    }

    .error-page__title {
        font-size: 1.75rem;
        line-height: 117%;
    }
    
    .error-page__description {
        font-size: 0.875rem;
        line-height: 1.5rem;
        max-width: none;
    }
}

/* ========= vacancy ============= */

.custom-block {
    display: block;
}

.custom-mt-80 {
    margin-top: 5rem;
}

.custom-inline-flex {
    display: inline-flex;
}

.custom-bg-contain {
    background-size: contain !important;
}

.custom-max-width-430 {
    max-width: 29.375rem;
}

.custom-z-2 {
    z-index: 2;
}

.wrap-break-word {
    overflow-wrap: break-word;
}

.text-ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
}

.wrapper-main .btn {
    overflow: hidden;
}

.wrapper-main .btn span {
    text-overflow: ellipsis;
    overflow: hidden;
}

.wrapper-main .text-header-5-m {
    overflow-wrap: break-word;
}

.vacancy-description h2,
.vacancy-description h3,
.vacancy-description h4,
.vacancy-description h5,
.vacancy-description h6 {
    font-size: 1.625rem;
    line-height: 123%;
    font-weight: 650;
    margin-bottom: 1.5rem;
}

.vacancy-description p {
    margin-bottom: 1.5rem;
}

.vacancy-description ul {
    margin-bottom: 1.5rem;
}

/* ========= article ============= */

.custom-article-content {
    font-size: 1.25rem;
    line-height: 140%;
    font-weight: 400;
}

.custom-article-content h2,
.custom-article-content h3,
.custom-article-content h4,
.custom-article-content h5,
.custom-article-content h6 {
    font-size: 3rem;
    line-height: 112%;
    font-weight: 650;
    margin-bottom: 1.75rem;
    padding-top: 0.5rem;
}

.custom-article-content p {
    margin-bottom: 1.5rem;
}

.custom-article-content ul {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .custom-article-content {
        font-size: 1rem;
    }

    .custom-article-content h2,
    .custom-article-content h3,
    .custom-article-content h4,
    .custom-article-content h5,
    .custom-article-content h6 {
        font-size: 1.5rem;
    }
}

/* ====================== */

/* ======= Store Search Form ======= */

.store-search-form {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.store-search-input {
    height: 3.8rem;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 1px solid #E5E5E5;
    border-radius: 1rem;
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: #0B0D15;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 17.5rem;
}

.store-search-input:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 0.1875rem rgba(255, 107, 0, 0.1);
}

.store-search-input::placeholder {
    color: #646464;
    opacity: 1;
}

.store-search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.store-search-button:hover {
    background-color: #FF6B00;
}

.store-search-button:hover .btn--icon {
    color: #ffffff;
}

.store-search-button .btn--icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #646464;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .store-search-input {
        min-width: 12.5rem;
        height: 3rem;
        padding: 0.75rem 3rem 0.75rem 1rem;
        font-size: 1.125rem;
    }

    .store-search-button {
        width: 2.25rem;
        height: 2.25rem;
    }

    .store-search-button .btn--icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* ====================== */

/* ======= Floor Filter Animation ======= */

.stores__store {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stores__store[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

/* ====================== */

/* ======= News Filter Buttons ======= */

.news-filter-btn.active {
    background-color: #f97316;
    color: white;
}

/* ====================== */

/* ======= Store Item Clickable ======= */

.store-item-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.store-item-clickable:hover {
    color: #FF6B00;
}

/* ====================== */

/* ======= Map Info Modal Positioning ======= */

.map-info {
    width: 24rem !important;
    position: absolute !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    z-index: 1060;
    /* Скрываем по умолчанию */
    visibility: hidden;
    opacity: 0;
    transition-property: visibility, opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
}

.map-info.transition-show_open {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Мобильная версия - размещаем под картой */
@media (max-width: 768px) {
    .map-info {
        width: 20rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 100% !important; /* Размещаем сразу под контейнером */
        margin-top: calc(var(--spacing) * 2); /* Небольшой отступ сверху */
    }
}

.map-info .map-info-wrapper {
    width: 100% !important;
    max-width: none !important;
}

/* ====================== */

.select.open .custom-category-filter {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.5rem;
    width: 38.75rem;
}

@media (max-width: 768px) {
    .filter-buttons {
        display: flex;
        flex-direction: column;
    }

    .filter-buttons > .select,
    .filter-buttons > .select > .btn,
    .filter-buttons > .btn,
    .store-search-form,
    .store-search-input {
        width: 100%;
    }

    .filters.active .filters-btn {
        display: block;
    }

    .filters {
        flex-wrap: wrap;
    }

    .select.open .custom-category-filter {
        display: grid !important;
        grid-template-columns: 1fr;
        column-gap: 0.5rem;
        width: 100%;
        max-height: 400px;
    }
}

/* ====================== */

/* ======= Tenant Feedback Form ======= */

.form-error {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-success-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.form-success {
    padding: 1.5rem;
    background-color: #dcfce7;
    border: 2px solid #86efac;
    border-radius: 1rem;
    color: #166534;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.js-form-general-error {
    padding: 1rem;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    color: #991b1b;
    font-size: 1rem;
    text-align: center;
}

.input-error {
    border-color: #dc2626 !important;
}

.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* ====================== */

/* ======= Anchor Navigation ======= */

.anchors_item {
    cursor: pointer;
    transition: color 0.3s ease;
}

.anchors_item.active {
    color: #FF6B00;
    font-weight: 600;
}

.js-guide-anchor-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.js-guide-anchor-link.active {
    color: #FF6B00;
    font-weight: 600;
}

/* ====================== */

.menu-mobile_custom .menu-items {
    background-color: #f87245;
    color: #ffffff;
}

/* Фикс для старых браузеров (Huawei и др.) - замена rotate на transform */
.scroll-button svg {
    rotate: unset;
    transform: rotate(-90deg);
}
