/* ==========================================================
   GUIA IMOBILIÁRIO
   Jornal do Prédio
========================================================== */

.realty-page {
    background-color: #ffffff;
    color: #17232c;
    padding-bottom: 48px;
}


/* ==========================================================
   CABEÇALHO
========================================================== */

.realty-header {
    border-bottom: 1px solid #173f5d;
    padding-bottom: 27px;
    padding-top: 27px;
}

.realty-breadcrumb {
    align-items: center;
    color: #747d83;
    display: flex;
    flex-wrap: wrap;
    font-family: "DM Sans", sans-serif;
    font-size: 0.6rem;
    gap: 8px;
    margin-bottom: 25px;
}

.realty-breadcrumb a {
    color: #59666e;
    text-decoration: none;
}

.realty-breadcrumb a:hover {
    color: #173f5d;
}

.realty-breadcrumb i {
    color: #a2a8ac;
    font-size: 0.42rem;
}

.realty-header-content {
    align-items: end;
    display: flex;
    gap: 35px;
    justify-content: space-between;
}

.realty-header-copy {
    max-width: 820px;
}

.realty-header-eyebrow,
.realty-detail-section-title > span,
.realty-contact-eyebrow {
    color: #315b78;
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.realty-header-copy h1 {
    color: #17232c;
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.02;
    margin: 0 0 9px;
}

.realty-header-copy p {
    color: #59636a;
    font-family: "DM Sans", sans-serif;
    font-size: 0.76rem;
    line-height: 1.45;
    margin: 0;
}

.realty-header-symbol {
    align-items: center;
    border: 1px solid #cbd2d6;
    color: #173f5d;
    display: flex;
    flex: 0 0 74px;
    font-size: 1.8rem;
    height: 74px;
    justify-content: center;
}


/* ==========================================================
   FILTROS
========================================================== */

.realty-search-section {
    background-color: #f3f4f2;
    border-bottom: 1px solid #d3d8da;
    margin-bottom: 0;
    padding: 18px;
}

.realty-search-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns:
        minmax(145px, 0.75fr)
        minmax(155px, 0.75fr)
        minmax(165px, 0.85fr)
        minmax(235px, 1.35fr)
        110px;
    width: 100%;
}

.realty-filter-field {
    min-width: 0;
}

.realty-filter-field > label {
    color: #4d5960;
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.realty-select-wrapper,
.realty-search-input {
    position: relative;
}

.realty-select-wrapper select,
.realty-search-input input {
    background-color: #ffffff;
    border: 1px solid #bdc6cb;
    border-radius: 2px;
    color: #354149;
    font-family: "DM Sans", sans-serif;
    font-size: 0.67rem;
    height: 42px;
    outline: none;
    width: 100%;
}

.realty-select-wrapper select {
    appearance: none;
    padding: 0 34px 0 12px;
}

.realty-select-wrapper > i {
    color: #687178;
    font-size: 0.56rem;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 17px;
}

.realty-search-input > i {
    color: #7c858a;
    font-size: 0.68rem;
    left: 13px;
    position: absolute;
    top: 15px;
}

.realty-search-input input {
    padding: 0 13px 0 36px;
}

.realty-select-wrapper select:focus,
.realty-search-input input:focus {
    border-color: #173f5d;
    box-shadow: 0 0 0 2px rgb(23 63 93 / 8%);
}

.realty-search-button {
    background-color: #082f4c;
    border: 1px solid #082f4c;
    border-radius: 2px;
    color: #ffffff;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    height: 42px;
}

.realty-search-button:hover {
    background-color: #174e70;
}


/* ==========================================================
   ATALHOS
========================================================== */

.realty-shortcuts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 24px;
    padding-top: 24px;
}

.realty-shortcut-card {
    align-items: center;
    border: 1px solid #d3d8db;
    color: #364149;
    display: flex;
    gap: 13px;
    min-height: 80px;
    padding: 14px;
    text-decoration: none;
}

.realty-shortcut-card:hover,
.realty-shortcut-card.active {
    border-color: #173f5d;
    box-shadow: inset 0 -3px 0 #d9ed1c;
    color: #173f5d;
}

