/* =========================================================================
   Cajamar TEM — Design System
   Formatação de conteúdo do sistema e do site público
   Desenvolvido por Cajamar NET
   Programador Responsável: Paulo Curti
   ========================================================================= */

:root {
    /* Paleta baseada em #229928 */
    --c-ink:        #0E0E0E;   /* preto do header — essencial para o logo */
    --c-ink-soft:   #1B1B1B;
    --c-text:       #0E1A0F;   /* quase preto com toque verde */
    --c-muted:      #4A6B4A;   /* sage médio */
    --c-cream:      #FFFFFF;   /* fundo branco */
    --c-cream-deep: #F2FAF2;   /* fundo levemente verde para seções alternadas */
    --c-line:       rgba(34, 153, 40, 0.13);
    --c-line-soft:  rgba(34, 153, 40, 0.06);

    --c-saffron:    #229928;   /* verde principal */
    --c-saffron-d:  #166B1A;   /* verde escuro para texto */
    --c-leaf:       #1A7A1E;   /* verde floresta — botões de ação */
    --c-leaf-d:     #0F5213;   /* verde profundo */
    --c-clay:       #28B030;   /* verde médio — hover / cards */
    --c-sky:        #1B7A60;   /* verde-teal */

    --c-whats:      #1FAF5C;
    --c-whats-d:    #168A45;

    --c-danger:     #B33A1F;   /* vermelho — exclusivo para ações destrutivas */

    /* Tipografia */
    --f-display: "Montserrat", "Segoe UI", Arial, sans-serif;
    --f-body:    "Montserrat", "Segoe UI", Arial, sans-serif;

    /* Espaços / raios */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;
    --shadow-sm: 0 1px 0 rgba(31,26,20,.06), 0 1px 2px rgba(31,26,20,.06);
    --shadow-md: 0 10px 30px -18px rgba(31,26,20,.45);
    --shadow-lg: 0 30px 80px -40px rgba(31,26,20,.55);

    --container: 1240px;
    --container-narrow: 880px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    background: var(--c-cream);
    color: var(--c-text);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-clay); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.skip-link {
    position: absolute; left: -1000px; top: 8px; background: var(--c-ink); color: var(--c-cream);
    padding: 10px 14px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Tipografia base ---------- */
h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-ink);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--c-text); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
    font-weight: 700; color: var(--c-saffron-d);
    padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px;
    background: rgba(34,153,40,.10);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow--dark { color: var(--c-leaf-d); background: rgba(30, 92, 58, .08); }
.eyebrow--invert { color: var(--c-saffron); background: rgba(34,153,40,.12); border-color: rgba(34,153,40,.45); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header__strip { background: var(--c-ink); color: var(--c-cream); position: relative; z-index: 101; }
.site-header__inner {
    display: flex; align-items: center; gap: 24px;
    padding-top: 14px; padding-bottom: 14px;
}
.site-header__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header__logo { height: 52px; width: auto; max-width: 220px; display: block; }

.primary-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.primary-nav ul { display: flex; gap: 22px; list-style: none; padding: 0; }
.primary-nav a {
    color: var(--c-cream); font-weight: 500; font-size: .94rem;
    padding: 6px 0; position: relative; letter-spacing: .01em;
}
.primary-nav a:hover { color: var(--c-saffron); }
.primary-nav a.is-active::after,
.primary-nav a:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--c-saffron); border-radius: 2px;
}
.primary-nav__cta {
    background: var(--c-saffron); color: var(--c-ink) !important;
    padding: 10px 16px !important; border-radius: var(--r-sm);
    font-weight: 700 !important; font-size: .88rem !important;
    transition: transform .2s ease, background .2s ease;
}
.primary-nav__cta:hover { background: #27B02E; transform: translateY(-1px); }
.primary-nav__cta::after { display: none !important; }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; flex-direction: column; gap: 6px; justify-content: center; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-cream); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-header__ticker {
    background: var(--c-saffron); color: var(--c-ink);
    overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.1);
}
.ticker-track {
    display: inline-flex; gap: 22px; padding: 6px 0;
    white-space: nowrap; animation: tick 36s linear infinite;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ticker-track > span { display: inline-block; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   Flash
   ========================================================================= */
.flash-stack {
    position: fixed; top: 24px; right: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
    width: 340px; max-width: calc(100vw - 48px);
    pointer-events: none;
}
.flash {
    display: flex; align-items: center; gap: 12px;
    background: #EBD48A; border: 1px solid rgba(0,0,0,.12); padding: 14px 16px;
    border-radius: var(--r-md); box-shadow: 0 4px 20px rgba(0,0,0,.12);
    position: relative; pointer-events: all;
    animation: flash-in .25s ease;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
.flash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-saffron); flex-shrink: 0; }
.flash--success { border-left: 4px solid var(--c-leaf); }
.flash--success .flash__dot { background: var(--c-leaf); }
.flash--error { border-left: 4px solid var(--c-clay); }
.flash--error .flash__dot { background: var(--c-clay); }
.flash--info { border-left: 4px solid var(--c-sky); }
.flash--info .flash__dot { background: var(--c-sky); }
.flash p { font-weight: 500; flex: 1; }
.flash__close { font-size: 1.3rem; line-height: 1; color: var(--c-muted); padding: 0 6px; }

/* =========================================================================
   Hero banner
   ========================================================================= */
.hero-banner {
    background: var(--c-ink);
    padding: 0;
    line-height: 0;
    width: 100%;
    overflow: hidden;
}
.hero-banner .container {
    max-width: 100%;
    padding: 0;
}
.hero-banner__img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* =========================================================================
   Hero search — centralizado, limpo, imediato
   ========================================================================= */
.hero-search {
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    padding: 36px 24px 32px;
    text-align: center;
    position: relative;
}
.hero-search::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-leaf-d), var(--c-saffron), var(--c-leaf-d));
}
.hero-search__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.hero-search__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .2em; font-size: .7rem;
    font-weight: 700; color: var(--c-saffron-d);
    padding: 5px 12px; border: 1px solid rgba(34,153,40,.3); border-radius: 999px;
    background: rgba(34,153,40,.06);
}
.hero-search__eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-saffron); flex-shrink: 0;
}

