/* @prettier */

/* Extra small devices (phones) */
@media screen and (max-width: 575.98px) {
    .btn {
        line-height: 120%;
        padding: 18px 48px;
        text-align: center;
    }

    .header__breadcrumbs {
        display: none !important;
    }

    .branding-banner {
        max-height: 158px;
    }

    .agent-image-logo {
        width: 62px;
        height: 66px;
        top: auto;
        bottom: 100px;
    }

    .agent-details-wrapper {
        flex-direction: column;
        padding: 26px 20px;
        width: 100%;
    }

    .agent-address {
        display: flex;
        align-items: center;
        line-height: 24px;
        letter-spacing: 1.6px;
        text-decoration-line: underline;
        margin-top: 6px;
        justify-content: center;
    }

    .divider {
        display: none;
    }

    .phone-numbers {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 0px;
        line-height: 24px;
    }

    .phone-numbers span {
        display: flex;
        justify-content: center;
    }

    .details,
    .details > h1 {
        text-align: center !important;
        padding-top: 0px;
        font-size: 22px;
        line-height: 140%;
    }

    .contact-details {
        margin: 24px 0px;
    }

    .header-left {
        display: none;
    }

    .agent-photo-mobile {
        display: flex;
        flex-direction: column;
        margin-top: 80px;
        padding: 0;
        align-items: center;
    }

    .read-more-wrap {
        line-height: 142%;
        text-align: justify;
    }

    /* Dropdown css */
    .dropdown-toggle {
        display: block;
        text-align: start;
    }

    .navbar {
        position: relative;
        display: inline-block;
    }

    .dropdown-toggle {
        padding: 12px 18px;
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 4px;
        cursor: pointer;
        margin: auto;
        width: calc(100% - 20px);
        height: 60px;
        letter-spacing: 0.08em;
        font-weight: 600;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        margin-left: 10px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-top: none;
        border-radius: 4px;
        list-style: none;
        z-index: 10;
        width: calc(100% - 20px);
    }

    .nav-links li {
        padding: 8px;
    }

    .nav-links li a {
        text-decoration: none;
        color: #333;
    }

    .nav-links li a:hover {
        background-color: #f0f0f0;
    }

    .navbar .nav-links li {
        font-size: 14px;
        color: var(--gray-color);
        padding: 18px;
        text-align: left;
        margin: 0;
    }

    .navbar .nav-links .main-menu__link--current {
        background: var(
            --color-accents-for-slider-slider-gradient-3,
            linear-gradient(245deg, #86dbff 0%, #fffee9 100%)
        );
    }

    .navbar .nav-links .main-menu__link--current {
        color: var(--black-color);
    }

    .open {
        display: block;
    }

    .main-menu__item {
        display: block !important;
    }

    /* End Dropdown css */

    .listing-container,
    #rich-text-wrapper,
    .tab-content-wrapper {
        padding: 40px 18px;
    }

    .property-listings-wrapper h1,
    .caption.agent-name {
        text-align: left;
    }

    .property-list {
        margin-top: 24px;
    }

    .disclaimer {
        padding: 40px 20px;
    }

    .view-details-btn {
        top: 9rem;
        left: 40%;
    }

    .footer-wrapper ul li {
        display: block;
    }

    .footer-wrapper ul li::after {
        display: block;
        content: '';
        width: 100%;
        height: 1px;
        background-color: #d1d1d1;
        margin: 4 0.5em;
    }

    .footer-wrapper ul:nth-child(1) li:nth-child(5)::after {
        display: block;
    }

    .footer-wrapper ul:nth-child(2) {
        margin-top: 3px;
    }

    .more-about-button {
        margin: 24px 0px;
    }

    .disclaimer2 {
        margin-top: 24px;
        color: var(--gray-color);
    }

    .brokerage-info-section {
        flex-direction: column;
        width: auto;
    }

    .brokerage-info-section table {
        margin-bottom: 40px;
    }

    .brokerage-info-section table tr {
        display: flex;
        flex-direction: column;
        height: auto;
        /* High Drop Shadow */
        box-shadow: 0px 9px 24px 0px rgba(19, 19, 20, 0.16);
    }
    .brokerage-info-section table td:nth-child(1) {
        padding: 8px 18px 8px 18px;
        text-align: left;
        width: auto;
        border-bottom: none;
    }

    .brokerage-info-section table td:nth-child(2) {
        padding: 20px 18px;
        max-width: 320px;
    }

    .broker-info-table tbody {
        display: flex;
        flex-direction: column;
        gap: 7px;
        border-radius: 2px;
    }

    .pagination {
        display: none;
    }

    .broker-logo-wrapper {
        width: 100%;
        height: 220px;
        background: url('/images/background-image2.webp'),
            lightgray 50% / cover no-repeat;
    }

    .broker-logo-img {
        padding: 59px 47px 59.061px 48px;
        width: 280px;
        height: 220px;
    }

    .image-backdrop,
    .image-backdrop::after {
        height: 190px;
    }

    .testimonial-card {
        width: 100%;
    }

    .property-description {
        padding: 20px;
    }

    /* MODAL */
    .modal-content img {
        width: 65%;
    }

    .modal-header h2 {
        font-size: 23px;
    }

    .modal-header .caption {
        font-size: 12px;
    }

    [name='get_info_pre_qualified'] {
        height: 35px !important;
        width: 35px !important;
    }

    /* END MODAL */

    .pagination-wrapper {
        display: none;
    }

    .listings-more-loader {
        display: block;
        max-width: 307px;
        margin: 0px auto 40px;
    }

    .disclaimer p {
        color: var(--gray-color);
    }

    #ytCustomEmbedContainer {
        margin: auto !important;
    }
}

