/* ==========================================================================
   Zuffio – dizajnový systém
   Farby podľa loga: krémová #FDF8F2, modrá #4A9FDB, zelená #70D6B0, oranžová #F8B65C
   ========================================================================== */

@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FDF8F2;
  --bg-alt: #F8F0E5;
  --surface: #FFFFFF;
  --ink: #1E2B3A;
  --text: #3A4756;
  --muted: #64707D;
  --faint: #6B7682;
  --line: #EEE4D7;
  --line-strong: #E0D2C0;

  --blue: #4A9FDB;
  --blue-50: #EEF6FC;
  --blue-100: #DDEEFA;
  --blue-200: #B9DBF3;
  --blue-600: #2F86C6;
  --blue-700: #2370AD;
  --blue-800: #1D5A8A;
  --blue-900: #163F60;

  --green: #70D6B0;
  --green-50: #EDFAF5;
  --green-100: #D7F4E8;
  --green-200: #B2EAD4;
  --green-700: #17694D;
  --green-800: #12523C;

  --orange: #F8B65C;
  --orange-50: #FFF7EC;
  --orange-100: #FEEBD0;
  --orange-200: #FCD9A6;
  --orange-600: #EE9F37;
  --orange-700: #9A5A0C;
  --orange-900: #3B2A0E;

  --red: #D64545;
  --red-50: #FDEEEE;
  --red-700: #A12F2F;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(30, 43, 58, .06);
  --shadow: 0 1px 2px rgba(30, 43, 58, .04), 0 8px 24px rgba(30, 43, 58, .07);
  --shadow-lg: 0 2px 6px rgba(30, 43, 58, .05), 0 22px 56px rgba(30, 43, 58, .13);
  --ring: 0 0 0 4px rgba(74, 159, 219, .28);

  --font: 'Nunito Variable', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Základ ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 850; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); font-weight: 900; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
