

/* Start:/local/components/goodda/yandex_map/templates/.default/styles.css?177694560021342*/
#gm-container {
    position: relative;
    margin-bottom: 40px;
}
#gm-map-container {
    width: 100%;
    position: relative;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
}
#gm-map {
    width: 100%;
    height: 80vh;
    transition: all 0.3s ease;
}

/* ===== OVERLAY ПАНЕЛЬ (поиск + список) ===== */
#gm-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 400px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
}

/* ===== БЛОК ПОИСКА ===== */
#gm-search {
    position: relative;
    pointer-events: all;
    background: #fff;
    padding: 5px 5px 5px 16px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 4px rgba(163,163,163,0.45);
    border-radius: 20px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
#gm-address-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    color: #141414;
}
#gm-address-input::placeholder {
    color: #929292;
}
#gm-find-btn {
    width: 110px;
    height: 30px;
    padding: 0;
    flex-shrink: 0;
    background: linear-gradient(90deg, #e78b90 0%, #f6a8d7 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
    box-sizing: border-box;
    white-space: nowrap;
}
#gm-find-btn:hover {
    opacity: 0.85;
    color: white;
    text-decoration: none;
}
#gm-suggestions ul {
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
}
#gm-suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 14px;
}
#gm-suggestions li:hover {
    background: #f5f5f5;
}
#gm-suggestions li:last-child {
    border-bottom: none;
}
#gm-suggestions li.gm-suggest-header {
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #929292;
    background: #fafafa;
    cursor: default;
    font-weight: 600;
}
#gm-suggestions li.gm-suggest-header:hover {
    background: #fafafa;
}
#gm-suggestions li.gm-suggest-camp {
    color: #028697;
    font-weight: 500;
}
#gm-suggestions li.gm-suggest-camp:hover {
    background: #f0f9fa;
}

/* ===== СПИСОК ОБЪЕКТОВ ===== */
#gm-list {
    flex: 1;
    min-height: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(163,163,163,0.45);
    border-radius: 20px;
    pointer-events: all;
    padding: 8px;
    box-sizing: border-box;
}
#gm-items {
    padding: 0;
    overflow-y: auto;
    overflow-x: visible;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #028697 transparent;
    border-radius: 12px;
}
#gm-items::-webkit-scrollbar {
    width: 4px;
}
#gm-items::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
}
#gm-items::-webkit-scrollbar-thumb {
    background-color: #028697;
    border-radius: 2px;
}
#gm-items::-webkit-scrollbar-thumb:hover {
    background-color: #026f7f;
}
#gm-items::-webkit-scrollbar-button {
    display: none;
}
#gm-items.collapsed {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

/* ===== ЭЛЕМЕНТЫ СПИСКА ===== */
.gm-item {
    background: #fff;
    padding: 14px 20px;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
    transition: background 0.15s;
}
.gm-item:last-child {
    border-bottom: none;
}
.gm-item:hover {
    background: #f9f9fa;
    z-index: 10;
}
.gm-item__body {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Левая колонка */
.gm-item__left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gm-item__name {
    font-size: 20px;
    font-weight: 700;
    color: #141414;
    line-height: 1.2;
    word-break: break-word;
}
.gm-item__region {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}
.gm-item__age {
    font-size: 14px;
    color: #141414;
    line-height: 1.3;
}

/* Колонка со стрелкой */
.gm-item__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: 4px;
}
.gm-item__arrow img {
    display: block;
}

/* Правая колонка */
.gm-item__right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 130px;
}
.gm-item__price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.gm-item__dates {
    font-size: 12px;
    color: #666;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.gm-item__dates-text {
    white-space: nowrap;
}
.gm-item__days {
    font-size: 14px;
    color: #141414;
    white-space: nowrap;
}

/* Кнопка дропдауна смен */
.gm-item__shifts-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s;
    color: #666;
}
.gm-item__shifts-toggle:hover {
    background: #028697;
    border-color: #028697;
    color: white;
}
.gm-item__shifts-toggle--open svg {
    transform: rotate(180deg);
}

