.r8reference_grid {
    width: 100%;
    padding: 20px 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.r8reference_grid .r8refence_inner {
    width: 100%;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*justify-content: space-between;*/
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.r8reference_grid.full_line .r8refence_inner {
    grid-template-columns: repeat(3, 1fr);
}

.r8reference_grid_empty {
    width: 100%;
    background-color: #fff;
}

.empty_img_holder {
    width: 100%;
}

.empty_img_holder img {
    width: 100%;
    height: auto;
}

.empty_label_holder {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.empty_label_holder h3 {
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 5px 0;
}

.empty_label_holder h3.greeny {
    color: rgba(99,181,71,1);
}

.r8reference_grid .r8refence_item {
    width: 100%;
    margin-bottom: 10px;
}

.r8reference_grid .r8refence_item .ref_image {
    width: 100%;
    height: 265px;
    background: no-repeat 50% 50%;
    background-size: cover;
    position: relative;
}

.r8reference_grid .r8refence_item .ref_info {
    padding: 15px;
    text-align: center;
    width: 100%;
    background-color: #fff;
}

.r8reference_grid .r8refence_item .ref_info .h_one {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.027em;
    color: #070707;
    font-size: 22px;
    margin: 0 0 5px 0;
    font-style: normal;
}

.r8reference_grid .r8refence_item .ref_info sup {
    vertical-align: super;
    position: initial;
    font-size: 12px;
    color: #4D4D4D;
}
.r8reference_grid .r8refence_item .ref_info p {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 16px;
    line-height: normal;
    font-style: normal;
    color: #4D4D4D;
}

.r8reference_grid .r8refence_item .type_label {
    text-transform: uppercase;
    position: absolute;
    font-weight: 700;
    color: #fff;
    width: 200px;
    height: 53px;
}

.r8reference_grid .r8refence_item .type_label span {
    width: 100%;
    height: 46px;
    font-style: normal;
    font-size: 16px;
    padding: 0 10px 0 30px;
    display: flex;
    align-items: center;
}

.r8reference_grid .r8refence_item .type_label.office {
    background: url('../img/thumbnail_office.png') no-repeat 0 0;
}

.r8reference_grid .r8refence_item .type_label.hotel {
    background: url('../img/thumbnail_hotel.png') no-repeat 0 0;
}

.r8reference_grid .r8refence_item .type_label.shopping {
    background: url('../img/thumbnail_shopping.png') no-repeat 0 0;
}

.r8reference_grid .r8refence_item .type_label.public {
    background: url('../img/thumbnail_public.png') no-repeat 0 0;
}

.sorting_wrapper .ref_filter_line {
    width: 100%;
    display: flex;
    padding: 40px 0 15px;
    justify-content: space-between;
}

.sorting_wrapper .ref_filter_line .flt_of_other {
    display: flex;
}

.flt_of_select {
    margin-left: 10px;
}

.sorting_wrapper .ref_filter_line .flt_of_type {
    display: flex;
    align-items: center;
    padding: 0;
}

.sorting_wrapper .ref_filter_line .flt_of_type li {
    padding: 0 12px;
    position: relative;
    margin: 0;
}

.sorting_wrapper .ref_filter_line .flt_of_type li::after {
    content: '';
    width: 2px;
    background-color: #000;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.sorting_wrapper .ref_filter_line .flt_of_type li:first-child {
    padding-left: 0;
}

.sorting_wrapper .ref_filter_line .flt_of_type li:last-child::after {
    display: none;
}

.sorting_wrapper .ref_filter_line .flt_of_type li button {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background-color: transparent;
}

.sorting_wrapper .ref_filter_line .flt_of_type li button.activated {
    color: rgba(24,191,226,1);
}

.sorting_wrapper .ref_filter_line .order_arrow {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 5px;
    background-color: #01579B;
}

.sorting_wrapper .ref_filter_line select {
    padding: 5px;
}

.custom_select_container {
    display: inline-block;
    position: relative;
    width: 100%;
}
.custom_select_container:focus {
    outline: none;
}

.custom_select_container:focus > .custom_select_value {
    border-color: #000;
}

.custom_select_container.error {
    color: #EE495A;
    background-color: rgba(238,73,90,0.1);
}

.custom_select_container .custom_select_value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 100px;
    border: 1px solid #000;
    padding: 10px 35px 10px 15px;
    cursor: pointer;
    user-select: none;
    position: relative;
    background-color: #fff;
    font-style: normal;
    color: #000;
    font-size: 14px;
}

.custom_select_container .custom_select_value::after {
    content: '';
    position: absolute;
    right: 10px;
    top: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background: url('../img/ui.png') no-repeat 0 -20px;
}

.custom_select_container.show .custom_select_value::after {
    transform: rotate(180deg);
}

.custom_select_container .custom_select_options {
    display: none;
    position: absolute;
    border: 1px solid #000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 11;
    background-color: #fff;
    padding: 0;
}

.custom_select_container.show .custom_select_options {
    display: block;
}

.custom_select_container .custom_select_options .custom_select_option {
    padding: 15px;
    cursor: pointer;
    margin-left: 0;
    width: 100%;
    font-style: normal;
    color: #000;
    font-size: 14px;
}
.custom_select_container .custom_select_options .custom_select_option:hover {
    background-color: rgba(0,0,0,0.05);
}
.custom_select_container .custom_select_options .custom_select_option.selected {
    background-color: rgba(24,191,226,1);
}

.custom_select_container .arw_up,
.custom_select_container .arw_down {
    width: 14px;
    height: 14px;
    margin-left: 5px;
    display: inline-block;
    background: url('../img/down-arrow.svg') no-repeat 50% 50%;
    background-size: contain;
}

.custom_select_container .arw_up {
    transform: rotate(180deg);
}

.reference_load_wrap {
    width: 100%;
    text-align: center;
    margin: 15px 0;
}

.load_morte_ref {
    padding: 8px 25px 8px 40px;
    background-color: rgba(24,191,226,1);
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 22px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    font-weight: 700;
}

.load_morte_ref::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: 12px;
    background: url('../img/rightarrow.svg') no-repeat 50% 50%;
    background-size: contain;
}

@media (max-width: 73.125em) { /* 1170px */
    .sorting_wrapper .ref_filter_line {
        flex-wrap: wrap;
    }

    .sorting_wrapper .ref_filter_line .flt_of_type {
        margin-bottom: 15px;
    }

    .flt_of_select {
        margin: 0 10px 0 0;
    }

}

@media (max-width: 64.063em) { /* 1025px */
    .r8reference_grid.full_line .r8refence_inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .r8reference_grid .r8refence_item .ref_info .h_one {
        font-size: 18px;
    }

    .r8reference_grid .r8refence_item .ref_image {
        height: 225px;
    }
}

@media (max-width: 59.375em) { /* 950px */
    .r8reference_grid .r8refence_inner {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 47.500em) { /* 760px */
    .r8reference_grid.full_line .r8refence_inner {
        grid-template-columns: repeat(1, 1fr);
    }
}
