
/* */
.school-map-list-segmented-control-container {
    height: 56px;
    margin: -16px -16px 12px -16px;
    padding: 0 12px;
}

.school-map-list-segmented-control-container > ul {
    height: calc(100% - 4px);
}

.school-map-list-segmented-control-container > ul > li {
    display: flex;
    flex-direction: column;
    width: 50%;
    cursor: pointer;
}

.school-map-list-segmented-control-container li > p {
    font-size: 18px;
    font-weight: 400;
    height: 24px;
    line-height: 24px;
    color: var(--qp-color-blue-note);
    margin: auto;
}

.school-map-list-segmented-control-bottom-bar {
    width: 50%;
    transition: all 0.2s ease-out;
    transform: translateX(0);
}
.school-map-list-segmented-control-bottom-bar.no-animation {
    transition: none;
    transform: translateX(0);
}

.school-map-list-segmented-control-bottom-bar > div {
    min-width: calc(100% - 32px);
    width: 90%;
    height: 4px;
    border-radius: 32px;
    margin: 0 auto;
    background-color: var(--qp-color-blue-note);
}

.school-map-list-segmented-control-container:has(> ul > li.active) > ul > li.active > p {
    font-weight: 700;
    cursor: pointer;
    pointer-events: none;
}
/* */

.search-school-banner-content {
    padding: 0 16px;
}

.search-school-banner-image {
    position: relative;
    width: 100%;
    height: 240px;
    object-fit: contain;
}

@media screen and (max-height: 728px) {
    .search-school-banner-image {
        position: relative;
        width: 100%;
        height: 200px;
        object-fit: contain;
    }
}

/* */
.schools-list-loader-item {
    display:flex;
    align-items:center;

    background-color: white;
    margin-bottom: 16px;
    border-radius: 8px;
}

.schools-list-loader-item-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 16px
}
/* */

.schools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: calc(100vh - 80px - 24px - 24px - var(--qp-settings-tabbar-height));
}

.schools-list-empty-label {
    color: var(--qp-color-semi-dark-grey);
}

.schools-list-item {
    display: flex;
    width: 100%;
    min-height: 84px;
    padding: 8px;
}

.schools-list-item-image-container, .schools-map-item-image-container {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--qp-color-image-bg-grey);
}

.schools-list-item-image, .schools-map-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.schools-list-item-text-name, .schools-map-item-text-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-blue-note);
    white-space: break-spaces;
}

.schools-list-item-text-address, .schools-map-item-text-address {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
    white-space: break-spaces;
}

.schools-list-item-text-distance, .schools-map-item-text-distance {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--qp-color-light-blue);
    white-space: break-spaces;
}

.schools-map {
    height: calc(100vh - 272px);
    width: 100%;
    background-color: #e7e4e1;
}

.school-header-container {
    display: flex;
    flex-direction: column;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 80px;
    left: 0;
    height: calc(80px + 24px + 24px);
    width: 100%;
    background-color: var(--qp-color-light-grey);
    z-index: 10;
}

.school-map-loader-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

/* */
.schools-map-slidebar-container::-webkit-scrollbar {
    display: none;
}
.schools-map-slidebar-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.schools-map-slidebar-container {
    position: absolute;
    bottom: -100px;
    width: 100%;
    height: 84px;
    background-color: transparent;
    transition: bottom 0.4s ease-in-out;

    padding-left: 32px !important;
    padding-right: 0 !important;
}

.schools-map-slidebar-container.showup {
    bottom: 24px;
}

.school-map-slider-item {
    flex: none;
    height: 84px;
    width: calc(100% - 32px);
    /*max-width: 400px;*/
}
/* */


.school-details-map {
    height: 168px;
    width: 100%;
    background-color: #e7e4e1;
}

.connected-school-header-container {
    display: flex;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    left: 0;
    min-height: 153px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    background-color: white;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 16px;
    z-index: 100;
}

.connected-school-header-items-container {
    display: flex;
    width: 100%;
    padding: 0 32px 16px 32px;
    margin-top: calc(80px + 17px);
}

.connected-school-header-card {
    width: 100%;
    border-radius: 8px;
    background-color: white;
    padding: 16px;
    gap: 32px;
}