strong, b { font-weight: 800; color: var(--ink); }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
ul, ol { padding-left: 1.25rem; }
::selection { background: var(--blue-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--sm { width: 1em; height: 1em; vertical-align: -.15em; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.2em; height: 2.2em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Rozloženie ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 800px; }
.container--mid { max-width: 1000px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 48px); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--wide { max-width: none; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; color: var(--blue-700); margin: 0 0 .75rem; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--green); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 28px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cluster--lg { gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: var(--pill); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 4px 14px rgba(35, 112, 173, .25); }
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--accent { background: var(--orange); color: var(--orange-900); box-shadow: 0 4px 14px rgba(238, 159, 55, .28); }
.btn--accent:hover { background: var(--orange-600); color: var(--orange-900); }
.btn--secondary { background: var(--surface); color: var(--blue-700); border-color: var(--blue-200); }
.btn--secondary:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue-800); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(30, 43, 58, .06); color: var(--ink); }
.btn--danger { background: var(--surface); color: var(--red-700); border-color: #F2C4C4; }
.btn--danger:hover { background: var(--red-50); border-color: var(--red); color: var(--red-700); }
.btn--danger-solid { background: var(--red); color: #fff; }
.btn--danger-solid:hover { background: var(--red-700); color: #fff; }
.btn--success { background: var(--green-700); color: #fff; }
.btn--success:hover { background: var(--green-800); color: #fff; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.075rem; }
.btn--sm { padding: .5rem .95rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--icon { padding: .6rem; border-radius: 50%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blue-800); }
.link-btn--danger { color: var(--red-700); }
.inline-form { display: inline; margin: 0; }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
}
/* rozmazané pozadie je v ::before – inak by orezalo pevne umiestnené mobilné menu */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(253, 248, 242, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
/* tieň po odscrollovaní – počíta prehliadač sám v CSS (bez skriptu), staršie prehliadače ho jednoducho nemajú */
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-shadow linear both; animation-timeline: scroll(root); animation-range: 0 40px; }
  @keyframes header-shadow { to { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(30, 43, 58, .05); } }
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 12px; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { padding: .55rem .85rem; border-radius: var(--pill); color: var(--text); font-weight: 750; text-decoration: none; }
.site-nav a:hover { background: rgba(74, 159, 219, .1); color: var(--blue-800); }
.site-nav a[aria-current='page'] { color: var(--blue-700); background: var(--blue-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.header-icon:hover { background: rgba(74, 159, 219, .1); color: var(--blue-800); }
.header-icon .icon { width: 22px; height: 22px; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--pill); background: var(--orange); color: var(--orange-900);
  font-size: .72rem; font-weight: 900; line-height: 19px; text-align: center; border: 2px solid var(--bg);
}
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--orange); color: var(--orange-900); font-size: .75rem; font-weight: 900; line-height: 22px; text-align: center; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: var(--pill); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: rgba(74, 159, 219, .1); }
.user-menu > summary .icon { color: var(--muted); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__head strong { display: block; }
.menu__head span { color: var(--muted); font-size: .85rem; word-break: break-all; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: .6rem .75rem; border-radius: 10px;
  color: var(--text); font: inherit; font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--bg); color: var(--ink); }
.menu .icon { color: var(--muted); width: 18px; height: 18px; }
.menu hr { margin: 6px 0; }

.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__close, .mobile-menu[open] .mobile-menu__open { display: none; }
.mobile-menu[open] .mobile-menu__close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .site-nav, .header-actions .hide-mobile { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu[open] > .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto;
    background: var(--bg); padding: 16px 20px 40px; border-top: 1px solid var(--line);
  }
  .mobile-nav a:not(.btn), .mobile-nav button:not(.btn) {
    display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; width: 100%;
    font: inherit; font-size: 1.1rem; font-weight: 800; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
  }
  .mobile-nav a:not(.btn):hover, .mobile-nav button:not(.btn):hover { background: var(--surface); }
  .mobile-nav a:not(.btn) .icon, .mobile-nav button:not(.btn) .icon { color: var(--blue-700); }
  .mobile-nav__actions { display: grid; gap: 10px; margin-top: 18px; }
  .mobile-nav__actions .btn { width: 100%; font-size: 1.05rem; padding: 1rem; }
  .mobile-nav hr { margin: 12px 0; }
  body:has(.mobile-menu[open]) { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand img { height: 32px; }
  .site-header__inner { gap: 10px; }
  .header-actions { gap: 4px; }
  .header-actions > .btn--accent { padding: .6rem .9rem; font-size: .92rem; }
  .header-actions > .btn--accent .btn-label-long { display: none; }
}
@media (min-width: 481px) { .btn-label-short { display: none; } }

/* ---------- Upozornenia ---------- */

.flash-stack { display: grid; gap: 10px; margin-top: 16px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid; font-weight: 650; box-shadow: var(--shadow-sm); animation: flash-in .3s ease-out;
}
.flash .icon { margin-top: 2px; }
.flash p { margin: 0; flex: 1; }
.flash__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 2px; border-radius: 6px; position: relative; }
.flash__close:has(input:focus-visible) { outline: 3px solid currentColor; }
.flash:has(.flash__close input:checked) { display: none; }
.flash__close:hover { opacity: 1; }
.flash--success { background: var(--green-50); border-color: var(--green-200); color: var(--green-800); }
.flash--error { background: var(--red-50); border-color: #F2C4C4; color: var(--red-700); }
.flash--warning { background: var(--orange-50); border-color: var(--orange-200); color: var(--orange-700); }
.flash--info { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-800); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.notice-bar { background: var(--orange-100); color: var(--orange-900); font-weight: 700; font-size: .95rem; }
.notice-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
.notice-bar form { margin: 0 0 0 auto; }
.notice-bar .link-btn { color: var(--orange-900); }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-900); }
.callout > .icon { color: var(--blue-700); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--green { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); }
.callout--green > .icon { color: var(--green-700); }
.callout--orange { background: var(--orange-50); border-color: var(--orange-100); color: var(--orange-900); }
.callout--orange > .icon { color: var(--orange-700); }
.callout strong { color: inherit; }

/* ---------- Karty, odznaky, čipy ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card__body { padding: clamp(20px, 3vw, 28px); }
.card__title { font-size: 1.15rem; margin-bottom: .75rem; display: flex; align-items: center; gap: 10px; }
.card__title .icon { color: var(--blue-700); }
.card--flat { box-shadow: none; }
.card--soft { background: var(--bg); box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--pill);
  font-size: .85rem; font-weight: 800; line-height: 1.3; background: var(--bg-alt); color: var(--text); white-space: nowrap;
}
.chip .icon { width: 1.05em; height: 1.05em; }
.chip--blue { background: var(--blue-50); color: var(--blue-800); }
.chip--green { background: var(--green-100); color: var(--green-800); }
.chip--orange { background: var(--orange-100); color: var(--orange-700); }
.chip--red { background: var(--red-50); color: var(--red-700); }
.chip--white { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.chip--outline { background: transparent; border: 1.5px solid var(--line-strong); }
.chip--lg { padding: .45rem .9rem; font-size: .95rem; }

.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 800; padding: .25rem .65rem; border-radius: var(--pill); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--active { background: var(--green-100); color: var(--green-800); }
.status--paused { background: var(--bg-alt); color: var(--muted); }
.status--filled { background: var(--blue-50); color: var(--blue-800); }
.status--expired { background: var(--bg-alt); color: var(--muted); }
.status--removed { background: var(--red-50); color: var(--red-700); }
.status--open { background: var(--orange-100); color: var(--orange-700); }
.status--accepted { background: var(--green-100); color: var(--green-800); }
.status--declined { background: var(--bg-alt); color: var(--muted); }

/* ---------- Avatar ---------- */

.avatar {
  --size: 44px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center; font-weight: 900; font-size: calc(var(--size) * .38); letter-spacing: .02em;
  background: var(--blue-100); color: var(--blue-800); border: 2px solid var(--surface); box-shadow: var(--shadow-sm);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--green { background: var(--green-100); color: var(--green-800); }
.avatar--orange { background: var(--orange-100); color: var(--orange-700); }
.avatar--xs { --size: 28px; }
.avatar--sm { --size: 36px; }
.avatar--lg { --size: 72px; }
.avatar--xl { --size: 120px; border-width: 4px; }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--orange); }
.stars .icon { width: 1.05em; height: 1.05em; fill: currentColor; stroke: none; }
.stars .icon.is-empty { fill: var(--line-strong); }
.rating { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--ink); }
.rating .muted { font-weight: 600; }

