/* ============================================================================
   GLOBAL.CSS — reset + layout base responsivo
============================================================================ */

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    color: #222;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Containers */
.ms-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECTION */
.ms-section {
    padding: 60px 0;
}

.ms-section-light {
    background: #f7f7f7;
}

.ms-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ms-section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* ============================================================================
   HEADER
============================================================================ */
.ms-header-bar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.ms-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.ms-logo img {
    height: 48px;
}

.ms-logo-text {
    font-size: 20px;
    font-weight: 600;
}

.ms-nav a {
    margin-left: 25px;
    font-weight: 500;
    transition: 0.2s;
}

.ms-nav a:hover {
    opacity: 0.6;
}

/* ============================================================================
   HERO (BANNER)
============================================================================ */
.ms-hero {
    height: 380px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ms-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.ms-hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding-top: 120px;
}

.ms-hero-content h1 {
    font-size: 44px;
    margin: 10px 0;
}

.ms-hero-sub {
    font-size: 20px;
    opacity: 0.9;
}

/* ============================================================================
   CARROSSEL DE DESTAQUES
============================================================================ */
.ms-carousel {
    position: relative;
}

.ms-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
}

.ms-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.ms-carousel-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.ms-carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--ms-cor-primaria);
    color: #fff;
    border: none;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    opacity: 0.9;
}

.ms-carousel-prev { left: -10px; }
.ms-carousel-next { right: -10px; }

.ms-carousel-btn:hover {
    opacity: 1;
}

/* ============================================================================
   CARDS DE IMÓVEIS
============================================================================ */
.ms-grid-imoveis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
}

.ms-card-imovel {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

.ms-card-imovel:hover {
    transform: translateY(-4px);
}

.ms-card-imovel-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ms-card-imovel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-card-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--ms-cor-primaria);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.ms-card-imovel-body {
    padding: 15px 18px;
}

.ms-card-imovel-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.ms-card-local {
    font-size: 14px;
    opacity: 0.7;
}

.ms-card-preco {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ms-cor-primaria);
}

/* ============================================================================
   CTA / FOOTER
============================================================================ */

.ms-cta {
    background: var(--ms-cor-primaria);
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

.ms-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.25s;
}

.ms-btn-primary {
    background: #fff;
    color: var(--ms-cor-primaria);
}

.ms-btn-primary:hover {
    background: #eee;
}

.ms-footer {
    background: #222;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.ms-footer-sub {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.7;
}

/* ============================================================================
   MOBILE
============================================================================ */
@media (max-width: 768px) {

    .ms-header-inner {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .ms-nav {
        margin-top: 10px;
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ms-hero {
        height: 280px;
    }

    .ms-hero-content h1 {
        font-size: 32px;
    }
}
