:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --text: #16181b;
  --muted: #6b7076;
  --border: #e5e5e0;
  --accent: #0f766e;
  --accent-hover: #0d5f59;
  --on-accent: #ffffff;
  --accent-soft: #e3f3f0;
  --heart: #e11d48;
  --good-bg: #e3f5ec; --good-fg: #0b5a3c;
  --info-bg: #e7f0fb; --info-fg: #1c4a80;
  --warn-bg: #fbf0dc; --warn-fg: #7a4a06;
  --bad-bg: #fdeaea; --bad-fg: #8f1d1d;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-md: 0 1px 2px rgb(16 24 40 / 0.06), 0 8px 24px rgb(16 24 40 / 0.08);
  --shadow-lg: 0 12px 40px rgb(16 24 40 / 0.18);
  --topbar-bg: rgb(255 255 255 / 0.82);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1012;
  --surface: #16191c;
  --surface-2: #1e2226;
  --text: #eceef0;
  --muted: #9aa1a8;
  --border: #2a2f34;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --on-accent: #042f2b;
  --accent-soft: #0f2f2b;
  --heart: #fb7185;
  --good-bg: #0c3326; --good-fg: #9be3c2;
  --info-bg: #0f2a48; --info-fg: #b6d3f5;
  --warn-bg: #3d2a08; --warn-fg: #f6c977;
  --bad-bg: #431515; --bad-fg: #f6bcbc;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.6);
  --topbar-bg: rgb(14 16 18 / 0.8);
}

:root[data-theme="lavanda"] {
  --bg: #f0eafa; --surface: #fdfbff; --surface-2: #e8e0f6; --text: #2a2438; --muted: #716a82; --border: #e2d9ef;
  --accent: #7656b8; --accent-hover: #6343a3; --accent-soft: #eee7fa; --topbar-bg: rgb(240 234 250 / 0.85);
}

:root[data-theme="durazno"] {
  --bg: #fcefe6; --surface: #fffcf9; --surface-2: #f7e5d8; --text: #3a2a22; --muted: #86705f; --border: #f0ded0;
  --accent: #c8653d; --accent-hover: #b0532e; --accent-soft: #fbe8dd; --topbar-bg: rgb(252 239 230 / 0.85);
}