/* Small devices (landscape phones, tablets) */
@media screen and (min-width: 576px) and (max-width: 767.98px) {
    .btn {
        line-height: 120%;
        padding: 18px 48px;
        text-align: center;
    }

    .header__breadcrumbs {
        display: none !important;
    }

    .header__info > div {
        display: flex;
        justify-content: space-between;
    }

    .branding-banner {
        max-height: 158px;
    }

    .agent-details-wrapper {
        flex-direction: column;
        padding: 32px 48px;
    }

    .agent-image-logo {
        width: 62px;
        height: 66px;
        top: auto;
        bottom: 100px;
    }

    .phone-numbers {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 0px;
        line-height: 24px;
    }

    .phone-numbers span {
        display: flex;
        justify-content: center;
    }

    .divider {
        display: none;
    }

    .details,
    .details > h1 {
        text-align: center !important;
        padding-top: 0px;
        font-size: 32px;
        line-height: 140%;
    }

    .contact-details {
        margin: 32px;
    }

    .header-left {
        display: none;
    }

    .agent-photo-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 50px;
    }

    .navbar .nav-links li {
        padding: 23px 11px;
        font-size: 14px;
    }

    .listing-container,
    #rich-text-wrapper,
    .tab-content-wrapper {
        padding: 32px 48px;
    }

    .property-title {
        letter-spacing: 0.3px;
        line-height: 120%;
    }

    .property-list {
        margin-top: 32px;
    }

    .card-wrapper {
        max-width: clamp(500px, 47%, 348px);
    }

    .image-backdrop {
        height: 216px;
    }

    .image-backdrop::after {
        top: 3%;
        height: 197px;
    }

    .view-details-btn {
        top: 23%;
        left: 40%;
    }

    .property-description {
        padding: 20px;
    }

    .brokerage-info-section {
        flex-direction: column;
        width: auto;
    }

    .pagination {
        padding-bottom: 32px;
    }

    .disclaimer {
        padding: 40px 48px;
    }

    .broker-logo-wrapper {
        width: 100%;
        height: 220px;
        background: url('/templates/post_sponsors/99/images/mobile_logo_bg.webp'),
            lightgray 50% / cover no-repeat;
    }

    .pagination-wrapper {
        display: block;
    }

    .listings-more-loader {
        display: none;
    }

    #ytCustomEmbedContainer {
        margin: auto !important;
    }
}

/* Medium devices (tablets, small laptops) */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
    .header__breadcrumbs {
        display: none !important;
    }

    .header__info > div {
        display: flex;
        justify-content: space-between;
    }

    .branding-banner {
        max-height: 158px;
    }

    .agent-details-wrapper {
        flex-direction: column;
        padding: 32px 48px;
    }

    .agent-image-logo {
        width: 62px;
        height: 66px;
        top: auto;
        bottom: 100px;
    }

    .phone-numbers {
        justify-content: center;
    }

    .divider {
        display: none;
    }

    .details,
    .details > h1 {
        text-align: center !important;
        padding-top: 0px;
    }

    .contact-details {
        margin: 32px;
    }

    .header-left {
        display: none;
    }

    .agent-photo-mobile {
        display: flex;
        flex-direction: column;
        margin-top: 50px;
        align-items: center;
    }

    .navbar .nav-links li {
        padding: 23px 11px;
        font-size: 14px;
    }

    .listing-container,
    #rich-text-wrapper,
    .tab-content-wrapper {
        padding: 32px 48px;
    }

    .property-title {
        letter-spacing: 0.3px;
        line-height: 120%;
    }

    .property-list {
        margin-top: 32px;
    }

    .card-wrapper {
        max-width: clamp(295px, 47%, 348px);
    }

    .image-backdrop {
        height: 216px;
    }

    .image-backdrop::after {
        top: 3%;
        height: 197px;
    }

    .view-details-btn {
        top: 11rem;
        left: 40%;
    }

    .property-description {
        padding: 20px;
    }

    .brokerage-info-section {
        flex-direction: column;
        width: auto;
    }

    .brokerage-info-section table {
        margin: 40px 97px;
    }

    .pagination {
        padding-bottom: 32px;
    }

    .disclaimer {
        padding: 40px 48px;
    }

    .broker-logo-wrapper {
        width: 100%;
        height: 220px;
        background: url('/templates/post_sponsors/99/images/mobile_logo_bg.webp'),
            lightgray 50% / cover no-repeat;
    }

    .pagination-wrapper {
        display: block;
    }

    .listings-more-loader {
        display: none;
    }

    #ytCustomEmbedContainer {
        margin: auto !important;
    }
}

/* Large devices (laptops, desktops) */
@media screen and (min-width: 992px) and (max-width: 1227.98px) {
    .pagination-wrapper {
        display: block;
    }

    .listings-more-loader {
        display: none;
    }

    .agent-image-logo {
        width: 62px;
        height: 66px;
        top: auto;
        bottom: 100px;
    }
}
