/* Sami Swoi — motyw dzień (domyślny w dzień) i noc */
:root, [data-theme="light"] {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #F1F4F8;
  --surface-3: #E8EDF3;
  --ink: #15203A;
  --muted: #5A6984;
  --faint: #8592A8;
  --line: #E1E7EF;
  --brand: #D7263D;
  --brand-hover: #C01F35;
  --brand-ink: #FFFFFF;
  --brand-soft: #FDECEE;
  --sun: #F4A51C;
  --ok: #178A5B;
  --focus: #2F7DE1;
  --shadow: 0 1px 2px rgba(21, 32, 58, .06), 0 12px 32px -12px rgba(21, 32, 58, .18);
  --shadow-lg: 0 24px 64px -20px rgba(21, 32, 58, .35);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0D1628;
  --surface: #131F36;
  --surface-2: #1A2843;
  --surface-3: #22324F;
  --ink: #EAF0F8;
  --muted: #A2B0C8;
  --faint: #7484A0;
  --line: #24344F;
  --brand: #FF5068;
  --brand-hover: #FF6B80;
  --brand-ink: #1A0508;
  --brand-soft: rgba(255, 80, 104, .14);
  --sun: #FFB547;
  --ok: #5CD3A0;
  --focus: #7DB4FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
:root {
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); margin: 0; }

/* Logo: „sami” + „swoi”, kropka nad i = pinezka w barwach */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font: 800 30px/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.logo__a { font-weight: 600; color: var(--muted); margin-right: .04em; }
.logo__i { position: relative; display: inline-block; }
.logo__i::after { content: ''; position: absolute; left: 50%; top: -.2em; width: .34em; height: .34em; margin-left: -.17em; border-radius: 50%; background: linear-gradient(180deg, #fff 0 50%, var(--brand) 50% 100%); box-shadow: 0 0 0 .05em var(--ink); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--full { width: 100%; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s; flex: none; }
.iconbtn:hover { border-color: var(--faint); }
.iconbtn--soft { border: 0; background: var(--surface-2); border-radius: var(--r-sm); width: 44px; height: 44px; color: var(--muted); }
.iconbtn--map { box-shadow: var(--shadow); border-color: transparent; }
.linkbtn { background: none; border: 0; padding: 6px 2px; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-size: .9em; white-space: nowrap; }
.ok .ico { width: 1.05em; height: 1.05em; stroke-width: 2.6; }
.ok--dot { margin-left: 5px; vertical-align: -2px; }

/* ===================== STRONA GŁÓWNA (mapa) ===================== */
.app, .app body { height: 100%; overflow: hidden; }
body.app { height: 100dvh; overflow: hidden; }
#map { position: fixed; inset: 0; background: var(--bg); }
.maplibregl-ctrl-attrib { font-size: 11px; }
[data-theme="dark"] .maplibregl-ctrl-attrib { background: rgba(13, 22, 40, .75) !important; color: var(--faint); }
[data-theme="dark"] .maplibregl-ctrl-attrib a { color: var(--muted) !important; }
[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1); }

.appbar { position: fixed; z-index: 20; top: 16px; left: 16px; width: 404px; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 1px solid var(--line); }
.panel { position: fixed; z-index: 15; top: 80px; left: 16px; bottom: 16px; width: 404px; background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.appbar { box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, .25); }
.panel__grip { display: none; }
.panel:has(#home:not([hidden]) #catgrid[hidden]) { bottom: auto; }
.panel__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 22px; overscroll-behavior: contain; scrollbar-width: thin; }

.here { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.here .ico { width: 18px; height: 18px; color: var(--brand); }
.here b { color: var(--ink); font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--focus); background: var(--surface); }
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 10px; }
.field label { font-size: 14px; color: var(--muted); padding-left: 6px; }
.select { position: relative; }
.select select { appearance: none; width: 100%; height: 46px; padding: 0 40px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; }
.select .ico { position: absolute; right: 14px; top: 13px; pointer-events: none; color: var(--muted); }