.connected-school-header-item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
}

.connected-school-header-item-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: var(--qp-color-blue-note);
    margin-bottom: 0;
}

.connected-school-section-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: var(--qp-color-blue-note);
}

.connected-school-section-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--qp-color-blue-note);
}

.connected-school-feature-cards-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.connected-school-feature-card {
    display: flex;
    flex: 1 1 50vw;
    flex-direction: column;
    height: 112px;
    max-width: calc(50% - 8px);
    padding: 16px;
    border-radius: 16px;
    background-color: white;
}

.connected-school-feature-card.greyed {
    opacity: 0.6;
    background-color: var(--qp-color-image-bg-grey);
}

.connected-school-feature-card > img {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.teacher-quizzes-container {
    display: grid;
    margin-bottom: 32px;
}

.teacher-quiz-scrollable-container {
    display: flex;
    gap: 16px;
    height: 192px;
    margin: 0 -16px;
    padding: 0 16px;
    overflow: scroll;
    background-color: transparent;
}

.teacher-quiz-card {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    width: 152px;
    height: 192px;
    padding: 16px;
    overflow: scroll;
    border-radius: 16px;
}

.teacher-quiz-card > img {
    width: 24px;
    height: 24px;
}

.teacher-quiz-card-quiz-duration-label {
    display: flex;
    width: 95px;
    height: 32px;
    border-radius: 40px;
    background-color: rgba(28, 39, 66, 0.1);
}

.teacher-quiz-card-quiz-duration-label > img {
    width: 16px;
    height: 16px;
}

.teacher-quiz-card-quiz-date-label {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    margin: auto 0 8px 0;
    color: var(--qp-color-dark-grey);
}

.teacher-quiz-card-quiz-badge {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    white-space: nowrap;
    text-align: center;

    width: 88px;
    height: 32px;
    border-radius: 40px;

    color: white;
}
.teacher-quiz-card-quiz-badge::before {
    content: 'NUOVO';
}

.teacher-quiz-card-quiz-badge.green {
    background-color: var(--qp-color-dark-green);
}
.teacher-quiz-card-quiz-badge.yellow {
    background-color: var(--qp-color-dark-yellow);
}

.connected-school-contact-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 104px;
    border-radius: 8px;
    background-color: white;
    padding: 16px;
}

.connected-school-contact-card-image {
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin-top: 2px;
    margin-right: 8px;
}

.connected-school-contact-card-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--qp-color-dark-grey);
}

.connected-school-contact-card-unread-label {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background-color: var(--qp-color-light-blue);
}

.connected-school-contact-card-unread-label:empty {
    display: none;
}

.search-school-banner-image-content {
    content: url('/images/other/search-school-banner.png');
}

.search-school-banner-button-container {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 16px;
    height: 96px;
    min-height: 96px;
    margin-top: auto;
}

.search-school-banner-data-block {
    margin-bottom: 96px;
}

.school-not-connected-page-content {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    overflow: scroll;
}

.school-header-title {
    font-size: 24px;
    line-height: 32px;
    height: 32px;
    margin-bottom: 24px;
}

.search-school-page-content-container {
    padding-top: 24px;
}

.section-map-container {
    position: relative;
    background-color: #D9D9D9;
    overflow: hidden;
    margin-bottom: 16px;
}

.section-map {
    height: 100%;
    width: 100%;
}

.section-list {
    height: 100%;
}

.school-details-info-and-map-desktop-container {
    margin-bottom: 24px;
}

.connected-school-contacts-item {
    display: flex;
}

