:root {
  color-scheme: light dark;
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #f0f5f6;
  --panel: #fff;
  --ink: #10272d;
  --muted: #4d6268;
  --border: #d4e1e3;
  --accent: #096955;
  --on-accent: #fff;
  --soft: #e6f4ee;
  --map-bg: #dcebe0;
}
@media (prefers-color-scheme: dark) {
  :root { --canvas:#101b1d; --panel:#172529; --ink:#edf7f5; --muted:#b0c6c6; --border:#3c5155; --accent:#8ce5c5; --on-accent:#102c26; --soft:#213f39; --map-bg:#273631; }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); overflow-wrap: anywhere; }
.shell { width: min(100%, 52rem); margin-inline: auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom)); }
.masthead { padding: .4rem .15rem .85rem; }
.kicker { display: inline-block; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
h1, h2, p { margin-block: 0; }
h1 { font-size: clamp(1.9rem, 6vw, 2.65rem); line-height: 1.07; margin: .22rem 0 .4rem; }
h2 { font-size: 1.15rem; line-height: 1.2; margin: 0 0 .75rem; }
.section-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.4rem; margin-bottom:.75rem; }
.section-heading h2 { margin:0; }
.section-heading button { min-height:44px; padding:.4rem .65rem; font-size:.8rem; }
.badge { color:var(--accent); background:var(--soft); border-radius:.5rem; padding:.2rem .45rem; font-size:.72rem; font-weight:700; }
.access .status { margin:.5rem 0; }
.access button { margin-top:.5rem; }
.masthead p, footer, .helper { color: var(--muted); }
.panel { margin-block: .7rem; padding: .9rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--panel); }
.filters, .actions, .tester { display: flex; flex-wrap: wrap; gap: .55rem; }
label { display: grid; gap: .2rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.filters label:first-child { flex: 2 1 11rem; }
.filters label:last-child { flex: 1 1 6rem; }
select, input, button, .button { min-height: 44px; border: 1px solid var(--border); border-radius: .6rem; font: inherit; color: var(--ink); background: var(--panel); }
select, input { width: 100%; min-width:0; padding: .4rem .65rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: .47rem .75rem; text-align: center; text-decoration: none; cursor: pointer; font-size: .91rem; font-weight: 680; }
button:disabled, select:disabled { opacity: .55; cursor: default; }
.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.whatsapp { border-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-wrap { position: relative; margin: .75rem 0 .65rem; border: 1px solid var(--border); border-radius: .7rem; overflow: hidden; background: var(--map-bg); }
#map { height: clamp(15rem, 45vh, 28rem); }
.map-surface { width:100%; height:100%; }
.provider-actions { margin-top:.7rem; }
.provider-actions [aria-pressed="true"] { border-color:var(--accent); background:var(--soft); color:var(--accent); }
.map-fallback { margin: .7rem; }
.map-wrap:has(.map-fallback:not([hidden])) #map { height: 0; }
.leaflet-marker-icon { outline-offset: 4px; }
.pin { display: grid !important; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #0b6455; color: #fff; box-shadow: 0 1px 5px #102b32aa; font: 750 .9rem/1 system-ui, sans-serif; }
.test-pin { background:#7c4c14; border-radius:.5rem; }
.helper { margin-top: .5rem; font-size: .81rem; }
.status { min-height: 1.25rem; }
#pick-hint, #picker-label, #empty { margin: .35rem 0 .65rem; }
.profile { scroll-margin-top: 1rem; }
.profile p:not(.helper), #contacts, .tester { margin-block: .62rem; }
.profile h2 { font-size:1.45rem; margin-bottom:.35rem; }
.profile .price { display:block; width:100%; padding:.6rem .75rem; background:var(--soft); border-radius:.65rem; font-weight:700; }
#profile-description { white-space:pre-wrap; }
.photos { display:grid; grid-auto-flow:column; grid-auto-columns:min(80%,20rem); gap:.6rem; overflow-x:auto; margin:.75rem 0; scroll-snap-type:x proximity; }
.photos:empty { display:none; }
.photos img { display:block; width:100%; height:15rem; object-fit:contain; border:1px solid var(--border); border-radius:.65rem; background:var(--canvas); scroll-snap-align:start; }
.profile .actions { margin-top: .55rem; }
.profile .actions > * { flex:1 1 8rem; }
.test-card { border-style:dashed; }
.test-card > h2 { margin:.2rem 0; }
.test-card > button { margin-top:.65rem; }
.tester { align-items: end; }
.tester label { flex: 1 1 9rem; }
footer { margin-top: .85rem; font-size: .78rem; }
footer a { display:inline-block; padding:.65rem 0; color:var(--accent); }
@media (max-width:400px) {
  .shell { padding-inline:.65rem; }
  .panel { padding:.75rem; }
  .filters label:first-child { flex-basis:100%; }
  .map-actions > * { flex:1 1 8rem; }
  #map { height:19rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
