/* Base styles */
body {
    font-family: "Roboto Condensed", sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    padding-top: 56px; /* Для фиксированного навбара */
    background-image: url('/static/images/design/bg.png');
    background-position: left;
    background-repeat: repeat;
    background-size: 850px;
    background-attachment: fixed;
}

html, body {
    height: 100%;
}

main {
    flex: 1 0 auto;
}

/* Навигационная панель */
.custom-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: #22232f !important;
    transition: all 0.3s ease;
}

.custom-nav .navbar-nav li a {
    color: #fff;
    font-size: 15px;
    background-color: transparent !important;
    padding: 7px 0 !important;
    position: relative;
    margin: 0 12px;
    font-weight: 400;
    transition: all 0.4s;
}

footer {
    flex-shrink: 0;
    background-color: #343a40;
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}


/* Marker items */
#mapItems {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.map-item {
    display: inline-block;
    width: 200px;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.map-item:hover {
    transform: translateY(-3px);
}

.marker-popup h5 {
    color: #0d6efd;
    margin-bottom: 10px;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
    .map-item {
        width: 150px;
    }
}

/* Form styles */
.form-label {
    font-weight: 500;
}

/* Profile avatar */
.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Profile avatar */
.micro-profile-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* News specific styles */
.news-card {
    transition: transform 0.2s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.pagination {
    margin-top: 20px;
}

@media (max-width: 768px) {
    footer {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

/* 404 Page Styles */
.display-4 {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.2;
    color: #ffffff;
}

.lead {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Statistic Page Styles */
.stat-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.stat-card p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Background colors for stat cards */
.bg-primary {
    background-color: #0d6efd !important;
}

.bg-success {
    background-color: #198754 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        min-height: 150px;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 1.2rem;
    }
}


.lang-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 5px;
}

.lang-btn {
    padding: 5px 10px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.lang-btn:hover {
    background: #e0e0e0;
}

/* Стили для кнопки создания карты */
.btn-create-map {
    transition: all 0.3s ease;
}

.btn-create-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-create-map {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .stat-card {
        min-height: 150px;
        margin-bottom: 1rem;
    }

    .stat-card h2 {
        font-size: 2.5rem;
    }

    .stat-card p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 4rem;
    }

    .lead {
        font-size: 1.25rem;
    }
}

.marker-popup h4 {
    margin-top: 0;
    color: #333;
}

.marker-actions {
    margin-top: 10px;
    text-align: right;
}

.color-option {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.custom-nav {
    width: 100%;
    border-radius: 0px;
    z-index: 1001;
    margin-bottom: 0px;
    transition: all 0.5s ease-in-out;
    background-color: #22232f !important;
}

.custom-nav.stickyadd {
    background-color: #fff;
    box-shadow: 0px 0px 18px 1px rgba(0, 0, 0, 0.1);
}

.custom-nav .navbar-nav li a {
    color: #fff;
    font-size: 15px;
    background-color: transparent !important;
    position: relative;
    font-weight: 400;
    transition: all 0.4s;
}

.navbar-toggler {
    font-size: 28px;
    padding: 0;
    margin-bottom: 0px;
    color: #000;
    border: none;
}

.custom-nav.stickyadd .navbar-nav li a {
    color: #000;
}

.navbar-toggle {
    font-size: 24px;
    margin-bottom: 0px;
    color: #ffffff;
}

.custom-nav.stickyadd .navbar-nav li a:after,
.custom-nav .navbar-nav li a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #5584ff;
    margin: auto;
    transition: all .5s ease;
}

.custom-nav.stickyadd .navbar-nav li a.active,
.custom-nav.stickyadd .navbar-nav li:hover a,
.custom-nav.stickyadd .navbar-nav li:active a,
.custom-nav .navbar-nav li a.active,
.custom-nav .navbar-nav li:hover a,
.custom-nav .navbar-nav li:active a {
    color: #5584ff;
}

.custom-nav.stickyadd .navbar-nav li a.active:after,
.custom-nav.stickyadd .navbar-nav li:hover a:after,
.custom-nav.stickyadd .navbar-nav li:active a:after,
.custom-nav .navbar-nav li a.active:after,
.custom-nav .navbar-nav li:hover a:after,
.custom-nav .navbar-nav li:active a:after {
    width: 100%;
}

.anim-middleout:hover:after {
    width: 100%;
}

.nav .open > a,
.nav .open > a:focus,
.nav .open > a:hover {
    background-color: transparent;
    border-color: #5584ff;
}

.nav-link.active {
    font-weight: 600;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

/* public-maps.css */
.list-group-item {
    color: #002c6e;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.map-author {
    color: #6c757d;
    font-size: 0.9rem;
}

.map-description {
    color: #495057;
    font-size: 0.87rem;
    line-height: 1.2rem;
    text-indent: 30px;
}

/* Кастомные стили для полноширинного меню */
.fullwidth-dropdown {
    width: 100%;
}

.fullwidth-dropdown .dropdown-menu {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000;
}

.nav-item.dropdown {
    flex: 1;
    text-align: center;
    z-index: 10000;
}

.btn-google {
    background: #DB4437;
    color: white;
}

.btn-yandex {
    background: #FFCC00;
    color: #000;
}

.icon-yandex {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/5/58/Yandex_icon.svg') no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

.marker-popup {
    max-width: 300px;
}

.marker-images {
    max-height: 200px;
    overflow-y: auto;
}

.upload-progress {
    transition: all 0.3s ease;
}

.expandable {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.expanded {
    white-space: normal;
    max-width: none;
}

.filter-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.search-result-item {
    transition: all 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.micro-profile-avatar {
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Иконки для карт */
.fa-map {
    padding: 8px;
    text-align: center;
}

.marker_card {
    transition: background-color 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    min-width: 300px;
    gap: 10px;
}

.marker_card:hover {
    background-color: #EEE;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.marker_card .text-start {
    padding-right: 40px;
    overflow: hidden;
    flex-grow: 1;
    min-width: 0; /* Необходимо для правильной работы text-truncate */
}

.marker_card .fw-bold {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.marker_card .fa-map {
    color: #0d6efd;
    background-color: #f8f9fa;
    border-radius: 50%;
    width: 40px;
}

.marker_card .micro-profile-avatar {
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.micro-profile-avatar {
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Добавленные/измененные стили для карточек меток */
.like_icon {
    z-index: 1;
    opacity: 0.9;
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    display: flex;
    align-items: center;
}

.likes-count {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 4px;
}

@media (max-width: 576px) {
    .marker_card {
        min-width: 100% !important;
    }
}

.like-button {
    font-size: 1.6rem !important;
}

/* Если не используете Bootstrap */
.text-danger {
    color: #dc3545 !important;
}

/* Позиционирование кнопки */
.fixed-bottom-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

/* Анимация кнопки */
.fixed-bottom-right:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Затемнение фона */
.modal-backdrop {
    opacity: 0.8 !important;
}

/* static/css/feedback.css */
#captcha-question {
    font-weight: bold;
    color: #0d6efd;
}

.map-markers {
    display: inline-flex;
    margin-left: -2px; /* Компенсируем промежуток между буквами и иконками */
}

.map-markers i {
    transform: rotate(32deg);
    margin-left: 3px;
    font-size: 1em;
    color: #bd2130;
}

/* Первая иконка немного выше */
.map-markers i:first-child {
    position: relative;
    top: -1px;
}

/* Вторая иконка немного ниже */
.map-markers i:last-child {
    position: relative;
    left: -10px;
    top: 3px;
    color: #0077ff;
}

/* Стили для блока категорий */
.category-block {
    margin-bottom: 1.5rem;
}

.category-title {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.map-badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.color-cycle-0 {
    color: #FF2D00;
}

.color-cycle-1 {
    color: #a7497a;
}

.color-cycle-2 {
    color: #3357FF;
}

.bg-cycle-0 {
    background-color: #FF573320;
}

.bg-cycle-1 {
    background-color: #33FF5720;
}

.bg-cycle-2 {
    background-color: #3357FF20;
}

.map_category_title {
    background-color: #0d6efd;
    color: #fff !important;
}

.map_category_title a {
    color: #fff !important;
}

.features-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-list {
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    font-size: 1.0rem;
    padding: 0.75rem 1.2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.2rem;
}

.fa_map {
    color: rgba(0, 0, 0, 0.25);
}

.quote-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #6c757d;
    margin: 1rem 0;
    font-style: italic;
    color: #858585;
}

.quote-text {
    background-color: #f8f9fa;
    font-style: italic;
    color: #858585;
    text-indent: 30px;
}

.tab-content {
    padding: 20px 0;
}

.nav-tabs .nav-link {
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #bd2130;
    font-weight: bold;
}

.stat-card {
    margin-bottom: 20px;
}

.views-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.views-table th, .views-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.views-table th {
    background-color: #f2f2f2;
}

.views-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Обновленные стили для Toast уведомлений */
.toast-container {
    position: fixed;
    top: 70px; /* Отступ от верхнего края, под хедером */
    right: 20px;
    z-index: 1100;
    width: 350px;
}

@media (max-width: 576px) {
    .toast-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: 60px;
    }
}

.notification-toast {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.notification-toast .toast-header {
    border-bottom: none;
    padding: 12px 16px;
    font-weight: 600;
}

.notification-toast .toast-body {
    padding: 16px;
    line-height: 1.5;
}

.notification-toast .btn-close {
    margin-left: 0.5rem;
    margin-right: -0.5rem;
    font-size: 0.75rem;
}

/* Цвета для разных типов уведомлений */
.notification-toast .bg-primary {
    background-color: #0d6efd !important;
}

.notification-toast .bg-success {
    background-color: #198754 !important;
}

.notification-toast .bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.notification-toast .bg-danger {
    background-color: #dc3545 !important;
}

.marker-comments {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.comment {
    padding: 8px;
    border-radius: 5px;
}

.comment:hover {
    background-color: #f1f1f1;
}

.replies {
    border-left: 2px solid #dee2e6;
    padding-left: 15px;
}

.comment-form-container textarea {
    resize: vertical;
    min-height: 80px;
}

/* Компактные уведомления */
.notification-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin-bottom: 5px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    min-height: 40px;
}

.notification-item.unread {
    background-color: #f8fafc;
}

.notification-content {
    /*flex: 1;*/
    /*display: flex;*/
    align-items: center;
    overflow: hidden;
}

.notification-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.notification-comment {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-left: 10px;
}

.notification-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #adb5bd;
    margin-left: 10px;
    white-space: nowrap;
}

.notification-time {
    margin-right: 8px;
}

.notification-event {
    padding: 2px 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Цвета для типов уведомлений */
.notification-item.info {
    border-left-color: #0dcaf0;
}

.notification-item.success {
    border-left-color: #198754;
}

.notification-item.warning {
    border-left-color: #ffc107;
}

.notification-item.critical {
    border-left-color: #dc3545;
}

/* Стили для страницы уведомлений */
.notifications-container {
    max-width: 1000px;
    margin: 0 auto;
}

.notification-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.notification-filter {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Стили для иконки уведомлений в навигации */
#notifications-link {
    position: relative;
    padding: 8px 12px;
    color: white;
    font-size: 19px;
}

#notifications-link .fa-envelope {
    font-size: 1.2rem;
}

#notifications-link:hover {
    color: #5584ff;
}

#unread-count {
    font-size: 0.7rem;
    padding: 3px 6px;
}

.marker_list_container {
    max-height: 500px;
    overflow: scroll;
    min-width: 330px;
}

@media (min-width: 768px) {
    .notification-content {
        width: 300px;
        margin-bottom: 3px;
    }
}

@media (max-width: 768px) {
    .notification-item {
        flex-wrap: wrap;
        padding: 6px 10px;
    }

    .notification-content {
        width: 100%;
        margin-bottom: 3px;
    }

    .notification-meta {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .notification-title,
    .notification-comment {
        font-size: 0.85rem;
    }
}


/* Обновленные стили для уведомлений */
.notification-item {
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    min-height: 40px;
    overflow: hidden;
}

.notification-content {
    width: 300px;
    /*flex: 1;*/
    /*display: flex;*/
    align-items: center;
    overflow: hidden;
    padding: 8px 15px;
}

.notification-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.notification-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #adb5bd;
    white-space: nowrap;
    padding: 8px 15px;
    background-color: white;
}

.notification-time {
    margin-right: 8px;
}

.notification-event {
    padding: 2px 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Цветные фоны для разных типов */
.notification-item.info .notification-content {
    background-color: rgba(13, 202, 240, 0.8);
    border-left: 3px solid #0dcaf0;
}

.notification-item.success .notification-content {
    background-color: rgba(25, 135, 84, 0.8);
    border-left: 3px solid #198754;
}

.notification-item.warning .notification-content {
    background-color: rgba(255, 193, 7, 0.8);
    border-left: 3px solid #ffc107;
}

.notification-item.critical .notification-content {
    background-color: rgba(220, 53, 69, 0.8);
    border-left: 3px solid #dc3545;
}

/* Стиль для непрочитанных */
.notification-item.unread .notification-content {
    background-color: rgba(13, 110, 253, 0.8);
    border-left: 3px solid #0d6efd;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .notification-item {
        flex-direction: column;
    }

    .notification-content,
    .notification-meta {
        width: 100%;
        padding: 6px 10px;
    }

    .notification-meta {
        justify-content: space-between;
        border-top: 1px solid #f1f3f5;
    }
}


/* Стили для tooltip маркеров */
.custom-tooltip {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.custom-tooltip:before {
    border-top-color: white;
}

.custom-tooltip strong {
    color: #0d6efd;
    display: block;
    margin-bottom: 3px;
}

.custom-tooltip br {
    margin: 3px 0;
    content: "";
    display: block;
}

.message_header_icon {
    font-size: 1.2rem;
    color: #fff;
}

.message_header_icon:hover {
    color: #5584ff !important;
}

.description-content {
    transition: all 0.3s ease;
    max-height: 0;
    padding: 0 !important;
}

.description-content.show {
    display: block !important;
    max-height: 1000px; /* Достаточно большое значение для контента */
    padding: 1rem 0.5rem !important;
}

.description-arrow {
    transition: transform 0.3s ease;
}

.description-arrow.rotate {
    transform: rotate(180deg);
}


/* Хлебные крошки */
.breadcrumb {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.rating-badge {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    height: 40px;
    background: #0d6efd;
    border-radius: 20px;
    padding: 0 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 500;
}

.text-xs {
    font-size: 12px !important;
}

.map_list_link {
    text-decoration: none;
    color: #333;
}

.map_list_link:hover {
    text-decoration: underline;
    color: #888;
}

@media (max-width: 500.01px) {
    .map_list_link {
        display: inline-block;
        width: 35px;
        font-size: 25px;
    }

    .short-header-text {
        font-size: 24px;
    }

    .mobile_menu_icon {
        font-size: 20px;
    }
}


/* Для мобильных устройств */
@media (max-width: 991.98px) {
    .right_header {
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Footer Styles */
.footer {
    background-color: #22232f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: #5584ff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer .nav-link {
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer .nav-link:hover {
    color: #5584ff !important;
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: #5584ff;
    transform: translateY(-3px);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer .col-md-3 {
        margin-bottom: 1.5rem;
    }

    .footer h5 {
        font-size: 1rem;
    }

    .footer .nav-link {
        font-size: 1.25rem;
    }
}

.terms-container {
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.terms-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section h2 {
    color: #0d6efd;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.terms-section h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
    color: #333;
}

.terms-section p, .terms-section ul {
    margin-bottom: 1.2rem;
    color: #444;
}

.terms-section ul {
    padding-left: 1.8rem;
}

.terms-section li {
    margin-bottom: 0.6rem;
}

.terms-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .terms-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .terms-content {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.4rem;
    }
}

.privacy-container {
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.privacy-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.privacy-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: #0d6efd;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.privacy-section h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
    color: #333;
}

.privacy-section p, .privacy-section ul {
    margin-bottom: 1.2rem;
    color: #444;
}

.privacy-section ul {
    padding-left: 1.8rem;
}

.privacy-section li {
    margin-bottom: 0.6rem;
}

.privacy-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .privacy-content {
        padding: 1.5rem;
    }

    .privacy-section h2 {
        font-size: 1.4rem;
    }
}

.social-share-widget {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 0px 0;
}

.social-share-widget h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.share-buttons {
    display: inline;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share-block {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    transition: background-color 0.2s;
}

.btn-vk {
    background-color: #4a76a8;
}

.btn-vk:hover {
    background-color: #3d638f;
}

.btn-copy:hover {
    background-color: #3d638f;
}

.btn-telegram {
    background-color: #0088cc;
}

.btn-copy {
    background-color: #0088cc;
}

.btn-telegram:hover {
    background-color: #0077b5;
}


/* Стили для поисковой строки */
.search-container {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .search-container .input-group {
        width: 100% !important;
        max-width: none;
    }
}


.user-item {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 160px;
    transition: all 0.2s ease;
}

.user-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-item img {
    border: 2px solid #dee2e6;
    object-fit: cover;
}

.user-item .small {
    font-size: 0.8rem;
}


/* Основные стили карты */
.map-page-container {
    height: calc(100vh - 80px);
}

.map-container {
    position: absolute;
    top: 64px; /* Панель управления */
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

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

/* Панель управления картой */
.map-control-panel {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.user-item {
    background-color: white;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Стили для компактного режима панели */
.map-control-panel.collapsed {
    padding: 10px 15px;
}

/* Стили для кнопки "Где я?" */
#locate-me, #swipe_markers {
    min-width: 40px;
    height: 30px;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-item {
    background-color: white;
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 180px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.user-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Мобильная версия */
@media (max-width: 767.98px) {
    .map-container {
        top: 174px; /* Навбар + панель управления */
    }

    .user-list-container {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
        max-height: 160px;
        overflow-y: auto;
    }

    .map-control-panel {
        padding: 8px 10px;
    }

    /* Оптимизация элементов управления */
    .map-control-panel .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Скрываем лишний текст на кнопках */
    .map-control-panel .d-none.d-sm-inline {
        display: none !important;
    }
}

/* Планшеты и небольшие экраны */
@media (min-width: 768px) and (max-width: 991.98px) {
    .user-list-container {
        max-width: 180px;
    }

    .map-control-panel {
        position: absolute;
    }

    #map {
        height: 100%;
    }
}


@media (max-width: 768px) {
    .map-control-panel {
        position: absolute;
    }
}

@media (max-width: 400px) {
    .map-control-panel h4 {
        font-size: 15px;
    }

    #map {
        height: 100%;
    }
}

/* Обработка открытого навбара */
body.navbar-expanded .map-control-panel {
    top: calc(65px + 50px); /* Высота навбара + высота расширенного меню */
}

body.navbar-expanded .map-container {
    top: calc(65px + 50px + 64px); /* Навбар + меню + панель управления */
}

/* Плавные анимации */
.map-control-panel,
.user-list-container,
.map-container {
    transition: all 0.3s ease-out;
}

/* Все остальные ваши стили остаются без изменений */
/* ... */
/* Footer Styles */
.footer {
    background-color: #22232f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* News specific styles */
.news-card {
    transition: transform 0.2s;
    height: 100%;
}

/* Анимации */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* Complaint System Styles */
.complaint-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.complaint-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: none;
    overflow: hidden;
}

.complaint-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.complaint-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complaint-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.complaint-status {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
}

.status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-in_progress {
    background-color: #fff8e1;
    color: #ff8f00;
}

.status-completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-canceled {
    background-color: #ffebee;
    color: #d32f2f;
}

.status-closed {
    background-color: #f5f5f5;
    color: #616161;
}

.complaint-body {
    padding: 1rem;
}

.complaint-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.complaint-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.complaint-meta-item i {
    margin-right: 0.5rem;
    color: #6c757d;
    font-size: 1rem;
}

.complaint-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #0d6efd;
}

.complaint-messages {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.message {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
}

.message-user {
    background-color: #f0f7ff;
    border-left: 3px solid #0d6efd;
    margin-right: 2rem;
}

.message-admin {
    background-color: #f5f5f5;
    border-left: 3px solid #6c757d;
    margin-left: 2rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.message-sender {
    font-weight: 600;
    color: #333;
}

.message-time {
    color: #6c757d;
}

.message-text {
    color: #444;
    line-height: 1.5;
}

.complaint-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.complaint-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #333;
}

.form-select, .form-textarea {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: all 0.3s;
}

.form-select:focus, .form-textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit-complaint {
    background-color: #0d6efd;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-submit-complaint:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

.marker-preview {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.marker-preview-icon {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.marker-preview-info {
    flex-grow: 1;
}

.marker-preview-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.marker-preview-author {
    font-size: 0.85rem;
    color: #6c757d;
}

.empty-complaints {
    text-align: center;
    padding: 3rem 0;
    color: #6c757d;
}

.empty-complaints-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-complaints-text {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .complaint-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .message-user, .message-admin {
        margin-right: 0;
        margin-left: 0;
    }

    .complaint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .complaint-status {
        align-self: flex-start;
    }
}

/* Animation for new messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-message {
    animation: fadeIn 0.3s ease-out;
}

/* Pagination styles */
.complaint-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    margin: 0 0.25rem;
    border-radius: 4px !important;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Badge for complaint type */
.complaint-type-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background-color: #e2e3e5;
    color: #383d41;
    font-weight: 500;
    margin-right: 0.5rem;
}

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 400px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    font-family: Arial, sans-serif;
}

.cookie-content p {
    margin: 0 0 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.cookie-btn.accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn.reject {
    background: #f44336;
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
}


.full-header-text {
    display: inline;
}

.short-header-text {
    display: none;
}

.short-menu-text {
    display: none;
}

.full-menu-text {
    display: inline;
}


@media (max-width: 1198.98px) {
    .full-header-text {
        display: none;
    }

    .short-header-text {
        display: inline;
    }
}

@media (max-width: 500px) {
    .full-menu-text {
        display: none;
    }

    .short-menu-text {
        display: inline;
    }
}


/* Стиль для белого фона, который будет исчезать */
.animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1200;
    animation: fadeOut 2.5s ease-out forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    /* Фон остается видимым большую часть анимации */
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Контейнер для маркеров */
.markers-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    z-index: 1200;
    pointer-events: none;
    margin-top: -120px;
}

/* Общие стили для маркеров */
.marker {
    font-size: 100px;
    position: absolute;
    animation-duration: 2.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

/* Анимация текста */
#logo_animation {
    font-size: 30px;
    margin: 0;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    color: #007aff;
}

.logo_red {
    color: #ff3a30 !important;
}

#animation_prefix {
    text-align: center;
    display: block;
    margin-top: 10px; /* Отступ между лого и текстом */
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -85px;
    margin-top: 0px;
}

/* Красный маркер (движется справа налево) */
.marker.red {
    color: #ff3a30;
    right: calc(50% + 150px);
    animation-name: slideLeft, fadeIn;
}

/* Синий маркер (движется слева направо) */
.marker.blue {
    color: #007aff;
    left: calc(50% + 150px);
    animation-name: slideRight, fadeIn;
}

/* Анимация движения */
@keyframes slideLeft {
    0% {
        transform: translateX(0);

    }
    100% {
        transform: translateX(230px) rotate(20grad);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-230px) rotate(20grad);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.list-group-item .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-group-item .names,
.list-group-item .statuses {
    flex: 1;
    min-width: 0; /* Предотвращает переполнение */
}

/* Десктопы (по умолчанию) */
.list-group-item .d-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .list-group-item .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-group-item .names {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .list-group-item .statuses {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .list-group-item .statuses > * {
        margin-right: 0.5rem;
    }

    .list-group-item .text-xs {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }
}

.map_description {
    font-size: 0.89rem;
    line-height: 1.34rem;
}

/* Контейнер для карточек */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    width: 100%;
}

/* Карточка карты */
.map-card {
    display: flex;
    height: 90px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    overflow: hidden;
}

.map-card:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-card-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.map-icon {
    font-size: 24px;
    color: #6c757d; /* или ваш цвет fa_map */
    margin-right: 15px;
    flex-shrink: 0;
}

.map-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
}

.map-info {
    color: #6c757d; /* цвет text-muted */
    font-size: 0.9em;
    line-height: 1.2;
}

.map-info i {
    margin: 0 2px;
}

.map-text {
    flex: 1;
    min-width: 0;
}

.map-name {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ограничение в 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 4px;
}

.map-stats {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Стили для карточки карты */
.map-card-link {
    display: block;
    height: 90px;
    text-decoration: none;
    color: inherit;
    background-color: #f8f9fa; /* или ваш цвет map_bg */
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.map-card-link:hover {
    background-color: #e9ecef; /* цвет при наведении */
    text-decoration: none;
}

.map-card-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    position: relative;
}


/* Адаптация под разные экраны */
@media (max-width: 1199px) {
    .maps-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .maps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .maps-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .map-card {
        height: 80px;
    }
}

.map_bg {
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #c2c1c1;
}

.map_bg:hover {
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
}

.user-list-container {
    position: absolute; /* или fixed, в зависимости от вашей верстки */
    right: 20px;
    top: 60px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none; /* Изначально скрыт */
    background-color: rgba(255, 255, 255, 0.75);
    max-width: 220px;
}

.user-list-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.leaflet-marker-icon {
    border-radius: 50%;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.marker_event_popup {
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #c3c2c2;
    font-size: 14px;
    padding: 8px 8px 4px;
    margin-bottom: 11px;
}

.map_avatar_wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    max-width: 50px;
    max-height: 50px;
}

.map_avatar_wrapper_mini {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    max-width: 40px;
    max-height: 40px;
}

.map_avatar_mid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Стили для панели управления картой */
.map-control-panel {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.map-avatar-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.map-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #dee2e6;
}

.map-name {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-container {
    min-width: 200px;
}

.map-meta-info {
    font-size: 0.9rem;
}

.map-list-link {
    color: inherit;
    text-decoration: none;
}

.map-list-link:hover {
    color: #0d6efd;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767.98px) {
    .map-control-panel {
        padding: 10px;
        height: 114px;
    }

    .map-avatar-container {
        width: 40px;
        height: 40px;
    }

    .map-name {
        max-width: 150px;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .map-meta-info {
        font-size: 0.8rem;
    }
}


/* Стили для изображения карты */
.map-image-container {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Иконка карты (если изображения нет) */
.map-icon {
    font-size: 24px;
    color: #6c757d;
    margin-right: 15px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden_marker {
    color: #ff0505 !important;
}

.expired_marker {
    color: #ccc !important;
}

.marker-content {
    padding: 15px;
    transition: opacity 0.3s ease;
}

/* Стиль для срочных меток */
.alert-warning {
    font-weight: bold;
}

@media (max-width: 767.98px) {
    .add_into {
        display: none;
    }
}

@media (max-width: 500.01px) {
    .map_avatar_wrapper_mini {
        max-width: 100px;
        max-height: 100px;
    }
}

@media (max-width: 500px) {
    .navbar-nav {
        margin-top: 8px;
        flex-direction: row !important; /* Меняем направление на горизонтальное */
        flex-wrap: wrap; /* Разрешаем перенос на новую строку если не хватает места */
    }

    .nav-item {
        margin-right: 10px; /* Добавляем отступ между иконками */
    }

    .nav-link {
        padding: 0.5rem !important; /* Уменьшаем отступы для компактности */
    }

    .nav-link .navbar_icon {
        font-size: 20px;
    }


    /* Опционально: выравнивание иконок по центру */
    .short-header-text {
        /*display: flex;*/
        justify-content: center;
        align-items: center;
    }

    #locate-me, #swipe_markers {
        height: 45px !important;
    }

    #showExpiredSwitch {
        height: 22px;
        width: 40px;
        margin-top: 12px;
        margin-right: 10px;
        border: 1px solid #888;
    }

}

#mapInfoCollapse {
    z-index: 1300;
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.my_alert {
    right: 20px;
    z-index: 1210;
    transition: 0.5s ease-out;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px;
    top: 70px;
    opacity: 1;
    transform: translateY(0px);
    background: #55ff97;
    color: #000;
    text-shadow: 1px 1px 1px rgba(207, 255, 221, 0.5);
}

.btn-xs {
    padding: .28rem .4rem;
    font-size: 0.65rem;
    line-height: .8;
    border-radius: .2rem;
}