/* DESKTOP CLASSES AND MEDIA QUERIES */
@media (min-width: 992px) {
    /* */
    /* common */
    .search-school-banner-image-content {
        content: url('/images/other/search-school-banner-desktop.png');
    }

    .search-school-banner-content-container {
        display: flex;
        min-height: 80vh;
    }

    .search-school-banner-image-container {
        position: relative;
        min-height: 100%;
        width: 50%;
    }

    .search-school-banner-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .search-school-banner-data-block {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 50%;
        height: 100%;
        padding: 0 56px;
        margin: auto !important;
        overflow-y: scroll;
    }

    .search-school-banner-button-container {
        position: relative !important;
    }

    /* */
    /* NOT connected to school */
    .gm-style .gm-style-iw-t {
        display: unset !important;
    }

    .gm-style .gm-style-iw-c {
        padding: 0 !important;
    }

    .search-school-banner-content {
        padding: 0;
    }

    .school-header-container {
        padding-bottom: 0;
        top: 80px;
        height: 140px;
    }

    .search-school-page-content-container {
        padding-top: 0;
    }

    .schools-list {
        height: unset;
    }
    .schools-list-item:not(:last-child) {
        margin-bottom: unset;
    }

    .section-map-container {
        position: relative;
        background-color: #D9D9D9;
        overflow: hidden;
        border-radius: 8px;
        margin: 0 16px;
    }

    .section-map {
        display: block !important;
        height: 350px;
        width: 100%;
        margin-bottom: 24px;
    }

    .schools-map {
        height: 350px;
    }

    .section-list {
        height: unset;
    }

    .school-details-breadcrumb-container {
        position: -webkit-sticky; /* Safari */
        position: sticky;
        top: 80px;
        display: flex;
        justify-content: left;
        flex-wrap: wrap;
        min-height: 65px;
        margin: -24px 0 0 0;
        background-color: var(--qp-color-light-grey);
        z-index: 20;

        width: -moz-available;
        width: -webkit-fill-available;
        width: fill-available;
    }

    .school-details-breadcrumb-list {
        display: flex;
        list-style-type: none;
        margin: auto 0;
        padding: 0 16px;
    }

    .school-details-breadcrumb-list > li {
        display: flex;
        font-size: 20px;
        line-height: 24px;
        color: var(--qp-color-blue-note);
    }

    .school-details-breadcrumb-list > li > a {
        font-size: 18px;
        line-height: 24px;
    }

    .school-details-breadcrumb-list > li:not(:first-child):before {
        content: url('/images/app/accessory-right.svg');
        padding: 0 8px;
    }

    .school-details-name-and-desktop-button-container {
        display: flex;
        justify-content: space-between;
        margin-bottom: 56px;
    }

    .school-details-info-and-map-desktop-container {
        display: flex;
        justify-content: space-between;
        height: 280px;

        background-color: white;
        border-radius: 8px;

        margin: 0 16px 32px 16px;
        overflow: hidden;
    }

    .school-details-services-desktop-container {
        display: flex;
        justify-content: space-between;

        background-color: white;
        border-radius: 8px;

        margin: 0 16px 32px 16px;
        overflow: hidden;
    }

    .school-details-map {
        height: 100%;
        width: 100%;
        background-color: #e7e4e1;
        flex-basis: 100%;
    }

    .school-details-information {
        display: flex;
        flex-direction: column;
        padding: 24px;
        flex-basis: 100%;
        margin: auto 0;
    }

    .section-services-sentinel {
        display: unset !important;
    }

    .school-details-services {
        display: flex;
        flex-direction: column;
        padding: 24px;
    }

    .school-details-leaderboard-list-desktop {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
        width: 100%;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    /* */
    /* connected to school */
    .connected-school-header-container {
        border-bottom-left-radius: unset;
        border-bottom-right-radius: unset;
        margin-bottom: 32px;
    }

    .connected-school-header-item-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 24px;
        color: var(--qp-color-blue-note);
    }

    .connected-school-header-item-text {
        font-size: 20px;
        font-weight: 400;
        line-height: 24px;
        color: var(--qp-color-dark-grey);
        margin-bottom: 0;
    }

    .connected-school-header-item-image {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .teacher-quiz-scrollable-container {
        height: 184px;
    }

    .teacher-quiz-card {
        width: 535px;
        height: 184px;
    }

    .connected-school-feature-card {
        flex: 1;
    }

    .connected-school-contacts-container {
        display: flex;
        gap: 24px;
    }

    .connected-school-contacts-item {
        display: flex;
        flex-direction: column;
    }

    .connected-school-contact-card-image {
        margin-bottom: 8px;
    }
}
/* DESKTOP CLASSES AND MEDIA QUERIES -eof- */