:root[data-theme="menta"] {
  --bg: #e9f5ef; --surface: #fbfffd; --surface-2: #dcefe5; --text: #1f2f28; --muted: #60746a; --border: #d4e7dc;
  --accent: #2f8a6b; --accent-hover: #237357; --accent-soft: #ddf1e7; --topbar-bg: rgb(233 245 239 / 0.85);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
.icon { display: block; flex-shrink: 0; }
input, select { font: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--surface-2); }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.small .icon { width: 14px; height: 14px; }
.icon-btn.fav.on { color: var(--heart); }
.icon-btn.fav.on svg { fill: currentColor; }
.alert { position: relative; }
.alert::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 2px var(--bg); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.account { display: flex; align-items: center; min-height: 40px; margin-left: 6px; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; gap: 4px; min-width: 240px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.menu .btn { margin-top: 10px; }
.theme-menu { position: relative; }
.theme-menu summary { list-style: none; }
.theme-menu summary::-webkit-details-marker { display: none; }
.theme-menu .menu { min-width: 200px; padding: 8px; gap: 2px; }
.theme-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.theme-option:hover { background: var(--surface-2); }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option:has(input:checked) { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; }

/* Page */
.page { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }
.hero { padding: 32px 0 20px; }
.hero h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.hero-meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.new-banner { display: inline-flex; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--muted); }
.new-banner.has-new { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Filters toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border-radius: 999px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.price-field { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px 0 16px; height: 42px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.price-field input { width: 96px; border: 0; background: transparent; padding: 8px 4px; font-weight: 600; outline: none; }
.price-field:focus-within { border-color: var(--accent); }
.toggle-chip input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.toggle-chip span:hover { border-color: var(--muted); }
.toggle-chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toolbar-select .field-label { display: none; }
.toolbar-select .multi summary { height: 42px; padding: 0 14px 0 16px; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; }
.toolbar-select .multi-menu { right: auto; min-width: 240px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.check-row small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.more-filters { position: relative; margin-left: auto; }
.more-filters > summary { list-style: none; height: 42px; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters[open] > summary { border-color: var(--text); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.more-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 15; width: 340px; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input[type="number"] { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.field output { color: var(--text); font-weight: 600; }
input[type="range"] { accent-color: var(--accent); }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.multi summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-weight: 400; cursor: pointer; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.multi[open] summary .icon { transform: rotate(180deg); }
.multi-menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.multi-menu label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 400; cursor: pointer; }
.multi-menu label:hover { background: var(--surface-2); }
.multi-menu .multi-all { border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 4px; }
.multi-menu input { accent-color: var(--accent); }

/* Results bar */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.tabs { display: flex; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--text); color: var(--bg); }
.tab .icon { width: 16px; height: 16px; }
.tab.on[data-tab="favorites"] .icon { fill: currentColor; }
.count { font-weight: 500; opacity: .7; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.list-note { margin: -4px 0 16px; font-size: 14px; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.photo { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .photo img { transform: scale(1.03); }
.score-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: baseline; gap: 2px; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.score-pill small { font-size: 11px; font-weight: 600; color: var(--muted); }
.score-pill::before { content: ""; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; align-self: center; background: var(--warn-fg); }
.score-pill.good::before { background: #16a34a; }
.score-pill.mid::before { background: #2563eb; }
.card-media .fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; background: rgb(255 255 255 / 0.92); color: #16181b; box-shadow: var(--shadow-md); }
.card-media .fav:hover { background: #fff; transform: scale(1.06); }
.card-media .fav.on { color: #e11d48; }
.new-tag { position: absolute; bottom: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.photo-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.photo-badge .icon { width: 14px; height: 14px; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; cursor: pointer; }
.card-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card-price strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.discount { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.discount.below { background: var(--good-bg); color: var(--good-fg); }
.discount.above { background: var(--surface-2); color: var(--muted); }
.card-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-address { margin: -4px 0 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text); }
.facts li { display: inline-flex; align-items: center; gap: 5px; }
.facts .icon { width: 15px; height: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.chip.good { background: var(--good-bg); color: var(--good-fg); }
.chip.info { background: var(--info-bg); color: var(--info-fg); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.sources { margin: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources a { color: var(--muted); text-decoration: none; }
.sources a:hover { color: var(--accent); text-decoration: underline; }
.card-links { display: flex; gap: 4px; }
.card-links .icon-btn { width: 34px; height: 34px; border-color: transparent; background: transparent; color: var(--muted); }
.card-links .icon-btn:hover { background: var(--surface-2); color: var(--text); }
.card-links .icon { width: 16px; height: 16px; }
.more { display: flex; margin: 36px auto 0; }
.empty { grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--muted); }

footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--muted); }
footer p { margin: 4px 0; }
footer a { color: var(--muted); }

/* Dialogs */
dialog { color: var(--text); }
dialog::backdrop { background: rgb(10 12 14 / 0.55); backdrop-filter: blur(4px); }
.sheet { width: min(880px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: auto; }
.sheet > section, .detail { padding: 0 24px 24px; }
.detail-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 24px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.detail .detail-head { margin: 0 -24px 20px; }
.detail-head h2 { font-size: 20px; font-weight: 700; }
.detail-head .address { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sheet section h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; }
.gallery-main { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 0; }
.thumb { flex: 0 0 88px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.thumb.on { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.detail-price strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.detail-price .score-pill { position: static; margin-left: auto; box-shadow: none; background: var(--surface-2); }
.detail .facts { font-size: 14px; gap: 6px 18px; margin-bottom: 12px; }
.detail .chips { margin-bottom: 8px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; padding: 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.description { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.65; }
details { font-size: 14px; color: var(--muted); }
summary { cursor: pointer; }
.detail > details { margin-top: 20px; }
.breakdown { list-style: none; margin: 8px 0 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.ignore-area { margin-top: 8px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.ignore-area h3 { margin-top: 0 !important; }
.ignore-area p { margin: 0 0 12px; }
.ignore-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { display: flex; align-items: center; gap: 8px; }
.actions.sticky { position: sticky; bottom: 0; margin: 20px -24px -24px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--border); }
.actions .btn.primary { flex: 1; }

.zones { list-style: none; margin: 0; padding: 0; }
.zones li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.zones input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.zone-name { flex: 1; }
.zone-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.zone-add input, .zone-add select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.zone-add input { flex: 1; min-width: 160px; }
.zone-error { margin: 0 0 8px; color: var(--bad-fg); font-size: 13px; }

.run-health { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info-fg); font-size: 14px; }
.run-health.ok { background: var(--good-bg); color: var(--good-fg); }
.run-health.fail { background: var(--bad-bg); color: var(--bad-fg); }
.run-health.stale { background: var(--warn-bg); color: var(--warn-fg); }
.runs { list-style: none; margin: 0; padding: 0; }
.run { padding: 14px 0; border-bottom: 1px solid var(--border); }
.run p { margin: 4px 0 0; }
.run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.run-link { margin-left: auto; font-size: 13px; }
.run-error { margin: 8px 0 0; padding: 10px; max-height: 200px; overflow: auto; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12px; white-space: pre-wrap; word-break: break-word; }

.carousel { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / 0.94); overflow: hidden; touch-action: pan-y; }
.carousel[open] { display: grid; place-items: center; }
.carousel-img { max-width: 100vw; max-height: calc(100dvh - 72px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.carousel-nav:hover { background: rgb(255 255 255 / 0.24); }
.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }
.carousel.single .carousel-nav { display: none; }
.carousel-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgb(0 0 0 / 0.6)); }
.carousel-caption { flex: 1; }
.carousel-bar .icon-btn { color: #fff; }
.carousel-bar .icon-btn:hover { background: rgb(255 255 255 / 0.14); }

.legal { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.legal h1 { font-size: 30px; font-weight: 700; }
.legal h2 { margin: 28px 0 6px; font-size: 18px; font-weight: 600; }

@media (max-width: 720px) {
  .more-filters { margin-left: 0; }
  .more-panel { left: 0; right: auto; width: min(340px, calc(100vw - 32px)); }
}

@media (max-width: 560px) {
  .topbar-inner, .page { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 22px 0 16px; }
  .toolbar { padding: 10px; border-radius: var(--radius); }
  .segmented { width: 100%; }
  .segmented label { flex: 1; text-align: center; }
  .price-field, .toolbar-select { flex: 1 1 100%; }
  .price-field input { width: 100%; }
  .results-bar { flex-wrap: wrap; margin-top: 22px; }
  .sort span { display: none; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .sheet { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .sheet > section, .detail { padding: 0 16px 16px; }
  .detail-head { padding: 14px 16px 12px; }
  .detail .detail-head { margin: 0 -16px 16px; }
  .actions.sticky { margin: 16px -16px -16px; padding: 12px 16px; }
  .actions.sticky .btn:not(.primary) { width: 40px; height: 40px; padding: 0; }
  .actions.sticky .btn:not(.primary) span { display: none; }
  .carousel-nav { width: 40px; height: 40px; font-size: 24px; }
}