/* Дропдаун со списком смен */
.gm-item__shifts-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
}
.gm-item__shift-option {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    white-space: nowrap;
}
.gm-item__shift-option:last-child {
    border-bottom: none;
}
.gm-item__shift-option:hover {
    background: #f0f5ff;
    color: #5880e8;
}
.gm-phones {
    margin: 8px 0;
}
.gm-phones a {
    color: #333;
    display: inline-block;
    font-size: 14px;
    margin: 2px 0;
    transition: all 0.3s ease;
    text-decoration: underline;
}
.gm-phones a:hover {
    text-decoration: none;
    color: #23527c;
}
.gm-metro {
    margin: 8px 0;
}
.gm-metro-station {
    display: inline-block;
    background: #e8f0ff;
    color: #5880e8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}
.gm-hours {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}
.gm-additional-info {
    margin: 8px 0;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}
.gm-detail-link {
    margin: 12px 0;
    text-align: center;
}
.gm-detail-link a {
    display: inline-block;
    background: #5880e8;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s;
}
.gm-detail-link a:hover {
    background: rgba(88, 128, 230, 0.8);
    border-color: rgba(88, 128, 230, 0.8);
    color: white;
    text-decoration: none;
}

/* ===== КНОПКА ГЕОЛОКАЦИИ ===== */
.gm-geo-btn {
    position: absolute;
    top: 13px;
    left: 420px; /* 10px (отступ overlay) + 400px (ширина overlay) + 10px (зазор) */
    z-index: 990;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.gm-geo-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gm-geo-btn:hover {
    opacity: 0.8;
}
.gm-geo-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.gm-geo-btn.loading img {
    animation: gm-spin 1s linear infinite;
}
@keyframes gm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ИНФОРМАЦИОННЫЙ БЛОК ===== */
.gm-info {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 990;
    max-height: 70vh;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #028697 transparent;
}
.gm-info::-webkit-scrollbar {
    width: 4px;
}
.gm-info::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.gm-info::-webkit-scrollbar-thumb {
    background-color: #028697;
    border-radius: 2px;
}
.gm-info::-webkit-scrollbar-button {
    display: none;
}
.gm-info-inner {
    margin-top: 15px;
    overflow: visible;
}
.gm-info h3 {
    margin: 0;
    color: #333;
}
.gm-info p {
    margin: 8px 0;
    color: #333;
}
.gm-info a {
    color: #028697;
    text-decoration: none;
}
.gm-info a:hover {
    text-decoration: underline;
}

/* ===== БЛОКИ КАРТОЧКИ В GM-INFO ===== */
#gm-info .camp-card-horizontal__location,
#gm-info .camp-card-horizontal__age {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}
#gm-info .camp-card-horizontal__info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
#gm-info .camp-card-horizontal__shifts {
    margin: 14px 0;
}
#gm-info .camp-card-horizontal__shifts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
#gm-info .camp-card-horizontal__shift-dates-value {
    font-size: 14px;
    color: #333;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
#gm-info .camp-card-horizontal__shift-days {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}
#gm-info .camp-card-horizontal__shift-price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}
#gm-info .camp-card-horizontal__shifts-toggle-row {
    margin-top: 6px;
    padding-left: 35px;
}
#gm-info .camp-card-horizontal__shifts-empty {
    font-size: 14px;
    color: #999;
}

/* Кнопка-триггер дропдауна в gm-info */
#gm-info .camp-card-horizontal__shift-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #028697;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#gm-info .camp-card-horizontal__shift-toggle:hover {
    text-decoration: underline;
}
#gm-info .camp-card-horizontal__shift-toggle.gm-shifts-toggle--open svg {
    transform: rotate(180deg);
}

/* ===== ПЛАВАЮЩИЙ ДРОПДАУН СМЕН ===== */
#gm-floating-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    z-index: 9999;
    min-width: 220px;
    max-width: 320px;
    overflow: hidden;
}
.gm-floating-option {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    white-space: nowrap;
}
.gm-floating-option:last-child {
    border-bottom: none;
}
.gm-floating-option:hover {
    background: #f0f9fa;
    color: #028697;
}

/* Кнопки действий */
#gm-info .camp-card-horizontal__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
#gm-info .camp-card-horizontal__btn {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}
#gm-info .camp-card-horizontal__btn--details {
    background: transparent;
    color: #028697;
    font-weight: 500;
    border: 1px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff),
        linear-gradient(90deg, #028697 0%, #81effe 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.2s ease;
    max-width: 153px;
    width: 100%;
}
#gm-info .camp-card-horizontal__btn--details:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(200,200,200,0.8);
    color: #028697;
}
#gm-info .camp-card-horizontal__btn--booking {
    background: linear-gradient(90deg, #e78b90 0%, #f6a8d7 100%);
    color: #ffffff;
    border: 2px solid transparent;
    max-width: 153px;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 14px;
}
#gm-info .camp-card-horizontal__btn--booking:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0px 4px 12px rgba(255,107,107,0.3);
    color: #ffffff;
}
#gm-close-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
#gm-close-info:hover {
    background: #f0f0f0;
    color: #333;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ===== */
