/* 
Theme Name: Imóveis de Goiânia
Theme URI: https://imoveisdegoiania.com.br
Author: Elias
Author URI: https://imoveisdegoiania.com.br
Description: Tema personalizado para Imóveis de Goiânia.
Version: 1.0.1
Text Domain: imgo
*/

/* ================================
   PALETA DE CORES OFICIAL
   ================================ */
:root {
    --imgo-azul-principal: #2471BD;  /* botões, links, destaques */
    --imgo-preto-base:     #0D1419;  /* header, footer */
    --imgo-cinza-header:   #1B1F24;  /* backgrounds escuros */
    --imgo-branco:         #FFFFFF;  /* textos, fundos */
    --imgo-cinza-claro:    #f5f5f5;
}

/* ================================
   RESET BÁSICO
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: #222;
    transition: all 0.25s ease;
}

a,
button {
    transition: all 0.25s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

.imgo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================
   DEBUG TEMPORÁRIO
   ================================ */
.imgo-debug {
    padding: 40px;
    text-align: center;
    font-size: 18px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    margin: 40px;
}

/* ================================
   HEADER VISUAL
   ================================ */
.imgo-site-header .nav .nav-link {
    color: #ffffff;
    padding-left: 1rem;
    padding-right: 1rem;
}

.imgo-site-header .nav .nav-link:hover {
    color: var(--imgo-azul-principal);
}

.imgo-header-logo-img {
    max-height: 52px;
    width: auto;
}

.imgo-header-whatsapp-btn {
    background-color: #25d366;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
}

.imgo-header-whatsapp-btn i {
    font-size: 18px;
}

/* ================================
   HERO (BANNER PRINCIPAL)
   ================================ */
.imgo-hero {
    position: relative;
    background-image:
        linear-gradient(120deg, rgba(13, 20, 25, 0.82), rgba(13, 20, 25, 0.60)),
        url('assets/img/hero-imgo-capa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.imgo-hero-overlay {
    /* reservado para ajustes futuros se quiser colocar overlay extra */
}

.imgo-hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.imgo-hero-text p {
    font-size: 1rem;
    max-width: 420px;
}

/* Caixinha de busca na HERO */
.imgo-hero-search-box {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 18px 20px;
    color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: 960px;
    margin: 0 auto;
}

/* Formulário de busca horizontal (desktop) */
.imgo-hero-search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
}

.imgo-hero-field {
    flex: 1 1 0;
}

.imgo-hero-field-small {
    flex: 0 0 auto;
}

.imgo-hero-field-label .imgo-hero-linear {
    font-size: 0.95rem;
    font-weight: 600;
}

.imgo-hero-search-box .form-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
}

.imgo-hero-search-box .form-control,
.imgo-hero-search-box .form-select {
    font-size: 0.85rem;
    border-radius: 10px;
}

/* Botão de buscar (desktop) */
.imgo-hero-btn-buscar {
    background-color: var(--imgo-azul-principal);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.imgo-hero-btn-buscar i {
    font-size: 16px;
}

.imgo-hero-btn-buscar:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Link "Buscar por código" */
.imgo-hero-code-link {
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
}

.imgo-hero-code-link a {
    color: var(--imgo-azul-principal);
    font-weight: 600;
}

/* Legenda embaixo da busca */
.imgo-hero-legend {
    font-size: 0.75rem;
    color: #444;
}

/* ================================
   SEÇÕES / GRID DE IMÓVEIS
   ================================ */
.imgo-section {
    padding: 40px 0;
}

.imgo-section-properties {
    background-color: #ffffff;
}

.imgo-section-header {
    margin-bottom: 24px;
}

.imgo-section-header h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
}

.imgo-section-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.imgo-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.imgo-property-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.imgo-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.imgo-property-thumb {
    display: block;
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.imgo-property-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgo-property-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.imgo-property-title {
    font-size: 1rem;
    margin: 0;
}

.imgo-property-title a {
    color: #111;
}

.imgo-property-location {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.imgo-property-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a7a20;
    margin: 4px 0 0;
}

.imgo-property-typology,
.imgo-property-area {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.imgo-property-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.imgo-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: #eee;
    color: #333;
}

.imgo-chip-status {
    background-color: #e1f3ff;
    color: #1260a8;
}

.imgo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--imgo-azul-principal);
    color: #fff;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.imgo-btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* ================================
   PÁGINA DE IMÓVEL (SINGLE)
   ================================ */
