@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

/* Estilos da página Domilar. Você pode alterar cores, fontes e tamanhos aqui. */
:root {
  --green: #2b5143;
  --green-dark: #203e32;
  --green-light: #e8eee5;
  --orange: #c17b58;
  --cream: #fbfaf6;
  --paper: #fffefa;
  --text: #344a3d;
  --muted: #778279;
  --border: #e5e5dc;
  --serif: "Manrope", "Trebuchet MS", sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(100% - 56px, 1240px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Cabeçalho e marca */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--border); background: var(--cream); }
.header-content { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px 13px 13px 4px; background: var(--green); color: #fffaf0; font-size: 27px; line-height: 1; }
.brand strong, .footer-brand strong { display: block; color: var(--green); font-family: var(--serif); font-size: 25px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.brand-dot, .footer-brand strong span { color: var(--orange); }
.brand small, .footer-brand small { display: block; margin-top: 5px; color: #718076; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 29px; }
.main-nav a, .main-nav button { border: 0; background: none; color: #53645a; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.main-nav a:hover, .main-nav button:hover { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; padding: 12px 16px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button-outline { border: 1px solid #b6c2b7 !important; color: var(--green) !important; }
.button-outline:hover { background: var(--green) !important; color: #fffdf6 !important; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--green); font-size: 19px; cursor: pointer; }

/* Apresentação e busca */
.hero { padding: 52px 0 0; background: radial-gradient(ellipse at 80% 20%, rgba(201,164,112,.14), transparent 32%), linear-gradient(115deg, #f5f2e9, #f7f3ea 53%, #e8eee5); }
.hero-content { display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: 48px; min-height: 390px; padding-bottom: 34px; }
.hero-copy { max-width: 600px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #b07454; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(193,123,88,.14); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 { max-width: 600px; margin: 17px 0 0; color: #264639; font-family: var(--serif); font-size: clamp(42px, 5vw, 61px); font-weight: 700; letter-spacing: -2.2px; line-height: 1.08; }
.hero-description { max-width: 465px; margin: 18px 0 0; color: #5f6d64; font-size: 15px; line-height: 1.8; }
.trust-note { display: flex; align-items: center; gap: 9px; margin: 25px 0 0; color: #64746a; font-size: 12px; font-weight: 600; }
.trust-note span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #66816b; color: white; font-weight: 800; }
.hero-photo-wrap { position: relative; width: min(100%, 485px); height: 350px; justify-self: center; }
.hero-photo { position: absolute; inset: 8px 18px 18px 20px; width: calc(100% - 38px); height: 322px; border-radius: 160px 160px 18px 18px; object-fit: cover; box-shadow: 0 22px 48px rgba(41,67,53,.15); }
.hero-photo-wrap::before { position: absolute; top: 0; right: -15px; width: 290px; height: 290px; border: 1px solid rgba(93,128,102,.26); border-radius: 50%; content: ""; }
.photo-caption { position: absolute; z-index: 1; bottom: 0; left: 0; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); box-shadow: 0 9px 28px rgba(39,60,48,.11); }
.caption-pin { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f7eee6; color: #bd7858; font-size: 21px; }
.photo-caption strong, .photo-caption small { display: block; }
.photo-caption strong { color: #2e5143; font-size: 12px; }
.photo-caption small { margin-top: 3px; color: #778177; font-size: 10px; }
.photo-note { position: absolute; z-index: 1; right: -2px; bottom: 39px; padding: 12px 14px; border-radius: 9px; background: #315444; box-shadow: 0 8px 22px rgba(34,66,50,.2); color: #fffaf0; font-size: 10px; line-height: 1.5; }
.search-container { position: relative; z-index: 2; padding-bottom: 30px; }
.search-panel { padding: 22px 25px 24px; border: 1px solid #e8e4d9; border-radius: 12px; background: var(--paper); box-shadow: 0 15px 45px rgba(50,61,48,.09); }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.search-heading h2 { margin: 0; color: #2a4c3e; font-family: var(--serif); font-size: 16px; }
.search-heading p { margin: 4px 0 0; color: #79837b; font-size: 11px; }
.operation-toggle { display: flex; gap: 3px; padding: 4px; border-radius: 9px; background: #f2f1e9; }
.operation-button { padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: #727d73; font-size: 11px; font-weight: 700; cursor: pointer; }
.operation-button.active { background: #315444; box-shadow: 0 2px 5px rgba(35,68,51,.16); color: #fffdf6; }
.filter-row { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr auto; align-items: end; gap: 20px; }
.filter-field { display: grid; min-width: 0; gap: 8px; }
.filter-field > span { color: #738076; font-size: 10px; font-weight: 700; }
.filter-field select, .filter-field input { width: 100%; min-height: 38px; padding: 0 8px; border: 0; border-bottom: 1px solid #e7e7de; outline-color: #91a594; background: transparent; color: #314c3d; font-size: 12px; }
.filter-field input::placeholder { color: #a0a99f; }
.button-search { min-height: 44px; background: var(--orange); color: #fffaf4; white-space: nowrap; }
.button-search:hover { transform: translateY(-1px); background: #a86443; }
.button-search span { font-size: 19px; line-height: .6; }

/* Lista de imóveis */
.listings-section { padding-top: 66px; padding-bottom: 66px; scroll-margin-top: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow-line { display: inline-block; width: 36px; height: 1px; background: #d4a38c; }
.section-heading h2 { margin: 10px 0 0; color: #264639; font-family: var(--serif); font-size: clamp(30px, 4vw, 41px); letter-spacing: -1.2px; }
.section-description { margin: 7px 0 0; color: #69766d; font-size: 14px; }
.results-tools { display: flex; align-items: center; gap: 18px; }
.results-count { margin: 0; color: #758077; font-size: 12px; white-space: nowrap; }
.sort-control { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e1e4dc; border-radius: 7px; color: #758177; font-size: 11px; }
.sort-control select { max-width: 132px; border: 0; outline: 0; background: transparent; color: #405649; font-size: 11px; font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.listing-card { overflow: hidden; border: 1px solid #e6e5dc; border-radius: 11px; background: var(--paper); box-shadow: 0 3px 13px rgba(37,57,42,.035); transition: transform .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(35,55,46,.11); }
.listing-card[hidden] { display: none; }
.listing-image-wrap { position: relative; height: 205px; overflow: hidden; background: #e8e8df; }
.listing-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.listing-card:hover .listing-image-wrap img { transform: scale(1.04); }
.listing-badge { position: absolute; top: 13px; left: 13px; padding: 7px 10px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.sale-badge { background: #edf1e9; color: #315544; }
.rent-badge { background: #f7eee5; color: #966447; }
.favorite-button { position: absolute; top: 11px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,253,248,.94); color: #355143; font-size: 22px; cursor: pointer; }
.favorite-button.is-favorite { color: #bd7054; }
.listing-content { padding: 15px 16px 14px; }
.listing-location { display: flex; align-items: center; gap: 6px; margin: 0; color: #768177; font-size: 11px; font-weight: 600; }
.listing-location span { color: #c1c4bb; }
.listing-price { display: flex; align-items: baseline; gap: 6px; margin: 11px 0 0; color: #294b3c; }
.listing-price strong { font-family: var(--serif); font-size: 23px; font-weight: 800; letter-spacing: -.7px; }
.listing-price span { color: #78847a; font-size: 11px; }
.listing-facts { min-height: 39px; margin: 10px 0 0; padding-bottom: 12px; border-bottom: 1px solid #efeee8; color: #68766c; font-size: 10px; line-height: 1.8; }
.listing-facts span { padding-inline: 2px; color: #a3aa9e; }
.listing-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.listing-meta { overflow: hidden; color: #91998f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.details-button { border: 0; padding: 5px 0 5px 5px; background: transparent; color: #b36e4c; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.details-button:hover { color: #814c34; }
.curation-note { margin: 22px 0 0; color: #859087; font-size: 11px; }
.empty-state { min-height: 290px; padding: 50px 20px; border: 1px dashed #cbd3c8; border-radius: 12px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state > span { color: #607c68; font-size: 40px; }
.empty-state h3 { margin: 12px 0 5px; color: #315444; font-family: var(--serif); font-size: 20px; }
.empty-state p { margin: 0 0 17px; color: #728076; font-size: 13px; }

/* Bairros, atendimento e rodapé */
.neighborhood-section { background: #284b3c; color: #f3f1e6; }
.neighborhood-inner { display: grid; min-height: 290px; grid-template-columns: .9fr 1fr; align-items: center; gap: 60px; padding-block: 52px; }
.light-eyebrow { color: #d2aa82; }
.neighborhood-copy h2, .advertiser-copy h2 { margin: 14px 0 11px; color: #faf6eb; font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1.12; }
.neighborhood-copy > p:not(.eyebrow), .advertiser-copy > p:not(.eyebrow) { max-width: 400px; margin: 0; color: #d2ddd2; font-size: 13px; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 20px; color: #e7c69e; font-size: 12px; font-weight: 700; text-decoration: none; }
.neighborhood-tags { display: flex; flex-wrap: wrap; gap: 11px; max-width: 470px; }
.neighborhood-tags button { display: inline-flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid rgba(234,238,223,.27); border-radius: 7px; background: rgba(247,246,235,.05); color: #f3f1e6; font-size: 11px; cursor: pointer; }
.neighborhood-tags button:hover { border-color: #d5b486; background: rgba(247,246,235,.13); }
.neighborhood-tags button span { color: #d5b486; }
.help-section { display: flex; align-items: center; gap: 22px; padding-block: 45px; }
.help-icon { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid #d7dfd4; border-radius: 14px; background: #f0f2e9; color: #4f7159; font-size: 21px; }
.help-copy { flex: 1; }
.help-copy h2 { margin: 6px 0 4px; color: #294a3c; font-size: 24px; letter-spacing: -.4px; }
.help-copy > p:last-child { margin: 0; color: #77837a; font-size: 12px; }
.help-phone { display: flex; flex-direction: column; gap: 3px; padding-left: 27px; border-left: 1px solid #dedfd7; text-decoration: none; }
.help-phone span { color: #7c877d; font-size: 10px; }
.help-phone strong { color: #2e5141; font-family: var(--serif); font-size: 21px; }
.help-phone small { color: #999e95; font-size: 9px; }
.advertiser-section { border-top: 1px solid #e6e3d8; background: #f0ede3; }
.advertiser-inner { display: flex; min-height: 195px; align-items: center; gap: 20px; padding-block: 30px; }
.advertiser-emblem { display: grid; width: 55px; height: 55px; flex: 0 0 auto; place-items: center; border-radius: 17px 17px 17px 4px; background: #bd7d5b; color: #f4ecde; font-size: 31px; }
.advertiser-copy { flex: 1; }
.advertiser-copy h2 { margin: 9px 0 7px; color: #294a3c; font-size: 27px; }
.advertiser-copy > p:not(.eyebrow) { color: #6f7c71; }
.advertiser-button { background: #315444; color: #fffaf1; }
.advertiser-button:hover, .dialog-call:hover { transform: translateY(-1px); background: #203e32; }
.site-footer { background: var(--green-dark); color: #dde4d9; }
.footer-top { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { text-decoration: none; }
.footer-brand strong { color: #fbf5e8; }
.footer-brand small { color: #adbcaf; font-size: 9px; letter-spacing: .4px; text-transform: none; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { color: #d1dbd0; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: #e5c092; }
.footer-local { color: #b1c1b2; font-size: 10px; }
.footer-bottom { border-top: 1px solid rgba(236,241,229,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 18px; padding-block: 14px; color: #a2b1a4; font-size: 9px; }
.mobile-bottom { display: none; }

/* Janela de aviso */
.notice-dialog { position: fixed; width: min(410px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--cream); box-shadow: 0 24px 80px rgba(13,35,24,.25); color: var(--text); }
.notice-dialog::backdrop { background: rgba(24,42,33,.52); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #efefe7; color: #607064; font-size: 23px; cursor: pointer; }
.dialog-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #e9eee5; color: #315444; font-size: 19px; }
.notice-dialog h2 { margin: 15px 0 8px; color: #294a3c; font-family: var(--serif); font-size: 25px; }
.notice-dialog p { color: #68756c; font-size: 13px; line-height: 1.7; }
.dialog-call { margin-top: 8px; background: #315444; color: #fffaf1; }

@media (max-width: 980px) {
  .container { width: min(100% - 40px, 1240px); }
  .hero-content { gap: 24px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .button-search { grid-column: 1 / -1; }
  .listing-grid { gap: 15px; }
  .listing-image-wrap { height: 180px; }
  .neighborhood-inner { gap: 30px; }
  .footer-local { display: none; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 36px, 1240px); }
  .header-content { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; right: 14px; left: 14px; display: none; align-items: stretch; gap: 0; padding: 8px; border: 1px solid #e0e4da; border-radius: 12px; background: var(--paper); box-shadow: 0 15px 35px rgba(40,59,45,.14); }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav a, .main-nav button { padding: 13px; text-align: left; }
  .main-nav .button-outline { justify-content: center; margin-top: 5px; text-align: center; }
  .hero { padding-top: 40px; }
  .hero-content { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .hero h1 { max-width: 560px; font-size: clamp(40px, 9vw, 55px); }
  .hero-photo-wrap { max-width: 460px; height: 312px; }
  .hero-photo { height: 274px; }
  .search-panel { padding: 18px 16px; }
  .search-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .results-tools { width: 100%; justify-content: space-between; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-bottom { align-items: flex-start; flex-direction: column; }
  .neighborhood-inner { grid-template-columns: 1fr; gap: 25px; padding-block: 42px; }
  .neighborhood-copy h2 { max-width: 390px; font-size: 32px; }
  .help-section { flex-wrap: wrap; gap: 14px; padding-block: 35px; }
  .help-copy { flex-basis: calc(100% - 66px); }
  .help-phone { margin-left: 60px; padding-left: 0; border-left: 0; }
  .advertiser-inner { flex-wrap: wrap; align-items: flex-start; gap: 15px; padding-block: 28px; }
  .advertiser-copy { flex-basis: calc(100% - 72px); }
  .advertiser-copy h2 { font-size: 24px; }
  .advertiser-button { margin-left: 70px; }
  .footer-top { flex-wrap: wrap; padding-block: 24px; }
  .footer-links { gap: 14px; }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
  .mobile-bottom { position: fixed; z-index: 4; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe4da; background: rgba(251,250,246,.96); backdrop-filter: blur(8px); }
  .mobile-bottom a { color: #345545; font-size: 11px; font-weight: 700; text-decoration: none; }
  .site-footer { padding-bottom: 48px; }
}
@media (max-width: 480px) {
  .hero-photo-wrap { height: 285px; }
  .hero-photo { inset: 5px 14px 17px 15px; width: calc(100% - 29px); height: 245px; }
  .photo-caption { padding: 9px 11px; }
  .photo-note { right: -4px; bottom: 27px; padding: 9px 10px; font-size: 9px; }
  .filter-row { grid-template-columns: 1fr; gap: 12px; }
  .button-search { grid-column: auto; }
  .listing-grid { grid-template-columns: 1fr; gap: 16px; }
  .listing-image-wrap { height: 218px; }
  .listing-bottom { align-items: center; flex-direction: row; }
  .neighborhood-tags { gap: 8px; }
  .neighborhood-tags button { gap: 9px; padding: 10px 11px; }
  .footer-top { align-items: flex-start; }
  .footer-links { width: 100%; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- BOTOES COMPRAR / ALUGAR --- */
.operation-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px; /* Mais espaço entre os botões e o form */
}

.operation-toggle {
  display: inline-flex;
  background-color: #e9ecef; /* Cinza mais escuro e imponente (antes era #f1f3f5) */
  border-radius: 10px;
  padding: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* Efeito de profundidade */
}

.operation-button {
  cursor: pointer;
  padding: 10px 32px; /* Mais largo e alto */
  border-radius: 8px;
  font-weight: 700; /* Fonte mais grossa */
  font-size: 15px;
  color: #495057; 
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  margin: 0;
}

.operation-button:hover:not(.active) {
  color: #1b7a68; /* Fica verde ao passar o mouse */
}

/* O botão selecionado */
.operation-button.active {
  background-color: #1b7a68; /* Verde forte */
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(27, 122, 104, 0.3); /* Sombra verde charmosa */
  transform: scale(1.02); /* Dá um leve destaque de tamanho */
}

/* --- ESTILO DOS CAMPOS E INPUTS --- */
.multi-select-wrap {
    position: relative;
}

.multi-label-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    height: 48px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: #495057;
    outline: none;
    transition: border-color 0.2s;
}

.input-with-icon input:focus {
    border-color: #1b7a68;
    box-shadow: 0 0 0 3px rgba(27, 122, 104, 0.1);
}

/* --- DROPDOWN DE TIPOS --- */
.multi-select-header {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #495057;
    user-select: none;
}

.multi-select-header:hover {
    border-color: #1b7a68;
}

.multi-select-header .arrow {
    font-size: 10px;
    color: #adb5bd;
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
    padding: 5px 0;
}

.multi-option {
    display: flex;
    align-items: center;
    padding: 14px 18px; /* Bom para o dedo */
    cursor: pointer;
    font-size: 15px;
    color: #495057;
    margin: 0;
    transition: background 0.2s;
}

.multi-option:hover {
    background: #f8f9fa;
}

.multi-option input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #1b7a68;
    cursor: pointer;
}

/* --- AUTOCOMPLETE ROBUSTO (CORRIGIDO) --- */
.ui-autocomplete {
    position: absolute;
    z-index: 1050;
    cursor: default;
    padding: 5px 0;
    margin-top: 5px;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- AUTOCOMPLETE JQUERY UI --- */
.ui-autocomplete {
    position: absolute;
    z-index: 1050;
    cursor: default;
    padding: 0;
    margin-top: 5px;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item {
    padding: 0;
    margin: 0;
}

/* AUMENTAMOS O PADDING AQUI (de 14px 18px para 18px 20px) */
.ui-menu-item > div {
    padding: 16px 20px; 
    font-size: 18px;
    color: #495057;
    cursor: pointer;
    margin: 0;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s;
    line-height: 2.0;
}

.ui-menu-item:last-child > div {
    border-bottom: none;
}

/* O Nome Principal (em destaque) */
.ui-autocomplete strong {
    color: #2c3346; /* Preto/grafite */
    font-weight: 700;
}

/* O Detalhe (Cidade/UF) - menorzinho e cinza */
.auto-detalhe {
    font-size: 13px;
    color: #6b7285; 
    margin-left: 4px;
    font-weight: normal;
}

/* Hover e seleção */
.ui-state-active, 
.ui-widget-content .ui-state-active {
    margin: 0 !important;
    background: #f8f9fa !important;
    border: none !important;
}

.ui-state-active strong {
    color: #1b7a68 !important;
}

/* Estilo de erro para os campos */
.input-error {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.text-error {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Impede que a linha de 'não encontrado' fique com fundo cinza ao passar o mouse */
.ui-menu-item > div[style*="text-align: center"] {
    cursor: default !important;
    background: transparent !important;
}

/* =========================================================
   BOTÕES QUADRADOS DO HEADER (ÍCONE + TEXTO)
   ========================================================= */
.icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #53645a; /* Cor de texto padrão do seu menu */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    /* ... resto do CSS */
}

.icon-btn i {
    font-size: 18px;
    color: #b07454; /* Um tom de laranja/marrom para o ícone ficar visível */
}

.icon-btn:hover {
    background: #f4f1ea; /* Fundo sutil ao passar o mouse */
    border-color: var(--border);
    color: var(--green);
    transform: translateY(-1px);
}

.icon-btn:hover i {
    color: var(--green);
}

/* Ajuste para telas menores (celular) */
@media (max-width: 700px) {
    .icon-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .icon-btn i {
        font-size: 20px;
    }
}
/* Botões do Header */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e1e4dc !important; /* Força a borda */
    background: #fff !important;
    color: #53645a !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.icon-btn:hover {
    border-color: var(--green) !important;
    color: var(--green) !important;
}

.icon-btn i {
    font-size: 18px;
    color: #b07454;
}

/* Ajuste no mobile */
@media (max-width: 700px) {
    .icon-btn {
        width: 100%;
        justify-content: flex-start;
    }
}