/* Страница-карта одного типа объектов (задача #148). Заголовок и счётчик — как на «Карте карьеров».
   //
   The map page of one object type (task #148). The title and the counter are as on the quarry map. */
.page_objects_map {
    padding: 0 10px;
    font-family: 'Involve', sans-serif;
}

.page_objects_map .objects_map_title {
    box-sizing: border-box;
    min-height: 38px;
    margin: 10px 0;
    padding: 8px 16px;
    border-left: 2px solid #646B41;
    color: #646B41;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

.page_objects_map .objects_map_hint {
    margin: 0;
    padding: 2px 0 6px;
    color: #3E4428;
    font-size: 18px;
}

.page_objects_map .objects_map_counters {
    padding: 0 0 12px;
    color: #3E4428;
    font-size: 14px;
}

.page_objects_map .objects_map_counter_value {
    padding-left: 6px;
    color: #ED8C33;
    font-weight: 500;
}

.page_objects_map .objects_map_container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border-radius: 15px;
    overflow: hidden;
}

.page_objects_map .objects_map {
    width: 100%;
    height: 100%;
}

.page_objects_map .objects_map_marker,
.page_objects_map .objects_map_cluster {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -100%);
    cursor: pointer;
}

.page_objects_map .objects_map_marker__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.page_objects_map .objects_map_cluster__count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background-color: #646B41;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* Окно объекта — как на главной // The object card — as on the main page */
.page_objects_map .objects_map_info {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: clamp(280px, 24vw, 420px);
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    z-index: 5;
}

.page_objects_map .info_about_object {
    position: relative;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    max-height: calc(70vh - 30px);
    overflow-y: auto;
}

.page_objects_map .button_close {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}

.page_objects_map .object_info_name {
    font-size: 16px;
    font-weight: 500;
}

.page_objects_map .object_info_type {
    padding: 4px 0 10px;
    font-size: 13px;
    opacity: 0.6;
}

.page_objects_map .object_info_image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 12px;
}

.page_objects_map .object_info_description {
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}

.page_objects_map .object_info_feedback {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.page_objects_map .object_info_feedback button {
    flex: 1 1 120px;
    padding: 8px 10px;
    border: 1px solid #646B41;
    border-radius: 8px;
    background: #fff;
    color: #646B41;
    font-size: 14px;
    cursor: pointer;
}

.page_objects_map .object_info_feedback button:disabled {
    opacity: 0.5;
    cursor: default;
}

.page_objects_map .object_info_feedback_result {
    margin-top: 8px;
    font-size: 13px;
    color: #646B41;
}

@media screen and (max-width: 768px) {
    .page_objects_map .objects_map_hint {
        font-size: 14px;
    }

    .page_objects_map .objects_map_container {
        height: 65vh;
        min-height: 380px;
    }
}