.imgo-single-property {
    background-color: #f8f9fb;
}

.imgo-single-property .imgo-container {
    max-width: 1140px;
}

.imgo-single-property h1.h3 {
    font-weight: 700;
}

/* cards de features (área, quartos, vagas etc) */
.imgo-single-property-features .border {
    border-color: #e3e6ea !important;
}

.imgo-single-property-features i {
    font-size: 1.2rem;
    color: var(--imgo-azul-principal);
}

/* cores coerentes com a paleta */
.imgo-single-property .text-primary {
    color: var(--imgo-azul-principal) !important;
}

.imgo-single-property .badge.bg-success {
    background-color: #0ba360 !important;
}

/* ================================
   GALERIA DE FOTOS DO IMÓVEL
   ================================ */
.imgo-gallery {
    position: relative;
    margin-bottom: 1.5rem;
}

.imgo-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    background-color: #000;
}

.imgo-gallery-slide {
    display: none;
}

.imgo-gallery-slide.is-active {
    display: block;
}

.imgo-gallery-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.imgo-gallery-prev,
.imgo-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
}

.imgo-gallery-prev { left: 12px; }
.imgo-gallery-next { right: 12px; }

.imgo-gallery-prev:hover,
.imgo-gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.imgo-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 2px;
}

.imgo-gallery-thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 70px;
    cursor: pointer;
    opacity: 0.6;
}

.imgo-gallery-thumb.is-active {
    opacity: 1;
    outline: 2px solid var(--imgo-azul-principal);
}

.imgo-gallery-thumb img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    display: block;
}

/* Ajustes da galeria para celular */
@media (max-width: 767.98px) {
    .imgo-gallery-slide img {
        max-height: 320px;
    }
    .imgo-gallery-thumb img {
        height: 52px;
    }
}

/* ================================
   RODAPÉ
   ================================ */
.imgo-footer {
    background-color: var(--imgo-preto-base);
    color: #ffffff;
    padding: 30px 0 10px;
    margin-top: 40px;
}

.imgo-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    font-size: 0.85rem;
}

.imgo-footer-col h4 {
    font-size: 0.9rem;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.imgo-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imgo-footer-col ul li {
    margin-bottom: 5px;
}

.imgo-footer a {
    color: #f1f1f1;
}

.imgo-footer a:hover {
    color: var(--imgo-azul-principal);
    text-decoration: underline;
}

.imgo-footer-logo img {
    max-width: 190px;
    height: auto;
}

.imgo-footer-social-icons a {
    font-size: 1.4rem;
    margin-right: 8px;
}

.imgo-tech-label {
    margin-top: 10px;
    font-size: 0.75rem;
}

/* Barra de cookies */
.imgo-cookie-bar {
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.78rem;
    padding: 12px 18px;
    border-radius: 6px;
    max-width: 900px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.imgo-cookie-bar a {
    color: #00aced;
    font-weight: 600;
}

.imgo-cookie-bar button {
    margin-left: 12px;
    margin-top: 8px;
}

/* ================================
   WHATSAPP FLUTUANTE
   ================================ */
@keyframes imgoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0);
    }
}

.imgo-whatsapp-float {
    position: fixed;
    right: 14px;
    bottom: 60px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    z-index: 9999;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    animation: imgoPulse 2.8s infinite;
}

/* ================================
   SIMULADOR FINANCIAMENTO
   ================================ */
.imgo-simulador-financiamento .form-text {
    font-size: 0.75rem;
}

.imgo-simulador-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.imgo-simulador-result-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 12px;
    background-color: #ffffff;
    font-size: 0.85rem;
}

/* ================================
   SEÇÃO SOBRE NÓS
   ================================ */
.imgo-section-about {
    background-color: #f8f9fa;
}

.imgo-about-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
}

.imgo-about-text h2 {
    margin-bottom: 12px;
}

.imgo-about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.imgo-about-social a {
    font-size: 1.6rem;
    margin-right: 8px;
    color: #1B1F24;
}

.imgo-about-social a:hover {
    color: var(--imgo-azul-principal);
}

/* ================================
   RESPONSIVO
   ================================ */
@media (max-width: 1199.98px) {
    .imgo-hero {
        padding: 60px 0;
    }
}

