/* ============================================================================
   MINI SITE 2.0 — STYLE.CSS
   - Base visual completa
   - Responsivo
   - IA-friendly (HTML limpo, hierarquia clara)
   - Pensado para home, catálogo, destaques, imóvel e mapa
============================================================================ */

/* Opcional: se global.css e theme.css existirem no mesmo diretório,
   você pode importar aqui. Se não existirem, não tem problema. */
@import url("global.css");
@import url("theme.css");

/* ============================================================================
   RESET / BASE
============================================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ms-body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    background-color: #ffffff;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

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

/* ============================================================================
   VARIÁVEIS DE TEMA (fallback)
============================================================================ */

:root {
    --ms-cor-primaria: #4b0082;
    --ms-cor-secundaria: #1f00ff;
    --ms-cor-texto: #222222;
    --ms-cor-fundo-claro: #f7f7f7;
}

/* ============================================================================
   HEADER / NAV
============================================================================ */

.ms-header-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.ms-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--ms-cor-primaria);
}

.ms-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ms-nav a {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 4px;
}

.ms-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--ms-cor-primaria);
    transition: width 0.2s ease-out;
}

.ms-nav a:hover::after {
    width: 100%;
}

/* ============================================================================
   HERO (BANNER PRINCIPAL)
============================================================================ */

.ms-hero {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
}

.ms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
    );
}

.ms-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 40px;
}

.ms-hero-label {
    display: inline-block;
    background: rgba(0,0,0,0.45);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.ms-hero-sub {
    font-size: 18px;
    max-width: 520px;
    opacity: 0.9;
}

/* ============================================================================
   SEÇÕES / TÍTULOS
============================================================================ */

.ms-main {
    min-height: 300px;
}

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

.ms-section-light {
    background-color: var(--ms-cor-fundo-claro);
}

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

.ms-section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #111111;
}

.ms-section-header p {
    margin: 0;
    font-size: 15px;
    color: #666666;
}

/* ============================================================================
   CARROSSEL DE DESTAQUES
============================================================================ */

.ms-carousel {
    position: relative;
}

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

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

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

.ms-carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    border: none;
    background: var(--ms-cor-primaria);
    color: #ffffff;
    font-size: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 15;
}

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

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

.ms-carousel-btn:hover {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.03);
}

/* ============================================================================
   CARDS DE IMÓVEIS
============================================================================ */

.ms-grid-imoveis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ms-card-imovel {
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.ms-card-imovel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.ms-card-imovel-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ms-card-imovel-thumb {
    position: relative;
    height: 190px;
    background-color: #f0f0f0;
    overflow: hidden;
}

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

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

.ms-card-imovel-body {
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-card-imovel-body h3 {
    font-size: 18px;
    margin: 0 0 2px;
    color: #111111;
}

.ms-card-local {
    font-size: 13px;
    color: #777777;
}

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

/* ============================================================================
   BOTÕES / CTA
============================================================================ */

.ms-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.18s ease-out, color 0.18s ease-out, box-shadow 0.18s;
}

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

.ms-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Seção CTA de rodapé */
.ms-cta {
    background-color: var(--ms-cor-primaria);
    color: #ffffff;
    text-align: center;
    padding: 48px 0;
}

.ms-cta h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.ms-cta p {
    margin: 0 0 20px;
    font-size: 15px;
    opacity: 0.9;
}

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

.ms-footer {
    background-color: #1f1f1f;
    color: #cccccc;
    text-align: center;
    padding: 30px 0;
}

.ms-footer p {
    margin: 0;
    font-size: 13px;
}

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

/* ============================================================================
   PÁGINA DO IMÓVEL (BASE PARA PRÓXIMA ETAPA)
============================================================================ */

.ms-imovel-page {
    padding: 40px 0 60px;
    background-color: #ffffff;
}

.ms-imovel-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ms-imovel-titulo {
    font-size: 26px;
    margin: 0;
}

.ms-imovel-local {
    font-size: 14px;
    color: #777777;
}

.ms-imovel-preco {
    font-size: 24px;
    color: var(--ms-cor-primaria);
    font-weight: 700;
}

/* Layout principal da página do imóvel (galeria + dados) */
.ms-imovel-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 30px;
    align-items: flex-start;
    margin-top: 25px;
}

.ms-imovel-galeria {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.ms-imovel-galeria img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.ms-imovel-info-box {
    background: #fafafa;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.ms-imovel-info-box h3 {
    margin-top: 0;
    font-size: 18px;
}

.ms-imovel-atributos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
}

.ms-imovel-atributo-tag {
    background-color: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
}

/* Descrição longa / texto IA-friendly */
.ms-imovel-descricao {
    margin-top: 30px;
    font-size: 15px;
    color: #444444;
    line-height: 1.7;
}

/* Vídeo */
.ms-imovel-video {
    margin-top: 30px;
}

.ms-imovel-video iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* ============================================================================
   MAPA (BASE PARA PÁGINA DE MAPA GERAL)
============================================================================ */

.ms-map-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.ms-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.ms-map-container {
    width: 100%;
    height: 420px;
}
/* ============================================================================
   BOTÃO VER IMÓVEIS — PÁGINA SOBRE
============================================================================ */

.ms-sobre-cta-imoveis {
    text-align: center;
    margin: -10px auto 28px;
}

.ms-sobre-cta-imoveis a {
    display: inline-block;
    background: var(--ms-cor-primaria);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: 0.25s ease;
}

.ms-sobre-cta-imoveis a:hover {
    background: var(--ms-cor-secundaria);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
/* ============================================================================
   RESPONSIVIDADE
============================================================================ */

@media (max-width: 992px) {

    .ms-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ms-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
        margin-top: 10px;
    }

    .ms-hero {
        height: 300px;
    }

    .ms-hero-content {
        padding-top: 80px;
    }

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

    .ms-imovel-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ms-imovel-galeria img {
        height: 260px;
    }
}

@media (max-width: 768px) {

    .ms-section {
        padding: 40px 0;
    }

    .ms-section-header h2 {
        font-size: 24px;
    }

    .ms-header-inner {
        padding: 10px 0;
    }

    .ms-hero {
        height: 260px;
    }

    .ms-hero-content {
        padding-top: 70px;
    }

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

    .ms-card-imovel-thumb {
        height: 180px;
    }
}

@media (max-width: 480px) {

    .ms-container {
        padding: 0 14px;
    }

    .ms-hero {
        height: 230px;
    }

    .ms-hero-content {
        padding-top: 60px;
    }

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