.category-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.cafe-list {
    flex: 0 0 350px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
}

.cafe-item {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.cafe-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cafe-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-container {
    flex: 1;
    position: sticky;
    top: 120px;
    height: 100%;
}

#category-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Стили для информационного окна */
.map-info-window {
    padding: 15px;
    max-width: 300px;
    position: relative;
    font-family: 'Arial', sans-serif;
}

.info-window-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-right: 25px; /* Место для крестика */
    position: relative;
}

.info-window-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.map-info-window h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
    flex: 1;
}

/* Крестик закрытия */
.info-window-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #c7a17a;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .2s ease;
    z-index: 1000;
}

.info-window-close:hover {
    transform: rotate(180deg);
	    color: #c7a17a;

}

.info-window-content {
    position: relative;
}

.info-window-location {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
    font-size: 14px;
    color: #555;
}

.info-window-location strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.info-window-location i {
    color: #4CAF50;
    margin-right: 5px;
}

/* Бейдж с номером в информационном окне */
.marker-number-badge {
    position: absolute;
    top: -20px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.cafe-icon {
    max-width: 30px;
    margin-top: 10px;
    border-radius: 4px;
}

.map-data {
    display: none !important;
}

.cafe-map-marker {
    width: 34px;
    height: 42px;
    background: url(../images/point.svg) center / contain no-repeat;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.cafe-map-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 6px auto 0;
    border-radius: 50%;
    background: #fff;
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-content .map-info-window {
    padding: 15px;
}

/* Стили для маркеров с номерами */
.gm-style-iw {
    border-radius: 10px !important;
    overflow: visible !important;
    max-width: 320px !important;
}

.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* Кнопка закрытия старого провайдера по умолчанию - скрываем */
.gm-ui-hover-effect {
    display: none !important;
}

/* Сообщения об ошибках и пустые состояния */
.no-cafes-message,
.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.map-error {
    color: #d32f2f;
    background: #ffebee;
    border-color: #ffcdd2;
}

/* Анимация маркера при клике */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .category-container {
        flex-direction: column;
    }
    
    .cafe-list {
        flex: none;
        max-height: 400px;
        width: 100%;
    }
    
    .map-container {
        height: 400px;
        position: static;
        margin-top: 20px;
    }
    
    .cafe-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
        top: -8px;
        left: -8px;
    }
}

/* Стили для списка кафе */
.cafe-list::-webkit-scrollbar {
    width: 6px;
}

.cafe-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cafe-list::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 3px;
}

.cafe-list::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* Скрываем стандартный крестик старого провайдера */
.gm-ui-hover-effect {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Убираем стандартный крестик */
button.gm-ui-hover-effect {
    display: none !important;
}

/* Очищаем стрелку при закрытии */
.gm-style-iw-tc {
    display: none !important;
}

/* Гарантированно скрываем закрытые окна */
.gm-style-iw.gm-style-iw-c[style*="display: none"],
.gm-style-iw.gm-style-iw-c[style*="opacity: 0"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Скрываем дочерние элементы закрытого окна */
.gm-style-iw.gm-style-iw-c[style*="display: none"] .gm-style-iw-d,
.gm-style-iw.gm-style-iw-c[style*="opacity: 0"] .gm-style-iw-d {
    display: none !important;
}
