@import url('./ba-hub.css');

body.next-disease-route-atd-hub .Breadcrumbs_breadcrumbs__xTS6a {
    width: 1200px;
    margin: 40px auto;
}

.atd-hub-next {
    width: 1200px;
    margin: 0 auto 80px;
}

.atd-hub-next > section > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.atd-hub-next .CardBlock_card__wY9rU {
    height: 235px;
    min-height: 0;
}

.atd-hub-next .Materials_swiper__lYf8j {
    min-width: 0;
}

.atd-hub-next .Materials_swiper__lYf8j .swiper-wrapper {
    gap: 20px;
}

.atd-hub-next .Materials_slide__C22rN {
    width: calc((100% - 40px) / 3);
    flex: 0 0 calc((100% - 40px) / 3);
}

.atd-hub-next .Materials_card__PHM_F {
    min-height: 322px;
}

.atd-hub-next .MapWidget_section__vDmRq {
    padding-bottom: 5px;
}

@media (min-width: 1281px) {
    .atd-hub-next .mainStyles_cardContentWide__Iams3 {
        max-width: 73%;
    }

    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(3) .CardBlock_card__wY9rU,
    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(4) .CardBlock_card__wY9rU {
        height: 232px;
    }
}

.atd-hub-next .atd-map-widget {
    overflow: hidden;
    width: 100%;
    min-height: 540px;
}

.atd-hub-next .centers-widget {
    width: 100%;
}

.atd-hub-next .centers__container {
    display: grid;
    width: 100%;
    align-items: start;
    margin-top: 40px;
    gap: 20px;
    grid-template-areas: "search place" "warning place";
    grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
}

.atd-hub-next .centers__left-column {
    display: contents;
}

.atd-hub-next .centers__search {
    height: fit-content;
    padding: 20px;
    border-radius: 32px;
    background: #eff6ff;
    color: #000;
    grid-area: search;
}

.atd-hub-next .centers__search-item {
    position: relative;
}

.atd-hub-next .centers__search-item ~ .centers__search-item {
    margin-top: 20px;
}