/* barra de busca */
.hero-search__form { width: 100%; }
.hero-search__bar {
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--r-sm);
    padding: 6px 6px 6px 22px;
    box-shadow: 0 4px 24px rgba(34,153,40,.10), 0 1px 4px rgba(0,0,0,.06);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hero-search__bar:focus-within {
    border-color: var(--c-saffron);
    box-shadow: 0 0 0 4px rgba(34,153,40,.12), 0 4px 24px rgba(34,153,40,.14);
}
.hero-search__icon {
    color: var(--c-muted); flex-shrink: 0; line-height: 0;
    transition: color .2s ease;
}
.hero-search__bar:focus-within .hero-search__icon { color: var(--c-saffron); }
.hero-search__bar input {
    flex: 1; border: 0; outline: 0; background: transparent;
    padding: 14px 14px; font-size: 1.05rem; font-family: var(--f-body);
    color: var(--c-text); min-width: 0;
}
.hero-search__bar input::placeholder { color: var(--c-muted); }
.hero-search__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-saffron); color: #fff;
    border: 0; border-radius: var(--r-sm); padding: 14px 24px;
    font-family: var(--f-body); font-weight: 700; font-size: .95rem;
    cursor: pointer; flex-shrink: 0; white-space: nowrap;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hero-search__btn:hover {
    background: var(--c-leaf);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,153,40,.35);
}

