.doctors-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.doctor-filters {
    background: #fff;
    border: 2px solid #F2F2F2;
    border-radius: 24px;
    padding: 20px 18px 18px;
    position: sticky;
    top: 20px;
    box-shadow: 0 8px 24px rgba(9, 116, 186, 0.04);
}

.doctor-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 2px solid #F2F2F2;
}

.doctor-filters__title {
    margin: 0;
    color: #0974BA;
    font-family: CuristicSemiBold, sans-serif;
    font-size: 22px;
    line-height: 1.2;
}

.doctor-filters__clear {
    border: 0;
    background: color-mix(in srgb, #0974BA 8%, #fff);
    color: #0974BA;
    font-family: CuristicSemiBold, sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.doctor-filters__clear:hover {
    background: #0974BA;
    color: #fff;
}

.doctor-filters__toggle {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    border: 2px solid #F2F2F2;
    background: #fff;
    color: #0974BA;
    border-radius: 14px;
    padding: 12px 16px;
    font-family: CuristicBold, sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.doctor-filters__toggle:hover {
    border-color: #0974BA;
    background: #F7FBFE;
}

.doctor-filters__body {
    display: block;
}

.doctor-filters__section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #F2F2F2;
}

.doctor-filters__section:first-of-type {
    border-top: 0;
    padding-top: 8px;
}

.doctor-filters__section-title {
    margin: 0 0 12px;
    color: #0974BA;
    font-family: CuristicBold, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.doctor-filters__options {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #0974BA transparent;
}

.doctor-filters__options::-webkit-scrollbar {
    width: 6px;
}

.doctor-filters__options::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, #0974BA 45%, #C9C9C9);
    border-radius: 999px;
}

.doctor-filters__option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #FAFCFD;
    color: #212121;
    font-family: CuristicRegular, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.doctor-filters__option:hover {
    background: #F7FBFE;
    border-color: color-mix(in srgb, #0974BA 25%, #F2F2F2);
}

.doctor-filters__option:has(input:checked) {
    background: color-mix(in srgb, #0974BA 10%, #fff);
    border-color: color-mix(in srgb, #0974BA 35%, #F2F2F2);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #0974BA 12%, transparent);
    font-family: CuristicMedium, sans-serif;
}

.doctor-filters__option:last-child {
    margin-bottom: 0;
}

.doctor-filters__option input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #0974BA;
    flex: 0 0 auto;
}

.doctor-filters__empty {
    color: #737373;
    font-family: CuristicRegular, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 8px 4px;
}

.doctors-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.doctors-grid > .cu-list-loading,
.doctors-grid > .cu-list-empty {
    grid-column: 1 / -1;
}

.doctor-card--list {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    padding: 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.doctor-card--list:hover {
    border-color: color-mix(in srgb, #0974BA 28%, #F2F2F2);
    box-shadow: 0 10px 28px rgba(9, 116, 186, 0.08);
}

.doctor-card--list .doctor-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.doctor-card--list .doctor-card__photo {
    width: 96px;
    height: 96px;
    margin: 0;
    border-radius: 18px;
    object-fit: cover;
    flex: 0 0 auto;
    background-color: #F2F2F2;
}

.doctor-card--list .doctor-card__identity {
    min-width: 0;
    flex: 1;
}

.doctor-card--list .doctor-card__identity h1 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.doctor-card--list .doctor-card__identity p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-card--list .doctor-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    flex: 1;
}

.doctor-card--list .icon-detail {
    margin-bottom: 0;
}

.doctor-card--list .icon-detail img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-color: transparent;
}

.doctor-card--list .icon-detail h5 {
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
}

.doctor-card--list .doctor-card__actions {
    display: flex;
    justify-content: stretch;
    margin-top: auto;
}

.doctor-card--list .doctor-card__cta {
    width: 100% !important;
    padding: 12px 16px;
    background: #0974BA;
    color: #fff !important;
    border-radius: 14px;
    font-family: CuristicBold, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.doctor-card--list .doctor-card__cta:hover,
.doctor-card--list .doctor-card__cta:focus {
    background: #075a91;
    color: #fff !important;
}

.doctor-card--list .doctor-card__cta:active {
    transform: scale(0.98);
}

@media (max-width: 1199px) {
    .doctors-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .doctors-layout {
        grid-template-columns: 1fr;
    }

    .doctor-filters {
        position: static;
        padding-top: 16px;
    }

    .doctor-filters__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    }

    .doctor-filters__body {
        display: none;
    }

    .doctor-filters.is-open .doctor-filters__body {
        display: block;
    }

    .doctor-filters__title {
        font-size: 20px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card--list {
        margin-left: 0;
        margin-right: 0;
    }

    .doctor-card--list .doctor-card__photo {
        width: 84px;
        height: 84px;
    }
}