.gm-message {
    color: #5880E6;
}
.gm-message-detail {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}
.gm-franch, .gm-franch-detail {
    color: #666;
    font-size: 13px;
    margin: 6px 0;
}
.gm-phone-comment {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 4px 0;
}
.gm-phone-comment-detail {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 8px 0;
}
.gm-messengers {
    margin: 12px 0;
    display: flex;
    gap: 10px;
}
.gm-messenger {
    display: block;
}
.gm-messenger img {
    transition: all 0.2s;
    width: 66%;
}
.gm-messenger:hover img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    transform: translateY(-1px);
}
.gm-contacts {
    margin: 12px 0;
}
.gm-contact-link {
    color: #5880e8;
    text-decoration: none;
    display: inline-block;
    margin: 2px 0;
}
.gm-contact-link:hover {
    text-decoration: underline;
}
.gm-license {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

/* ===== КНОПКА ОЧИСТКИ МЕСТОПОЛОЖЕНИЯ ===== */
.gm-clear-location-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #e74c3c;
}
.gm-clear-location-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}
.gm-clear-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== ПОДПИСИ МАРКЕРОВ ===== */
.gm-marker-wrap {
    text-align: center;
    pointer-events: none;
}
.gm-marker-label {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    text-shadow: none;
    pointer-events: none;
    line-height: 1.4;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Скрываем подписи при малом зуме */
#gm-map.gm-labels-hidden .gm-marker-label {
    display: none;
}

/* ===== КЛАСТЕРЫ ===== */
.gm-cluster {
    width: 34px;
    height: 57px;
    background: url('/local/components/goodda/yandex_map/templates/.default/map-icon.svg') no-repeat center bottom;
    background-size: 27px 34px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
}
.gm-cluster__count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-top: 2px;
    background: white;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* ===== ОТЛАДОЧНАЯ ПАНЕЛЬ ===== */
#debug-panel {
    background: #f8f9fa;
    border: 2px solid #5880e8;
    padding: 15px;
    margin: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
}
#debug-panel h4 {
    margin: 0 0 15px 0;
    color: #5880e8;
    font-size: 16px;
}
#debug-panel label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    color: #333;
}
#debug-panel input[type="checkbox"] {
    margin-right: 10px;
}
#debug-save-btn {
    background: #5880e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
}
#debug-save-btn:hover {
    background: #4a6fd9;
}
#debug-clear-location-btn {
    background: #5880e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
}
#debug-clear-location-btn:hover {
    background: #4a6fd9;
}
#debug-panel select {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    #gm-map-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        position: relative;
    }
    /* Контейнер overlay отменяется — его дети (search и list)
       становятся прямыми детьми gm-map-container для управления порядком */
    #gm-overlay {
        display: contents;
    }
    #gm-search {
        order: 1;
        position: relative;
        width: 100%;
        border-radius: 20px;
        margin-bottom: 0;
    }
    #gm-map {
        order: 2;
        width: 100%;
        height: 450px;
        min-height: 0;
        border-radius: 20px;
        overflow: hidden;
    }
    #gm-list {
        order: 3;
        flex: 0 0 450px;
        height: 450px;
        border-radius: 20px;
    }
    #gm-items {
        height: 100%;
        overflow-y: auto;
        border-radius: 12px;
    }
    #gm-search {
        flex: 0 0 auto;
    }
    #gm-map {
        flex: 0 0 450px;
    }
    /* Кнопка геолокации — правый верхний угол карты */
    .gm-geo-btn {
        top: calc(40px + 8px + 10px);
        left: auto;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    /* Подробная карточка — поверх списка, та же высота 450px */
    .gm-info {
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        max-height: none;
        height: 450px;
        width: 100%;
        border-radius: 20px;
        margin: 0;
        z-index: 99;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border: none;
        overflow-y: auto;
    }
    .gm-info-inner {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    #debug-panel {
        margin: 5px 10px;
        padding: 10px;
        font-size: 12px;
    }
    #debug-panel h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    #gm-map {
        height: 40vh;
        min-height: 300px;
    }
}

/* End */
/* /local/components/goodda/yandex_map/templates/.default/styles.css?177694560021342 */