/* pills de acesso rápido */
.hero-search__quick {
    display: flex; flex-wrap: wrap; gap: 8px 10px;
    align-items: center; justify-content: center;
    font-size: .82rem; color: var(--c-muted);
}
.hero-search__quick > span {
    font-weight: 600; color: var(--c-muted);
    letter-spacing: .04em; font-size: .78rem;
    text-transform: uppercase;
}
.hero-search__quick a {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--c-cream-deep); border: 1px solid var(--c-line);
    color: var(--c-text); padding: 7px 14px; border-radius: var(--r-sm);
    font-weight: 600; font-size: .83rem;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease;
}
.hero-search__quick a:hover {
    background: var(--c-saffron); border-color: var(--c-saffron); color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .hero-search { padding: 28px 16px 24px; }
    .hero-search__bar { padding: 4px 4px 4px 16px; }
    .hero-search__bar input { font-size: .95rem; padding: 12px 10px; }
    .hero-search__btn { padding: 12px 18px; font-size: .88rem; }
    .hero-search__btn svg { display: none; }
}

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: 80px 0; position: relative; }
.section--cream { background: var(--c-cream-deep); }
.section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 36px;
}
.section__title { max-width: 720px; margin-top: 8px; }
.section__link {
    white-space: nowrap; font-weight: 700; color: var(--c-leaf-d);
    border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.section__link:hover { color: var(--c-clay); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border-radius: var(--r-sm);
    font-weight: 700; font-size: .92rem; letter-spacing: .01em;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 24px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: .82rem; }

.btn--solid { background: var(--c-ink); color: var(--c-cream); }
.btn--solid:hover { background: var(--c-ink-soft); color: var(--c-cream); }
.btn--invert { background: var(--c-saffron); color: var(--c-ink); }
.btn--invert:hover { background: #FFC25B; color: var(--c-ink); }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }
.btn--link-invert { color: var(--c-saffron); }
.btn--link-invert:hover { color: #27B02E; }
.btn--whats { background: var(--c-whats); color: #fff; }
.btn--whats:hover { background: var(--c-whats-d); color: #fff; }
.btn--danger { background: var(--c-danger); color: #fff; }
.btn--danger:hover { background: #7E2A14; color: #fff; }

/* =========================================================================
   Category grid
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cat-grid--full { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card {
    position: relative; overflow: hidden;
    padding: 22px 18px; border-radius: var(--r-md);
    background: #fff; border: 1px solid var(--c-line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 132px;
}
.cat-card:hover {
    transform: translateY(-3px); border-color: var(--c-ink);
    box-shadow: var(--shadow-md);
}
.cat-card__bg {
    position: absolute; right: -10px; top: -50px;
    font-family: var(--f-display); font-weight: 900; font-size: 9rem; line-height: 1;
    color: rgba(31,26,20,.06); user-select: none;
}
.cat-card:nth-child(3n) .cat-card__bg { color: rgba(34,153,40,.08); }
.cat-card:nth-child(5n) .cat-card__bg { color: rgba(34,153,40,.15); }
.cat-card:nth-child(7n) .cat-card__bg { color: rgba(194,78,31,.12); }
.cat-card__name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; color: var(--c-ink); position: relative; }
.cat-card__count { font-size: .78rem; color: var(--c-muted); margin-top: 4px; position: relative; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* =========================================================================
   Listing cards
   ========================================================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

.listing-card {
    background: #fff; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--c-line); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-ink); }
.listing-card.is-featured { border-color: var(--c-saffron); box-shadow: 0 0 0 3px rgba(34,153,40,.12); }

.listing-card__media {
    position: relative; aspect-ratio: 4 / 3; background: var(--c-cream-deep); display: block; overflow: hidden;
}
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-card__media img { transform: scale(1.04); }
.listing-card__placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    font-family: var(--f-display); font-weight: 800; font-size: 5rem; color: var(--c-ink);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(34,153,40,.18), transparent 50%),
        radial-gradient(120% 80% at 100% 100%, rgba(34,153,40,.13), transparent 50%),
        var(--c-cream-deep);
}
.listing-card__chip {
    position: absolute; top: 12px; left: 12px;
    background: rgba(14,14,14,.85); color: var(--c-cream);
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.listing-card__star {
    position: absolute; top: 12px; right: 12px;
    background: var(--c-saffron); color: var(--c-ink);
    font-size: .72rem; font-weight: 800; padding: 6px 10px; border-radius: 999px;
}
.listing-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.listing-card__type { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--c-leaf-d); }
.listing-card__title { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; }
.listing-card__title a { color: var(--c-ink); }
.listing-card__title a:hover { color: var(--c-clay); }
.listing-card__excerpt { color: var(--c-muted); font-size: .93rem; flex: 1; }
.listing-card__meta { font-size: .82rem; color: var(--c-muted); }
.listing-card__loc { display: inline-flex; align-items: center; gap: 6px; }
.listing-card__actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: nowrap; }
.listing-card__actions .btn { padding: 7px 10px; font-size: .78rem; flex: 1; justify-content: center; }

/* =========================================================================
   Banner CTA
   ========================================================================= */
.banner-cta {
    background: var(--c-ink); color: var(--c-cream); padding: 80px 0; position: relative; overflow: hidden;
}
.banner-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1200px 600px at 110% -10%, rgba(34,153,40,.22), transparent 60%);
}
.banner-cta__inner {
    position: relative; display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 56px; align-items: center;
}
.banner-cta__copy h2 { color: var(--c-cream); margin: 12px 0 14px; }
.banner-cta__copy p { color: rgba(250,246,241,.78); max-width: 540px; }
.banner-cta__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.banner-cta__list { display: flex; flex-direction: column; gap: 14px; }
.banner-cta__row {
    display: grid; grid-template-columns: 56px 1fr 1fr; align-items: center; gap: 18px;
    padding: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-md);
}
.banner-cta__row span {
    font-family: var(--f-display); font-weight: 900; font-size: 2.4rem; color: var(--c-saffron);
}
.banner-cta__row strong { font-family: var(--f-display); font-size: 1.4rem; color: var(--c-cream); }
.banner-cta__row em { font-style: normal; color: rgba(250,246,241,.7); font-size: .92rem; }

/* =========================================================================
   Page hero (interno)
   ========================================================================= */
.page-hero {
    background:
        linear-gradient(180deg, var(--c-cream-deep), var(--c-cream));
    padding: 56px 0 36px; position: relative;
    border-bottom: 1px solid var(--c-line);
}
.page-hero__title { margin: 14px 0 12px; font-size: clamp(1.7rem, 3.4vw, 3rem); }
.page-hero__title em { font-style: italic; color: var(--c-leaf-d); }
.page-hero__lead { color: var(--c-muted); max-width: 700px; font-size: 1.08rem; }
.page-hero__meta { margin-top: 14px; font-size: .9rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.crumbs { font-size: .82rem; color: var(--c-muted); margin-bottom: 10px; }
.crumbs a { color: var(--c-muted); border-bottom: 1px dashed transparent; }
.crumbs a:hover { color: var(--c-ink); border-bottom-color: var(--c-ink); }

/* =========================================================================
   Listing page
   ========================================================================= */
.listing-hero { padding: 32px 0 16px; }
.listing-hero__row { display: flex; gap: 28px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.listing-hero__copy { max-width: 720px; }
.listing-hero__title { margin-top: 12px; }
.listing-hero__lead { color: var(--c-muted); font-size: 1.08rem; margin-top: 10px; }
.listing-hero__loc { margin-top: 14px; display: flex; gap: 18px; color: var(--c-muted); font-size: .9rem; }
.listing-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--c-cream-deep); color: var(--c-ink);
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
    margin-right: 8px;
}
.chip--star { background: var(--c-saffron); }
.chip--empresa { background: var(--c-cream-deep); }
.chip--autonomo { background: #DDEAE0; color: var(--c-leaf-d); }
.chip--vaga { background: #DCE9F2; color: var(--c-sky); }
.chip--servico { background: #F1E0D4; color: var(--c-clay); }
.chip--loja { background: #C8EDCA; color: #166B1A; }
.chip--profissional { background: #E5E2D2; color: var(--c-leaf-d); }

.listing-body { padding: 24px 0 64px; }
.listing-body__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: flex-start; }
.listing-body__main { display: flex; flex-direction: column; gap: 28px; }

.listing-gallery {
    background: #fff; border-radius: var(--r-md); padding: 14px; border: 1px solid var(--c-line);
}
.listing-gallery__main {
    display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); background: var(--c-cream-deep);
}
.listing-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--f-display); font-size: 6rem; font-weight: 800; color: var(--c-ink); background: var(--c-cream-deep); }
.listing-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.listing-gallery__thumbs a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); border: 1px solid var(--c-line); }
.listing-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.listing-gallery__thumbs a:hover img { transform: scale(1.05); }

.prose { background: #fff; padding: 28px; border-radius: var(--r-md); border: 1px solid var(--c-line); }
.prose h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--c-ink); }
.prose p { color: var(--c-text); line-height: 1.7; }
.prose--wide h2 { font-size: 1.8rem; margin-top: 28px; }
.prose--wide h2:first-child { margin-top: 0; }
.prose__cta { margin-top: 45px; }

.map { background: #fff; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 12px; }
.map__title { font-size: 1.4rem; }
.map__addr { color: var(--c-muted); }
.map__frame { aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--c-line); }
.map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.side-card { background: #fff; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--c-line); margin-bottom: 16px; }
.side-card h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 12px; }
.side-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-card__list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--c-line); }
.side-card__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-card__list span { color: var(--c-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.side-card__list a { font-weight: 600; text-align: right; word-break: break-all; }
.side-card--quiet { background: var(--c-cream-deep); border-style: dashed; }
.side-card--dark { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }
.side-card--dark h3 { color: var(--c-saffron); }
.side-card--dark p { color: rgba(250,246,241,.78); margin-bottom: 14px; }
.side-link { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-ink); border-bottom: 2px solid var(--c-leaf); }
.side-link:hover { color: var(--c-clay); border-color: var(--c-clay); }

/* =========================================================================
   Search bar
   ========================================================================= */
.search-bar { margin-top: 26px; display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: 999px; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); max-width: 720px; }
.search-bar input { flex: 1; border: 0; outline: 0; padding: 12px 18px; background: transparent; font-size: 1rem; border-radius: 999px; }
.search-bar .btn { border-radius: var(--r-sm); }

