/* MB Fazendas — sistema visual 3.0 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ----- Tokens ----- */
:root {
    --green: #4a352a;
    --blue: #765638;
    --orange: #c4943f;
    --purple: #8a6c50;

    --green-600: #4a352a;
    --green-700: #35251e;
    --green-500: #765638;
    --green-400: #a17c65;
    --green-soft: #f1ebe6;
    --green-tint: #faf7f4;

    --ink: #241d19;
    --ink-2: #4b413b;
    --muted: #756b65;
    --line: #e4ddd7;
    --line-2: #eee9e5;
    --surface: #ffffff;
    --surface-2: #f7faf8;
    --bg: #f6f3f0;

    --gold: #b5842d;
    --gold-soft: #f7eedc;
    --danger: #dc2626;
    --danger-soft: #fde7e7;
    --warn: #b45309;
    --warn-soft: #fdf0d8;
    --ok: #15803d;
    --ok-soft: #e3f5e9;

    --grad-green: linear-gradient(135deg, #594035 0%, #3b2a23 100%);
    --grad-hero: linear-gradient(145deg, #30221d 0%, #4a352a 100%);
    --grad-gold: linear-gradient(135deg, #d1aa62 0%, #b5842d 100%);
    --grad-premium: linear-gradient(135deg, #765638 0%, #4a352a 100%);

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 14px;
    --r-lg: 18px;
    --r-xl: 22px;
    --pill: 999px;

    --sh-xs: 0 1px 2px rgba(16, 40, 24, .06);
    --sh-sm: 0 4px 16px rgba(48, 34, 29, .06);
    --sh: 0 14px 34px -18px rgba(48, 34, 29, .24);
    --sh-lg: 0 24px 54px -28px rgba(48, 34, 29, .32);
    --ring: 0 0 0 4px rgba(118, 86, 56, .15);

    --container: 1180px;
    --wide: 1320px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --font: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
img.icon { width: 18px; height: 18px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; }
/* Hardening responsivo: impede que conteúdo estoure trilhas de grid/flex */
.hero-inner > *, .search-layout > *, .detail-hero > *, .footer-app > *, .panel-content > *,
.g-2 > *, .g-aside > *, .cards-grid > *, .kpi-grid > *, .value-grid > *, .form-grid > *,
.farm-body, .farm-row, .farm-card, .panel-card { min-width: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }

/* ----- Layout helpers ----- */
.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 22px; }
.wide { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 7vw, 92px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 18px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.g-2 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.g-aside { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .g-2, .g-aside { grid-template-columns: minmax(0, 1fr); } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--green-600);
}
.eyebrow.on-dark { color: #bdf0cf; }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: var(--pill); border: 1px solid transparent;
    font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
    background: var(--grad-green); color: #fff; box-shadow: var(--sh-sm);
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; }
.btn.small { padding: 9px 16px; font-size: .86rem; }
.btn.big { padding: 16px 30px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn.ghost:hover { border-color: var(--green-400); color: var(--green-700); }
.btn.outline { background: transparent; color: var(--green-700); border-color: rgba(22,101,52,.35); box-shadow: none; }
.btn.outline:hover { background: var(--green-soft); }
.btn.gold { background: var(--grad-gold); color: #4a2c00; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--green-700); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn.on-dark.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn.on-dark.ghost:hover { background: rgba(255,255,255,.2); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--green-700); }
.btn-link svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ----- Badges / chips / pills ----- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--pill); font-size: .76rem; font-weight: 700;
    background: var(--green-soft); color: var(--green-700);
}
.badge svg { width: 14px; height: 14px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-dark { background: #1f2937; color: #e5e7eb; }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-gold { background: var(--gold-soft); color: #92600a; }
.badge-premium { background: #f1e9ff; color: var(--purple); }
.badge-feature { background: var(--grad-gold); color: #4a2c00; box-shadow: var(--sh-sm); }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: var(--pill);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
    font-weight: 600; font-size: .9rem; box-shadow: var(--sh-xs);
    transition: all .18s var(--ease);
}
.chip svg { width: 16px; height: 16px; color: var(--green-600); }
.chip:hover { border-color: var(--green-400); transform: translateY(-1px); }
.chip.active { background: var(--grad-green); color: #fff; border-color: transparent; box-shadow: var(--sh-sm); }
.chip.active svg { color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.tag svg { width: 15px; height: 15px; color: var(--green-500); }

/* ----- Cards (generic) ----- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-sm); padding: 26px;
}
.card.flat { box-shadow: none; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-link > img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; box-shadow: var(--sh-xs); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy small { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--green-600); font-weight: 700; }
.brand-copy span { font-size: 1.18rem; font-weight: 800; letter-spacing: -.02em; }
.brand-link.logo-only > img { width: auto; height: 52px; max-width: 200px; border-radius: 10px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-links form button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 15px; border-radius: var(--pill); font-weight: 600; font-size: .95rem;
    color: var(--ink-2); background: transparent; border: 0; transition: all .16s var(--ease);
}
.nav-links > a svg, .nav-links form button svg { width: 18px; height: 18px; color: var(--green-500); }
.nav-links > a:hover, .nav-links form button:hover { background: var(--green-soft); color: var(--green-700); }
.nav-links > a.is-active { background: var(--green-soft); color: var(--green-700); }
.nav-links .btn { background: var(--grad-green); color: #fff; border-color: transparent; box-shadow: var(--sh-sm); }
.nav-links .btn:hover { background: var(--grad-green); color: #fff; }
.nav-links .btn svg { color: #fff; }
.nav-links .btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.nav-links .btn.ghost svg { color: var(--green-600); }
.nav-links form { display: inline-flex; margin: 0; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line);
    background: var(--surface); align-items: center; justify-content: center; box-shadow: var(--sh-xs);
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--grad-hero);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    padding-block: clamp(56px, 9vw, 120px);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(245,158,11,.22), transparent 60%),
        radial-gradient(50% 50% at 12% 95%, rgba(124,58,237,.22), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='.04' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; line-height: 1.04; }
.hero-copy h1 .hl { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p.lead { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #d9f2e1; max-width: 560px; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: .82rem; color: #aee1bd; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: #c9ecd4; font-weight: 600; }
.hero-trust svg { width: 17px; height: 17px; color: #7be0a0; }

/* hero search card */
.hero-search {
    background: rgba(255,255,255,.96); border-radius: var(--r-lg); padding: 22px;
    box-shadow: var(--sh-lg); color: var(--ink);
}
.hero-search h3 { font-size: 1.05rem; }
.hero-search .seg-tabs { display: flex; gap: 6px; margin: 14px 0; background: var(--surface-2); padding: 5px; border-radius: var(--pill); overflow-x: auto; scrollbar-width: none; }
.hero-search .seg-tabs::-webkit-scrollbar { display: none; }
.hero-search .seg-tabs button, .hero-search .seg-tabs a {
    flex: 1; padding: 9px; border-radius: var(--pill); border: 0; background: transparent;
    font-weight: 700; font-size: .86rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; justify-content: center;
}
.hero-search .seg-tabs .active { background: var(--surface); color: var(--green-700); box-shadow: var(--sh-xs); }
.hero-search .seg-tabs svg { width: 16px; height: 16px; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { display: grid; gap: 7px; }
.field > label, .form-label { font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=url], input[type=search], input[type=date], select, textarea {
    width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-size: .96rem; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--green-400); box-shadow: var(--ring); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23607065' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input-group { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; background: var(--surface); }
.input-group svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.input-group input, .input-group select { border: 0; padding-inline: 0; }
.input-group input:focus { box-shadow: none; }
.input-group:focus-within { border-color: var(--green-400); box-shadow: var(--ring); }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--green-600); }
.switch-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.switch-grid label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-size: .9rem; font-weight: 600; cursor: pointer; }
.switch-grid label:has(input:checked) { border-color: var(--green-400); background: var(--green-soft); color: var(--green-700); }
.switch-grid input { accent-color: var(--green-600); width: 18px; height: 18px; }

/* ----- Alerts / errors ----- */
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; margin-bottom: 16px; border: 1px solid transparent; }
.alert.success { background: var(--ok-soft); color: var(--ok); border-color: #bfe6cc; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: #f5c6c6; }
.alert.info { background: #e6f0ff; color: #1e40af; border-color: #c7dbff; }
.errors { margin-top: 16px; }
.errors ul { background: var(--danger-soft); color: var(--danger); border: 1px solid #f5c6c6; border-radius: var(--r-sm); padding: 14px 18px 14px 34px; list-style: disc; }
.errors li { margin-left: 4px; }

/* ==========================================================================
   LISTING CARD (anúncio) — único e padronizado
   ========================================================================== */
.cards-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.farm-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--sh-sm);
    transition: transform .22s var(--ease), box-shadow .3s var(--ease), border-color .2s var(--ease);
}
.farm-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: #d5e6db; }
.farm-card.is-featured { border-color: #f3d79a; box-shadow: 0 18px 50px -22px rgba(217,140,0,.4); }
.farm-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--green-tint); }
.farm-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.farm-card:hover .farm-media img { transform: scale(1.06); }
.farm-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,30,16,.55), transparent 45%); }
.farm-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 7px; flex-wrap: wrap; z-index: 2; }
.farm-badges .spacer { margin-left: auto; }
.farm-type-badge { background: rgba(255,255,255,.92); color: var(--green-700); backdrop-filter: blur(4px); }
.farm-fav {
    width: 38px; height: 38px; border-radius: var(--pill); border: 0;
    background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-xs); color: var(--ink-2); backdrop-filter: blur(4px); transition: all .18s var(--ease);
}
.farm-fav svg { width: 18px; height: 18px; }
.farm-fav:hover { color: var(--danger); transform: scale(1.08); }
.farm-fav.is-active { background: var(--danger); color: #fff; }
.farm-media-loc { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.farm-media-loc svg { width: 15px; height: 15px; }

.farm-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.farm-title { font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.farm-title a:hover { color: var(--green-700); }
.farm-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .85rem; }
.farm-meta span { display: inline-flex; align-items: center; gap: 6px; }
.farm-meta svg { width: 15px; height: 15px; color: var(--green-500); }
.farm-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.farm-price strong { display: block; font-size: 1.32rem; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.farm-price small { font-size: .76rem; color: var(--muted); }
.farm-cta { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pill); background: var(--green-soft); color: var(--green-700); transition: all .18s var(--ease); }
.farm-cta svg { width: 19px; height: 19px; }
.farm-cta:hover { background: var(--grad-green); color: #fff; transform: translateX(2px); }

.farm-score { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--green-700); }
.farm-score .bar { width: 54px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.farm-score .bar i { display: block; height: 100%; background: var(--grad-green); border-radius: 4px; }

/* list (linha) variant */
.farm-row { display: grid; grid-template-columns: 230px 1fr auto; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: box-shadow .25s var(--ease), transform .2s var(--ease); }
.farm-row:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.farm-row .farm-media { aspect-ratio: auto; height: 100%; min-height: 170px; }
.farm-row .farm-body { padding: 18px 0; }
.farm-row .farm-side { padding: 18px 22px 18px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 10px; text-align: right; }

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters-panel { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.filters-panel header { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 9px; font-weight: 800; }
.filters-panel header svg { width: 19px; height: 19px; color: var(--green-600); }
.filters-body { padding: 18px 20px; display: grid; gap: 18px; max-height: calc(100vh - 200px); overflow-y: auto; }
.filter-group { display: grid; gap: 9px; }
.filter-group > strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters-foot { padding: 16px 20px; border-top: 1px solid var(--line-2); display: grid; gap: 9px; }
.type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.results-head h1 { font-size: 1.5rem; }
.results-head .count { color: var(--muted); font-weight: 600; }
.results-tools { display: flex; gap: 10px; align-items: center; }
.view-toggle { display: inline-flex; background: var(--surface-2); border-radius: var(--pill); padding: 4px; gap: 2px; }
.view-toggle a { width: 38px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pill); color: var(--muted); }
.view-toggle a.active { background: var(--surface); color: var(--green-700); box-shadow: var(--sh-xs); }
.view-toggle svg { width: 17px; height: 17px; }
.filters-mobile-toggle { display: none; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; background: var(--green-soft); display: grid; place-items: center; color: var(--green-600); }
.empty-state .ico svg { width: 34px; height: 34px; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { color: var(--muted); margin-top: 8px; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); }
.pagination a:hover { border-color: var(--green-400); color: var(--green-700); }
.pagination .active span, .pagination [aria-current] span { background: var(--grad-green); color: #fff; border-color: transparent; }
.pagination .disabled span { opacity: .4; }

/* ==========================================================================
   DETAIL (anúncio)
   ========================================================================== */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.detail-gallery { display: grid; gap: 14px; }
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--green-tint); box-shadow: var(--sh-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; box-shadow: var(--sh-xs); }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--green-500); }
.detail-aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 16px; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 24px; }
.detail-price { font-size: 2.1rem; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.detail-price small { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.price-per-ha { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 7px 13px; border-radius: var(--pill); background: var(--gold-soft); color: #92600a; font-size: .86rem; font-weight: 600; }
.price-per-ha strong { font-weight: 800; color: #7a4f08; }
.price-per-ha svg { width: 15px; height: 15px; }
.detail-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.stat-box { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px; }
.stat-box svg { width: 20px; height: 20px; color: var(--green-500); }
.stat-box strong { display: block; font-size: 1.05rem; margin-top: 6px; }
.stat-box span { font-size: .78rem; color: var(--muted); }

.detail-body { display: grid; gap: 26px; margin-top: 8px; }
.detail-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 26px; }
.detail-block h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.detail-block h2 svg { width: 21px; height: 21px; color: var(--green-600); }
.detail-block .prose { margin-top: 14px; color: var(--ink-2); line-height: 1.75; }
.detail-block .prose p + p { margin-top: 12px; }
.detail-block .prose ul { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.detail-block .prose li { position: relative; padding-left: 26px; }
.detail-block .prose li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23166534' stroke-width='3'%3E%3Cpath d='M2 6l3 3 5-6'/%3E%3C/svg%3E") center/12px no-repeat; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; }
.feature-item svg { width: 18px; height: 18px; color: var(--green-600); }
.feature-item.off { opacity: .4; text-decoration: line-through; }

.seller-card { display: flex; align-items: center; gap: 14px; }
.seller-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--green-soft); }
.seller-card .avatar.ph { display: grid; place-items: center; color: var(--green-600); font-weight: 800; font-size: 1.3rem; }

/* breadcrumb */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumb a:hover { color: var(--green-700); }
.crumb svg { width: 14px; height: 14px; }

/* ==========================================================================
   FEATURE STRIP / VALUE CARDS (home)
   ========================================================================== */
.value-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.value-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-700); margin-bottom: 16px; }
.value-card .ico svg { width: 26px; height: 26px; }
.value-card.v-blue .ico { background: #e3edff; color: var(--blue); }
.value-card.v-gold .ico { background: var(--gold-soft); color: #b9760a; }
.value-card.v-purple .ico { background: #f1e9ff; color: var(--purple); }
.value-card h3 { font-size: 1.12rem; }
.value-card p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* type categories */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.cat-card { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 220px; display: flex; align-items: flex-end; padding: 24px; color: #fff; box-shadow: var(--sh); }
.cat-card::before { content: ''; position: absolute; inset: 0; background: var(--grad-green); z-index: 0; transition: transform .4s var(--ease); }
.cat-card:hover::before { transform: scale(1.05); }
.cat-card > * { position: relative; z-index: 1; }
.cat-card .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(4px); }
.cat-card .ico svg { width: 26px; height: 26px; }
.cat-card h3 { color: #fff; font-size: 1.35rem; margin-top: auto; }
.cat-card p { color: rgba(255,255,255,.85); font-size: .88rem; }
.cat-card .meta { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cat-card .count { font-weight: 700; }

/* steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .num { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: var(--sh-sm); }
.step h3 { font-size: 1.08rem; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 6px; font-size: .92rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px); color: #fff; background: var(--grad-hero); text-align: center; box-shadow: var(--sh-lg); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 80% 0%, rgba(245,158,11,.25), transparent), radial-gradient(50% 80% at 10% 100%, rgba(124,58,237,.25), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.cta-band p { color: #d9f2e1; max-width: 560px; margin: 14px auto 26px; font-size: 1.08rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: #0c2417; color: #cfe6d6; }
.footer-app { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo-mark img { width: 46px; height: 46px; border-radius: 13px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.15rem; }
.footer-brand small { color: #8fc4a1; }
.footer-brand-block > p { margin-top: 16px; color: #a9cbb4; max-width: 360px; font-size: .95rem; }
.footer-trust-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.footer-trust-row span { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: #bcdcc6; }
.footer-trust-row svg { width: 16px; height: 16px; color: var(--gold); }
.footer-social-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-row a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe6d6; transition: all .18s var(--ease); }
.footer-social-row a:hover { background: var(--green-500); color: #fff; }
.footer-social-row svg { width: 19px; height: 19px; }
.footer-links-block h3, .footer-contact-card h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links-block a { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: #b6d4c0; font-size: .94rem; }
.footer-links-block a svg { width: 16px; height: 16px; color: #6fae84; }
.footer-links-block a:hover { color: #fff; }
.footer-contact-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 24px; }
.footer-contact-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(37,211,102,.16); color: #25d366; display: grid; place-items: center; margin-bottom: 8px; }
.footer-contact-icon svg { width: 22px; height: 22px; }
.footer-contact-card p { color: #a9cbb4; font-size: .9rem; margin-bottom: 16px; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--pill); background: #25d366; color: #04361b; font-weight: 700; }
.footer-whatsapp svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: #8fc4a1; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   MOBILE BOTTOM NAV
   ========================================================================== */
.mobile-bottom { display: none; }

/* ==========================================================================
   PANEL (dashboard / admin)
   ========================================================================== */
.panel-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.panel-overlay { display: none; }
.panel-aside { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #0c2417; color: #cfe6d6; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.panel-brand { display: flex; align-items: center; gap: 11px; padding: 8px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.panel-brand img { width: 42px; height: 42px; border-radius: 12px; }
.panel-brand strong { color: #fff; font-size: 1.02rem; display: block; }
.panel-brand small { color: #8fc4a1; font-size: .72rem; }
.panel-brand.logo-only img { width: auto; height: 46px; max-width: 190px; object-fit: contain; }
.footer-brand.logo-only .footer-logo-mark img { width: auto; height: 46px; max-width: 190px; object-fit: contain; }
.panel-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6fae84; padding: 14px 12px 6px; }
.panel-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); color: #c2dccb; font-weight: 600; font-size: .94rem; transition: all .15s var(--ease); }
.panel-nav a svg { width: 19px; height: 19px; color: #7cb893; }
.panel-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.panel-nav a.is-active { background: var(--grad-green); color: #fff; box-shadow: var(--sh-sm); }
.panel-nav a.is-active svg { color: #fff; }
.panel-nav a .count-pill { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.panel-aside-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.panel-main { display: flex; flex-direction: column; min-width: 0; }
.panel-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.panel-topbar h1 { font-size: 1.25rem; }
.panel-topbar .sub { color: var(--muted); font-size: .86rem; }
.panel-topbar .spacer { margin-left: auto; }
.panel-mobile-toggle { display: none; }
.panel-user { display: inline-flex; align-items: center; gap: 10px; }
.panel-user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; color: var(--green-700); font-weight: 800; object-fit: cover; }
.panel-content { padding: 28px; display: grid; gap: 24px; }

.kpi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.kpi .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-700); margin-bottom: 14px; }
.kpi .ico svg { width: 22px; height: 22px; }
.kpi.k-blue .ico { background: #e3edff; color: var(--blue); }
.kpi.k-gold .ico { background: var(--gold-soft); color: #b9760a; }
.kpi.k-purple .ico { background: #f1e9ff; color: var(--purple); }
.kpi strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: .9rem; }
.kpi .trend { position: absolute; top: 22px; right: 22px; font-size: .78rem; font-weight: 700; color: var(--ok); }

.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.panel-card > header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.panel-card > header h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 9px; }
.panel-card > header h2 svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }
.panel-card > header > svg { width: 20px; height: 20px; color: var(--green-600); }
.panel-card > header .spacer { margin-left: auto; }
.panel-card .body { padding: 22px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 600px; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); font-size: .92rem; vertical-align: middle; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--green-tint); }
.cell-main strong { display: block; font-weight: 700; }
.cell-main small { color: var(--muted); }
.row-actions { display: inline-flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all .15s var(--ease); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--green-400); color: var(--green-700); }
.icon-btn.danger:hover { border-color: #f3b4b4; color: var(--danger); background: var(--danger-soft); }

/* ----- auth ----- */
.auth-page { padding-block: clamp(28px, 5vw, 60px); }
.auth-card { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.auth-side { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgba(245,158,11,.22), transparent), radial-gradient(50% 50% at 10% 95%, rgba(124,58,237,.2), transparent); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.auth-side > p { color: #d9f2e1; font-size: .95rem; }
.auth-benefits { display: grid; gap: 14px; margin-top: 8px; }
.auth-benefits .b { display: flex; align-items: center; gap: 12px; }
.auth-benefits .b .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.auth-benefits .b .ic svg { width: 20px; height: 20px; color: #9be8b4; }
.auth-benefits .b strong { display: block; color: #fff; font-size: .96rem; }
.auth-benefits .b span:last-child { color: #b6dcc3; font-size: .84rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(26px, 3.5vw, 44px); background: var(--surface); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 1.7rem; }
.auth-form > p.sub { color: var(--muted); margin-top: 8px; margin-bottom: 24px; }
.auth-form .field + .field, .auth-form .field + .btn, .auth-form form > * + * { margin-top: 16px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .84rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-weight: 700; box-shadow: var(--sh-xs); }
.auth-google svg { width: 20px; height: 20px; }
.auth-google:hover { border-color: var(--green-400); }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: var(--green-700); font-weight: 700; }

/* ----- misc utilities ----- */
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-700); }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.skeleton { background: linear-gradient(100deg, var(--line-2) 30%, #fff 50%, var(--line-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity:1; transform:none; }
.reveal.in { opacity:1; transform:none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .search-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; display: none; }
    .filters-panel.is-open { display: block; }
    .filters-mobile-toggle { display: inline-flex; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .footer-app { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.is-open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 76px; left: 0; right: 0; padding: 16px 22px 22px;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); gap: 4px;
    }
    .nav-links.is-open > a, .nav-links.is-open form button { padding: 13px 15px; justify-content: flex-start; }
    .nav-links.is-open .btn { justify-content: center; margin-top: 8px; }
    .cat-grid { grid-template-columns: 1fr; }
    .auth-card { grid-template-columns: minmax(0, 1fr); }
    .auth-side { display: none; }
    .panel-shell { grid-template-columns: 1fr; }
    .panel-aside { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 80; transform: translateX(-100%); transition: transform .28s var(--ease); }
    .panel-aside.is-open { transform: none; }
    .panel-mobile-toggle { display: inline-flex; }
    .panel-overlay { display: block; position: fixed; inset: 0; background: rgba(8,24,15,.5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
    .panel-overlay.is-open { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
    body { padding-bottom: 76px; }
    .mobile-bottom {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
        background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
        padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
        justify-content: space-around;
    }
    .mobile-bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 4px 8px; border-radius: 12px; position: relative; }
    .mobile-bottom a svg { width: 22px; height: 22px; }
    .mobile-bottom a:hover, .mobile-bottom a.is-active { color: var(--green-700); }
    .form-grid { grid-template-columns: 1fr; }
    .footer-app { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .farm-row { grid-template-columns: 1fr; }
    .farm-row .farm-media { min-height: 200px; }
    .farm-row .farm-side { align-items: flex-start; text-align: left; padding: 0 20px 20px; }
    .detail-stats { grid-template-columns: 1fr 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .results-head { flex-direction: column; align-items: flex-start; }
}

/* print */
@media print {
    .site-header, .site-footer, .mobile-bottom, .btn, .farm-fav { display: none !important; }
    body { background: #fff; }
}
/* MB Fazendas — home e página de propriedade */
.mb-home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 88px) 0;
    min-height: min(680px, calc(100vh - 70px));
    display: grid;
    align-items: center;
    background: #563927;
    color: #fff;
}
.mb-home-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 31%;
    background-image: var(--mb-home-image);
    background-position: center 48%;
    background-size: cover;
    clip-path: ellipse(82% 108% at 100% 100%);
    filter: saturate(.92) sepia(.08);
    opacity: .96;
}
.mb-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #563927 0%, #563927 30%, rgba(86,57,39,.96) 40%, rgba(86,57,39,.38) 68%, rgba(86,57,39,.08) 100%),
        linear-gradient(0deg, rgba(40,24,16,.34), transparent 55%),
        radial-gradient(circle at 88% 10%, rgba(242,196,92,.22), transparent 32%);
}
.mb-home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
}
.mb-home-copy h1 { max-width: 700px; margin: 12px 0 16px; color: #fff; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.05em; }
.mb-home-copy > p { max-width: 610px; margin: 0 0 28px; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.mb-home-search { padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(255,255,255,.48); border-radius: 20px; background: rgba(255,255,255,.93); box-shadow: 0 24px 70px rgba(18,10,6,.26); color: var(--ink); backdrop-filter:blur(10px); }
.mb-home-search h2 { margin: 0 0 20px; font-size: 1.35rem; }
.mb-home-search .field { margin-bottom: 14px; }
.mb-home-search .field label { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.mb-home-search .form-grid { gap: 12px; }
.mb-home-listings { padding-bottom: 34px; }
.mb-home-listings .results-head h2, .mb-similar h2 { margin-top: 7px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.mb-home-actions { padding-top: 0; }
.mb-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mb-action-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--sh-xs); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mb-action-card:hover { transform: translateY(-2px); border-color: var(--green-400); box-shadow: var(--sh-sm); }
.mb-action-card .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #f8f1df; color: #5b412d; }
.mb-action-card .ico.whatsapp { background: #e8f9ee; color: #168c45; }
.mb-action-card span:nth-child(2) { display: grid; gap: 3px; }
.mb-action-card strong { font-size: 1rem; }
.mb-action-card small { color: var(--muted); font-size: .84rem; }

.mb-farm-page { padding-top: 26px; }
.mb-farm-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 20px 0 24px; }
.mb-farm-head h1 { max-width: 850px; margin-top: 12px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.mb-farm-badges { gap: 9px; }
.mb-farm-tools { flex: 0 0 auto; }
.mb-farm-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr); grid-template-areas: "gallery aside" "content aside"; align-items: start; gap: 24px; }
.mb-farm-gallery { grid-area: gallery; min-width: 0; }
.mb-farm-gallery .gallery-main { aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.mb-farm-gallery .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.mb-farm-gallery .gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 98px; gap: 9px; margin-top: 10px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 8px; }
.mb-thumb-button { appearance: none; width: 98px; height: 70px; padding: 0; border: 0; border-radius: 11px; background: none; cursor: pointer; }
.mb-thumb-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.mb-farm-aside { grid-area: aside; display: grid; gap: 16px; position: sticky; top: 92px; }
.mb-farm-aside .detail-card { margin: 0; padding: 24px; border-radius: 20px; }
.mb-price-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mb-price-card .detail-price { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.mb-offer { display: inline-flex; margin-top: 7px; padding: 5px 9px; border-radius: 999px; background: #f8f1df; color: #5b412d; font-size: .75rem; font-weight: 800; }
.mb-price-card .price-per-ha { margin: 9px 0 0; color: var(--muted); font-size: .87rem; }
.mb-key-stats { display: grid; gap: 0; margin: 20px 0; border-block: 1px solid var(--line); }
.mb-key-stats > div { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mb-key-stats > div:last-child { border-bottom: 0; }
.mb-key-stats svg { color: #765638; }
.mb-key-stats span { display: grid; gap: 1px; }
.mb-key-stats small { color: var(--muted); }
.mb-key-stats strong { font-size: .93rem; }
.mb-whatsapp-button { background: #20b65a !important; color: #fff !important; border-color: #20b65a !important; }
.mb-interest-card h2 { margin: 0 0 16px; font-size: 1.15rem; }
.mb-interest-card .stack { gap: 12px; }
.mb-interest-card label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.mb-farm-content { grid-area: content; min-width: 0; margin-top: 0; }
.mb-farm-main { display: grid; gap: 18px; }
.mb-farm-main .detail-block { margin: 0; padding: clamp(22px, 3vw, 30px); border-radius: 20px; }
.mb-farm-main .detail-block h2 { margin-bottom: 16px; font-size: 1.3rem; }
.mb-intro { margin-bottom: 16px; color: var(--ink); font-size: 1.03rem; font-weight: 700; }
.mb-current-activity { margin-top: 18px; color: var(--muted); }
.mb-similar { margin-top: 52px; }
.mb-form-actions { position: sticky; bottom: 16px; z-index: 5; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.96); box-shadow: var(--sh); backdrop-filter: blur(12px); }
[data-money-mask] { font-weight: 800; letter-spacing: .01em; }

@media (max-width: 980px) {
    .mb-home-hero-grid { grid-template-columns: 1fr; }
    .mb-home-copy { text-align: center; }
    .mb-home-copy > p { margin-inline: auto; }
    .mb-home-copy .cluster { justify-content: center; }
    .mb-home-search { width: min(100%, 680px); margin-inline: auto; }
    .mb-farm-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "content"; gap: 18px; }
    .mb-farm-aside { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mb-farm-aside { position: static; }
}
@media (max-width: 720px) {
    .mb-home-hero { padding: 38px 0 32px; }
    .mb-home-copy h1 { font-size: clamp(2.15rem, 12vw, 3.15rem); }
    .mb-home-copy .cluster { display: grid; grid-template-columns: 1fr; width: 100%; }
    .mb-home-copy .btn { width: 100%; justify-content: center; }
    .mb-home-search { padding: 20px 16px; border-radius: 19px; }
    .mb-home-search .form-grid { grid-template-columns: 1fr; }
    .mb-home-listings .results-head, .mb-farm-head { align-items: flex-start; }
    .mb-action-grid, .mb-farm-aside { grid-template-columns: 1fr; }
    .mb-farm-page { padding-top: 16px; }
    .mb-farm-head { display: grid; gap: 14px; margin-bottom: 16px; }
    .mb-farm-tools { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mb-farm-tools .btn { justify-content: center; }
    .mb-farm-gallery .gallery-main { margin-inline: calc(var(--page-pad, 16px) * -1); border-radius: 0; aspect-ratio: 4/3; }
    .mb-farm-gallery .gallery-thumbs { grid-auto-columns: 84px; }
    .mb-thumb-button { width: 84px; height: 62px; }
    .mb-farm-layout { gap: 14px; }
    .mb-farm-aside { gap: 12px; }
    .mb-farm-aside .detail-card { padding: 18px 16px; border-radius: 16px; }
    .mb-farm-main { gap: 12px; }
    .mb-farm-main .detail-block { padding: 18px 16px; border-radius: 16px; box-shadow: none; }
    .mb-farm-main .detail-block h2 { margin-bottom: 12px; font-size: 1.12rem; }
    .mb-farm-main .detail-block .prose { margin-top: 10px; line-height: 1.6; }
    .mb-intro { margin-bottom: 10px; font-size: .98rem; }
    .mb-farm-main .feature-grid { grid-template-columns: 1fr 1fr; }
    .mb-form-actions { bottom: 8px; display: grid; grid-template-columns: 1fr; padding: 10px; }
    .mb-form-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .mb-farm-main .feature-grid { grid-template-columns: 1fr; }
    .mb-action-card { padding: 18px 15px; gap: 12px; }
    .mb-action-card small { font-size: .78rem; }
}

/* ========================================================================== 
   MB Fazendas 3.0 — acabamento sóbrio, editorial e responsivo
   ========================================================================== */
body { font-size: 15px; }
h1, h2, h3, h4 { font-weight: 750; }
.section { padding-block: clamp(36px, 5vw, 68px); }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.eyebrow.on-dark, .hero-copy p.lead, .cta-band p { color:#e3d8d1; }
.header-inner { height: 70px; }
.nav-links > a, .nav-links form button { border-radius: 9px; }
.btn { border-radius: 10px; padding: 12px 20px; box-shadow: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); filter: none; }
.btn.big { padding: 14px 24px; font-size: 1rem; }
.btn.danger { background: var(--danger); }
.chip { border-radius: 9px; box-shadow: none; }
.chip.active { box-shadow: none; }
.card, .panel-card, .detail-card, .detail-block { box-shadow: var(--sh-xs); }
.reveal { opacity:1; transform:none; }
.eyebrow { letter-spacing: .09em; }
.badge-feature { box-shadow: none; }

.site-footer { margin-top: clamp(36px, 6vw, 72px); background: #30231e; }
.footer-contact-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); box-shadow: none; }
.footer-social-row a { border-radius: 9px; }

.panel-shell { grid-template-columns: 252px minmax(0,1fr); }
.panel-aside { background: #30231e; color: #e3d9d2; }
.panel-brand { border-bottom-color: rgba(255,255,255,.1); }
.panel-brand small { color: #c9b9ae; }
.panel-nav a { border-radius: 9px; color: #d8ccc4; }
.panel-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.panel-nav a.is-active { background: #fff; color: #35251e; box-shadow: none; }
.panel-nav-label { color: #a99588; letter-spacing: .09em; }
.panel-topbar { min-height: 70px; background: rgba(255,255,255,.96); }
.panel-content { padding: clamp(18px, 3vw, 32px); }
.panel-card > header { min-height: 62px; }
.kpi-grid { gap: 14px; }
.kpi { border-radius: var(--r); padding: 19px; box-shadow: var(--sh-xs); }
.kpi .ico, .kpi.k-blue .ico, .kpi.k-gold .ico, .kpi.k-purple .ico { background: var(--green-soft); color: var(--green-700); border-radius: 10px; }
.kpi strong { font-size: 1.75rem; }
.panel-foot-link, .panel-logout { display:flex; align-items:center; gap:11px; padding:11px 13px; width:100%; border:0; border-radius:9px; background:none; font-weight:650; }
.panel-foot-link { color:#e3d9d2; }
.panel-logout { color:#f3b4b4; }
.panel-foot-link:hover, .panel-logout:hover { background:rgba(255,255,255,.07); }
.panel-user-photo { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.panel-header-actions { gap:10px; }

.dashboard-bars { display:flex; align-items:flex-end; gap:14px; height:200px; padding-top:10px; }
.dashboard-bar { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.dashboard-bar strong { font-size:.86rem; color:var(--green-700); }
.dashboard-bar-fill { width:100%; max-width:42px; background:var(--green-600); border-radius:5px 5px 2px 2px; }
.dashboard-bar-label { color:var(--muted); font-size:.73rem; }
.dashboard-state { margin-bottom:14px; }
.dashboard-state-head { display:flex; justify-content:space-between; gap:10px; margin-bottom:6px; font-size:.86rem; font-weight:650; }
.dashboard-track { height:6px; overflow:hidden; border-radius:6px; background:var(--line); }
.dashboard-track > span { display:block; height:100%; border-radius:6px; background:var(--green-600); }
.avatar-initial { width:42px; height:42px; border-radius:50%; background:var(--green-soft); display:grid; place-items:center; color:var(--green-700); font-weight:750; flex:0 0 auto; }
.cell-price { font-weight:700; color:var(--green-700); }
.cell-date { color:var(--muted); font-size:.84rem; }
.row-actions-end { justify-content:flex-end; flex-wrap:wrap; }
.message-note { color:var(--muted); font-size:.86rem; background:var(--surface-2); padding:10px 14px; border-radius:9px; }

.auth-page { min-height:calc(100vh - 70px); display:grid; place-items:center; }
.auth-card { max-width:520px; display:block; border-radius:18px; box-shadow:var(--sh); }
.auth-side { display:none; }
.auth-main { padding:clamp(26px,5vw,46px); }
.auth-form h1 { font-size:1.65rem; }
.auth-google { border-radius:10px; box-shadow:none; }

.mb-page-hero { padding:clamp(46px,7vw,82px) 0; background:#3d2c25; color:#fff; }
.mb-page-hero .wide { max-width:900px; }
.mb-page-hero h1 { color:#fff; margin-top:12px; font-size:clamp(2rem,5vw,3.5rem); }
.mb-page-hero p { max-width:680px; margin-top:16px; color:#e3d8d1; font-size:1.05rem; }
.mb-about-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:28px; align-items:start; }
.mb-about-copy, .mb-about-list { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(22px,4vw,34px); }
.mb-about-copy h2 { margin-bottom:16px; }
.mb-about-copy p + p { margin-top:14px; }
.mb-about-list { display:grid; gap:0; }
.mb-about-item { display:grid; grid-template-columns:34px 1fr; gap:12px; padding:17px 0; border-bottom:1px solid var(--line-2); }
.mb-about-item:first-child { padding-top:0; }
.mb-about-item:last-child { padding-bottom:0; border-bottom:0; }
.mb-about-item svg { color:var(--green-600); }
.mb-about-item p { color:var(--muted); margin-top:4px; }
.mb-legal { margin-top:28px; }
.mb-legal details { border-bottom:1px solid var(--line); }
.mb-legal summary { cursor:pointer; padding:18px 0; font-weight:700; }
.mb-legal details > div { padding:0 0 20px; color:var(--muted); }

.mb-farm-head { align-items:start; }
.mb-farm-head h1 { font-size:clamp(1.75rem,3.5vw,2.7rem); line-height:1.12; }
.mb-farm-layout { grid-template-columns:minmax(0,1.55fr) minmax(320px,.62fr); gap:20px; }
.mb-farm-gallery { position:relative; }
.mb-farm-gallery .gallery-main { border-radius:16px; cursor:zoom-in; }
.mb-gallery-open { position:absolute; right:14px; bottom:14px; z-index:2; display:inline-flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid rgba(255,255,255,.5); border-radius:9px; background:rgba(32,24,20,.82); color:#fff; font-size:.83rem; font-weight:700; backdrop-filter:blur(8px); }
.mb-farm-gallery.has-thumbs .mb-gallery-open { bottom:88px; }
.mb-farm-aside .detail-card, .mb-farm-main .detail-block { border-radius:16px; }
.mb-farm-aside, .mb-price-card, .mb-interest-card { min-width:0; }
.detail-price { max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
.mb-price-card { border-top:3px solid var(--gold); }
.mb-interest-card h2 { font-size:1.08rem; }
.mb-farm-nav { display:flex; gap:6px; overflow-x:auto; padding:7px; margin-bottom:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.mb-farm-nav a { flex:0 0 auto; padding:8px 11px; border-radius:8px; color:var(--muted); font-size:.84rem; font-weight:650; }
.mb-farm-nav a:hover { background:var(--green-soft); color:var(--green-700); }
.mb-farm-main section { scroll-margin-top:92px; }
.feature-item { border-radius:10px; }
.mb-lightbox[hidden] { display:none; }
.mb-lightbox { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:70px 70px 32px; background:rgba(20,15,12,.94); }
.mb-lightbox img { max-width:min(1200px,100%); max-height:calc(100vh - 100px); object-fit:contain; }
.mb-lightbox button { position:absolute; width:44px; height:44px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(255,255,255,.08); color:#fff; }
.mb-lightbox-close { top:16px; right:18px; }
.mb-lightbox-prev { left:16px; top:50%; }
.mb-lightbox-next { right:16px; top:50%; }
body.lightbox-open { overflow:hidden; }

@media (max-width: 980px) {
    .mb-farm-layout { grid-template-areas:"gallery" "price" "content" "contact"; }
    .mb-farm-aside { display:contents; }
    .mb-price-card { grid-area:price; }
    .mb-interest-card { grid-area:contact; }
}

@media (max-width: 760px) {
    body { font-size:14px; }
    .wide, .container { padding-inline:16px; }
    .section { padding-block:30px; }
    .panel-content { padding:16px; }
    .panel-topbar { padding-inline:14px; }
    .panel-topbar h1 { font-size:1.05rem; }
    .panel-topbar .sub { display:none; }
    .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .kpi { padding:15px; }
    .kpi .ico { width:38px; height:38px; margin-bottom:10px; }
    .kpi strong { font-size:1.45rem; }
    .panel-card > header { align-items:flex-start; flex-wrap:wrap; padding:15px; }
    .panel-card .body { padding:16px; }
    .table-wrap.responsive { overflow:visible; }
    table.data.responsive-table { min-width:0; }
    table.data.responsive-table thead { display:none; }
    table.data.responsive-table, table.data.responsive-table tbody, table.data.responsive-table tr, table.data.responsive-table td { display:block; width:100%; }
    table.data.responsive-table tr { padding:13px 15px; border-bottom:1px solid var(--line); }
    table.data.responsive-table td { display:grid; grid-template-columns:96px minmax(0,1fr); gap:10px; align-items:center; padding:7px 0; border:0; }
    table.data.responsive-table td::before { content:attr(data-label); color:var(--muted); font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
    table.data.responsive-table td[data-label=""] { display:block; }
    table.data.responsive-table td[data-label=""]::before { display:none; }
    table.data.responsive-table .row-actions { justify-content:flex-start; }
    .auth-page { min-height:auto; }
    .auth-main { padding:25px 20px; }
    .mb-about-grid { grid-template-columns:1fr; gap:14px; }
    .mb-page-hero { padding:40px 0; }
    .mb-farm-nav { margin-inline:-16px; border-left:0; border-right:0; border-radius:0; padding-inline:16px; }
    .mb-gallery-open { right:0; bottom:12px; border-radius:9px 0 0 9px; }
    .mb-farm-gallery.has-thumbs .mb-gallery-open { bottom:82px; }
    .mb-lightbox { padding:58px 10px 20px; }
    .mb-lightbox-prev { left:8px; }
    .mb-lightbox-next { right:8px; }
}

@media (max-width: 420px) {
    .kpi-grid { grid-template-columns:1fr 1fr; gap:10px; }
    .kpi span { font-size:.78rem; }
    .mb-farm-tools { grid-template-columns:1fr 1fr; }
}

/* ========================================================================== 
   Responsividade 3.1 — correções estruturais para celular e tablet
   ========================================================================== */
html, body { width:100%; max-width:100%; }
body { overflow-x:clip; }
main, section, header, footer, nav, aside, form, article, .page, .panel-main { min-width:0; }
input, select, textarea, button { min-width:0; max-width:100%; }
input[type="file"] { width:100%; padding:10px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-size:.86rem; }
.panel-mobile-actions { display:none; }
.panel-desktop-actions { display:flex; align-items:center; gap:10px; }
.install-wrap, .error-wrap { min-height:100vh; display:grid; place-items:center; padding:clamp(16px,4vw,36px); }
.install-card, .error-card { width:min(100%, 860px); padding:clamp(20px,4vw,36px); background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh); }
.install-card > * + *, .error-card > * + * { margin-top:16px; }
.section-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.actions-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.mini-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); }

@media (max-width: 1080px) {
    .filters-body { max-height:none; overflow:visible; }
    .filters-panel { width:100%; }
    .search-layout > aside, .search-layout > div { width:100%; min-width:0; }
}

@media (max-width: 920px) {
    .nav-links.is-open { top:70px; max-height:calc(100dvh - 70px); overflow-y:auto; padding:12px 16px 18px; }
    .panel-aside { width:min(84vw, 300px); max-width:100%; padding-bottom:max(22px, env(safe-area-inset-bottom)); }
    .panel-overlay { background:rgba(32,23,19,.58); }
    .panel-main { width:100%; }
}

@media (max-width: 768px) {
    .public-body { padding-bottom:0; }
    .panel-body, .auth-body { padding-bottom:0; }
    .wide, .container { width:100%; padding-inline:16px; }
    .header-inner { height:64px; gap:10px; }
    .brand-link { min-width:0; max-width:calc(100% - 54px); }
    .brand-link > img { width:40px; height:40px; border-radius:10px; flex:0 0 auto; }
    .brand-link.logo-only > img { height:42px; max-width:min(190px, 62vw); }
    .brand-copy { min-width:0; }
    .brand-copy span { font-size:1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .brand-copy small { font-size:.58rem; }
    .hamburger { width:42px; height:42px; border-radius:10px; flex:0 0 auto; }
    .nav-links.is-open { top:64px; max-height:calc(100dvh - 64px); }

    .mobile-bottom { display:none !important; }

    .section { padding-block:28px; }
    .hero, .mb-page-hero { border-radius:0; }
    .mb-home-hero-grid, .hero-inner, .g-2, .g-aside, .search-layout, .mb-about-grid, .footer-app { grid-template-columns:minmax(0,1fr); }
    .cards-grid, .value-grid, .kpi-grid, .steps, .mb-action-grid { grid-template-columns:minmax(0,1fr); }
    .cards-grid { gap:14px; }
    .farm-card, .farm-row, .panel-card, .card, .value-card { width:100%; max-width:100%; }
    .farm-card:hover, .farm-row:hover, .value-card:hover { transform:none; }
    .farm-row { grid-template-columns:minmax(0,1fr); gap:0; }
    .farm-row .farm-media { width:100%; height:auto; min-height:0; aspect-ratio:16/10; }
    .farm-row .farm-body { padding:16px; }
    .farm-row .farm-side { width:100%; padding:0 16px 16px; align-items:stretch; text-align:left; }
    .farm-row .farm-side .btn { width:100%; }
    .farm-foot { align-items:center; }
    .farm-price { min-width:0; }
    .farm-price strong { font-size:clamp(1.08rem,5.6vw,1.32rem); overflow-wrap:anywhere; }
    .farm-media-loc { max-width:calc(100% - 28px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .farm-title, .cell-main strong, .cell-main small, .message-note { overflow-wrap:anywhere; word-break:break-word; }

    .mb-home-hero { padding:32px 0 26px; }
    .mb-home-copy { text-align:left; }
    .mb-home-copy h1 { margin-top:10px; font-size:clamp(2rem,10vw,2.75rem); line-height:1.04; }
    .mb-home-copy > p { margin-inline:0; margin-bottom:22px; }
    .mb-home-copy .cluster { display:grid; grid-template-columns:minmax(0,1fr); justify-content:stretch; }
    .mb-home-copy .btn { width:100%; white-space:normal; text-align:center; }
    .mb-home-search { width:100%; padding:18px 15px; border-radius:14px; }
    .mb-home-search h2 { font-size:1.15rem; margin-bottom:16px; }
    .mb-home-listings .results-head > a { width:100%; }
    .mb-action-card { grid-template-columns:40px minmax(0,1fr) 18px; padding:16px 14px; border-radius:14px; gap:11px; }
    .mb-action-card .ico { width:40px; height:40px; border-radius:10px; }

    .search-layout { margin-top:14px !important; gap:16px; }
    .filters-mobile-toggle { margin-bottom:10px !important; }
    .filters-panel { border-radius:14px; }
    .filters-panel header, .filters-body, .filters-foot { padding-inline:15px; }
    .filters-body .form-grid { grid-template-columns:minmax(0,1fr); }
    .results-head { width:100%; margin-bottom:15px; }
    .results-head h1 { font-size:1.35rem; }
    .results-tools { width:100%; justify-content:flex-end; }
    .view-toggle { border-radius:9px; }
    .empty-state { padding:38px 16px; }
    .pagination { gap:4px; margin-top:24px; }
    .pagination a, .pagination span { min-width:36px; height:38px; padding-inline:9px; }

    .crumb { margin-top:10px; gap:5px; font-size:.76rem; line-height:1.35; }
    .crumb span { min-width:0; overflow-wrap:anywhere; }
    .mb-farm-page { padding-top:12px; }
    .mb-farm-head { display:grid; width:100%; gap:12px; margin:14px 0; }
    .mb-farm-head h1 { margin-top:9px; font-size:clamp(1.55rem,7.5vw,2.05rem); overflow-wrap:anywhere; }
    .mb-farm-badges { gap:6px; }
    .mb-farm-tools { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .mb-farm-tools .btn { width:100%; min-width:0; padding:10px 8px; white-space:normal; }
    .mb-farm-layout { width:100%; grid-template-columns:minmax(0,1fr); grid-template-areas:"gallery" "price" "content" "contact"; gap:12px; }
    .mb-farm-gallery { width:100%; min-width:0; }
    .mb-farm-gallery .gallery-main { width:100%; margin:0; border-radius:12px; aspect-ratio:3/2; }
    .mb-farm-gallery .gallery-thumbs { width:100%; grid-auto-columns:76px; gap:7px; margin-top:8px; padding-bottom:4px; }
    .mb-thumb-button { width:76px; height:56px; border-radius:8px; }
    .mb-thumb-button img { border-radius:8px; }
    .mb-gallery-open { right:8px; bottom:8px; padding:8px 10px; }
    .mb-farm-gallery.has-thumbs .mb-gallery-open { bottom:70px; }
    .mb-farm-aside { display:contents; }
    .mb-price-card { grid-area:price; width:100%; padding:18px 16px !important; border-radius:12px !important; }
    .mb-interest-card { grid-area:contact; width:100%; padding:18px 16px !important; border-radius:12px !important; }
    .mb-price-card .detail-price { font-size:clamp(1.35rem,7vw,1.85rem); line-height:1.2; overflow-wrap:anywhere; word-break:break-word; }
    .mb-key-stats { margin:16px 0; }
    .mb-key-stats > div { padding:11px 0; }
    .mb-whatsapp-button { padding-inline:12px; white-space:normal; text-align:center; }
    .mb-farm-content { grid-area:content; width:100%; min-width:0; }
    .mb-farm-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; margin:0 0 10px; padding:5px; border:1px solid var(--line); border-radius:10px; overflow:visible; }
    .mb-farm-nav a { width:100%; padding:8px 5px; text-align:center; }
    .mb-farm-main { gap:10px; }
    .mb-farm-main .detail-block { width:100%; padding:17px 15px; border-radius:12px; box-shadow:var(--sh-xs); }
    .mb-farm-main .detail-block h2 { font-size:1.08rem; margin-bottom:10px; }
    .mb-farm-main .detail-block .prose { font-size:.94rem; line-height:1.62; overflow-wrap:anywhere; }
    .mb-farm-main .feature-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
    .feature-item { padding:10px 12px; }
    .mb-similar { margin-top:32px; }
    .mb-lightbox { padding:58px 8px 16px; }
    .mb-lightbox img { width:100%; max-height:calc(100dvh - 82px); }
    .mb-lightbox button { width:40px; height:40px; }

    .footer-app { gap:18px; padding-block:30px; }
    .footer-links-block { display:none; }
    .footer-brand-block > p { margin-top:10px; }
    .footer-contact-card { padding:16px; }
    .footer-contact-icon { display:none; }
    .footer-bottom { display:grid; gap:10px; padding-block:18px; }

    .panel-shell { display:block; width:100%; min-height:100dvh; }
    .panel-topbar { display:grid; grid-template-columns:42px minmax(0,1fr) auto; width:100%; min-height:64px; padding:10px 12px; gap:10px; }
    .panel-topbar > div:nth-of-type(1) { min-width:0; }
    .panel-topbar h1 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .panel-topbar .spacer { display:none; }
    .panel-header-actions { min-width:0; gap:6px; }
    .panel-desktop-actions { display:none; }
    .panel-mobile-actions { display:flex; flex-wrap:wrap; gap:8px; }
    .panel-mobile-actions:empty { display:none; }
    .panel-mobile-actions .btn { width:100%; }
    .panel-user .avatar { width:38px; height:38px; }
    .panel-content { width:100%; padding:14px; gap:14px; }
    .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .kpi { min-width:0; padding:14px; }
    .kpi .ico { width:36px; height:36px; margin-bottom:9px; }
    .kpi strong { display:block; font-size:1.35rem; }
    .kpi span { display:block; font-size:.76rem; line-height:1.35; }
    .panel-card { border-radius:12px; }
    .panel-card > header { min-height:0; padding:14px; }
    .panel-card > header h2 { font-size:1rem; }
    .panel-card > header .spacer { display:none; }
    .panel-card > header .cluster { width:100%; gap:6px !important; }
    .panel-card > header .chip { flex:1 1 auto; justify-content:center; padding:8px 10px; }
    .panel-card .body { padding:14px; }
    .table-wrap { max-width:100%; }
    table.data.responsive-table { min-width:0; }
    table.data.responsive-table thead { display:none; }
    table.data.responsive-table, table.data.responsive-table tbody, table.data.responsive-table tr, table.data.responsive-table td { display:block; width:100%; }
    table.data.responsive-table tr { padding:12px 14px; border-bottom:1px solid var(--line); }
    table.data.responsive-table td { display:grid; grid-template-columns:96px minmax(0,1fr); gap:10px; align-items:center; padding:7px 0; border:0; }
    table.data.responsive-table td::before { content:attr(data-label); color:var(--muted); font-size:.69rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
    table.data.responsive-table td[data-label=""] { display:block; }
    table.data.responsive-table td[data-label=""]::before { display:none; }
    table.data.responsive-table .row-actions { justify-content:flex-start; }
    .dashboard-bars { width:100%; height:170px; gap:5px; overflow:hidden; }
    .dashboard-bar { min-width:0; gap:5px; }
    .dashboard-bar-fill { max-width:28px; }
    .dashboard-bar-label { font-size:.58rem; white-space:nowrap; }
    .form-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
    .form-grid .full { grid-column:auto; }
    .switch-grid { grid-template-columns:minmax(0,1fr); }
    .seller-card { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; }
    .seller-card .field { min-width:0; }
    .mb-form-actions { position:static; display:grid; width:100%; grid-template-columns:minmax(0,1fr); padding:10px; }
    .mb-form-actions .btn { width:100%; }
    .actions-row { display:grid; grid-template-columns:minmax(0,1fr); }
    .actions-row .btn { width:100%; white-space:normal; }
    .install-wrap, .error-wrap { min-height:100dvh; padding:14px; }
    .install-card, .error-card { padding:20px 16px; border-radius:14px; }
    .section-title { align-items:flex-start; }
}

@media (min-width: 761px) and (max-width: 768px) {
    .public-body { padding-bottom:0; }
}

@media (max-width: 480px) {
    .cards-grid, .value-grid { grid-template-columns:minmax(0,1fr); }
    .farm-body { padding:15px; }
    .badge { padding:5px 9px; }
    .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    table.data.responsive-table td { grid-template-columns:82px minmax(0,1fr); gap:8px; }
    table.data.responsive-table .cell-main { align-items:flex-start; }
    .cell-thumb { width:46px; height:46px; }
    .row-actions { display:flex; width:100%; flex-wrap:wrap; }
    .row-actions form { flex:0 0 auto; }
    .mb-about-copy, .mb-about-list { padding:18px 15px; }
    .auth-card { border-radius:14px; }
    .auth-main { padding:22px 16px; }
}

@media (max-width: 360px) {
    .wide, .container { padding-inline:12px; }
    .brand-copy small { display:none; }
    .kpi-grid { grid-template-columns:minmax(0,1fr); }
    .mb-farm-tools { grid-template-columns:minmax(0,1fr); }
    table.data.responsive-table td { display:block; }
    table.data.responsive-table td::before { display:block; margin-bottom:4px; }
}

/* ========================================================================== 
   Identidade 3.2 — abertura, hero fotográfico e crédito de desenvolvimento
   ========================================================================== */
.mb-opening {
    position:fixed;
    inset:0;
    z-index:999;
    display:grid;
    place-items:center;
    padding:24px;
    background:#ead79c;
    animation:mb-opening-exit .48s ease 1.72s forwards;
}
.mb-intro-seen .mb-opening { display:none; }
.mb-opening-inner { display:grid; justify-items:center; gap:10px; text-align:center; animation:mb-opening-logo .65s ease both; }
.mb-opening-inner img { width:auto; height:auto; max-width:min(280px,72vw); max-height:150px; object-fit:contain; }
.mb-opening-inner strong { color:#392820; font-size:clamp(1.45rem,5vw,2.2rem); letter-spacing:-.03em; }
.mb-opening-kicker { margin-top:2px; color:#4a352a; font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.mb-opening-loader { width:min(220px,64vw); margin-top:16px; display:grid; justify-items:center; gap:10px; }
.mb-opening-track { position:relative; width:100%; height:3px; overflow:hidden; border-radius:999px; background:rgba(74,53,42,.17); }
.mb-opening-track span { position:absolute; inset:0; border-radius:inherit; background:linear-gradient(90deg,#765638 0%,#b5842d 52%,#765638 100%); transform:translateX(-104%); animation:mb-opening-progress 1.48s cubic-bezier(.22,.61,.36,1) .12s forwards; }
.mb-opening-status { display:flex; align-items:center; justify-content:center; min-height:18px; color:#5a4134; }
.mb-opening-status span { margin-right:3px; font-size:.65rem; font-weight:750; letter-spacing:.11em; text-transform:uppercase; }
.mb-opening-status i { width:3px; height:3px; margin-left:3px; border-radius:50%; background:#765638; animation:mb-opening-dot .9s ease-in-out infinite; }
.mb-opening-status i:nth-child(3) { animation-delay:.14s; }
.mb-opening-status i:nth-child(4) { animation-delay:.28s; }
@keyframes mb-opening-logo { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes mb-opening-progress { 0% { transform:translateX(-104%); } 65% { transform:translateX(-24%); } 100% { transform:translateX(0); } }
@keyframes mb-opening-dot { 0%, 70%, 100% { opacity:.28; transform:translateY(0); } 35% { opacity:1; transform:translateY(-2px); } }
@keyframes mb-opening-exit { to { opacity:0; visibility:hidden; pointer-events:none; } }

.footer-developer { display:inline-flex; align-items:center; gap:10px; color:#cbbdb4; }
.footer-developer > span:first-child { display:grid; gap:1px; font-size:.72rem; line-height:1.25; }
.footer-developer strong { color:#fff; font-size:.79rem; }
.footer-developer-logo { display:grid; place-items:center; min-width:72px; height:32px; padding:4px 8px; border-radius:7px; background:#fff; }
.footer-developer-logo img { display:block; width:auto; max-width:88px; height:22px; object-fit:contain; }

@media (max-width: 980px) {
    .mb-home-hero { min-height:0; }
}

@media (max-width: 768px) {
    .mb-home-hero::before { inset:0; clip-path:none; background-position:center; opacity:.88; }
    .mb-home-hero::after {
        background:
            linear-gradient(180deg, rgba(61,41,29,.68) 0%, rgba(61,41,29,.32) 52%, rgba(61,41,29,.48) 100%),
            linear-gradient(90deg, rgba(86,57,39,.36), rgba(86,57,39,.05));
    }
    .mb-home-copy { text-shadow:0 2px 16px rgba(25,13,8,.32); }
    .mb-home-copy .btn { text-shadow:none; }
    .mb-home-search { background:rgba(255,255,255,.96); backdrop-filter:none; }
    .footer-developer { width:100%; justify-content:space-between; padding-top:10px; border-top:1px solid rgba(255,255,255,.08); }
}

@media (prefers-reduced-motion: reduce) {
    .mb-opening, .mb-opening-inner { animation-duration:.01ms; animation-delay:.65s; }
    .mb-opening-track span { animation-duration:.55s; animation-delay:0s; }
    .mb-opening-status i { animation:none; opacity:.6; }
}
