.brflat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.brflat-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.brflat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.brflat-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.brflat-card-header {
    position: relative;
}

.brflat-preferido {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.brflat-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #999;
}

.brflat-card-content {
    padding: 12px 16px;
    flex-grow: 1;
}

.brflat-card-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.brflat-card-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

.brflat-capacidade {
    font-size: 13px;
    color: #555;
}

.brflat-comodidades i {
    font-size: 14px;
    color: var(--ast-global-color-2);
    margin-right: 4px;
}



/* FORMULÁRIO GERAL */
.brflat-busca-form {
    background: #fff;
    border-radius: 32px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    margin-bottom: 30px;
}

.brflat-busca-form input {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    flex: 1 1 150px;
    background: #f1f1f1;
    height: 47px;
}

.brflat-busca-form input:focus {
    outline: none;
    background: #e6e6e6;
}

.brflat-busca-form button[type=submit] {
    background: var(--ast-global-color-2);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center;
}

.brflat-busca-form button[type=submit]:hover {
    filter: brightness(0.9);
}

/* GRUPO DE DATAS - DESKTOP */
.brflat-cidade-group {
    flex: 0 1 200px;
    min-width: 140px;
}

.brflat-busca-form select.brflat-busca-cidade {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    background: #f1f1f1;
    height: 47px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.brflat-busca-form select.brflat-busca-cidade:focus {
    outline: none;
    background-color: #e6e6e6;
}

.brflat-date-group {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
}

/* HÓSPEDES */
.brflat-hospedes-container {
    position: relative;
    flex: 1 1 200px;
}

.brflat-hospedes-display {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.brflat-hospedes-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 16px;
    display: none;
    z-index: 999;
    width: 320px;
}

.brflat-hospedes-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.brflat-hospedes-item:last-child {
    border-bottom: none;
}

.brflat-hospedes-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brflat-hospedes-counter button {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 6px 9px;
    font-size: 18px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brflat-hospedes-counter input {
    width: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: transparent;
    padding: 8px 0px;
}

/* MOBILE RESPONSIVO */
@media screen and (max-width: 768px) {
    .brflat-busca-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 20px;
        gap: 0px;
    }

    .brflat-cidade-group {
        width: 100%;
        flex: none;
    }

    .brflat-date-group {
        flex-direction: row;
        background: #f1f1f1;
        padding: 10px 2px;
        border-radius: 10px 10px 0px 0px;
    }

    .brflat-date-group input {
        flex: 1 1 50%;
        width: 50%;
        box-shadow: none;
        border-radius: 8px;
    }

    .brflat-hospedes-container {
        width: 100%;
        flex: none;
        background: #f1f1f1;
        padding: 6px;
        border-radius: 0px 0px 10px 10px;
    }

    .brflat-busca-form button[type=submit] {
        width: 100%;
        margin-top: 12px;
    }
}
