:root {
  --bg: #0d0f14;
  --surface: #151922;
  --card: #1c2230;
  --border: #2b3447;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --accent: #f5a524;
  --accent-dark: #c87d00;
  --green: #3ac47d;
  --blue: #63a7ff;
  --danger: #ff6767;
  color-scheme: dark;
}

body.section-lady {
  --accent: #f19ac4;
  --accent-dark: #bd5b8a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.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; }

.site-header { height: 70px; padding: 0 clamp(16px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); background: rgba(13,15,20,.94); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { border-radius: 10px; }
.primary-navigation { display: flex; align-items: center; gap: 17px; margin-right: auto; }
.primary-navigation a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 750; }
.primary-navigation a:hover, .primary-navigation a:focus-visible, .primary-navigation a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.language-links { display: flex; align-items: center; gap: 3px; }
.language-links a { padding: 7px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 800; }
.language-links a[aria-current="page"] { color: var(--text); background: var(--card); }
.mobile-navigation { display: none; }

main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 42px); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 410px); gap: 30px; align-items: end; margin-bottom: 26px; }
.intro h1 { margin: 5px 0 10px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.02; max-width: 820px; }
.intro p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin: 0; max-width: 770px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.free-card { border: 1px solid rgba(58,196,125,.35); background: rgba(58,196,125,.08); border-radius: 18px; padding: 19px; display: grid; gap: 6px; }
.free-card strong { color: #83e4b2; }
.free-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.section-lady .free-card { border-color: rgba(241,154,196,.34); background: rgba(241,154,196,.08); }
.section-lady .free-card strong { color: #ffc2df; }

.directory-sections { display: inline-grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 6px; margin: 0 0 18px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.directory-sections a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 15px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; }
.directory-sections a:hover, .directory-sections a:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 1px; }
.directory-sections a[aria-current="page"] { color: #17110a; background: var(--accent); }

.filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(180px, .8fr) minmax(150px, .6fr) auto; gap: 10px; margin-bottom: 13px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); padding: 11px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.12); }
textarea { resize: vertical; }
.btn { border: 1px solid transparent; border-radius: 11px; min-height: 42px; padding: 9px 15px; font-weight: 750; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { color: #15100a; background: var(--accent); }
.btn-primary:hover { background: #ffb63b; }
.btn-secondary { background: var(--surface); border-color: var(--border); }
.btn-secondary:hover { border-color: #4a5874; }
.btn-small { min-height: 35px; padding: 6px 10px; font-size: 13px; }

.directory-layout { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .7fr); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.directory-map-column { min-width: 0; min-height: 660px; display: grid; grid-template-rows: minmax(0, 1fr); }
.directory-map-column.has-offers { grid-template-rows: minmax(480px, 1fr) auto; }
.map-wrap { position: relative; min-height: 660px; }
.directory-map-column.has-offers .map-wrap { min-height: 480px; }
#business-map { position: absolute; inset: 0; background: #111820; }
.map-help { position: absolute; z-index: 600; left: 50%; top: 12px; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); margin: 0; border-radius: 18px; padding: 9px 15px; background: var(--accent); color: #17110a; font-size: 13px; font-weight: 800; line-height: 1.35; text-align: center; box-shadow: 0 10px 35px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { background: rgba(255,255,255,.9) !important; color: #222 !important; }
.leaflet-control-attribution a { color: #075ca8 !important; }
.business-marker { position: relative; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 3px solid #fff; border-radius: 50%; color: #16100a; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.48); font-size: 20px; }
.business-marker-fallback { display: grid; position: absolute; inset: 0; z-index: 1; place-items: center; background: #fff; transition: opacity .15s ease; }
.business-marker-logo { display: block; position: absolute; inset: 3px; z-index: 2; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .15s ease; }
.business-marker.has-loaded-logo .business-marker-logo { opacity: 1; }
.business-marker.has-loaded-logo .business-marker-fallback { opacity: 0; }
.business-marker.logo-failed .business-marker-logo { display: none; }
.business-marker.sponsored { box-shadow: 0 0 0 3px #8fd1ff, 0 6px 20px rgba(0,0,0,.52); }
.pick-marker { width: 24px; height: 24px; border-radius: 50%; border: 4px solid #fff; background: var(--green); box-shadow: 0 3px 15px rgba(0,0,0,.45); }

.offer-rail { min-width: 0; border-top: 1px solid var(--border); padding: 13px 14px 14px; background: linear-gradient(180deg, #161b25, #121720); }
.offer-rail[hidden] { display: none; }
.offer-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.offer-rail-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.offer-rail-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.offer-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 42%); gap: 10px; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding: 1px 1px 7px; }
.offer-card { min-width: 0; scroll-snap-align: start; }
.offer-card-action { width: 100%; min-height: 112px; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 9px; color: var(--text); background: var(--card); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.offer-card-action:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: #202838; transform: translateY(-1px); }
.offer-card-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.offer-card-media { min-width: 0; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: #15100a; background: #fff; }
.offer-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #17110a; background: var(--accent); font-size: 31px; font-weight: 900; }
.offer-card-copy { min-width: 0; display: flex; flex-direction: column; }
.offer-card-meta, .offer-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.offer-card-meta { justify-content: space-between; }
.offer-disclosure { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.offer-value { color: var(--accent); font-size: 14px; font-weight: 900; white-space: nowrap; }
.offer-card-title { margin-top: 4px; overflow: hidden; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.offer-card-body { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #c8d1df; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.offer-card-business { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.offer-card-footer { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 9px; }
.offer-card-cta { margin-left: auto; color: var(--text); font-weight: 800; }
.offer-card-language { border-radius: 999px; padding: 2px 5px; background: #10151e; }

.results { min-height: 0; max-height: 660px; overflow-y: auto; border-left: 1px solid var(--border); }
.results-head { position: sticky; top: 0; z-index: 2; background: rgba(21,25,34,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.results-head h2 { font-size: 17px; margin: 0; }
.results-head span { color: var(--muted); font-size: 13px; }
.business-card { padding: 15px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.business-card:hover, .business-card:focus-visible { background: #202838; outline: none; }
.card-top, .card-meta, .badges, .services-list, .contact-actions { display: flex; align-items: center; gap: 7px; }
.card-top { justify-content: space-between; align-items: flex-start; }
.card-title { margin: 0; font-size: 16px; }
.category { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card-meta { color: var(--muted); font-size: 12px; margin-top: 10px; }
.badge { display: inline-flex; gap: 4px; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge-verified { background: rgba(58,196,125,.13); color: #76dda9; }
.badge-sponsored { background: rgba(99,167,255,.15); color: #9dc9ff; border: 1px solid rgba(99,167,255,.25); }
.badge-status { background: rgba(245,165,36,.12); color: #ffd183; }
.services-list { flex-wrap: wrap; margin-top: 10px; }
.service-chip { padding: 4px 8px; border-radius: 8px; background: #121720; color: #bdc8d8; font-size: 11px; }
.empty { padding: 50px 25px; display: grid; text-align: center; gap: 8px; color: var(--muted); }
.empty strong { color: var(--text); }

.drawer { position: fixed; z-index: 1200; right: 0; top: 0; bottom: 0; width: min(500px, 100%); transform: translateX(105%); transition: transform .22s ease; overflow-y: auto; background: var(--surface); box-shadow: -15px 0 50px rgba(0,0,0,.4); padding: 26px; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; right: 16px; top: 16px; z-index: 2; }
.drawer-back { position: sticky; top: 0; z-index: 2; min-height: 39px; max-width: calc(100% - 55px); border: 0; border-radius: 10px; padding: 7px 10px; color: var(--muted); background: rgba(21,25,34,.94); font-size: 13px; font-weight: 750; cursor: pointer; }
.drawer-back:hover, .drawer-back:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; }
.backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.58); }
.detail-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; background: var(--card); margin: 26px 0 18px; }
.detail-photo-placeholder { display: grid; place-items: center; font-size: 64px; }
.detail h2 { font-size: 27px; margin: 8px 0 6px; }
.detail-address { color: var(--muted); margin: 8px 0 18px; line-height: 1.45; }
.detail-description { color: #cad3e0; line-height: 1.62; white-space: pre-wrap; }
.detail-section { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.detail-section h3 { font-size: 14px; margin: 0 0 10px; }
.detail-offer { display: grid; gap: 8px; margin: 24px 0 17px; padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 15px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.detail-offer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-offer-heading h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.detail-offer-body { margin: 0; color: #d7deea; line-height: 1.5; white-space: pre-wrap; }
.detail-offer-terms, .detail-offer-date { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.detail-offer-promo { width: fit-content; margin: 0; border: 1px dashed var(--accent); border-radius: 9px; padding: 6px 9px; font-size: 12px; }
.contact-actions { flex-wrap: wrap; margin-top: 18px; }
.contact-actions .btn { flex: 1 1 130px; text-decoration: none; text-align: center; }
.share-card { margin-top: 26px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.share-heading h3 { margin: 0 0 6px; font-size: 18px; }
.share-heading p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.share-link-label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.share-link-label input { font-size: 12px; }
.share-layout { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 14px; align-items: stretch; margin-top: 14px; }
.qr-frame { min-width: 0; display: grid; place-items: center; padding: 10px; border-radius: 13px; background: #fff; }
.qr-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-error { margin: 0; color: #8b1d1d; text-align: center; font-size: 12px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.share-actions .btn { min-width: 0; padding-inline: 9px; font-size: 12px; }

.icon-button { width: 39px; height: 39px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 25px; line-height: 1; }
dialog { width: min(780px, calc(100% - 26px)); max-height: calc(100vh - 30px); overflow-y: auto; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--surface); padding: 23px; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dialog-head h2 { margin: 4px 0 0; font-size: 25px; }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 10px; }
.claim-message-label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.safety-note { margin: 11px 0 0; padding: 11px 13px; border: 1px solid rgba(255,103,103,.28); border-radius: 11px; color: #ffb9b9; background: rgba(255,103,103,.07); font-size: 12px; line-height: 1.5; }
#claim-dialog { width: min(620px, calc(100% - 26px)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { color: var(--muted); font-size: 12px; font-weight: 750; display: grid; gap: 6px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { grid-template-columns: auto 1fr; align-items: start; line-height: 1.45; }
.check input { width: 18px; height: 18px; padding: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
#owner-content { min-width: 0; }
.owner-card { padding: 15px; border: 1px solid var(--border); background: var(--card); border-radius: 14px; margin-bottom: 10px; }
.owner-card h3 { margin: 0 0 8px; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.dashboard-title { margin: 18px 0 0; }
.analytics-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 7px; margin: 14px 0 22px; }
.metric { border: 1px solid var(--border); border-radius: 11px; padding: 10px 6px; text-align: center; }
.metric b { display: block; font-size: 20px; }
.metric span { color: var(--muted); font-size: 10px; }
.lead { padding: 12px 0; border-top: 1px solid var(--border); }
.lead p { color: var(--muted); margin: 7px 0; white-space: pre-wrap; }
.analytics-table-wrap { max-width: 100%; margin: 10px 0 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.analytics-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 12px; }
.analytics-table th, .analytics-table td { padding: 9px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.analytics-table thead th { position: sticky; top: 0; color: var(--muted); background: var(--card); font-size: 10px; }
.analytics-table th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--card); }
.analytics-table tbody tr:last-child > * { border-bottom: 0; }
.analytics-empty { color: var(--muted); }

#offer-dialog { width: min(940px, calc(100% - 26px)); }
.offer-cabinet-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.offer-cabinet-intro { min-width: 0; }
.offer-cabinet-intro > strong { font-size: 18px; }
.offer-cabinet-intro p { max-width: 610px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.owner-offer-list { display: grid; gap: 11px; }
.owner-offer-card { padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.owner-offer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.owner-offer-heading h4 { margin: 0; font-size: 17px; }
.owner-offer-body { max-width: 590px; margin: 5px 0 0; color: #c9d2df; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.owner-offer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.owner-offer-code { border: 1px dashed var(--accent); border-radius: 8px; padding: 4px 7px; color: var(--text); }
.owner-offer-moderation { margin: 12px 0 0; border-left: 3px solid var(--danger); padding: 8px 10px; color: #ffbebe; background: rgba(255,103,103,.06); font-size: 12px; line-height: 1.5; }
.owner-offer-empty { border: 1px dashed var(--border); border-radius: 14px; }
.offer-status { flex: 0 0 auto; border: 1px solid rgba(245,165,36,.25); color: #ffd183; background: rgba(245,165,36,.1); }
.offer-status-active, .offer-status-approved { border-color: rgba(58,196,125,.3); color: #85e5b5; background: rgba(58,196,125,.1); }
.offer-status-rejected, .offer-status-suspended { border-color: rgba(255,103,103,.3); color: #ffb0b0; background: rgba(255,103,103,.09); }
.offer-archive { color: #ffc0c0; }
.offer-language-tabs { display: inline-flex; gap: 5px; margin: 14px 0; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #111620; }
.offer-language-tabs button { min-width: 54px; min-height: 36px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.offer-language-tabs button[aria-selected="true"] { color: #17110a; background: var(--accent); }
.offer-language-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-language-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0 0 17px; border: 0; padding: 0; }
.offer-language-panel[hidden] { display: none; }
.offer-language-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.offer-language-panel label:first-of-type { grid-column: 1 / -1; }
.offer-settings-grid { padding-top: 17px; border-top: 1px solid var(--border); }
.offer-live-preview { display: grid; gap: 5px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.offer-live-preview strong { font-size: 17px; }
.offer-live-preview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
.offer-form-error { margin: 13px 0 0; border: 1px solid rgba(255,103,103,.35); border-radius: 10px; padding: 10px 12px; color: #ffb4b4; background: rgba(255,103,103,.08); font-size: 12px; line-height: 1.45; }
.offer-metric-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
.offer-analytics-table { min-width: 460px; }

#toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translate(-50%, 120px); opacity: 0; transition: .2s; max-width: calc(100% - 30px); background: #202837; border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.4); text-align: center; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.error { border-color: rgba(255,103,103,.6); color: #ffaaa9; }

@media (max-width: 900px) {
  body { padding-bottom: 84px; }
  .primary-navigation { display: none; }
  .mobile-navigation { position: fixed; z-index: 1300; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 64px; padding: 7px; border: 1px solid var(--border); border-radius: 18px; color: var(--muted); background: rgba(21,25,34,.97); box-shadow: 0 14px 40px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
  .mobile-navigation a { min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; overflow: hidden; text-decoration: none; }
  .mobile-navigation a[aria-current="page"] { color: var(--text); background: var(--card); border-radius: 12px; }
  .mobile-navigation a > span { color: var(--accent); font-size: 19px; }
  .mobile-navigation small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
  .intro { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .directory-layout { grid-template-columns: 1fr; }
  .directory-map-column { min-height: 440px; }
  .map-wrap { min-height: 440px; }
  .directory-map-column.has-offers { grid-template-rows: minmax(380px, 1fr) auto; }
  .directory-map-column.has-offers .map-wrap { min-height: 380px; }
  .offer-list { grid-auto-columns: minmax(285px, 62vw); }
  .results { border-left: 0; border-top: 1px solid var(--border); max-height: none; }
  .offer-cabinet-toolbar { flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { height: auto; min-height: 66px; flex-wrap: wrap; padding: 10px 13px; }
  .brand span { display: none; }
  .header-actions { flex: 1 1 260px; flex-wrap: wrap; }
  .header-actions .btn { padding: 8px 10px; font-size: 12px; }
  main { padding: 18px 12px 30px; }
  .intro h1 { font-size: 34px; }
  .directory-sections { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-sections a { min-width: 0; padding-inline: 8px; }
  .filters { grid-template-columns: 1fr; }
  .map-wrap { min-height: 360px; }
  .directory-map-column { min-height: 360px; }
  .directory-map-column.has-offers { grid-template-rows: minmax(320px, 1fr) auto; }
  .directory-map-column.has-offers .map-wrap { min-height: 320px; }
  .offer-rail { padding-inline: 11px; }
  .offer-rail-head p { max-width: 310px; }
  .offer-list { grid-auto-columns: minmax(280px, 88vw); scroll-padding-inline: 1px; }
  .offer-card-action { grid-template-columns: 74px minmax(0, 1fr); min-height: 108px; }
  .offer-card-media { height: 88px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-language-panel { grid-template-columns: 1fr; }
  .offer-language-panel label:first-of-type { grid-column: auto; }
  .owner-offer-heading { flex-direction: column; gap: 8px; }
  .offer-form-actions { flex-direction: column-reverse; }
  .drawer { padding: 14px 14px calc(94px + env(safe-area-inset-bottom)); }
  .drawer.open { width: 100%; }
  .drawer-open { overflow: hidden; }
  .detail-photo { margin-top: 17px; }
  .share-card { padding: 14px; }
  .share-layout { grid-template-columns: 1fr; }
  .qr-frame { width: min(240px, 100%); margin: 0 auto; }
  .share-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card-action { transition: none; }
  .offer-card-action:hover { transform: none; }
}

@media print {
  body.printing-qr { background: #fff; }
  body.printing-qr * { visibility: hidden !important; }
  body.printing-qr #business-share-card,
  body.printing-qr #business-share-card * { visibility: visible !important; }
  body.printing-qr #business-share-card { position: fixed; inset: 20mm; margin: 0; border: 0; color: #111; background: #fff; }
  body.printing-qr .share-layout { display: block; }
  body.printing-qr .qr-frame { width: 90mm; margin: 12mm auto 0; }
  body.printing-qr .share-actions { display: none; }
  body.printing-qr .share-heading p,
  body.printing-qr .share-link-label { color: #333; }
  body.printing-qr .share-link-label input { color: #111; background: #fff; border-color: #999; }
}
