/* Стили для страницы карты массажисток - адаптированные под наш сайт */

/* Основные контейнеры */
.map-page-wrapper {
    position: fixed !important;
    top: 185px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    background: #1a1a1a !important;
    /* Темный фон под темную карту */
}

.map-container {
    position: relative !important;
    height: 100vh !important;
    width: 100vw !important;
}

.profiles-map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

#profiles_map {
    height: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Принудительно показываем Yandex карту */
#profiles_map * {
    visibility: visible !important;
}

#profiles_map canvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Элементы управления картой */
.map-controls {
    position: absolute;
    top: 45px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    padding-left: 35px;
}

/* Переключатель типа карты */
.map-type-switcher {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    gap: 0;
    background: rgba(45, 55, 72, 0.95);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .map-type-switcher {
        top: 10px;
    }
}

.map-type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.map-type-btn i {
    font-size: 20px;
}

.map-type-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.map-type-btn.active {
    background: #e53e3e;
    color: white;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-type-btn.active:hover {
    background: #fff;
    color: #2d3748;
}

.map-controls__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-filter-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-filter-btn:hover {
    background: rgb(174, 49, 49);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.map-filter-btn.active {
    background: #e53e3e;
    color: white;
}

.map-filter-btn span {
    margin-left: 4px;
    font-weight: 600;
}

/* Переключатель темы карты */
.map-theme-toggle {
    margin-top: 8px;
}

.theme-toggle-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(45, 55, 72, 0.9);
    color: white;
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn:hover {
    background: rgba(45, 55, 72, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn.light-theme {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn.light-theme:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Индикатор загрузки */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.map-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Сообщение "Нет результатов" */
.no-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    text-align: center;
    color: #666;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.no-results h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.no-results p {
    margin: 0;
    font-size: 14px;
}

/* ========== СТИЛИ МАРКЕРОВ (адаптированные под наши цвета) ========== */

/* Макет иконки маркера */
.yandex-map__icon_content_layout {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yandex-map__icon_content_layout img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    border: 3px solid #e53e3e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    /* Более выраженная тень для темной карты */
    object-fit: cover;
    object-position: top center;
}

.yandex-map__girl_price {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    /* Более выраженная тень */
    white-space: nowrap;
    text-align: center;
}

.yandex-map__girl_price span {
    font-weight: 400;
}

/* ========== СТИЛИ БАЛУНОВ (адаптированные под наши цвета) ========== */

.yandex-map-balloon {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.indi-balloon-wrapper {
    width: 430px;
    height: 263px;
    position: relative;
    background: #fff;
    box-shadow: 1px 0 4px rgba(0, 0, 0, .3);
    border-radius: 8px;
    overflow: hidden;
}

/* Премиум профили - темная тема */
.indi-balloon-wrapper.elit {
    background: #2d3748;
}

.indi-balloon-wrapper a,
.indi-balloon-wrapper a:hover {
    text-decoration: none;
}

/* Фото секция */
.indi-balloon-wrapper .list-girls-img-mob {
    float: left;
    width: 200px;
    height: 263px;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.indi-balloon-wrapper .list-girls-img-mob>a {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.indi-balloon-wrapper .top-right-icons-wrapper {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-block;
    z-index: 10;
}

.indi-balloon-wrapper .girl-is-verified {
    background: rgba(72, 187, 120, 0.9);
    padding: 4px;
    border-radius: 50%;
}

.indi-balloon-wrapper .girl-is-verified i {
    font-size: 16px;
    color: white;
}

.indi-balloon-wrapper .list-girls-img-mob img.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.indi-balloon-wrapper .photo-gradient-mob {
    position: absolute;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    width: 100%;
    height: 108px;
    bottom: -1px;
    left: 0;
    z-index: 102;
}

.indi-balloon-wrapper .list-girls-img-mob .icon-wrapper {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 103;
}

.indi-balloon-wrapper .list-girls-img-mob .photo-count {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.indi-balloon-wrapper .list-girls-img-mob .photo-count i {
    font-size: 12px;
    margin-right: 4px;
}

/* Информационная секция */
.indi-balloon-wrapper .list-girls-right-info {
    width: calc(100% - 200px);
    height: 263px;
    display: flex;
    flex-flow: column;
    float: left;
    margin: 0;
    padding: 13px 0 0 0;
    box-sizing: border-box;
    position: relative;
}

.indi-balloon-wrapper .list-girls-right-info a {
    display: block;
    position: relative;
}

.indi-balloon-wrapper .list-girls-right-info a:first-child {
    width: calc(100% - 35px);
}

/* Имя массажистки */
.indi-balloon-wrapper .list-girls-name-mob,
.indi-balloon-wrapper .list-girls-name-mob:hover {
    font-family: Roboto, sans-serif;
    font-size: 25px;
    color: #2d3748;
    display: block;
    padding-left: 14px;
    text-decoration: none;
    font-weight: 600;
}

.indi-balloon-wrapper.elit .list-girls-name-mob,
.indi-balloon-wrapper.elit .list-girls-name-mob:hover {
    color: #ffd700;
}

/* Цена */
.indi-balloon-wrapper .list-girls-price-mob {
    font-size: 22px;
    color: #e53e3e;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    padding-left: 14px;
    margin-top: 9px;
}

.indi-balloon-wrapper.elit .list-girls-price-mob {
    color: #fff;
}

.indi-balloon-wrapper .list-girls-price-mob span {
    font-weight: 400;
    color: #666;
}

.indi-balloon-wrapper.elit .list-girls-price-mob span {
    color: #cbd5e0;
}

/* Место встречи */
.indi-balloon-wrapper .list-girls-rasp-mob-indi {
    position: static;
    margin-top: 12px;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.indi-balloon-wrapper .list-girls-rasp-mob-indi .girl-indi-place {
    background: #f7fafc;
    border-top: 3px solid #e2e8f0;
    height: 79px;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 6px;
    position: relative;
}

.indi-balloon-wrapper.elit .list-girls-rasp-mob-indi .girl-indi-place {
    background: #1a202c;
    border-top: 3px solid #4a5568;
}

/* Премиум лейбл */
.indi-balloon-wrapper.elit .list-girls-rasp-mob-indi .girl-indi-place:before {
    display: block;
    content: 'PREMIUM';
    position: absolute;
    top: -14px;
    left: 63px;
    text-align: center;
    width: 98px;
    height: 24px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d3748;
    font-size: 10px;
    font-weight: 700;
    line-height: 24px;
    border-radius: 12px;
    z-index: 2;
}

.indi-balloon-wrapper .list-girls-rasp-mob-indi .girl-indi-place>div:first-child {
    margin-bottom: 3px;
}

.indi-balloon-wrapper .list-girls-rasp-mob-indi .girl-indi-place>div {
    float: none;
    font-size: 18px;
    font-weight: 400;
    font-family: Roboto, sans-serif;
    vertical-align: middle;
    display: block;
    width: 100%;
    color: #4a5568;
}

.indi-balloon-wrapper .list-girls-rasp-mob-indi .girl-indi-place>div i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    position: relative;
    top: -2px;
    font-size: 18px;
}

.indi-balloon-wrapper .list-girls-rasp-mob-indi .girl-indi-place>div.none {
    color: #c7c7c7;
    font-weight: 300;
    text-decoration: line-through;
}

.indi-balloon-wrapper.elit .list-girls-rasp-mob-indi .girl-indi-place>div {
    color: #e2e8f0;
}

.indi-balloon-wrapper.elit .list-girls-rasp-mob-indi .girl-indi-place>div.none {
    color: rgba(199, 199, 199, 0.3);
}

/* Кнопка перехода в анкету */
.indi-balloon-wrapper .list-girls-profile-mob {
    flex: 1;
    position: relative;
}

.indi-balloon-wrapper .list-girls-profile-mob span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    font-size: 20px;
    color: #e53e3e;
    font-weight: 500;
}

.indi-balloon-wrapper.elit .list-girls-profile-mob span {
    color: #ffd700;
}

.indi-balloon-wrapper .list-girls-profile-mob span:after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
}

/* Лейбл "Новая" */
.indi-balloon-wrapper .anons-label {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 10;
    background: #48bb78;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.indi-balloon-wrapper .clear {
    clear: both;
}

/* Адаптивность */
@media (max-width: 768px) {
    .map-controls h1 {
        display: none;
    }

    .map-controls {
        top: 84px;
        left: 10%;
        right: 10px;
        max-width: none;
    }

    .map-controls__filters {
        flex-wrap: wrap;
    }

    .map-filter-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .indi-balloon-wrapper {
        width: 320px;
        height: auto;
        min-height: 200px;
    }

    .indi-balloon-wrapper .list-girls-img-mob {
        width: 120px;
        height: 160px;
    }

    .indi-balloon-wrapper .list-girls-right-info {
        width: calc(100% - 120px);
        height: auto;
        min-height: 160px;
    }

    .indi-balloon-wrapper .list-girls-name-mob {
        font-size: 18px;
    }

    .indi-balloon-wrapper .list-girls-price-mob {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .map-controls h1 {
        display: none;
    }

    .map-controls {
        top: 84px;
        left: 10%;
        right: 5px;
    }

    .indi-balloon-wrapper {
        width: 280px;
    }
}