:root {
    --ink: #18312b;
    --muted: #718487;
    --line: #e5eeee;
    --surface: #fff;
    --soft: #edf7f5;
    --green: #2a9a8c;
    --green-dark: #1A726A;
    --lime: #8fd6c6;
    --orange: #ff8b55;
    --shadow: 0 20px 60px rgba(18, 54, 45, .13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { overflow: hidden; color: var(--ink); background: #e2eeeb; font-family: "Inter", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { display: flex; height: 100dvh; padding: 12px; gap: 12px; }
.sidebar { position: relative; z-index: 1001; display: flex; flex: 0 0 390px; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.75); border-radius: 24px; box-shadow: var(--shadow); scrollbar-color: #c9dfe1 transparent; scrollbar-width: thin; }
.brand-area { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 15px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 165px; max-width: 100%; height: 59px; object-fit: contain; object-position: left center; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.close-menu { display: none; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); font-size: 25px; }

.intro { padding: 16px 26px 19px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(183,224,111,.2); }
.intro h1 { max-width: 310px; margin-top: 14px; font: 800 32px/1.12 "Poppins", sans-serif; letter-spacing: -.6px; }
.intro p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.controls { padding: 0 26px 18px; }
.search-box { display: flex; height: 51px; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 15px; background: #fafcfb; transition: .2s ease; }
.search-box:focus-within { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(42,154,140,.09); }
.search-box svg { width: 19px; fill: none; stroke: var(--green); stroke-linecap: round; stroke-width: 2; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #9aa7a3; }
.search-shortcut { padding: 4px 6px; color: #91a09b; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.location-button { display: flex; width: 100%; align-items: center; gap: 11px; margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 15px; color: white; background: linear-gradient(115deg, var(--green-dark), var(--green)); box-shadow: 0 9px 22px rgba(26,114,106,.18); cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s; }
.location-button:hover { transform: translateY(-2px); box-shadow: 0 13px 27px rgba(26,114,106,.25); }
.location-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 21px; }
.location-button strong { display: block; font-size: 13px; }
.location-button small { display: block; margin-top: 2px; color: rgba(255,255,255,.68); font-size: 10px; }
.location-button .arrow { margin-left: auto; font-size: 18px; transition: transform .2s; }
.location-button:hover .arrow { transform: translateX(4px); }
.radius-control { margin-top: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.radius-control label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; }
.radius-control label strong { color: var(--green); font-size: 12px; white-space: nowrap; }
.radius-slider { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.radius-slider input { flex: 1; min-width: 0; margin-top: 0; }
.radius-step { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 1px solid #c4e0d9; border-radius: 7px; color: var(--green-dark); background: white; cursor: pointer; font-size: 16px; line-height: 1; }
.radius-step:hover:not(:disabled) { border-color: var(--green); background: #e6f4f1; }
.radius-step:disabled { cursor: not-allowed; opacity: .45; }
.radius-control input { width: 100%; accent-color: var(--green); cursor: pointer; }
.radius-control input:disabled { cursor: not-allowed; opacity: .4; }
.radius-control small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
#btnRemoverLocalizacao { width: 100%; margin-top: 9px; padding: 7px 10px; border: 1px solid #c4e0d9; border-radius: 9px; color: var(--green-dark); background: white; cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s; }
#btnRemoverLocalizacao:hover:not(:disabled) { border-color: var(--green); background: #e6f4f1; }
#btnRemoverLocalizacao:disabled { cursor: not-allowed; opacity: .45; }

.filters { padding: 0 26px 20px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading h2 { font: 800 14px/1 "Poppins", sans-serif; }
.section-heading button { border: 0; color: var(--green); background: none; cursor: pointer; font-size: 11px; font-weight: 700; opacity: .75; }
.filter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.filter-chip { position: relative; display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; font-size: 11px; font-weight: 600; transition: .2s ease; }
.filter-chip:hover { border-color: #b8d6cb; transform: translateY(-1px); }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip:has(input:checked) { color: var(--green-dark); border-color: rgba(42,154,140,.4); background: #e2f3ef; box-shadow: inset 0 0 0 1px rgba(42,154,140,.08); }
.filter-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--green); border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 800; }
.filter-chip:has(input:checked) .filter-icon { color: white; background: var(--green); }
.filter-icon.emergency { color: #e96b45; background: #fff1eb; }

/* Mais serviços (expansível) */
.more-services-toggle { display: flex; width: 100%; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 10px; border: 1px dashed #c4e0d9; border-radius: 12px; color: var(--green-dark); background: #fafcfb; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; transition: .2s ease; }
.more-services-toggle:hover { border-color: var(--green); background: #eef7f5; }
.more-services-toggle[aria-expanded="true"] { border-style: solid; border-color: rgba(42,154,140,.4); background: #eef7f5; }
.more-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--green); border-radius: 8px; background: var(--soft); font-size: 12px; font-weight: 800; }
.more-label { flex: 1; }
.more-count { display: grid; min-width: 20px; height: 18px; place-items: center; padding: 0 6px; color: white; background: var(--green); border-radius: 9px; font-size: 10px; font-weight: 800; }
.more-count[hidden] { display: none; }
.more-chevron { font-size: 14px; line-height: 1; transition: transform .2s; }
.more-services-toggle[aria-expanded="true"] .more-chevron { transform: rotate(180deg); }
.services-panel { margin-top: 8px; padding: 4px 2px 2px; animation: cardIn .25s both; }
.services-panel[hidden] { display: none; }
.service-group { margin: 0 0 12px; padding: 0; border: 0; }
.service-group legend { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service-options { display: flex; flex-wrap: wrap; gap: 6px; }
.service-chip { position: relative; display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 11px; font-weight: 600; transition: .2s ease; }
.service-chip:hover { border-color: #b8d6cb; }
.service-chip input { position: absolute; opacity: 0; pointer-events: none; }
.service-chip:has(input:focus-visible), .filter-chip:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.service-chip:has(input:checked) { color: white; border-color: var(--green); background: var(--green); }

.results-section { display: flex; flex: 0 0 auto; flex-direction: column; padding: 18px 13px 12px 26px; }
.result-heading { padding-right: 13px; }
.result-count { display: grid; min-width: 26px; height: 20px; place-items: center; padding: 0 7px; color: var(--green); background: #e2f3ef; border-radius: 10px; font-size: 10px; font-weight: 800; }
.lista { padding: 1px 10px 15px 0; }
.card { position: relative; margin-bottom: 10px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .22s ease, border-color .22s, box-shadow .22s; animation: cardIn .35s both; }
.card:hover { border-color: #c6dbd3; box-shadow: 0 10px 24px rgba(25,75,61,.09); transform: translateY(-2px); }
.card-top { display: flex; gap: 11px; }
.clinic-avatar { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg,var(--green),var(--green-dark)); font-size: 17px; }
.card-copy { min-width: 0; flex: 1; }
.card h3 { overflow: hidden; font: 800 13px/1.25 "Poppins",sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.card-schedule { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.card-schedule > span:first-child { flex: 0 0 auto; color: var(--green); font-size: 12px; }
.rating { color: #d87535; font-weight: 700; }
.rating.no-rating { color: var(--muted); }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.status-pill { padding: 5px 8px; color: var(--green); background: #e6f4f1; border-radius: 7px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.verMapa { margin-left: auto; padding: 7px 11px; border: 0; border-radius: 9px; color: white; background: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; transition: .2s; }
.verMapa:hover { background: var(--green-dark); transform: translateX(2px); }
.verDetalhes { padding: 7px 10px; border: 1px solid #c4e0d9; border-radius: 9px; color: var(--green-dark); background: white; font-size: 10px; font-weight: 700; text-decoration: none; transition: .2s; }
.verDetalhes:hover { border-color: var(--green); background: #e6f4f1; }
.empty-state { padding: 28px 15px; color: var(--muted); text-align: center; font-size: 13px; }
.empty-state span { display: block; margin-bottom: 8px; font-size: 28px; }
.loading-card { padding: 13px; border: 1px solid var(--line); border-radius: 15px; }
.loading-card span { display: block; height: 9px; margin: 7px 0; border-radius: 8px; background: linear-gradient(90deg,#edf1ef 25%,#f8faf9 50%,#edf1ef 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.loading-card span:nth-child(1) { width: 65%; }.loading-card span:nth-child(2) { width: 85%; }.loading-card span:nth-child(3) { width: 42%; }

.map-area { position: relative; min-width: 0; flex: 1; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
#map { width: 100%; height: 100%; background: #dce9e1; }
.map-topbar { position: absolute; z-index: 500; top: 22px; right: 22px; left: 22px; display: flex; justify-content: flex-end; pointer-events: none; }
.map-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 8px 20px rgba(19,52,44,.12); backdrop-filter: blur(12px); font-size: 11px; font-weight: 700; }
.map-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(42,154,140,.12); }
.reset-map-button { position: absolute; z-index: 500; top: 70px; right: 22px; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; color: var(--green-dark); background: rgba(255,255,255,.9); box-shadow: 0 8px 20px rgba(19,52,44,.12); backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.reset-map-button span { font-size: 16px; line-height: 1; }
.reset-map-button strong { font-size: 10px; }
.reset-map-button:hover { box-shadow: 0 11px 25px rgba(19,52,44,.18); transform: translateY(-1px); }
.mobile-menu-button { display: none; pointer-events: auto; }
.map-tip { position: absolute; z-index: 500; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.9); box-shadow: 0 8px 25px rgba(19,52,44,.13); backdrop-filter: blur(10px); font-size: 10px; }
.map-tip > span { color: var(--orange); font-size: 17px; }.map-tip strong { display: block; font-size: 11px; }.map-tip p { color: var(--muted); }
.leaflet-control-zoom { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: 0 8px 22px rgba(19,52,44,.14) !important; }
.leaflet-control-zoom a { color: var(--green) !important; border-color: var(--line) !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 35px rgba(20,60,50,.2); }
.pet-popup h4 { margin-bottom: 7px; color: var(--green-dark); font: 800 14px "Poppins",sans-serif; }.pet-popup p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.popup-details { display: inline-block; margin-top: 8px; color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }.popup-details:hover { color: var(--green-dark); text-decoration: underline; }
.custom-pet-pin { transition: filter .2s; }.custom-pet-pin:hover { filter: brightness(1.08); }
.pin-body { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 0; color: white; background: linear-gradient(145deg,var(--green),var(--green-dark)); box-shadow: 0 6px 14px rgba(16,72,57,.35); font-size: 16px; transform: rotate(-45deg); }.pin-body span { color: white; font-family: "Segoe UI Symbol", sans-serif; transform: rotate(45deg); }
.paw-icon { color: white; font-family: "Segoe UI Symbol", sans-serif; }
.sidebar-backdrop { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Aberto agora */
.filter-chip-wide { grid-column: 1 / -1; }
.filter-icon.open-now { color: #2f9e62; background: #e9f7ef; font-size: 10px; }
.card-schedule { align-items: center; }
.card-schedule > span:first-child.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #b7c4c6; }
.status-dot.open { background: #2f9e62; box-shadow: 0 0 0 3px rgba(47,158,98,.15); }
.status-dot.closing { background: #e08a2e; box-shadow: 0 0 0 3px rgba(224,138,46,.15); }
.status-dot.closed { background: #d0574b; }
.open-status { font-weight: 700; }
.open-status.open { color: #2f9e62; }
.open-status.closing { color: #c9761f; }
.open-status.closed { color: #c44b40; }
.open-status.unknown { color: var(--muted); font-weight: 500; }
.schedule-days { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

/* Contato rápido */
.contact-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.contact-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--green-dark); background: #fafcfb; font-size: 10px; font-weight: 700; text-decoration: none; transition: .2s; }
.contact-link svg { width: 13px; height: 13px; fill: currentColor; }
.contact-link:hover { border-color: var(--green); background: #e6f4f1; }
.contact-link.whatsapp { color: #1a8f4c; border-color: #cdebd8; background: #f1fbf5; }
.contact-link.whatsapp:hover { border-color: #25a55a; background: #e3f6ea; }
.pet-popup .contact-links { margin: 8px 0 2px; }

/* Card ativo e marcador destacado */
.card.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,154,140,.15), 0 10px 24px rgba(25,75,61,.09); }
.custom-pet-pin .pin-body { transition: transform .2s, box-shadow .2s; }
.custom-pet-pin.is-highlighted { z-index: 1000 !important; }
.custom-pet-pin.is-highlighted .pin-body { box-shadow: 0 0 0 5px rgba(42,154,140,.35), 0 8px 18px rgba(16,72,57,.4); transform: rotate(-45deg) scale(1.15); }

/* Cores por tipo de estabelecimento */
.pin-body, .clinic-avatar, .legend-pin { background: linear-gradient(145deg, var(--pin-a, var(--green)), var(--pin-b, var(--green-dark))); }
.type-clinica { --pin-a: #2a9a8c; --pin-b: #1A726A; }
.type-hospital { --pin-a: #ef7b6b; --pin-b: #c2453a; }
.type-petshop { --pin-a: #f2a65a; --pin-b: #d07a26; }
.type-banho { --pin-a: #8f8ff0; --pin-b: #5b5bc7; }
.type-farmacia { --pin-a: #5cc28a; --pin-b: #2c8a57; }
.type-hotel { --pin-a: #6aa6e8; --pin-b: #3a6fb8; }
.type-creche { --pin-a: #f08cbc; --pin-b: #c45a8d; }
.type-adestramento { --pin-a: #b39a6b; --pin-b: #826a3f; }
.map-legend { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(19,52,44,.12); font: 600 10px "Inter", sans-serif; color: var(--ink); }
.map-legend[hidden] { display: none; }
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-pin { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 6px; color: white; font-size: 10px; }

/* Agrupamento de marcadores */
.pet-cluster { background: transparent; }
.cluster-body { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--green), var(--green-dark)); box-shadow: 0 0 0 6px rgba(42,154,140,.25), 0 6px 14px rgba(16,72,57,.3); font: 800 14px "Poppins", sans-serif; }

/* Busca de endereço no mapa */
.map-topbar { gap: 10px; align-items: center; }
.address-search { display: flex; flex: 0 1 340px; height: 40px; align-items: center; gap: 6px; margin-right: auto; padding: 0 4px 0 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px rgba(19,52,44,.12); backdrop-filter: blur(12px); pointer-events: auto; }
.address-search > span { color: var(--green); font-size: 16px; }
.address-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.address-search button { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 9px; color: white; background: var(--green); cursor: pointer; font-weight: 800; }
.address-search button:hover { background: var(--green-dark); }
.address-search:focus-within { box-shadow: 0 0 0 3px rgba(42,154,140,.25), 0 8px 20px rgba(19,52,44,.12); }
.address-search.is-loading button[type="submit"] { opacity: .5; cursor: progress; }
.address-search { position: relative; }
.address-search .address-clear { width: 26px; height: 26px; color: var(--muted); background: var(--soft); font-size: 15px; font-weight: 700; line-height: 1; }
.address-search .address-clear:hover { color: white; background: #c44b40; }
.address-search .address-clear[hidden] { display: none; }
.address-suggestions { position: absolute; z-index: 10; top: calc(100% + 6px); right: 0; left: 0; max-height: 340px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 16px 40px rgba(19,52,44,.2); }
.address-suggestions[hidden] { display: none; }
.suggestion { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 10px; cursor: pointer; }
.suggestion:hover, .suggestion[aria-selected="true"] { background: #edf7f5; }
.suggestion-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: var(--green-dark); background: var(--soft); border-radius: 8px; font-size: 13px; }
.suggestion.local .suggestion-icon { color: white; background: linear-gradient(145deg, var(--green), var(--green-dark)); }
.suggestion-text { min-width: 0; flex: 1; }
.suggestion-text strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-text strong mark { color: inherit; background: none; font-weight: 800; }
.suggestion-text small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-text em { color: var(--green); font-style: normal; font-weight: 700; }
.precision { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.precision.exact { color: #2f9e62; background: #e9f7ef; }
.precision.street { color: #c9761f; background: #fdf1e3; cursor: help; }
.suggestion-empty { padding: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.popup-note { padding: 6px 8px; border-radius: 8px; color: #8a5a17 !important; background: #fdf4e6; font-size: 11px !important; }
.popup-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.popup-buttons .popup-action { margin-top: 0; }
.popup-remove { padding: 7px 11px; border: 1px solid #f0c9c4; border-radius: 9px; color: #c44b40; background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.popup-remove:hover { color: white; border-color: #c44b40; background: #c44b40; }
.address-pin span { display: block; width: 22px; height: 22px; border: 3px solid white; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255,139,85,.25), 0 4px 10px rgba(0,0,0,.25); }
.popup-action { margin-top: 8px; padding: 7px 11px; border: 0; border-radius: 9px; color: white; background: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; }
.popup-action:hover { background: var(--green-dark); }
.empty-clear { margin-top: 12px; padding: 7px 12px; border: 1px solid #c4e0d9; border-radius: 9px; color: var(--green-dark); background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.service-chip small { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.service-chip:has(input:checked) small { color: rgba(255,255,255,.8); }

/* Recolher/expandir painel lateral (desktop) */
.sidebar { transition: flex-basis .3s cubic-bezier(.22,.8,.3,1), margin .3s cubic-bezier(.22,.8,.3,1), opacity .2s ease, visibility 0s linear 0s; }
.collapse-sidebar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--soft); font-size: 22px; line-height: 1; transition: background .2s; }
.collapse-sidebar:hover { background: #dff1ec; }
.expand-sidebar-button { display: none; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 12px; color: white; background: var(--green); box-shadow: 0 8px 22px rgba(19,70,57,.22); cursor: pointer; font-size: 12px; font-weight: 700; pointer-events: auto; transition: background .2s; }
.expand-sidebar-button:hover { background: var(--green-dark); }
@media (min-width: 901px) {
    .app-shell.sidebar-collapsed .sidebar { flex-basis: 0; margin-right: -12px; opacity: 0; visibility: hidden; border-width: 0; transition: flex-basis .3s cubic-bezier(.22,.8,.3,1), margin .3s cubic-bezier(.22,.8,.3,1), opacity .2s ease, visibility 0s linear .3s; }
    .app-shell.sidebar-collapsed .map-topbar { justify-content: space-between; }
    .app-shell.sidebar-collapsed .expand-sidebar-button { display: flex; }
}

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
    .app-shell { padding: 0; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: min(390px, 92vw); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 0 24px 24px 0; transform: translateX(-105%); transition: transform .3s cubic-bezier(.22,.8,.3,1); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 1000; inset: 0; border: 0; background: rgba(7,29,23,.38); backdrop-filter: blur(2px); }
    .sidebar.active + .sidebar-backdrop { display: block; }
    .close-menu { display: block; }
    .collapse-sidebar, .expand-sidebar-button { display: none !important; }
    .map-status { display: none; }
    .address-search { flex: 1 1 auto; margin-right: 0; }
    .results-section { min-height: auto; flex: 0 0 auto; }
    .lista { overflow-y: visible; }
    .map-area { border-radius: 0; }
    .map-topbar { justify-content: space-between; }
    .mobile-menu-button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 12px; color: white; background: var(--green); box-shadow: 0 8px 22px rgba(19,70,57,.22); font-size: 12px; font-weight: 700; }
}

@media (max-height: 760px) and (min-width: 901px) {
    .sidebar { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
    .results-section { min-height: auto; flex: 0 0 auto; }
    .lista { overflow-y: visible; }
}

@media (max-width: 480px) {
    .brand-area { padding: 19px 20px 11px; }.intro { padding: 13px 20px 16px; }.intro h1 { font-size: 29px; }
    .controls, .filters { padding-right: 20px; padding-left: 20px; }.results-section { padding-left: 20px; }
    .map-status { display: none; }.reset-map-button { top: 64px; right: 14px; }.map-tip { right: 12px; bottom: 12px; }.map-topbar { top: 14px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
#txtEndereco::-webkit-search-cancel-button { display: none; }

/* ===== Identidade PetFans: menu do site, ícones Remix e pata em SVG ===== */
.paw-svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 26px 6px; padding: 6px; border-radius: 12px; background: var(--soft); }
.site-nav a { padding: 5px 9px; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; transition: .2s; }
.site-nav a:hover { color: var(--green-dark); background: white; }
.site-nav a.active { color: white; background: var(--green-dark); }
.intro h1, .section-heading h2, .card h3 { font-weight: 700; }
.intro h1 { font-size: 28px; line-height: 1.18; }
.eyebrow { font-weight: 600; }
.filter-icon { font-size: 14px; font-weight: 400; }
.filter-icon.open-now { font-size: 14px; }
.more-icon { font-size: 14px; font-weight: 400; }
.more-icon .paw-svg { width: 14px; height: 14px; }
.more-chevron { font-size: 16px; }
.location-icon { font-size: 18px; }
.location-button .arrow { display: grid; place-items: center; }
.icon-button i { font-size: 19px; line-height: 1; }
.collapse-sidebar { font-size: inherit; }
.close-menu { place-items: center; }
.mobile-menu-button i, .expand-sidebar-button i { font-size: 15px; }
.address-search > i { color: var(--green); font-size: 16px; }
.address-search button i { font-size: 16px; line-height: 1; }
.reset-map-button i { font-size: 15px; line-height: 1; }
.map-tip > i { color: var(--orange); font-size: 17px; }
.card-meta i, .pet-popup p i { color: var(--green); }
.contact-link i { font-size: 13px; line-height: 1; }
.pin-body .paw-icon { display: grid; place-items: center; font-size: 17px; }
.pin-body .paw-svg { width: 17px; height: 17px; }
.clinic-avatar .paw-icon { display: grid; place-items: center; font-size: 19px; }
.clinic-avatar .paw-svg { width: 19px; height: 19px; }
.legend-pin i, .legend-pin .paw-svg { width: 11px; height: 11px; font-size: 11px; }
.suggestion-icon .paw-svg { width: 14px; height: 14px; }
.suggestion-icon i { font-size: 14px; }
.empty-state > i, .empty-paw { display: block; margin: 0 auto 8px; color: var(--green); font-size: 28px; }
.empty-paw .paw-svg { width: 28px; height: 28px; margin: 0 auto; }
@media (max-width: 480px) { .site-nav { margin: 0 20px 6px; } }

/* ===== Tutorial inicial (tour.js) ===== */
.tutorial-button { top: 116px; }
@media (max-width: 480px) { .tutorial-button { top: 108px; } }
.tour { position: fixed; z-index: 3000; inset: 0; opacity: 0; transition: opacity .25s ease; }
.tour.on { opacity: 1; }
.tour-spotlight { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(7, 29, 23, .58), 0 0 0 3px var(--orange); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; pointer-events: none; }
.tour-spotlight.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(7, 29, 23, .58); }
.tour-box { position: fixed; width: min(340px, calc(100vw - 24px)); padding: 18px 18px 16px; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 60px rgba(7, 29, 23, .35); outline: none; transition: left .3s ease, top .3s ease, opacity .2s ease; }
.tour.moving .tour-box { opacity: .35; }
.tour-box.centered { left: 50% !important; top: 50% !important; width: min(400px, calc(100vw - 24px)); transform: translate(-50%, -50%); text-align: center; }
.tour-box::before { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); display: none; }
.tour-box.arrow-left::before { display: block; left: -7px; top: calc(var(--arrow-y, 40px) - 7px); }
.tour-box.arrow-right::before { display: block; right: -7px; top: calc(var(--arrow-y, 40px) - 7px); }
.tour-box.arrow-top::before { display: block; top: -7px; left: calc(var(--arrow-x, 40px) - 7px); }
.tour-box.arrow-bottom::before { display: block; bottom: -7px; left: calc(var(--arrow-x, 40px) - 7px); }
.tour-head { display: flex; align-items: center; gap: 10px; }
.tour-box.centered .tour-head { justify-content: center; }
.tour-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--green), var(--green-dark)); font-size: 18px; }
.tour-count { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tour-close { display: grid; width: 30px; height: 30px; margin-left: auto; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: var(--soft); cursor: pointer; font-size: 17px; }
.tour-box.centered .tour-close { position: absolute; top: 12px; right: 12px; }
.tour-close:hover { color: var(--ink); }
.tour-box h2 { margin-top: 12px; font: 700 18px/1.25 "Poppins", sans-serif; }
.tour-box.centered h2 { font-size: 22px; }
.tour-box p { margin-top: 8px; color: #4b5f5c; font-size: 14px; line-height: 1.55; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.tour-box.centered .tour-dots { justify-content: center; }
.tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: #d5e6e2; transition: width .25s, background .25s; }
.tour-dots span.on { width: 18px; background: var(--green); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-box.centered .tour-actions { flex-direction: column-reverse; }
.tour-nav { display: flex; gap: 8px; margin-left: auto; }
.tour-box.centered .tour-nav { margin-left: 0; }
.tour-skip { padding: 6px 2px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tour-skip[hidden], .tour-back[hidden] { display: none; }
.tour-back, .tour-next { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
.tour-back { border: 1px solid var(--line); color: var(--green-dark); background: #fff; }
.tour-back:hover { background: var(--soft); }
.tour-next { border: 0; color: #fff; background: var(--green-dark); }
.tour-next:hover { background: var(--green); }
.tour button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tour, .tour-spotlight, .tour-box { transition: none !important; } }

/* Aviso de registro de uso (registro.js) */
.privacy-note { display: flex; gap: 6px; margin: auto 26px 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.privacy-note i { flex: 0 0 auto; color: var(--green); font-size: 12px; }
@media (max-width: 480px) { .privacy-note { margin-right: 20px; margin-left: 20px; } }

/* ===== Legenda interativa dos tipos (maior; cada tipo liga/desliga seus pontos) ===== */
.map-legend { display: block; min-width: 210px; padding: 8px; gap: 0; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(19,52,44,.16); font: 500 13px "Inter", sans-serif; }
.legend-toggle-all { display: flex; width: 100%; align-items: center; gap: 8px; padding: 4px 6px 8px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 700 12px "Inter", sans-serif; letter-spacing: .02em; text-align: left; }
.legend-toggle-all span { display: flex; flex: 1; align-items: center; gap: 6px; }
.legend-toggle-all span i { color: var(--green); font-size: 15px; }
.legend-toggle-all small { color: var(--muted); font-size: 11px; font-weight: 600; }
.legend-chevron { color: var(--muted); font-size: 18px; transition: transform .2s; }
.map-legend.collapsed .legend-chevron { transform: rotate(-90deg); }
.map-legend.collapsed .legend-toggle-all { padding-bottom: 4px; }
.map-legend.collapsed .legend-items { display: none; }
.legend-items { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
.map-legend .legend-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; font: 600 13px "Inter", sans-serif; text-align: left; transition: background .15s, opacity .15s; }
.map-legend .legend-item:hover { background: var(--soft); }
.map-legend .legend-item:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.map-legend .legend-pin { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; font-size: 15px; }
.map-legend .legend-pin i, .map-legend .legend-pin .paw-svg { width: 15px; height: 15px; font-size: 15px; }
.legend-label { flex: 1; }
.legend-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; color: var(--green-dark); background: var(--soft); font-size: 11px; font-weight: 700; text-align: center; }
.legend-eye { color: var(--green); font-size: 16px; }
.map-legend .legend-item.off { opacity: .5; }
.map-legend .legend-item.off .legend-pin { background: #b9c4c2; }
.map-legend .legend-item.off .legend-label { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.map-legend .legend-item.off .legend-eye { color: var(--muted); }
@media (max-width: 480px) {
    .map-legend { min-width: 0; max-width: calc(100vw - 90px); }
    .map-legend .legend-item { padding: 5px 6px; font-size: 12px; }
    .map-legend .legend-pin { width: 24px; height: 24px; }
}
/* No celular a dica do rodapé disputa espaço com a legenda; o tutorial já explica os marcadores. */
@media (max-width: 600px) { .map-tip { display: none; } }
/* Legenda como filtro: um tipo escolhido por vez (ou Todos). */
.map-legend .legend-item.selected { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--green); }
.map-legend .legend-item.off { opacity: .55; }
.map-legend .legend-item.off .legend-label { text-decoration: none; }
.map-legend .legend-item.off .legend-pin { background: linear-gradient(145deg, var(--pin-a, var(--green)), var(--pin-b, var(--green-dark))); filter: grayscale(.85); }
.map-legend .legend-pin-all { color: var(--green-dark); background: var(--soft) !important; }
.map-legend .legend-item .legend-eye { color: #b9c4c2; }
.map-legend .legend-item.selected .legend-eye { color: var(--green); }
.map-legend.filtering .legend-toggle-all small { padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--green-dark); }

/* Chamada "Sua clínica não está no mapa?" acima da lista de locais */
.missing-clinic { display: flex; align-items: flex-start; gap: 10px; margin: 0 13px 12px 0; padding: 11px 12px; border: 1px dashed #c4e0d9; border-radius: 13px; color: var(--muted); background: #f7fbfa; font-size: 11.5px; line-height: 1.45; text-decoration: none; transition: border-color .2s, background .2s; }
.missing-clinic:hover { border-color: var(--green); background: var(--soft); }
.missing-clinic:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.missing-clinic-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); font-size: 17px; }
.missing-clinic-text strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12.5px; }
.missing-clinic-text b { color: var(--green-dark); }
.missing-clinic-arrow { flex: 0 0 auto; margin-top: 2px; color: var(--green); font-size: 16px; }
/* Etiqueta "nº estimado" (busca de endereço pela base do IBGE) */
.precision.estimated { color: #1A726A; background: #e2f3ef; cursor: help; }
.popup-note.estimated { color: #1A726A !important; background: #e9f6f3; }

/* ===== Responsividade do mapa ===== */
/* Sugestões de endereço por cima dos botões "Zoom inicial" e "Como usar". */
.map-topbar { z-index: 600; }
/* Legenda sempre acima dos créditos do Leaflet (altura medida em map.js). */
.leaflet-bottom.leaflet-left { bottom: var(--attr-h, 0px); }
/* Dica do rodapé não fica atrás dos botões de zoom; em telas médias some para não encostar na legenda. */
.map-tip { right: 62px; }
@media (max-width: 1180px) { .map-tip { display: none; } }
/* Atalho de teclado não faz sentido em tela de toque. */
@media (max-width: 900px), (pointer: coarse) { .search-shortcut { display: none; } }
@media (max-width: 900px) {
    .map-topbar { gap: 8px; }
    .mobile-menu-button { flex: 0 0 auto; white-space: nowrap; }
    /* Sem min-width: 0 o formulário não encolhe e passa da borda da tela. */
    .address-search { min-width: 0; }
}
@media (max-width: 480px) {
    .map-topbar { right: 14px; }
    /* Só o ícone no botão do painel: sobra espaço para digitar o endereço. */
    .mobile-menu-button { width: 44px; height: 44px; justify-content: center; padding: 0; font-size: 0; }
    .mobile-menu-button i { font-size: 19px; }
    .address-search { height: 44px; }
    .address-search input, .search-box input { font-size: 16px; } /* 16px evita o zoom automático do iPhone ao focar */
    /* Lista de sugestões ocupa a largura toda (inclui o espaço do botão do painel: 44px + 8px). */
    .address-suggestions { left: -52px; max-height: calc(100dvh - 90px); }
    .reset-map-button, .tutorial-button { right: 14px; }
    .reset-map-button { top: 68px; }
    .tutorial-button { top: 112px; }
}
@media (max-width: 360px) {
    /* Telas bem estreitas: botões do canto viram só ícone. */
    .reset-map-button { width: 38px; height: 38px; justify-content: center; padding: 0; }
    .reset-map-button strong { display: none; }
    .tutorial-button { top: 112px; }
}