.verified { display: inline-flex; align-items: center; gap: .3rem; color: var(--green-700); font-weight: 800; font-size: .9rem; }

/* ---------- Formuláre ---------- */

.form { display: grid; gap: 20px; }
.form-section { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section__head { display: flex; gap: 14px; align-items: flex-start; }
.form-section__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; font-weight: 900; }
.form-section__head h2 { font-size: 1.3rem; margin: 4px 0 2px; }
.form-section__head p { margin: 0; color: var(--muted); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-weight: 800; color: var(--ink); font-size: .95rem; }
.field__label .optional { color: var(--faint); font-weight: 600; }
.field__hint { color: var(--muted); font-size: .875rem; margin: 0; }
.field__error { color: var(--red-700); font-size: .875rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .78rem .95rem; min-height: 50px;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #A3ABB4; font-weight: 500; }
.input:hover, .select:hover, .textarea:hover { border-color: #CDBFAE; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364707D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--red); }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .select { width: auto; flex: none; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 2.6rem; }
.input-affix__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; pointer-events: none; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input, .input-icon .select { padding-left: 2.75rem; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 650; color: var(--text); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue-700); cursor: pointer; }
.check span small { display: block; color: var(--muted); font-weight: 500; }
.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span {
  display: flex; align-items: center; gap: 8px; padding: .65rem .9rem; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 750; cursor: pointer; transition: all .15s;
}
.check-pill span .icon { color: var(--muted); }
.check-pill input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue-800); }
.check-pill input:checked + span .icon { color: var(--blue-700); }
.check-pill input:focus-visible + span { box-shadow: var(--ring); }