.ph1 { font-size: 24px; margin: 0; }
.cats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; }
.cats-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13.5px; flex: none; }
.cats-toggle:hover { color: var(--ink); border-color: var(--faint); }
.cats-toggle .ico { width: 18px; height: 18px; transition: transform .2s; }
.cats-toggle[aria-expanded="false"] .ico { transform: rotate(180deg); }
.appbar, .panel { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.panel-hidden .appbar, .panel-hidden .panel { transform: translateX(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.panel-show { position: fixed; z-index: 16; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-lg); }
.catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px 10px 10px; min-height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s, transform .12s; }
.cat:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.cat:active { transform: scale(.98); }
.cat__ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: var(--c); }
.cat__name { font-weight: 600; font-size: 14px; line-height: 1.25; align-self: end; }
.cat__n { font-size: 12.5px; color: var(--muted); align-self: start; }
[data-theme="dark"] .cat__ico { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 60%, #fff); }

.promo { margin-top: 18px; padding: 16px; border-radius: var(--r-lg); background: var(--brand-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.promo p { margin: 0; font-size: 14.5px; color: var(--ink); }

.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 8px; margin: -4px 0 10px -8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.back:hover { background: var(--surface-2); color: var(--ink); }
.rhead { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rhead__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; }
.rhead__ico .ico { width: 26px; height: 26px; }
.rhead h2 { font-size: 21px; }
.rhead p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.list { list-style: none; margin: 6px -10px 0; padding: 0; }
.row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--r-md); text-decoration: none; transition: background .12s; }
.row:hover { background: var(--surface-2); }
.row__ico, .fcard__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
[data-theme="dark"] .row__ico, [data-theme="dark"] .fcard__ico { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 60%, #fff); }
.row__txt, .fcard__txt { min-width: 0; }
.row__txt b, .fcard__txt b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.row__txt > span, .fcard__txt > span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.row__price, .fcard__price { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 26px 10px; text-align: center; }
.empty b { display: block; font: 800 18px var(--display); margin-bottom: 4px; }
.empty p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.seolink { display: block; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }

.mapctl { position: fixed; z-index: 10; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; }
.cta-add { position: fixed; z-index: 10; right: 16px; bottom: 34px; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15.5px; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .15s, background .15s; }
.cta-add:hover { background: var(--brand-hover); transform: translateY(-1px); }

#crosshair { position: fixed; z-index: 9; left: 50%; top: 50%; pointer-events: none; }
#crosshair span { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
#crosshair span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--brand); }
.pickbar { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.pickbar p { margin: 0; font-weight: 500; font-size: 14.5px; }
.pickbar div { display: flex; gap: 6px; flex: none; }

.maplibregl-popup-content { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 0; box-shadow: var(--shadow-lg); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--surface); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--surface); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface); }
.pop { display: block; padding: 12px 16px; text-decoration: none; font-family: var(--body); }
.pop b { display: block; font-size: 15px; }
.pop span { display: block; font-size: 13px; color: var(--muted); }
.pop em { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--brand); }

