/* Home: cards e busca, preservando os demais templates. */
body.home .home-property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.home-property-grid > .main_imov_title,
.home-property-grid > .none { grid-column: 1 / -1; width: 100%; }
.home-property-grid > .clear { display: none; }
body.home .home-property-grid > .main_imov_item {
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(32 48 68 / 5%);
}
.home-property-grid .thumb { width: 100%; }
.home-property-grid .featured-ribbon,
.home-property-grid .figcaption { display: none; }
.home-property-grid .himage .status,
.home-property-grid .himage span.property_business_title {
    top: auto;
    bottom: 10px;
    font-size: 12px;
    line-height: 1.3;
    padding: 6px 9px;
    border-radius: 4px;
    max-width: 48%;
    transform: none !important;
}
.home-property-grid .himage .status { right: 10px; }
.home-property-grid .himage span.property_business_title { left: 10px; }
.home-property-grid .main_imov_item > .property-price {
    position: static;
    float: none;
    width: 100%;
    padding: 16px 18px 8px;
    margin: 0;
    background: #fff;
}
.home-property-grid .property-price .cat-price {
    float: none;
    display: block;
    text-align: left;
    color: #33475e;
    background: transparent;
    padding: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}
.home-property-grid .property-price .picon { display: none; }
.home-property-grid .main_imov_item .property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    float: none;
    width: 100%;
    min-height: 48px;
    padding: 8px 18px;
    background: #f4f6f8;
    color: #485b70;
    font-size: 13px;
}
.home-property-grid .property-info span { margin: 0; padding: 0; }
.home-property-grid .main_imov_item .main_imov_item_desc { padding: 14px 18px 20px; }
.home-property-grid .main_imov_item_desc a.property_item_desc { text-align: left; }
.home-property-grid .main_imov_item_desc h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}
.home-property-grid .main_imov_item_desc p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    height: 4.5em;
    line-height: 1.5;
    font-size: 14px;
    text-align: left;
    padding: 0;
    margin: 0;
    color: #586778;
    overflow-wrap: anywhere;
}
body.home #ad_search {
    display: block !important;
    position: static;
    float: none;
    clear: both;
    height: auto;
    top: auto;
    z-index: auto;
    overflow: visible;
    margin: 0;
    border: 0;
    scroll-margin-top: 120px;
}
body.home .header_search_imovel {
    display: flow-root;
    float: none;
}
body.home .search_imovel { padding: 24px; border-radius: 12px; margin-top: 20px; margin-bottom: 12px; }
body.home .search_imovel .home-search-title { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
body.home #advanced-form_imovel { display: grid; grid-template-columns: .75fr 1fr 1fr 1fr 1fr; gap: 16px; align-items: end; }
body.home #advanced-form_imovel .clear { display: none; }
body.home .home-search-purpose { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 0; }
body.home .home-search-purpose legend { font-size: 14px; margin-bottom: 10px; color: #33475e; }
body.home .home-search-tab { position: relative; cursor: pointer; }
body.home .home-search-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.home .home-search-tab span { display: block; padding: 12px 22px; border-radius: 6px; background: #fff; color: #33475e; font-weight: 600; }
body.home .home-search-tab input:checked + span { background: #33475e; color: #fff; }
body.home .home-search-tab input:focus-visible + span { outline: 3px solid #33475e; outline-offset: 3px; }
body.home #advanced-form_imovel .form-group { width: 100%; float: none; margin: 0; min-width: 0; }
body.home #advanced-form_imovel .search-field-label { display: block; font-size: 13px; text-transform: none; margin-bottom: 7px; }
body.home #advanced-form_imovel .form-control { background: #fff; font-size: 16px; }
body.home #advanced-form_imovel input[type="submit"] { font-weight: 600; font-size: 16px; }
body.home a:focus-visible,
body.home select:focus-visible,
body.home input:focus-visible { outline: 3px solid #33475e; outline-offset: 3px; }
@media (max-width: 1199px) {
    body.home .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home #advanced-form_imovel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home #advanced-form_imovel .form-group:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
    body.home .menu_mobile li a { min-height: 48px; line-height: 48px; }
    body.home .menu_header { max-width: min(360px, 90vw); overscroll-behavior: contain; overflow-x: hidden; }
    body.home .menu_header ul li a { min-height: 48px; line-height: 1.5; }
    body.home .menu_mobile .content-menu li .menu_view { top: 48px; max-width: 100vw; }
    body.home .search_imovel { padding: 20px; }
}
@media (max-width: 599px) {
    body.home .home-property-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    body.home #advanced-form_imovel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.home .home-search-purpose { display: grid; grid-template-columns: 1fr 1fr; }
    body.home .home-search-tab span { text-align: center; padding: 12px 8px; }
    body.home .search_imovel .home-search-title { font-size: 22px; }
}
/* Características ficam ao final, sem faixas vazias em anúncios incompletos. */
.home-property-grid .main_imov_item > .thumb { order: 0; }
.home-property-grid .main_imov_item > .property-price { order: 1; }
.home-property-grid .main_imov_item > .main_imov_item_desc { order: 2; }
body.home .home-property-grid .main_imov_item > .property-info {
    order: 3;
    margin-top: auto;
    min-height: 0;
    background: #f4f6f8;
    color: #485b70;
}
.home-property-grid .main_imov_item > .property-info:not(:has(span)) { display: none; }

/* Navegação compacta e catálogo em toda a largura disponível. */
body.home .home-property-grid { width: 100%; float: none; margin: 0 0 28px; clear: both; }
.home-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; }
.home-cities-label { color: #33475e; font-weight: 600; margin-right: 6px; }
.home-cities a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #dce3ea; border-radius: 24px; background: #f4f6f8; color: #33475e; }
.home-cities a:hover { background: #33475e; color: #fff; }
.home-property-grid > .main_imov_title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.home-property-grid > .main_imov_title h2 { margin: 0; text-align: left; background: transparent; color: #33475e; box-shadow: none; text-shadow: none; padding: 0; font-size: 24px; font-weight: 700; }
.home-view-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #33475e; white-space: nowrap; }
.home-view-all:hover { text-decoration: underline; }
body.home .home-property-grid .main_imov_item > .home-card-features { min-height: 48px; align-items: center; }
.home-features-empty { font-size: 13px; color: #586778; }
/* Carrossel manual: altura estável e controles acessíveis. */
body.home .slide .content-slide { position: relative; height: clamp(240px, 28vw, 380px); overflow: hidden; border-radius: 10px; }
body.home .slide .slide_item { position: absolute; inset: 0; width: 100%; height: 100%; }
body.home .slide .slide_item > a,
body.home .slide .slide_item picture,
body.home .slide .slide_item img { display: block; width: 100%; height: 100%; }
body.home .slide .slide_item img { object-fit: cover; object-position: center; }
body.home .slide .slide_item_desc { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 76px; background: linear-gradient(transparent, rgb(0 0 0 / 85%)); }
body.home .slide .slide_item_desc h2 { font-size: 24px; line-height: 1.3; margin: 16px 0 0; text-transform: none; }
body.home .slide .slide_item_desc a { color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.home .slide .slide_item_desc p { display: none; }
body.home .slide .slide_controll { top: 50%; left: 0; margin-top: -23px; }
body.home .slide button.slide_nav { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: rgb(20 33 48 / 65%); }
body.home .slide button:focus-visible { outline: 3px solid #ffdf00; outline-offset: 3px; }
@media (max-width: 599px) {
    .home-cities { gap: 8px; margin-bottom: 20px; }
    .home-cities-label { flex-basis: 100%; }
    .home-cities a { font-size: 14px; padding: 10px 12px; }
    .home-property-grid > .main_imov_title h2 { font-size: 21px; }
    body.home .slide .content-slide { height: 240px; }
    body.home .slide .slide_item_desc { padding: 42px 16px 16px; }
    body.home .slide .slide_item_desc h2 { font-size: 18px; }
    body.home .slide .slide_controll { top: 38%; }
    body.home .slide .slide_nav.back { margin-left: 10px; }
    body.home .slide .slide_nav.go { margin-right: 10px; }
}