.choice-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 16px 16px 18px; border-radius: var(--radius);
  border: 2px solid var(--line-strong); background: var(--surface); transition: all .15s;
}
.choice__box .icon { color: var(--blue-700); width: 26px; height: 26px; }
.choice__title { font-weight: 850; color: var(--ink); }
.choice__text { font-size: .875rem; color: var(--muted); line-height: 1.45; }
.choice:hover .choice__box { border-color: var(--blue-200); }
.choice input:checked + .choice__box { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue) inset; }
.choice input:focus-visible + .choice__box { box-shadow: var(--ring); }
.choice__tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.choice input:checked ~ .choice__tick { border-color: var(--blue-700); background: var(--blue-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.conditional[hidden] { display: none !important; }
.listing-form:has([data-owner-home]:not(:checked)) [data-show-if='owner-home'] { display: none; }
.listing-form:has([data-reward][value='paid']:not(:checked)) [data-show-if='paid'] { display: none; }
.toggle-scope:has(.toggle-src:not(:checked)) .toggle-dst { display: none; }

.pet-rows { display: grid; gap: 14px; }
.pet-row { position: relative; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.pet-row__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.pet-row__notes { margin-top: 12px; }
.pet-row__remove { position: absolute; top: 10px; right: 10px; }
.pet-slot { display: grid; justify-items: start; }
.pet-slot > .pet-row { justify-self: stretch; }
.pet-slot:has(> .pet-on:not(:checked)) > .pet-row { display: none; }
.pet-slot:has(> .pet-on:checked) > .pet-add { display: none; }
.pet-slot:has(> .pet-on:not(:checked)) ~ .pet-slot:has(> .pet-on:not(:checked)) { display: none; }
.pet-on:focus-visible + .pet-add { box-shadow: var(--ring); }

.upload {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 20px; border-radius: var(--radius);
  border: 2px dashed var(--blue-200); background: var(--blue-50); color: var(--blue-900); cursor: pointer; transition: all .15s;
}
.upload:hover, .upload.is-dragover { border-color: var(--blue); background: var(--blue-100); }
.upload .icon { width: 36px; height: 36px; color: var(--blue-700); }
.upload { position: relative; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:has(input:focus-visible) { box-shadow: var(--ring); }
.upload.is-busy { opacity: .7; pointer-events: none; }
.upload strong { color: var(--blue-800); }
.upload small { color: var(--muted); }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-tile { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; border: 2px solid transparent; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile__bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 6px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.photo-tile__bar label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .92); font-size: .75rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.photo-tile__bar input { accent-color: var(--blue-700); margin: 0; }
.photo-tile:has([data-cover]:checked) { border-color: var(--blue); }
.photo-tile:has([data-remove]:checked) img { opacity: .3; filter: grayscale(1); }
.photo-grid:empty { display: none; }
.photo-tile__new { position: absolute; top: 6px; left: 6px; }

/* ---------- Úvod (hero) ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--blue-700); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .26em; background: var(--green); opacity: .45; border-radius: 6px; z-index: -1; }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--green-700); }
.hero__art { position: relative; }
.hero__art > img { width: 100%; max-width: 560px; margin-inline: auto; }
.hero__float { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); font-weight: 800; color: var(--ink); font-size: .92rem; }
.hero__float small { display: block; color: var(--muted); font-weight: 650; font-size: .78rem; }
.hero__float .bubble-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.hero__float--1 { top: 4%; left: -2%; animation: float 6s ease-in-out infinite; }
.hero__float--2 { bottom: 6%; right: -3%; animation: float 7s ease-in-out infinite reverse; }
.hero__float--3 { bottom: -2%; left: 2%; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__float { animation: none !important; } }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; z-index: -1; }
.blob--green { background: var(--green); width: 420px; height: 420px; top: -120px; right: -80px; }
.blob--orange { background: var(--orange); width: 320px; height: 320px; bottom: -140px; left: -100px; opacity: .3; }
.blob--blue { background: var(--blue); width: 280px; height: 280px; top: 30%; left: 40%; opacity: .14; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__float--3 { display: none; }
}
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
  .hero__float { font-size: .8rem; padding: 8px 10px; }
  .hero__float--1 { left: 0; }
  .hero__float--2 { right: 0; }
}

/* Vyhľadávací box */
.search-box { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; padding: 8px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.search-box .field__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 4px; }
.search-box .select, .search-box .input { border-color: transparent; background-color: var(--bg); min-height: 48px; }
.search-box .select:hover, .search-box .input:hover { border-color: var(--line-strong); }
.search-box .field { padding: 4px; }
.search-box .btn { align-self: end; margin: 4px; min-height: 50px; }
/* na užších obrazovkách má „Kde“ celý riadok, aby sa zmestil celý príklad obce */
@media (max-width: 1000px) { .search-box { grid-template-columns: 1fr 1fr auto; } .search-box .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .search-box { grid-template-columns: 1fr 1fr; } .search-box .btn { grid-column: 1 / -1; } }
@media (max-width: 460px) { .search-box { grid-template-columns: 1fr; } }

/* ---------- Kroky, výhody ---------- */

.tabs { display: inline-flex; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); gap: 4px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.tabs label { font: inherit; font-weight: 800; padding: .6rem 1.2rem; border-radius: var(--pill); cursor: pointer; color: var(--muted); }
.tabs__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs__radio:checked + label { background: var(--blue-700); color: #fff; }
.tabs__radio:focus-visible + label { box-shadow: var(--ring); }
.tabset:has(#t-owners:checked) .tab-panel--sitters, .tabset:has(#t-sitters:checked) .tab-panel--owners { display: none; }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; }
.step__icon .icon { width: 28px; height: 28px; }
.step__num { position: absolute; top: 22px; right: 24px; font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--line); }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--muted); }
.tint-blue { background: var(--blue-50); color: var(--blue-700); }
.tint-green { background: var(--green-100); color: var(--green-700); }
.tint-orange { background: var(--orange-100); color: var(--orange-700); }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature__icon { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.care-options { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.care-option { padding: 28px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.care-option h3 { display: flex; align-items: center; gap: 10px; }
.care-option p { margin: 0; }
.care-option--blue { background: var(--blue-50); }
.care-option--green { background: var(--green-50); }
.care-option--orange { background: var(--orange-50); }
.care-option__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.care-option__icon .icon { width: 26px; height: 26px; }

/* Cenník */
.pricing { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.plan__tag { position: absolute; top: -14px; left: 28px; }
.plan__who { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; color: var(--blue-700); margin-bottom: 8px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.plan__price strong { font-size: 3.2rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.plan__price span { color: var(--muted); font-weight: 700; }
.plan__note { color: var(--muted); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; }
.plan li .icon { color: var(--green-700); margin-top: 2px; }
.plan__action { margin-top: auto; }

/* CTA pás */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 56px); background: var(--blue-700); color: #fff; display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.1rem; }
.cta-band::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--green); opacity: .25; right: -80px; top: -120px; }
.cta-band::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--orange); opacity: .25; right: 140px; bottom: -150px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn--accent { box-shadow: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 850; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--blue-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232370AD' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 22px 20px; color: var(--text); }
.faq__body p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }

/* ---------- Kartička inzerátu ---------- */

.listing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.lcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.lcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lcard:hover .lcard__media img { transform: scale(1.04); }
.lcard__badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.lcard__fav { position: absolute; right: 10px; top: 10px; z-index: 3; margin: 0; }
.fav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, color .15s;
}
.fav-btn:hover { transform: scale(1.08); color: #E2557A; }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn.is-saved { color: #E2557A; }
.fav-btn.is-saved .icon { fill: currentColor; }
.lcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.lcard__title { font-size: 1.08rem; font-weight: 850; line-height: 1.3; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__title a { color: inherit; text-decoration: none; }
.lcard__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lcard__meta { display: grid; gap: 4px; color: var(--muted); font-weight: 650; font-size: .92rem; }
.lcard__meta span { display: flex; align-items: center; gap: 7px; }
.lcard__meta .icon { color: var(--faint); width: 17px; height: 17px; }
.lcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pet-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pet-icon { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--pill); background: var(--green-50); color: var(--green-800); font-size: .8rem; font-weight: 850; }
.pet-icon .icon { width: 16px; height: 16px; }
.care-icons { display: flex; gap: 6px; color: var(--muted); }
.care-icons .icon { width: 18px; height: 18px; }

.placeholder-cover { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.placeholder-cover--0 { background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue-600); }
.placeholder-cover--1 { background: linear-gradient(135deg, var(--green-50), var(--green-100)); color: var(--green-700); }
.placeholder-cover--2 { background: linear-gradient(135deg, var(--orange-50), var(--orange-100)); color: var(--orange-600); }
.placeholder-cover .icon { width: 30%; height: 30%; stroke-width: 1.5; opacity: .9; }
.placeholder-cover::before, .placeholder-cover::after { content: ''; position: absolute; border-radius: 50%; background: currentColor; opacity: .09; }
.placeholder-cover::before { width: 46%; aspect-ratio: 1; right: -8%; top: -12%; }
.placeholder-cover::after { width: 30%; aspect-ratio: 1; left: -6%; bottom: -10%; }

/* ---------- Zoznam inzerátov (filtre) ---------- */

.page-hero { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); position: relative; overflow: hidden; }
.page-hero--compact { padding-block: clamp(28px, 5vw, 52px) clamp(16px, 2vw, 24px); }
.page-hero__title { margin-bottom: .3em; }
.page-hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }

.browse { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filters__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; }
.filters .input, .filters .select { min-width: 0; }
.filters .date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.filters .date-row .input { padding-inline: .6rem; font-size: .92rem; }
.filters .date-row .field__label { font-size: .8rem; }
.filters h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 850; color: var(--ink); font-size: .95rem; margin-bottom: 8px; padding: 0; }
.filters .check { font-size: .95rem; }
.filters .check input { width: 19px; height: 19px; }
.filters-toggle { display: none; }
.browse__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.browse__count { font-weight: 800; color: var(--ink); margin: 0; }
.browse__bar .select { width: auto; min-height: 44px; padding-block: .55rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters a { text-decoration: none; }
.active-filters .chip { background: var(--surface); border: 1.5px solid var(--blue-200); color: var(--blue-800); }
.active-filters .chip:hover { border-color: var(--blue); }
@media (max-width: 960px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters-open:checked + .browse .filters { display: block; }
  .filters-toggle { display: inline-flex; }
  .filters-open:focus-visible + .browse .filters-toggle { box-shadow: var(--ring); }
  .filters-open:checked + .browse .filters-toggle { background: var(--blue-50); border-color: var(--blue); }
}

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--pill);
  font-weight: 800; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue-800); }