.realty-shortcut-icon {
    align-items: center;
    background: #f1f4f5;
    color: #173f5d;
    display: flex;
    flex: 0 0 43px;
    font-size: 1.1rem;
    height: 43px;
    justify-content: center;
}

.realty-shortcut-card strong,
.realty-shortcut-card small {
    display: block;
    font-family: "DM Sans", sans-serif;
}

.realty-shortcut-card strong {
    font-size: 0.72rem;
}

.realty-shortcut-card small {
    color: #7a8389;
    font-size: 0.58rem;
    margin-top: 3px;
}


/* ==========================================================
   RESULTADOS
========================================================== */

.realty-results {
    padding-top: 4px;
}

.realty-results-heading {
    align-items: end;
    border-bottom: 1px solid #173f5d;
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
}

.realty-results-heading > div > span {
    color: #315b78;
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.realty-results-heading h2 {
    color: #17232c;
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.realty-results-heading p {
    color: #6a747a;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    margin: 0;
}

.realty-results-heading p strong {
    color: #17232c;
}

.realty-active-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 0 4px;
}

.realty-active-filters > span {
    color: #687178;
    font-family: "DM Sans", sans-serif;
    font-size: 0.58rem;
}

.realty-active-filters a {
    align-items: center;
    background: #f3f4f2;
    border: 1px solid #d7dcdf;
    color: #46545d;
    display: inline-flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.58rem;
    gap: 6px;
    padding: 6px 9px;
    text-decoration: none;
}

.realty-active-filters .realty-clear-filters {
    background: transparent;
    border-color: transparent;
    color: #173f5d;
    font-weight: 700;
}

.realty-results-grid {
    display: grid;
    gap: 17px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 20px;
}

.realty-card {
    background: #ffffff;
    border: 1px solid #d4dadd;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.realty-card:hover {
    border-color: #9eabb2;
    box-shadow: 0 12px 26px rgb(14 45 64 / 8%);
    transform: translateY(-2px);
}

.realty-card-media {
    align-items: center;
    background: #f6f7f5;
    border-bottom: 1px solid #e0e4e6;
    display: flex;
    height: 155px;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.realty-card-media img {
    height: 100%;
    max-width: 78%;
    object-fit: contain;
    width: 100%;
}

.realty-card-placeholder {
    align-items: center;
    color: #9aa5ab;
    display: flex;
    font-size: 2.3rem;
    justify-content: center;
}

.realty-card-featured {
    background: #d9ed1c;
    color: #17323f;
    font-family: "DM Sans", sans-serif;
    font-size: 0.54rem;
    font-weight: 800;
    padding: 6px 8px;
    position: absolute;
    right: 9px;
    text-transform: uppercase;
    top: 9px;
}

.realty-card-body {
    flex: 1;
    padding: 17px 17px 14px;
}

.realty-card-type {
    color: #315b78;
    font-family: "DM Sans", sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.realty-card h3 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px;
}

.realty-card h3 a {
    color: #17232c;
    text-decoration: none;
}

.realty-card-creci,
.realty-card-location {
    align-items: center;
    color: #667178;
    display: flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    gap: 7px;
    margin-top: 7px;
}

.realty-card-creci {
    color: #334d5d;
    font-weight: 600;
}

.realty-card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.realty-card-services span {
    background: #eef2f4;
    color: #3e5665;
    font-family: "DM Sans", sans-serif;
    font-size: 0.54rem;
    font-weight: 600;
    padding: 5px 7px;
}

.realty-card-body > p {
    color: #687178;
    display: -webkit-box;
    font-family: "DM Sans", sans-serif;
    font-size: 0.65rem;
    line-height: 1.5;
    margin: 13px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.realty-card-footer {
    align-items: center;
    border-top: 1px solid #e3e7e9;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 16px;
}

.realty-card-footer > a:first-child {
    color: #173f5d;
    font-family: "DM Sans", sans-serif;
    font-size: 0.61rem;
    font-weight: 700;
    text-decoration: none;
}

.realty-card-whatsapp {
    align-items: center;
    border: 1px solid #cbd4d8;
    color: #287c4d;
    display: flex;
    height: 30px;
    justify-content: center;
    text-decoration: none;
    width: 30px;
}

.realty-pagination {
    align-items: center;
    display: flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    justify-content: center;
    gap: 18px;
    padding-top: 26px;
}

.realty-pagination a {
    border: 1px solid #cbd3d7;
    color: #173f5d;
    padding: 8px 12px;
    text-decoration: none;
}

.realty-pagination span {
    color: #6b747a;
}

.realty-empty {
    align-items: center;
    border: 1px solid #d8dee1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 50px 25px;
    text-align: center;
}

.realty-empty > i {
    color: #9ba6ac;
    font-size: 2.4rem;
}

.realty-empty h3 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
    margin: 15px 0 6px;
}

.realty-empty p {
    color: #6a747a;
    font-family: "DM Sans", sans-serif;
    font-size: 0.67rem;
    margin: 0 0 16px;
}

.realty-empty a {
    border: 1px solid #173f5d;
    color: #173f5d;
    font-family: "DM Sans", sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 9px 13px;
    text-decoration: none;
}


/* ==========================================================
   DETALHE
========================================================== */

.realty-detail-top {
    padding-bottom: 25px;
    padding-top: 27px;
}

.realty-detail-cover {
    background: #eef1f2;
    height: 400px;
    overflow: hidden;
}

.realty-detail-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

.realty-detail-hero {
    align-items: center;
    border-bottom: 1px solid #173f5d;
    display: grid;
    gap: 20px;
    grid-template-columns: 125px minmax(0, 1fr) auto;
    padding: 22px 0 24px;
}

.realty-detail-logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d4dadd;
    color: #84939c;
    display: flex;
    font-size: 2.4rem;
    height: 115px;
    justify-content: center;
    overflow: hidden;
    padding: 13px;
}

.realty-detail-logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.realty-detail-type {
    color: #315b78;
    font-family: "DM Sans", sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.realty-detail-type span {
    background: #d9ed1c;
    color: #17323f;
    display: inline-block;
    font-size: 0.51rem;
    margin-left: 7px;
    padding: 4px 6px;
}

.realty-detail-heading h1 {
    color: #17232c;
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 10px;
}

.realty-detail-creci,
.realty-detail-location {
    color: #58666e;
    font-family: "DM Sans", sans-serif;
    font-size: 0.65rem;
    margin-top: 6px;
}

.realty-detail-creci i,
.realty-detail-location i {
    color: #315b78;
    margin-right: 5px;
}

.realty-detail-primary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 190px;
}

.realty-button {
    align-items: center;
    border: 1px solid #173f5d;
    display: inline-flex;
    font-family: "DM Sans", sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    gap: 7px;
    justify-content: center;
    min-height: 39px;
    padding: 9px 12px;
    text-decoration: none;
}

.realty-button--whatsapp {
    background: #173f5d;
    color: #ffffff;
}

.realty-button--outline {
    background: #ffffff;
    color: #173f5d;
}

.realty-detail-content {
    display: grid;
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 310px;
    padding-top: 10px;
}

.realty-detail-main {
    min-width: 0;
}

.realty-detail-section {
    border-bottom: 1px solid #dde2e4;
    padding: 26px 0;
}

.realty-detail-section:first-child {
    padding-top: 12px;
}

.realty-detail-section-title h2 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0;
}

