:root {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --brand-purple: #8e24aa;
    --brand-light: #f3e5f5;
    --text-main: #374151;
    --text-muted: #9ca3af;
    --border-style: 1px dashed #d1d5db;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding-bottom: 60px;
}

/* --- NAVBAR --- */
.navbar-custom {
    background-color: var(--bg-body);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(142, 36, 170, 0.3);
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: bold;
}

.navbar-custom .navbar-nav > li > a {
    color: rgb(142 36 170);
    transition: 0.3s;
}

.navbar-custom .navbar-nav {
    display: flex;
    gap: 10px;
}

.navbar-custom .navbar-toggle .icon-bar {
    background-color: #8e24aa;
}

/* --- GRID FLEXÍVEL --- */
#property-container {
    display: flex;
    flex-wrap: wrap;
}

#property-container::before,
#property-container::after,
#carousel-imoveis .row::before,
#carousel-imoveis .row::after {
    display: none !important;
}

.property-item {
    margin-bottom: 30px;
    display: flex;
}

.thumbnail {
    background-color: var(--bg-card);
    border: var(--border-style);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.thumbnail:hover {
    transform: translateY(-5px);
    border-style: solid;
    border-color: var(--brand-purple);
}

.thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.caption {
    padding: 15px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-tag {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-purple);
    display: block;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 5px 0;
    color: var(--text-main);
    min-height: 40px;
}

.location {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.btn-action {
    background-color: transparent;
    color: var(--brand-purple);
    border: 1px solid var(--brand-purple);
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 4px;
    width: 100%;
    padding: 10px;
    transition: 0.3s;
}

.btn-action:hover {
    background-color: var(--brand-purple);
    color: white;
}

.img-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    z-index: 2;
    background-color: var(--brand-purple);
}

.hero-lite {
    background-color: white;
    padding: 40px 0 60px 0;
    text-align: center;
    border-bottom: var(--border-style);
}

.spinner-container {
    padding: 40px;
    text-align: center;
    display: none;
    width: 100%;
}

/* --- BARRA DE BUSCA ESTILO SPOTLIGHT --- */
.simple-search-container {
    background: white;
    padding: 6px 6px 6px 20px;
    /* Abraça o botão internamente */
    border-radius: 50px;
    /* Formato Pílula perfeita */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Sombra suave */
    max-width: 700px;
    margin: -35px auto 50px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    border: 1px solid #f3f4f6;
}

.simple-search-container .search-icon {
    color: #9ca3af;
    font-size: 18px;
}

.simple-search-container .form-control {
    border: none;
    box-shadow: none;
    font-size: 16px;
    padding: 10px 15px;
    height: auto;
    flex-grow: 1;
    background: transparent;
}

.simple-search-container .form-control:focus {
    outline: none;
    box-shadow: none;
}

.simple-search-container .btn-search {
    background-color: var(--brand-purple);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
    margin: 0;
    white-space: nowrap;
    /* Evita que o texto do botão quebre no mobile */
}

.simple-search-container .btn-search:hover {
    background-color: #7b1fa2;
}

/* --- AJUSTES MOBILE (SMARTPHONES) --- */
@media (max-width: 767px) {
    .navbar-custom .navbar-nav {
        flex-direction: column;
        text-align: center;
    }

    /* O Segredo: Manter em linha (row) e diminuir proporções */
    .simple-search-container {
        margin: -25px 15px 40px 15px;
        padding: 5px 5px 5px 15px;
        flex-direction: row;
        /* Mantém ícone, texto e botão na mesma linha */
    }

    .simple-search-container .search-icon {
        font-size: 16px;
    }

    .simple-search-container .form-control {
        font-size: 14px;
        /* Fonte menor para caber melhor */
        padding: 8px 10px;
    }

    .simple-search-container .btn-search {
        padding: 10px 18px;
        font-size: 13px;
    }
}