/* =========================================================================
   Forms
   ========================================================================= */
.form-card {
    background: #fff; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--c-line);
    box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 26px;
}
.form-card__set { display: flex; flex-direction: column; gap: 16px; border: 0; padding: 0; }
.form-card__set legend {
    font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--c-ink);
    padding-bottom: 8px; border-bottom: 2px solid var(--c-line); width: 100%; margin-bottom: 6px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--c-ink); }
.field input, .field select, .field textarea {
    background: var(--c-cream); border: 1px solid var(--c-line);
    border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .2s ease, background .2s ease;
    color: var(--c-ink); font-family: inherit; font-size: .96rem;
    line-height: 1.4; width: 100%;
}
.field select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23229928' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    cursor: pointer;
}
.field select::-ms-expand { display: none; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; background-color: #fff; border-color: var(--c-ink);
    box-shadow: 0 0 0 3px rgba(34,153,40,.22);
}
.field small { color: var(--c-muted); font-size: .78rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-3__span-2 { grid-column: span 2; }

.form-card__captcha { display: flex; justify-content: flex-start; }
.form-card__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* Contato side */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.contact-aside { background: var(--c-cream-deep); padding: 28px; border-radius: var(--r-md); border: 1px dashed var(--c-line); }
.contact-aside h3 { margin-bottom: 14px; }
.contact-aside ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.contact-aside li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--c-line); }
.contact-aside li:last-child { border-bottom: 0; }
.contact-aside strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); }
.contact-aside__note { color: var(--c-muted); font-size: .9rem; line-height: 1.6; }