.realty-detail-description {
    color: #4e5d65;
    font-family: "DM Sans", sans-serif;
    font-size: 0.73rem;
    hyphens: auto;
    line-height: 1.5;
    margin-top: 15px;
    overflow-wrap: break-word;
    text-align: justify;
    text-justify: inter-word;
}

.realty-service-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
}

.realty-service-item {
    align-items: center;
    border: 1px solid #d7dde0;
    display: flex;
    gap: 11px;
    min-height: 58px;
    padding: 12px 14px;
}

.realty-service-item i {
    color: #173f5d;
    font-size: 1rem;
    width: 21px;
}

.realty-service-item strong {
    font-family: "DM Sans", sans-serif;
    font-size: 0.67rem;
}

.realty-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.realty-city-list span {
    background: #f2f4f4;
    color: #46565f;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    padding: 8px 10px;
}

.realty-city-list i {
    color: #315b78;
    margin-right: 5px;
}

.realty-detail-sidebar {
    padding-top: 12px;
}

.realty-contact-card,
.realty-address-card,
.realty-disclaimer {
    border: 1px solid #d5dbde;
    margin-bottom: 14px;
    padding: 18px;
}

.realty-contact-card h2 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 14px;
}

.realty-contact-card > a {
    align-items: center;
    border-top: 1px solid #e2e6e8;
    color: #344953;
    display: flex;
    gap: 11px;
    min-height: 53px;
    text-decoration: none;
}