.pagination [aria-current='page'] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pagination .is-disabled { opacity: .4; }

.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; display: grid; justify-items: center; gap: 6px; }
.empty__icon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 12px; }
.empty__icon .icon { width: 40px; height: 40px; }
.empty h2, .empty h3 { margin: 0; font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 440px; margin: 4px 0 16px; }

/* ---------- Detail inzerátu ---------- */

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); }
.breadcrumbs .icon { width: 14px; height: 14px; color: var(--faint); }

.gallery { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 2.2 / 1; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 32px; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 2.2 / 1; }
.gallery--1 a { background: #E9E1D6; }
.gallery--1 .gallery__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.1); transform: scale(1.2); opacity: .75; }
.gallery--1 .gallery__img { position: relative; object-fit: contain; }
.gallery--1 a:hover img { transform: none; }
.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery--2 a:first-child { grid-row: auto; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery--4 a:nth-child(2) { grid-column: 2 / 4; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 43, 58, .5); color: #fff; font-weight: 900; font-size: 1.2rem; }
.gallery-placeholder { aspect-ratio: 3 / 1; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 32px; }
@media (max-width: 700px) {
  /* na mobile posúvateľný karusel fotiek */
  .gallery, .gallery--1, .gallery--2, .gallery--3, .gallery--4 {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; border-radius: 0;
    margin-inline: -20px; padding-inline: 20px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a, .gallery a.gallery__extra { display: block; flex: 0 0 86%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); scroll-snap-align: center; }
  .gallery--1 a { flex-basis: 100%; }
  .gallery__more { display: none; }
  .gallery-placeholder { aspect-ratio: 2 / 1; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.detail__head h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 14px; }
.detail__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.detail__facts span { display: inline-flex; align-items: center; gap: 6px; }
.detail__section { padding-block: 28px; border-top: 1px solid var(--line); }
.detail__section h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.detail__section h2 .icon { color: var(--blue-700); }
.detail__section .prose { color: var(--text); }
.detail__aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.pets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pet { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pet__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.pet__name { font-weight: 850; color: var(--ink); margin: 0; }
.pet__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.pet__notes { font-size: .9rem; margin: 6px 0 0; }
.amenities { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.amenities .icon { color: var(--blue-700); }
.kv { display: grid; gap: 12px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kv dt .icon { color: var(--faint); }
.kv dd { margin: 0; font-weight: 800; color: var(--ink); text-align: right; }
.price-tag { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-tag strong { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.price-tag span { color: var(--muted); font-weight: 700; }
.owner-mini { display: flex; gap: 14px; align-items: center; }
.owner-mini p { margin: 0; }
.owner-mini a { color: var(--ink); font-weight: 850; text-decoration: none; }
.owner-mini a:hover { color: var(--blue-700); }
.inquiry textarea { min-height: 150px; }
.lock-box { text-align: center; padding: 8px 0 4px; }
.lock-box .icon-circle { margin: 0 auto 12px; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.icon-circle .icon { width: 26px; height: 26px; }
.mobile-cta { display: none; }
@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; bottom: 0; z-index: 40; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(30, 43, 58, .08);
  }
  .mobile-cta strong { display: block; font-size: 1.1rem; }
  .mobile-cta span { color: var(--muted); font-size: .85rem; font-weight: 700; }
  body:has(.mobile-cta) .dev-tag { bottom: 84px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 24, 32, .92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox:target { display: flex; }
body:has(.lightbox:target) { overflow: hidden; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; }

/* ---------- Prose (texty) ---------- */

.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); font-weight: 800; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 12px 12px 0; }
.legal-card { padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 0 0 1.5em; line-height: 1.7; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-toc { padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; }
.legal-toc__title { font-weight: 900; color: var(--ink); margin: 0 0 8px; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 32px; padding-left: 1.4rem; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--text); text-decoration: none; font-weight: 650; }
.legal-toc a:hover { color: var(--blue-700); text-decoration: underline; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-list { padding-left: 1.4rem; }
.legal-updated { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.prose .table { margin: 1.2em 0 1.6em; font-size: .95rem; }

/* ---------- Tabuľky ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 850; background: var(--bg); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FFFCF8; }
.table td .muted { font-size: .875rem; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }

/* ---------- Môj účet ---------- */

.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px 72px; }
.account-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: .7rem .85rem; border-radius: 12px; color: var(--text); font-weight: 750; text-decoration: none; }
.account-nav a .icon { color: var(--faint); width: 20px; height: 20px; }
.account-nav a:hover { background: var(--bg); color: var(--ink); }
.account-nav a[aria-current='page'] { background: var(--blue-50); color: var(--blue-800); }
.account-nav a[aria-current='page'] .icon { color: var(--blue-700); }
.account-nav hr { margin: 6px 4px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0; }
.account-head p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .account { grid-template-columns: 1fr; padding-top: 16px; gap: 20px; }
  .account-nav { position: static; display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a { white-space: nowrap; flex: none; padding: .55rem .8rem; }
  .account-nav hr { display: none; }
}

.stat-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr)); margin-bottom: 24px; }
.stat-tiles--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.stat { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: box-shadow .2s; }
a.stat:hover { box-shadow: var(--shadow); color: inherit; }
.stat__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.stat__value { font-size: 1.6rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.stat__label { color: var(--muted); font-weight: 700; font-size: .9rem; }

.progress { height: 10px; border-radius: var(--pill); background: var(--bg-alt); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--blue)); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.checklist .icon { color: var(--line-strong); }
.checklist li.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist li.is-done .icon { color: var(--green-700); }

.my-listing { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 20px; align-items: start; padding: 16px; }
.my-listing + .my-listing { border-top: 1px solid var(--line); }
.my-listing__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.my-listing__media img { width: 100%; height: 100%; object-fit: cover; }
.my-listing h3 { margin: 0 0 6px; font-size: 1.1rem; }
.my-listing h3 a { color: var(--ink); text-decoration: none; }
.my-listing h3 a:hover { color: var(--blue-700); }
.my-listing__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-weight: 650; font-size: .9rem; }
.my-listing__meta span { display: inline-flex; align-items: center; gap: 6px; }
.my-listing__media { grid-row: span 2; }
.my-listing__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; grid-column: 2; }
@media (max-width: 760px) {
  .my-listing { grid-template-columns: 96px minmax(0, 1fr); }
  .my-listing__media { grid-row: auto; }
  .my-listing__actions { grid-column: 1 / -1; }
}

.membership-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-xl); color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); }
.membership-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--green); opacity: .22; }
.membership-card h2 { color: #fff; }
.membership-card p { color: rgba(255, 255, 255, .85); }
.membership-card strong { color: #fff; }
.membership-card .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.membership-card--inactive { background: linear-gradient(135deg, #3A4756, var(--ink)); }

/* ---------- Správy ---------- */

.inbox { display: grid; }
.inbox-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); position: relative; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item:hover { background: #FFFCF8; color: inherit; }
.inbox-item.is-unread { background: var(--blue-50); }
.inbox-item.is-unread .inbox-item__name { color: var(--ink); }
.inbox-item.is-unread::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.inbox-item__name { font-weight: 850; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-item__listing { font-size: .88rem; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item__preview { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; font-size: .95rem; }
.inbox-item__side { display: grid; justify-items: end; gap: 6px; font-size: .82rem; color: var(--faint); font-weight: 700; }
.unread-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--blue-700); color: #fff; font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: var(--pill); border: 1px solid var(--line); }
.segmented a { padding: .45rem 1rem; border-radius: var(--pill); font-weight: 800; color: var(--muted); text-decoration: none; font-size: .92rem; }
.segmented a[aria-current='page'] { background: var(--blue-700); color: #fff; }

.chat { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.chat__main { display: flex; flex-direction: column; min-height: 520px; }
.chat__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__head h1 { font-size: 1.2rem; margin: 0; }
.chat__head p { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.thread { flex: 1; display: flex; flex-direction: column-reverse; padding: 20px; max-height: min(62vh, 640px); overflow-y: auto; background: linear-gradient(var(--bg), #FFFCF8); }
.thread__items { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: min(80%, 560px); display: grid; gap: 3px; }
.msg__bubble { padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.msg__time { font-size: .75rem; color: var(--faint); font-weight: 700; padding-inline: 6px; }
.msg--mine { align-self: flex-end; justify-items: end; }
.msg--mine .msg__bubble { background: var(--blue-700); border-color: var(--blue-700); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg--system { align-self: center; max-width: 92%; text-align: center; }
.msg--system .msg__bubble { background: var(--green-50); border: 1px dashed var(--green-200); color: var(--green-800); font-weight: 700; font-size: .92rem; border-radius: 14px; }
.msg-day { align-self: center; font-size: .78rem; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.composer .textarea { min-height: 52px; max-height: 220px; resize: none; field-sizing: content; }
.composer .btn { height: 52px; }
.chat__aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-weight: 750; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--blue-700); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--line-strong); }
.star-input label .icon { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--orange); }
.star-input input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 6px; }
@media (max-width: 1000px) {
  .chat { grid-template-columns: 1fr; }
  .chat__aside { position: static; order: -1; }
  .chat__aside .card--details { display: none; }
}

/* ---------- Profil ---------- */

.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-weight: 700; }
.profile-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__head p { margin: 0; }
.review__text { margin: 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

.avatar-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- Autentifikácia ---------- */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth__side { position: relative; overflow: hidden; background: var(--blue-700); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth__side h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.auth__side p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.auth__side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.auth__side li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.auth__side li .icon { color: var(--green); margin-top: 2px; }
.auth__side img { max-width: 360px; margin: 32px auto 0; width: 80%; }
.auth__side::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--green); opacity: .18; top: -140px; right: -120px; }
.auth__side::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--orange); opacity: .2; bottom: -120px; left: -80px; }
.auth__side > * { position: relative; z-index: 1; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px) 20px; }
.auth__box { width: 100%; max-width: 440px; }
.auth__box h1 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); margin-bottom: .3em; }
.auth__box > p { color: var(--muted); }
.auth__alt { text-align: center; margin-top: 20px; color: var(--muted); font-weight: 650; }
.auth .form { gap: 16px; }
.form-error { padding: 12px 14px; border-radius: 12px; background: var(--red-50); color: var(--red-700); font-weight: 750; display: flex; gap: 10px; align-items: center; }
.password-field { position: relative; }
.password-field .input { padding-right: 3.2rem; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: var(--bg); color: var(--ink); }
.intent-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.intent-cards .choice__box { padding: 12px; align-items: center; text-align: center; gap: 4px; }
.intent-cards .choice__title { font-size: .88rem; line-height: 1.25; }
.intent-cards .choice__tick { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__side { display: none; }
}

/* ---------- Pätička ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: auto; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 650; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: .95rem; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Administrácia ---------- */

.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .container { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-block: 8px; }
.admin-bar a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 750; padding: .45rem .8rem; border-radius: var(--pill); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.admin-bar a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-bar a[aria-current='page'] { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-bar strong { color: var(--green); margin-right: 8px; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar .input, .filter-bar .select { width: auto; min-height: 44px; }
.filter-bar .input { min-width: 240px; }

/* ---------- Ostatné ---------- */

.error-page { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.error-page__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1; color: var(--blue); letter-spacing: -.04em; margin: 0; }
.error-page img { width: 140px; margin: 0 auto 20px; }
.error-page p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 28px; }

.divider-text { display: flex; align-items: center; gap: 12px; color: var(--faint); font-weight: 700; font-size: .9rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.paw-deco { position: absolute; pointer-events: none; opacity: .5; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list li .icon { color: var(--green-700); margin-top: 3px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.illustration-frame { border-radius: var(--radius-xl); background: var(--surface); padding: 24px; border: 1px solid var(--line); }

.dev-tag { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; padding: 6px 10px; border-radius: var(--pill); opacity: .8; text-decoration: none; }
.dev-tag:hover { color: #fff; opacity: 1; }

@media print {
  .site-header, .site-footer, .detail__aside, .notice-bar, .flash-stack { display: none !important; }
  body { background: #fff; }
}
.gallery a.gallery__extra { display: none; }
@media (min-width: 420px) { .auth .form-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hide-sm { display: none; } }
@media (max-width: 480px) {
  .stat { padding: 14px; gap: 10px; }
  .stat__icon { width: 38px; height: 38px; border-radius: 12px; }
  .stat__value { font-size: 1.3rem; }
  .stat__label { font-size: .82rem; }
}

/* ---------- Výber plánu členstva ---------- */
.plan__from { font-weight: 800; color: var(--muted); align-self: center; margin-right: -2px; }
.plan-options { display: grid; gap: 10px; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan-option__box { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--line-strong); background: var(--surface); transition: all .15s; }
.plan-option__title { font-weight: 850; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-option__price { grid-row: span 2; text-align: right; color: var(--muted); font-weight: 700; white-space: nowrap; }
.plan-option__price strong { font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.plan-option__note { font-size: .85rem; color: var(--muted); font-weight: 650; }
.plan-option:hover .plan-option__box { border-color: var(--blue-200); }
.plan-option input:checked + .plan-option__box { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue) inset; }
.plan-option input:focus-visible + .plan-option__box { box-shadow: var(--ring); }
.plan-option .chip { font-size: .72rem; padding: .2rem .55rem; }

/* ---------- Adresa, našepkávač a mapa ---------- */
.location { display: grid; gap: 16px; }
.autocomplete { position: relative; }
.autocomplete__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto;
}
.autocomplete__item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.autocomplete__item .icon { color: var(--faint); margin-top: 2px; }
.autocomplete__item strong { display: block; color: var(--ink); font-weight: 800; }
.autocomplete__item span { color: var(--muted); font-size: .88rem; }
.autocomplete__item[aria-selected='true'], .autocomplete__item:hover { background: var(--blue-50); }
.autocomplete__foot { padding: 6px 12px 2px; font-size: .72rem; color: var(--faint); text-align: right; }
.geo-status { margin: 0; font-size: .875rem; font-weight: 750; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.geo-status:empty { display: none; }
.geo-status.is-ok { color: var(--green-700); }
.geo-status.is-warn { color: var(--orange-700); }
.owner-note { padding: 10px 14px; border-radius: 12px; background: var(--orange-50); border: 1px solid var(--orange-100); font-size: .92rem; }
.distance { color: var(--blue-700); font-weight: 850; }

.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--blue-50); }
.map-box > summary { list-style: none; cursor: pointer; }
.map-box > summary::-webkit-details-marker { display: none; }
.map__placeholder {
  min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(112, 214, 176, .25) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 65%, rgba(248, 182, 92, .22) 0 14%, transparent 15%),
    repeating-linear-gradient(45deg, rgba(74, 159, 219, .06) 0 12px, transparent 12px 24px),
    var(--blue-50);
}
.map-box[open] > .map__placeholder { display: none; }
.map__pin { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow); }
.map__pin .icon { width: 26px; height: 26px; }
.map img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; font-size: .9rem; }
.map-pref { margin: 0; }

/* ---------- PHP verzia: prvky bez JavaScriptu ---------- */
.plan-label--monthly { display: none; }
form:has(input[name='plan'][value='monthly']:checked) .plan-label--monthly { display: inline; }
form:has(input[name='plan'][value='monthly']:checked) .plan-label--yearly { display: none; }
.js .js-hide { display: none; }
.file-name { display: block; font-size: .85rem; font-weight: 700; color: var(--green-700); }
.photo-status--busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