/* =========================================================================
   Pagination
   ========================================================================= */
.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span {
    display: inline-grid; place-items: center; min-width: 40px; height: 40px;
    padding: 0 12px; border-radius: 999px; background: #fff;
    border: 1px solid var(--c-line); font-weight: 700; font-size: .9rem; color: var(--c-ink);
}
.pagination li a:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }
.pagination li.is-active a, .pagination li.is-active span { background: var(--c-saffron); border-color: var(--c-saffron); color: var(--c-ink); }
.pagination li.is-disabled span { opacity: .4; cursor: not-allowed; }
.pagination li.is-gap span { background: transparent; border: 0; }

/* =========================================================================
   Empty + Features
   ========================================================================= */
.empty { color: var(--c-muted); text-align: center; padding: 40px 12px; }
.empty--block { background: #fff; border: 1px dashed var(--c-line); border-radius: var(--r-md); padding: 60px 24px; }
.empty h3 { margin-bottom: 8px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature {
    background: #fff; padding: 28px; border-radius: var(--r-md); border: 1px solid var(--c-line);
    display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c-saffron); }
.feature:nth-child(3n)::before { background: var(--c-leaf); }
.feature:nth-child(5n)::before { background: var(--c-clay); }
.feature__num { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.feature h3 { font-family: var(--f-display); font-size: 1.3rem; margin-top: 4px; }
.feature p { color: var(--c-muted); }

.cta-row { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--c-ink); color: var(--c-cream); padding: 64px 0 0; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-footer__brand p { color: rgba(250,246,241,.7); margin-top: 14px; max-width: 360px; }
.site-footer__logo { height: 56px; }
.site-footer__city { font-family: var(--f-display); font-style: normal; color: var(--c-saffron) !important; margin-top: 12px !important; font-size: .88rem; }
.site-footer__links h4 { font-family: var(--f-display); color: var(--c-cream); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer__links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: rgba(250,246,241,.75); font-size: .92rem; }
.site-footer__links a:hover { color: var(--c-saffron); }

.site-footer__base {
    border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 18px 0; font-size: .82rem; color: rgba(250,246,241,.55);
}
.site-footer__base .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
    .listing-body__grid { grid-template-columns: 1fr; }
    .banner-cta__inner { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed; inset: 88px 0 auto 0; background: var(--c-ink);
        flex-direction: column; align-items: stretch; padding: 24px;
        gap: 18px; transform: translateY(-200%); transition: transform .25s ease;
        max-height: calc(100vh - 88px); overflow: auto; z-index: 99;
        display: flex;
    }
    .primary-nav.is-open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; gap: 6px; }
    .primary-nav ul a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
    .primary-nav ul a.is-active::after, .primary-nav ul a:hover::after { display: none; }
    .primary-nav__cta { display: none; }

    .section { padding: 60px 0; }
    .section__head { flex-direction: column; align-items: flex-start; }

    .form-card { padding: 22px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-3__span-2 { grid-column: span 1; }
}
@media (max-width: 540px) {
    .site-header__logo { height: 36px; max-width: 160px; }
    .site-header__inner { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
    .hero__search-row { flex-direction: column; padding: 10px; border-radius: var(--r-lg); }
    .hero__search-row input { width: 100%; padding: 12px 8px; }
    .hero__search .btn { width: 100%; }
    .hero__stats { grid-template-columns: 1fr; gap: 12px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