/* ===================== PODSTRONY ===================== */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in, .wrap, .foot__in { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.topbar__in { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.topbar__nav { display: flex; align-items: center; gap: 8px; }
.logo { font-size: 28px; }
.wrap { padding-top: 18px; padding-bottom: 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }

.fhero { position: relative; margin-bottom: 20px; }
.fhero__cover { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: var(--r-xl); background: var(--surface-3); }
.fhero__head { display: flex; align-items: flex-end; gap: 18px; padding: 0 28px; margin-top: -48px; position: relative; }
.fhero__logo { width: 104px; height: 104px; border-radius: 28px; display: grid; place-items: center; background: var(--c); color: #fff; border: 5px solid var(--bg); flex: none; box-shadow: var(--shadow); }
.fhero__logo .ico { width: 46px; height: 46px; stroke-width: 1.6; }
.fhero h1 { font-size: clamp(28px, 4vw, 42px); }
.fhero__head > div { padding-top: 60px; }
.fhero__sub { margin: 6px 0 4px; color: var(--muted); font-size: 15.5px; }

.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.fmain, .fside { display: grid; gap: 16px; }
.fside { position: sticky; top: 88px; }
.card { background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card__head h2 { margin: 0; }
.lead { margin: 0; font-size: 17px; max-width: 64ch; }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--faint); }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices tr:last-child td { border-bottom: 0; }
.prices td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.prices small { color: var(--muted); font-weight: 400; font-size: 13px; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.item { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.item b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.item span { font: 800 19px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.item__buy { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.post { padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 2px; }
.post time { font-size: 13px; color: var(--faint); font-weight: 500; }
.post p { margin: 4px 0 0; font-size: 16px; }
.post img { display: block; margin-top: 10px; max-width: 100%; max-height: 360px; border-radius: var(--r-md); }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--surface-3); }

.contact { display: grid; gap: 10px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact__row .btn { padding: 0 10px; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.facts li .ico { color: var(--faint); width: 18px; height: 18px; }
.facts a { color: var(--brand); text-underline-offset: 3px; }
.minimap { height: 170px; border-radius: var(--r-md); overflow: hidden; margin-top: 6px; background: var(--surface-2); }
.mpin { margin-bottom: 6px; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.mpin .ico { rotate: 45deg; color: #fff; width: 18px; height: 18px; }
.owner h2, .soon h2 { font-size: 18px; margin-bottom: 6px; }
.owner .muted, .soon .muted { font-size: 14.5px; margin-bottom: 14px; }
.owner__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.owner .linkbtn { margin-top: 8px; color: var(--muted); }
.soon { background: linear-gradient(145deg, color-mix(in srgb, var(--sun) 16%, var(--surface)), var(--surface) 60%); }
.soon__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: #2A1A00; font-weight: 600; font-size: 12.5px; margin-bottom: 10px; }

/* strony kraj / kategoria */
.lp-head { padding: 18px 0 22px; }
.lp-head h1 { font-size: clamp(30px, 5vw, 52px); max-width: 20ch; text-wrap: balance; }
.lp-head p { margin: 12px 0 0; font-size: 17.5px; color: var(--muted); max-width: 60ch; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.fcard { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .12s; }
.fcard:hover { transform: translateY(-2px); }
.lp-sec { margin-top: 36px; }
.lp-sec h2 { font-size: 22px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.chips a .ico { color: var(--c); width: 18px; height: 18px; }
.chips a small { color: var(--muted); }
.lp-cats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lp-cats .cat { text-decoration: none; }

.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot__in { padding-top: 30px; padding-bottom: 34px; }
.legal-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 4px; font-size: 12.5px; }
.legal-mini a { color: var(--faint); text-underline-offset: 3px; }
.foot nav + nav { margin-top: 12px; }
.sw-legal h2 { margin: 26px 0 8px; }
.sw-legal p, .sw-legal ul { margin: 0 0 10px; }
.sw-legal ul { padding-left: 20px; display: grid; gap: 6px; }
.sw-legal .muted { margin-bottom: 4px; }
.sw-gis { display: flex; justify-content: center; min-height: 44px; }
.foot p { margin: 10px 0 16px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot nav a { color: var(--muted); text-underline-offset: 3px; }
.foot__small { font-size: 12.5px; color: var(--faint) !important; margin-top: 18px !important; }

/* ===================== OKNA ===================== */
.dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dlg--wide { width: min(620px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(10, 16, 30, .5); }
.dlg[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-size: 21px; }
.dlg__head .iconbtn { border: 0; background: var(--surface-2); }
.dlg__body { padding: 18px 24px 8px; }
.dlg__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; background: var(--surface); border-top: 1px solid var(--line); }
.dlg__h3 { font-size: 16px; margin: 20px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dlg__h3 small { font: 400 13px var(--body); color: var(--muted); margin-right: auto; margin-left: 6px; }
.note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--sun) 16%, var(--surface)); font-size: 14px; }
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.f input, .f textarea, .f select { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; }
.f input:focus, .f textarea:focus, .f select:focus { outline: 0; border-color: var(--focus); }
.f textarea { min-height: 100px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; }
.line input { min-height: 46px; padding: 9px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; min-width: 0; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.ph-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; }
.ph-del .ico { width: 16px; height: 16px; }
.ph-add { aspect-ratio: 1; border: 1.5px dashed var(--faint); border-radius: var(--r-md); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted); cursor: pointer; text-align: center; font-size: 12.5px; padding: 6px; }
.ph-add input { display: none; }
.err { display: block; color: var(--brand); font-size: 14px; font-weight: 500; min-height: 1em; margin-top: 4px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: 14.5px; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===================== TELEFON ===================== */
@media (max-width: 1023px) {
  .fgrid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .fside { display: contents; }
  .fmain { order: 1; }
  .contact { order: 0; }
  .owner, .soon { order: 2; }
  .shop { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 767px) {
  .hide-sm { display: none !important; }
  .appbar { top: 10px; left: 10px; width: auto; height: 48px; padding: 0 16px; border-radius: 999px; border: 0; box-shadow: var(--shadow); }
  .appbar .logo { font-size: 24px; }
  .mapctl { top: 10px; right: 10px; flex-direction: row; }
  .cta-add { top: 66px; bottom: auto; right: 10px; height: 44px; padding: 0 16px 0 12px; font-size: 14.5px; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 58dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; transition: height .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
  .panel[data-state="min"] { height: 132px; }
  .panel[data-state="mid"]:has(#home:not([hidden]) #catgrid[hidden]) { height: auto; }
  .panel[data-state="max"] { height: calc(100dvh - 64px); }
  .panel__grip { display: grid; place-items: center; width: 100%; height: 24px; border: 0; background: none; flex: none; }
  .panel__grip span { width: 44px; height: 5px; border-radius: 9px; background: var(--surface-3); }
  .panel__scroll { padding: 0 16px 20px; }
  .ph1 { font-size: 21px; }
  .cats-head { margin-top: 18px; }
  .pickbar { flex-direction: column; align-items: stretch; bottom: 148px; }
  .pickbar div { justify-content: flex-end; }
  .topbar__in, .wrap, .foot__in { padding-left: 16px; padding-right: 16px; }
  .topbar__in { height: 60px; }
  .logo { font-size: 24px; }
  .fhero__cover { height: 180px; border-radius: var(--r-lg); }
  .fhero__head { padding: 0 6px; gap: 14px; margin-top: -36px; align-items: flex-end; }
  .fhero__logo { width: 76px; height: 76px; border-radius: 22px; border-width: 4px; }
  .fhero__head > div { padding-top: 44px; }
  .fhero__logo .ico { width: 34px; height: 34px; }
  .card { padding: 18px; }
  .pics { grid-template-columns: 1fr 1fr; }
  .fcards { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .line { grid-template-columns: 1fr 92px 44px; }
  .dlg__body { padding: 16px 18px 6px; }
  .dlg__head { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