.realty-contact-card > a > i {
    color: #173f5d;
    font-size: 1rem;
    text-align: center;
    width: 23px;
}

.realty-contact-card > a span {
    min-width: 0;
}

.realty-contact-card > a small,
.realty-contact-card > a strong {
    display: block;
    font-family: "DM Sans", sans-serif;
}

.realty-contact-card > a small {
    color: #7a848a;
    font-size: 0.53rem;
}

.realty-contact-card > a strong {
    font-size: 0.61rem;
    overflow-wrap: anywhere;
}

.realty-social-links {
    border-top: 1px solid #e2e6e8;
    display: flex;
    gap: 7px;
    padding-top: 14px;
}

.realty-social-links a {
    align-items: center;
    border: 1px solid #ced6da;
    color: #173f5d;
    display: flex;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    width: 32px;
}

.realty-address-card > span {
    color: #315b78;
    font-family: "DM Sans", sans-serif;
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
}

.realty-address-card p,
.realty-disclaimer p {
    color: #59666e;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

.realty-disclaimer {
    background: #f7f8f6;
    display: flex;
    gap: 10px;
}

.realty-disclaimer > i {
    color: #315b78;
    margin-top: 3px;
}

.realty-disclaimer p {
    margin: 0;
}

.realty-related {
    padding-top: 33px;
}

.realty-related-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 18px;
}

.realty-related-card {
    align-items: center;
    border: 1px solid #d8dee1;
    display: flex;
    gap: 13px;
    min-height: 95px;
    padding: 12px;
}

.realty-related-logo {
    align-items: center;
    background: #f3f5f5;
    color: #87959d;
    display: flex;
    flex: 0 0 68px;
    font-size: 1.4rem;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
}

.realty-related-logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.realty-related-card > div > span,
.realty-related-card small {
    color: #778188;
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 0.54rem;
}

.realty-related-card h3 {
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 4px 0;
}

.realty-related-card h3 a {
    color: #17232c;
    text-decoration: none;
}


/* ==========================================================
   ADMIN - COMPLEMENTOS
========================================================== */

.admin-imobiliario-multiselect {
    min-height: 190px;
    padding: 7px;
}

.admin-imobiliario-multiselect option {
    padding: 7px 8px;
}

.admin-imobiliario-media-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-imobiliario-sidebar-field {
    margin-top: 18px;
}


/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 1050px) {

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

    .realty-search-button {
        width: 100%;
    }

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

    .realty-detail-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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


@media (max-width: 760px) {

    .realty-header-content {
        align-items: flex-start;
    }

    .realty-header-symbol {
        display: none;
    }

    .realty-search-form {
        grid-template-columns: 1fr;
    }

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

    .realty-results-grid {
        grid-template-columns: 1fr;
    }

    .realty-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .realty-detail-cover {
    background: #eef1f2;
    height: 300px;
    overflow: hidden;
    }

    .realty-detail-hero {
        align-items: flex-start;
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .realty-detail-logo {
        height: 82px;
    }

    .realty-detail-primary-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .realty-detail-content {
        grid-template-columns: 1fr;
    }

    .realty-service-grid,
    .realty-related-grid,
    .admin-imobiliario-media-grid {
        grid-template-columns: 1fr;
    }

    .realty-detail-sidebar {
        padding-top: 0;
    }
}


@media (max-width: 480px) {

    .realty-header-copy h1 {
        font-size: 2rem;
    }

    .realty-shortcuts {
        grid-template-columns: 1fr;
    }

    .realty-detail-hero {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 13px;
    }

    .realty-detail-logo {
        height: 66px;
        padding: 8px;
    }

    .realty-card-media {
        height: 135px;
    }
}
