/*  */
/* Информационные окна карт */

/* Общая информация из страницы настроек на общей карте */

.dep-info-head,
.dep-info-phones a,
.dep-info-email a {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;

    text-decoration: none;
}

.dep-info-phones a:hover,
.dep-info-email a:hover {
    color: #fff;
    text-decoration: underline;
}

.dep-info-block a {
    color: #fff;
}

/* .dep-info-block .dep-info-coords {
    margin-top: 20px;
} */

.dep-info-block .route-img {
    display: flex;
    gap: 32px;
}

.dep-info-block .route-img img {
    margin: 0;
    transition: transform 0.3s ease;
}

.dep-info-block .route-img img:hover {
    transform: scale(1.05);
}

.all-map .dep-info-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.all-map .dep-info-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.all-map .dep-info-block .dep-info-head,
.all-map .dep-info-block .dep-info-phones,
.all-map .dep-info-block .dep-info-email {
    font-size: 16px;
}

/* Отделение */

.single-map,
.all-map {
    position: relative;
}

.single-map .dep-info-block,
.all-map .dep-info-block {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    width: 330px;
    background: #1e3a8af2;
    padding: 24px 40px 28px 40px;
    border-radius: 16px;
    color: #fff;
}

.single-map .dep-info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.single-map .dep-info-phones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-map .dep-info-block .dep-info-title {
    margin: 0 !important;
}

.single-map .dep-info-block .dep-info-head,
.single-map .dep-info-block .dep-info-phones,
.single-map .dep-info-block .dep-info-email {
    font-size: 16px;
}

.single-map .dep-info-block .dep-info-coords {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.single-map .dep-info-block .route-title {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 30px;
}

@media (max-width: 640px) {
    .single-map .dep-info-block {
        position: unset;
        width: unset;
        border-radius: 0 0 24px 24px;
        padding: 32px 24px 24px 24px;
    }

    .single-map .map-block #map-main {
        border-radius: 24px 24px 0 0;
    }

    .all-map .dep-info-block {
        display: none;
    }
}




/*  */
/* Страница Где сдать анализы */
/*  */

.contacts-block .phones-list a,
.contacts-block a.email-link,
.contacts-block .callcenter-info {
    color: #fff;
    font-size: 20px;
    font-weight: 700;

    display: flex !important;
    align-items: center;
    gap: 8px;

}

.contacts-block .contact-title {
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contacts-block {
    margin: 0 14px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.contacts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;

}

.contacts-block .phones-list,
.contacts-block .schedule-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item,
.email-link,
.callcenter-info,
.btn-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {

    .contacts-container {
        display: flex;
        justify-content: center;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid:last-child>*:first-child {
        order: 2;
    }

    .contacts-grid:last-child>*:last-child {
        order: 1;
    }
}

.contacts-block .btn-link {
    padding: 19px 21px;
}


/*  */
/* Список отделений */
/*  */

/* Верхняя панель (фильтры + переключатель) */
.dept-header-panel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.dept-filter-city,
.dept-search {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95em;
}

.dept-search {
    flex: 1;
    min-width: 200px;
}

.dept-view-switch {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.dept-switch-btn {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.dept-switch-btn.active,
.dept-switch-btn:hover {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

/* 📋 Вид: СПИСОК — сетка */

/* .departments-list-view {
    font-family: system-ui, -apple-system, sans-serif;
} */

.dept-grid-header,
.dept-row {
    display: grid;
    grid-template-columns: 2fr 1fr 75px;
    gap: 15px;
    padding: 19px 24px;
    align-items: center;
}

.dept-grid-header {
    background: #1E3A8A;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;

    border-radius: 12px;
}

.dept-row {
    padding: 12px 24px;

    transition: background 0.2s ease;
}

.dept-row:hover {
    background: #F2F4F8;
    border-radius: 16px;
}

.dept-row:last-child {
    border-bottom: none;
}

/* Адрес отделения */
.dept-row .dept-address a {
    text-decoration: none;
}

.dept-row .dept-address a:hover {
    text-decoration: underline;
}

.dept-partner-badge {
    margin-left: 6px;
    color: #1E3A8A;
    vertical-align: middle;
    cursor: help;
}

/* График работы */
.dept-schedule {
    /* font-size: 0.9em;
    line-height: 1.6;
    color: #111827; */
}

.dept-day-off {
    color: #6B7280;
    font-weight: 500;
}

.dept-schedule div {
    margin-bottom: 2px;
}

/* Иконка локации */
.dept-location {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .dept-location a {
    text-decoration: none;
    transition: color 0.2s;
}

.dept-location a:hover {
    color: #0056b3;
} */

/* 📱 Адаптив для списка */
@media (max-width: 768px) {

    .dept-grid-header,
    .dept-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dept-grid-header {
        display: none;
        /* Скрываем шапку на мобильных */
    }

    .dept-row {

        border-radius: 16px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .dept-row>div {
        grid-column: 1 / -1;
    }

    .dept-location {
        justify-content: flex-start;
        margin-top: 8px;
    }
}



/* === Карточки отделений === */
.departments-card-view {
    display: block;
    /* Видим по умолчанию */
}

.dept-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Одна колонка */
    gap: 24px;
}

.dept-card {
    border: 1px solid #6B7280;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.dept-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: #fafafa;
}

.dept-card-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;

}

.dept-card-title a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
}


.dept-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Карта слева, инфо справа */
    gap: 24px;
    align-items: stretch;
}

.dept-mini-map {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 0.85em;
}

.dept-card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-label {
    font-size: 12px !important;
    text-transform: uppercase;

    margin-bottom: 6px;
}

.dept-card-info .schedule-item,
.dept-card-info .contact-item {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #212B3C;
}

.dept-card-info .schedule-item,
.dept-card-info .contact-item a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-card-info .contact-item a {
    color: inherit;
    text-decoration: none;
}

.dept-card-info .contact-item a:hover {

    text-decoration: underline;
}

.dept-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

/* Адаптив: на мобильных карта сверху, инфо снизу */
@media (max-width: 768px) {
    .dept-card-body {
        grid-template-columns: 1fr;
    }

    .dept-mini-map {
        height: 240px;
    }

    .schedule-item,
    .contact-item,
    .dept-card-title {
        font-size: 16px;

    }
}

[class*="dept-"] svg,
[class*="card-"] svg,
.flex-container svg {
    flex-shrink: 0;
}