.atd-hub-next .centers__search-title {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.atd-hub-next .centers__search-container input,
.atd-hub-next .centers__search-select select {
    width: 100%;
    height: 52px;
    padding: 14px 24px;
    border: 2px solid #abdbff;
    border-radius: 16px;
    background: #fff;
    color: #828282;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Prod map filters keep the blue border only; global --c-focus ring is extra. */
.atd-hub-next .centers__search-container input:focus,
.atd-hub-next .centers__search-container input:focus-visible,
.atd-hub-next .centers__search-select select:focus,
.atd-hub-next .centers__search-select select:focus-visible {
    outline: none;
}

.atd-hub-next .centers__warning {
    padding: 20px 60px 20px 20px;
    border-radius: 32px;
    background: #eff6ff;
    color: #000;
    grid-area: warning;
}

.atd-hub-next .centers__warning-icon {
    margin-bottom: 10px;
}

.atd-hub-next .centers__warning-text {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

.atd-hub-next .centers__warning-button,
.atd-hub-next .atd-map-widget__fallback {
    display: inline-flex;
    max-width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 100px;
    background: #2d87ff;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.atd-hub-next .centers__place {
    position: relative;
    /* Explicit height: % heights on list/map need a definite containing block.
       Without it, list mode (73 cards) grows the page (PWRU-463 AC-2). */
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    border: 4px solid #2d87ff;
    border-radius: 32px;
    background: #ebebeb;
    grid-area: place;
}

.atd-hub-next .centers__tabs {
    position: absolute;
    z-index: 2;
    top: -28px;
    right: calc(50% - 108px);
    display: flex;
    align-items: center;
    padding: 12px 35px;
    border-radius: 28px;
    background: #2d87ff;
}

.atd-hub-next .centers__tabs-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 32px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #abdbff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
    text-decoration: underline;
    -webkit-appearance: none;
    appearance: none;
}

.atd-hub-next .centers__tabs-item:last-child {
    margin-right: 0;
}

.atd-hub-next .centers__tabs-item--active,
.atd-hub-next .centers__tabs-item.is-active {
    color: #fff;
    text-decoration: none;
}

.atd-hub-next .centers__place-map,
.atd-hub-next .centers__place-map .atopia-clinics {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.atd-hub-next .centers__place-map .atopia-clinics__map {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 28px;
}

.atd-hub-next .centers__place-map .centers__list {
    display: none;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 28px;
    background: transparent;
}

.atd-hub-next .centers__place-map .centers__point {
    min-height: 100%;
}

.atd-hub-next .centers__place.is-list-mode .atopia-clinics__map {
    display: none;
}

.atd-hub-next .centers__place.is-list-mode .centers__list {
    display: block;
}

.atd-hub-next .atd-map-widget__fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1280px) {
    .atd-hub-next {
        width: 1000px;
    }

    .atd-hub-next .CardBlock_card__wY9rU {
        height: 235px;
    }
}

@media (max-width: 1024px) {
    .atd-hub-next {
        width: 720px;
    }

    .atd-hub-next .atd-map-widget {
        min-height: 1012px;
    }

    .atd-hub-next .centers__container {
        margin-top: 15px;
        gap: 20px;
        grid-template-areas: "search" "place" "warning";
        grid-template-columns: 100%;
    }

    .atd-hub-next .centers__search {
        margin-bottom: 20px;
    }

    .atd-hub-next .centers__warning {
        padding: 20px;
        margin-top: 15px;
    }

    .atd-hub-next .centers__place {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .atd-hub-next {
        width: 540px;
        margin-bottom: 40px;
    }

    .atd-hub-next .Materials_slide__C22rN {
        width: 100%;
        flex-basis: 100%;
    }

    .atd-hub-next .Materials_card__PHM_F {
        min-height: 293.5625px;
    }
}

@media (max-width: 576px) {
    body.next-disease-route-atd-hub .page-header--next {
        height: 68px;
    }

    body.next-disease-route-atd-hub .page-header-canonical-spacer {
        height: 68px;
    }

    body.next-disease-route-atd-hub .page-header--next > .container {
        position: fixed;
        z-index: 100;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 68px;
        padding: 0;
        margin: 0;
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome {
        display: grid;
        width: 100%;
        height: 68px;
        min-height: 68px;
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        border: 0;
        border-radius: 0;
        background: #eff6ff;
        box-shadow: none;
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome__logo {
        display: block;
        width: 104px;
        min-width: 104px;
        height: 36px;
        padding: 0;
        transform: translateY(-1px);
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome__logo img {
        width: 104px;
        height: 36px;
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome__search,
    body.next-disease-route-atd-hub .page-header--next .next-chrome__disease,
    body.next-disease-route-atd-hub .page-header--next .next-chrome__centers,
    body.next-disease-route-atd-hub .page-header--next .next-chrome__menu {
        display: none;
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome__mobile-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        flex-direction: column;
        gap: 5px;
        padding: 11px 7px 10px;
        border: 0;
        background: transparent;
        transform: translateY(-1px);
    }

    body.next-disease-route-atd-hub .page-header--next .next-chrome__mobile-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        flex: 0 0 3px;
        border-radius: 0;
        background: #2d87ff;
    }

    body.next-disease-route-atd-hub .Breadcrumbs_breadcrumbs__xTS6a {
        width: calc(100% - 30px);
        margin: 40px auto;
    }

    .atd-hub-next {
        width: calc(100% - 30px);
        padding: 0;
        margin-top: 0;
    }

    .atd-hub-next .HeaderBanner_imageWrapper__9fiXk {
        margin-top: 0;
    }

    .atd-hub-next .CardBlock_card__wY9rU {
        height: auto;
        min-height: 0;
    }

    .atd-hub-next .CardBlock_btn__6qlU7 { width: 100%; }

    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(1) .CardBlock_card__wY9rU { height: 329.1875px; }
    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(2) .CardBlock_card__wY9rU { height: 273.96875px; }
    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(3) .CardBlock_card__wY9rU { height: 309.1875px; }
    .atd-hub-next .CardBlock_link__1Gh3T:nth-child(4) .CardBlock_card__wY9rU { height: 267.59375px; }

    .atd-hub-next .MapWidget_frame__sIrXL {
        margin-top: 15px;
    }

    .atd-hub-next .MapWidget_section__vDmRq {
        padding-bottom: 4px;
    }

    .atd-hub-next .centers__search-title {
        font-size: 14px;
    }

    .atd-hub-next .centers__warning-button {
        max-width: 100%;
    }
}