@media (max-width: 991.98px) {
    .imgo-hero {
        padding: 50px 0 40px;
        min-height: auto;
    }

    .imgo-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .imgo-cookie-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .imgo-hero-search-form {
        flex-wrap: wrap;
    }

    .imgo-hero-field,
    .imgo-hero-field-small {
        flex: 1 1 100%;
    }
}

@media (max-width: 767.98px) {
    .imgo-hero {
        padding: 40px 0 30px;
    }

    .imgo-hero-text h1 {
        font-size: 1.7rem;
    }

    .imgo-hero-search-box {
        margin-top: 10px;
    }

    .imgo-footer-inner {
        grid-template-columns: 1fr;
    }

    .imgo-hero-search-form {
        flex-direction: column !important;
        align-items: stretch;
    }

    .imgo-hero-field,
    .imgo-hero-field-small {
        width: 100%;
    }

    .imgo-hero-btn-buscar {
        width: 100%;
        height: 56px;
        border-radius: 999px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .imgo-hero-btn-buscar i {
        margin-left: 6px;
    }

    .imgo-hero-search-extra {
        margin-top: 10px;
        font-size: 0.9rem;
    }
}

/* ================================
   HEADER / MENU DO TOPO
   ================================ */
.imgo-main-navbar {
    background-color: #1B1F24;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    min-height: 60px;
}

.imgo-header-logo-img {
    max-height: 54px;
    width: auto;
}

.imgo-main-menu .nav-link {
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.35rem 0.9rem;
    font-weight: 400;
}

.imgo-main-menu .nav-link:hover,
.imgo-main-menu .nav-link:focus {
    color: var(--imgo-azul-principal);
}

@media (max-width: 991.98px) {
    .imgo-main-navbar {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .imgo-main-menu .nav-link {
        padding: 0.4rem 0;
    }
}

/* ================================
   PAGINAÇÃO DA LISTA DE IMÓVEIS
   ================================ */
.imgo-pagination {
    margin-top: 26px;
    text-align: center;
}

.imgo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 4px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #dddddd;
}

.imgo-pagination .page-numbers.current {
    background-color: var(--imgo-azul-principal);
    color: #ffffff;
    border-color: var(--imgo-azul-principal);
}

.imgo-pagination .page-numbers:hover {
    background-color: #e1e1e1;
    color: #111;
}

/* Páginações mais compactas no celular */
@media (max-width: 575.98px) {
    .imgo-pagination .page-numbers {
        min-width: 28px;
        height: 32px;
        margin: 0 2px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
}
/* =========================================================
   HOTFIX: HERO (classes do HTML) + SIMULADOR (resultado)
   ========================================================= */

/* HERO: seu HTML usa .imgo-hero-campo (e o CSS antigo estava em .imgo-hero-field) */
.imgo-hero-search-form {
  gap: 10px;
}

.imgo-hero-campo {
  flex: 1 1 0;
  min-width: 0;
}

.imgo-hero-campo-label {
  flex: 0 0 auto;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 6px 0;
}

.imgo-hero-campo-botao {
  flex: 0 0 auto;
}

.imgo-hero-search-extra {
  margin-top: 10px;
}

.imgo-hero-code-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.imgo-hero-code-form input {
  max-width: 240px;
}

@media (max-width: 991.98px) {
  .imgo-hero-search-form {
    flex-wrap: wrap;
  }
  .imgo-hero-campo,
  .imgo-hero-campo-label,
  .imgo-hero-campo-botao {
    flex: 1 1 100%;
    width: 100%;
  }
  .imgo-hero-code-form {
    flex-direction: column;
    align-items: stretch;
  }
  .imgo-hero-code-form input {
    max-width: 100%;
  }
}

/* SIMULADOR: força o resultado em GRID (evita “quadradinho esmagado”) */
#imgoSimuladorResumo {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

/* Se o JS estiver criando .row/.col dentro do resumo, neutraliza (mantém no grid) */
#imgoSimuladorResumo .row {
  display: contents !important;
}

#imgoSimuladorResumo .col,
#imgoSimuladorResumo [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  padding: 0 !important;
}

/* Garante quebra de texto/número dentro do card */
#imgoSimuladorResumo * {
  min-width: 0;
}

#imgoSimuladorResumo .imgo-simulador-result-card,
#imgoSimuladorResumo .border.rounded,
#imgoSimuladorResumo .p-2.border.rounded.text-center.small {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#imgoSimuladorResumo strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
