:root {
    --navy-950: #07192d;
    --navy-900: #0b2340;
    --navy-800: #12365f;
    --blue-700: #0a57a8;
    --blue-600: #0e69cb;
    --blue-100: #e8f2ff;
    --gold-500: #e3a63b;
    --gold-100: #fff4dd;
    --ink: #11243b;
    --muted: #637083;
    --line: #dfe7f0;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --shadow: 0 18px 50px rgba(12, 34, 62, .12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-180%); padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--navy-900); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(7,25,45,.94); backdrop-filter: blur(14px); color: #fff; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark svg path:first-child { fill: var(--gold-500); }
.brand-mark svg path:not(:first-child) { fill: none; stroke: var(--navy-950); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-size: 1.55rem; }
.main-nav { display: flex; justify-content: center; gap: 26px; }
.main-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .94rem; font-weight: 600; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(227,166,59,.5); outline-offset: 3px; }
.button-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 30px rgba(14,105,203,.24); }
.button-primary:hover { background: var(--blue-700); }
.button-outline { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.05); }
.button-ghost { border-color: rgba(17,36,59,.18); color: var(--ink); background: #fff; }

.hero { position: relative; overflow: hidden; padding: 72px 0 0; background: radial-gradient(circle at 78% 12%, rgba(32,128,213,.34), transparent 30%), linear-gradient(135deg, #edf5ff 0%, #f8fbff 48%, #fff7e8 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(13,55,96,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(13,55,96,.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 850; letter-spacing: .18em; color: var(--gold-500); }
.eyebrow::after { content: ""; width: 44px; height: 2px; background: currentColor; opacity: .8; }
.eyebrow-blue { color: var(--blue-600); }
.hero h1, .section h2 { margin: 16px 0 18px; font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; line-height: 1.03; color: var(--navy-950); }
.hero h1 { max-width: 720px; font-size: clamp(3rem, 6vw, 5.4rem); }
.hero-lead { max-width: 640px; margin: 0; font-size: clamp(1.04rem, 1.8vw, 1.22rem); color: #405269; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #59697b; font-size: .9rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

.hero-visual { min-height: 430px; position: relative; }
.scene-card { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(11,35,64,.22); }
.scene-card-main { inset: 18px 0 18px 42px; background: linear-gradient(#8cc4eb 0 40%, #d6e5ee 40% 42%, #7da36e 42% 100%); }
.scene-sky { position: absolute; inset: 0 0 48%; background: radial-gradient(circle at 68% 30%, #fff6d7 0 3%, transparent 4%), linear-gradient(180deg,#6fa8d6 0,#bdd9ec 56%,#f3c28f 100%); }
.scene-house { position: absolute; width: 72%; height: 58%; right: 2%; bottom: 18%; background: #e6ddd1; box-shadow: -16px 16px 35px rgba(27,43,51,.2); clip-path: polygon(8% 12%,100% 0,100% 100%,0 100%,0 30%); }
.house-level { position: absolute; left: 14%; right: 0; height: 4px; background: #72583f; }
.house-level-top { top: 43%; }
.house-level-bottom { top: 78%; }
.house-window { position: absolute; background: linear-gradient(135deg,#18344b,#6d9bb7); border: 5px solid #f3eee8; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.w1 { width: 25%; height: 26%; left: 18%; top: 13%; }
.w2 { width: 38%; height: 30%; right: 8%; top: 8%; }
.w3 { width: 56%; height: 25%; right: 9%; bottom: 4%; }
.scene-pool { position: absolute; left: -4%; right: 12%; bottom: -1%; height: 24%; border-radius: 50% 50% 0 0 / 45% 45% 0 0; background: linear-gradient(180deg,#43a8c2,#0a6689); border-top: 7px solid #d9e0de; }
.floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.65); border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); color: var(--navy-900); font-size: .84rem; font-weight: 750; }
.floating-card-top { top: 0; right: 14px; }
.floating-card-bottom { bottom: 2px; left: 0; }
.mini-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--gold-100); color: #9a6717; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #30a46c; box-shadow: 0 0 0 5px rgba(48,164,108,.14); }

.search-shell { position: relative; z-index: 3; transform: translateY(36px); padding: 22px; border: 1px solid rgba(13,55,96,.08); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.search-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.search-intro strong { font-size: 1.05rem; color: var(--navy-900); }
.search-intro span { font-size: .84rem; color: var(--muted); }
.search-fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; }
.field-preview { min-height: 68px; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7a8797; }
.field-value { margin-top: 2px; color: var(--ink); font-weight: 650; }
.button-search { min-width: 150px; align-self: stretch; border: 0; background: #dce7f4; color: #6d7b8d; cursor: not-allowed; }
.button-search:hover { transform: none; }

.section { padding: 104px 0; }
.section-properties { padding-top: 132px; background: #fff; }
.section-heading h2, .partners-copy h2, .regions-grid h2 { font-size: clamp(2.15rem, 4vw, 3.25rem); }
.heading-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; margin-bottom: 34px; }
.heading-row p { margin: 0 0 5px; color: var(--muted); }
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 14px 40px rgba(20,50,84,.07); }
.property-media { height: 220px; position: relative; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.property-media::before, .property-media::after { content: ""; position: absolute; }
.property-media::before { left: 12%; right: 10%; bottom: 14%; height: 48%; background: rgba(255,255,255,.88); clip-path: polygon(0 22%,48% 0,100% 26%,100% 100%,0 100%); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.property-media::after { left: 20%; right: 18%; bottom: 19%; height: 26%; background: linear-gradient(90deg,#35536d 0 22%,transparent 22% 28%,#35536d 28% 50%,transparent 50% 56%,#35536d 56% 100%); opacity: .75; }
.property-media span { position: relative; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(7,25,45,.82); color: #fff; font-size: .76rem; font-weight: 750; }
.media-one { background: linear-gradient(150deg,#c9d9c7,#71988d 58%,#416c69); }
.media-two { background: linear-gradient(150deg,#d9bd9d,#bd805e 55%,#6d6b60); }
.media-three { background: linear-gradient(150deg,#cad8e8,#7897b9 55%,#526f8e); }
.property-body { padding: 20px; }
.property-kicker { font-size: .72rem; font-weight: 850; letter-spacing: .12em; color: var(--blue-600); }
.property-body h3 { margin: 8px 0; font-size: 1.15rem; line-height: 1.3; color: var(--navy-900); }
.property-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-link { display: inline-block; margin-top: 18px; font-size: .87rem; font-weight: 800; color: var(--blue-700); }

.section-partners { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #fff; }
.partners-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.partners-copy h2 { color: #fff; }
.partners-copy p { max-width: 590px; color: #c9d6e5; }
.partners-copy .button { margin-top: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-card { min-height: 176px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 28px; border-radius: 11px; background: rgba(227,166,59,.16); color: #ffd58a; font-weight: 850; }
.feature-card h3 { margin: 0 0 7px; font-size: 1rem; }
.feature-card p { margin: 0; color: #c2d0df; font-size: .88rem; }

.section-regions { background: var(--surface-soft); }
.regions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.regions-grid p { color: var(--muted); }
.region-cloud { min-height: 320px; position: relative; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 45%, rgba(14,105,203,.14), transparent 38%), #fff; box-shadow: 0 14px 40px rgba(20,50,84,.06); }
.region-cloud::before { content: "BR"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 12vw, 9rem); font-weight: 900; letter-spacing: -.08em; color: #edf3f9; }
.region-cloud span { position: absolute; z-index: 2; padding: 9px 13px; border-radius: 999px; border: 1px solid #d7e5f4; background: #fff; color: var(--navy-800); font-size: .82rem; font-weight: 750; box-shadow: 0 8px 24px rgba(20,50,84,.07); }
.region-cloud span:nth-child(1) { left: 44%; top: 56%; }
.region-cloud span:nth-child(2) { left: 34%; top: 73%; }
.region-cloud span:nth-child(3) { right: 14%; top: 31%; }
.region-cloud span:nth-child(4) { left: 24%; top: 42%; }
.region-cloud span:nth-child(5) { left: 26%; top: 18%; }

.section-principles { background: #fff; }
.centered-heading { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.centered-heading .eyebrow::after { display: none; }
.centered-heading p { color: var(--muted); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.principle-grid strong { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: 1.08rem; }
.principle-grid span { color: var(--muted); font-size: .93rem; }

.site-footer { padding: 62px 0 24px; background: #061524; color: #d4dfeb; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 50px; }
.brand-footer { color: #fff; }
.footer-brand p { max-width: 360px; color: #92a5ba; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column strong { margin-bottom: 8px; color: #fff; }
.footer-column a { color: #b6c4d3; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-column span { color: #8296ab; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #768ba1; font-size: .83rem; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
    .main-nav { display: none; }
    .hero-grid, .partners-grid, .regions-grid, .heading-row { grid-template-columns: 1fr; }
    .hero-grid { gap: 38px; }
    .hero-visual { min-height: 390px; }
    .search-fields { grid-template-columns: repeat(2, 1fr); }
    .property-grid { grid-template-columns: 1fr 1fr; }
    .property-card:last-child { grid-column: 1 / -1; }
    .heading-row { gap: 8px; }
}

@media (max-width: 680px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .site-header { position: relative; }
    .header-inner { min-height: 68px; gap: 12px; }
    .brand-name { font-size: 1.35rem; }
    .brand-mark { width: 32px; height: 32px; }
    .header-cta { min-height: 40px; padding: 0 12px; font-size: .82rem; }
    .hero { padding-top: 48px; }
    .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
    .hero-grid { padding-bottom: 34px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-visual { min-height: 310px; }
    .scene-card-main { left: 12px; }
    .floating-card { max-width: 210px; font-size: .75rem; }
    .search-shell { padding: 16px; transform: translateY(26px); }
    .search-intro { align-items: flex-start; flex-direction: column; gap: 3px; }
    .search-fields { grid-template-columns: 1fr; }
    .section { padding: 76px 0; }
    .section-properties { padding-top: 112px; }
    .property-grid, .feature-grid, .principle-grid, .footer-grid { grid-template-columns: 1fr; }
    .property-card:last-child { grid-column: auto; }
    .region-cloud { min-height: 270px; }
    .footer-grid { gap: 32px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}


/* M2.007 - Busca v0.1 integrada à Home */
.search-form { grid-template-columns: 1.05fr 1.1fr .65fr 1.15fr auto; align-items: stretch; }
.search-control { min-height: 68px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-control input, .search-control select { width: 100%; border: 0; outline: 0; padding: 2px 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; }
.search-control input::placeholder { color: #9aa7b5; }
.search-control:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(14,105,203,.12); }
.button-search-active { min-width: 145px; border: 0; background: var(--blue-600); color: #fff; cursor: pointer; }
.button-search-active:hover { background: var(--blue-700); transform: translateY(-1px); }
.search-notice { margin: 14px 2px 0; padding: 11px 13px; border-radius: 10px; font-size: .88rem; }
.search-notice-error { background: #fff1f0; border: 1px solid #ffd2ce; color: #862d28; }
.property-card-result { display: flex; flex-direction: column; }
.property-media-result { padding: 0; background: linear-gradient(150deg,#cad8e8,#7897b9 55%,#526f8e); }
.property-media-result::before, .property-media-result::after { display: none; }
.property-media-result img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-media-placeholder { display: grid; place-items: center; padding: 16px; }
.property-media-placeholder span { position: static; background: rgba(7,25,45,.82); }
.property-location { margin-top: 4px !important; }
.property-prices { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; color: var(--navy-900); }
.property-prices strong { font-size: .98rem; }
.property-prices span { color: var(--muted); font-size: .9rem; }
.property-advertiser { display: block; margin-top: 14px; color: var(--muted); font-size: .82rem; }
.property-empty { display: flex; flex-direction: column; gap: 5px; padding: 30px; border: 1px dashed #cbd9e8; border-radius: 18px; background: var(--surface-soft); color: var(--muted); }
.property-empty strong { color: var(--navy-900); font-size: 1.1rem; }
.search-pagination { display: flex; justify-content: center; margin-top: 34px; }

@media (max-width: 1180px) {
    .search-form { grid-template-columns: repeat(2, 1fr); }
    .button-search-active { min-height: 58px; }
}

@media (max-width: 680px) {
    .search-form { grid-template-columns: 1fr; }
    .search-control { min-height: 62px; }
}

/* Refinamento visual consolidado - área autenticada e fallbacks de mídia */
.button-outline {
    border-color: rgba(17, 36, 59, .22);
    color: var(--navy-900);
    background: #fff;
}
.button-outline:hover { border-color: rgba(17, 36, 59, .34); background: #f8fbff; }
.site-header .button-outline { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.05); }

.account-nav { gap: 18px; }
.account-nav a { font-size: .88rem; white-space: nowrap; }
.account-page-main { min-height: 70vh; padding: 52px 0 76px; background: #f7f9fc; }
.account-page-heading { margin-bottom: 26px; }
.account-page-heading h1 { margin: 8px 0 10px; font-size: clamp(2.15rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.025em; color: var(--navy-900); }
.account-page-heading p { max-width: 780px; margin: 0; color: #5d6878; line-height: 1.6; }

.property-media-result { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#d9e6f3,#9bb5cf 55%,#7897b9); }
.property-media-result img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; font-size: 0; }
.property-media-fallback-content { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: #31506f; font-size: .78rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 8px 24px rgba(17,36,59,.12); }
.property-media-placeholder { padding: 16px; }

@media (max-width: 1180px) {
    .account-nav { gap: 13px; }
    .account-nav a { font-size: .82rem; }
}
@media (max-width: 980px) {
    .account-page-main { padding-top: 38px; }
}
