/* novybydzov.info – styly (mobile-first, bez frameworku) */
:root {
  --navy: #1b365d;
  --navy-dark: #12273f;
  --red: #b23a48;
  --gold: #e0a200;
  --green: #2e8b57;
  --grey-900: #1f2933;
  --grey-700: #3e4c59;
  --grey-500: #7a869a;
  --grey-300: #cbd2d9;
  --grey-100: #f0f3f6;
  --white: #fff;
  --bg: #f7f8fa;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 30, 50, .08), 0 4px 14px rgba(20, 30, 50, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--grey-900); background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-dark); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--grey-500); }
.center { text-align: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- Hlavička ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-300); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-tld { color: var(--red); }
.brand-tagline { font-size: .72rem; color: var(--grey-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-form { display: flex; margin-left: auto; flex: 1 1 200px; max-width: 360px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid var(--grey-300); border-right: 0; border-radius: 8px 0 0 8px; padding: 8px 12px; font: inherit; }
.search-form button { border: 1px solid var(--navy); background: var(--navy); color: var(--white); border-radius: 0 8px 8px 0; padding: 0 12px; cursor: pointer; display: flex; align-items: center; }
.search-form button:hover { background: var(--navy-dark); }
.search-form-big { max-width: 560px; margin: 0; }
.search-form-big input { padding: 12px 14px; font-size: 1.05rem; }
.search-form-big .btn { border-radius: 0 8px 8px 0; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--grey-300); border-radius: 8px; background: var(--white); cursor: pointer; }
.nav-toggle span:not(.visually-hidden) { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.site-nav { display: none; background: var(--navy); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 10px 8px; color: var(--white); text-decoration: none; font-weight: 600; border-radius: 6px; }
.site-nav a:hover, .site-nav a.is-active { background: rgba(255, 255, 255, .14); color: var(--white); }
@media (min-width: 900px) {
  .brand-mark { width: 56px; height: 56px; }
  .brand-name { font-size: 1.45rem; }
  .brand-tagline { font-size: .8rem; }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; gap: 2px; padding: 0; }
  .site-nav a { padding: 10px 14px; border-radius: 0; }
  .site-nav a.is-active { box-shadow: inset 0 -3px 0 var(--gold); background: transparent; }
  .site-nav a:hover { background: rgba(255, 255, 255, .1); }
}
@media (max-width: 480px) { .search-form { display: none; } }

/* ---- Obsah ---- */
.site-main { padding: 24px 0 48px; }
.section { margin: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: .25em; }
.breadcrumb { font-size: .875rem; color: var(--grey-500); margin-bottom: 12px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--grey-100); border-left: 4px solid var(--navy); }
.flash-success { border-color: var(--green); background: #eaf6ee; }
.flash-error { border-color: var(--red); background: #fbecee; }
.notice { background: #fff7df; border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 6px; }
.empty { text-align: center; padding: 40px 16px; color: var(--grey-700); background: var(--white); border-radius: var(--radius); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: relative; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover .card-title { color: var(--red); }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.card-icon { font-size: 1.5rem; line-height: 1; flex: none; }
.card-title { margin: 0 0 4px; font-size: 1.05rem; }
.card-meta { margin: 0; font-size: .85rem; color: var(--grey-500); }
.card-status { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .9rem; }
.today-hours { color: var(--grey-700); }
.card-phone { display: inline-block; margin-top: 8px; font-size: .9rem; text-decoration: none; }
.place-card { display: flex; flex-direction: column; }

.card-logo { width: 48px; height: 48px; object-fit: contain; flex: none; border-radius: 6px; background: var(--white); }
.place-card.is-featured { border: 2px solid var(--gold); box-shadow: 0 2px 10px rgba(224, 162, 0, .25); }
.featured-badge { position: absolute; top: 10px; right: 12px; color: var(--gold); font-size: 1.1rem; line-height: 1; }
.detail-logo { max-height: 72px; max-width: 220px; object-fit: contain; display: block; margin-bottom: 8px; }

/* ---- Stav otevřeno / zavřeno ---- */
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-500); display: inline-block; flex: none; }
.status-open, .status-open .status-dot { color: var(--green); background-color: var(--green); }
.status-closing_soon, .status-closing_soon .status-dot { color: #a37800; background-color: var(--gold); }
.status-closed, .status-closed .status-dot { color: var(--red); background-color: var(--red); }
.status-unknown, .status-unknown .status-dot { color: var(--grey-500); background-color: var(--grey-500); }
span.status { background: none !important; }
.status-detail { font-weight: 400; color: var(--grey-700); }
.tag { display: inline-block; background: var(--grey-100); color: var(--grey-700); font-size: .8rem; padding: 3px 9px; border-radius: 999px; margin: 6px 6px 0 0; }
.tag-menu { background: #eaf6ee; color: var(--green); font-weight: 600; }
.tags { margin: 8px 0 0; }

/* ---- Tlačítka, chipy, filtry ---- */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--navy); color: var(--navy); background: var(--white); text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; }
.btn:hover { background: var(--grey-100); color: var(--navy); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-small { padding: 6px 12px; font-size: .875rem; }
.btn-link { border: 0; background: none; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--grey-300); text-decoration: none; font-size: .9rem; color: var(--grey-900); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-count { font-size: .75rem; color: var(--grey-500); }
.chip.is-active .chip-count { color: rgba(255, 255, 255, .8); }
.chip-small { padding: 3px 10px; font-size: .8rem; margin: 2px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.filter-bar input[type="search"] { flex: 1 1 200px; max-width: 320px; padding: 8px 12px; border: 1px solid var(--grey-300); border-radius: 8px; font: inherit; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---- Hero ---- */
.hero { display: flex; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; margin-bottom: 8px; }
.hero-text { flex: 1; }
.hero h1 { margin-bottom: .3em; }
.hero h1 span { color: var(--red); display: block; font-size: .7em; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-art { display: none; width: 220px; }
@media (min-width: 760px) { .hero-art { display: block; } }

/* ---- Seznamy ---- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--grey-300); }
.list-item:last-child { border-bottom: 0; }
.list-item p { margin: 4px 0 0; }
.list-title { display: block; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.list-title:hover { text-decoration: underline; }
.event-item { display: flex; gap: 14px; align-items: flex-start; }
.event-date { flex: none; width: 54px; text-align: center; background: var(--navy); color: var(--white); border-radius: 8px; padding: 6px 0; line-height: 1.1; }
.event-day { display: block; font-weight: 800; font-size: 1.25rem; }
.event-month { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.month-title { border-bottom: 2px solid var(--navy); padding-bottom: 4px; }
.news-list { display: grid; gap: 16px; }
.news-card { display: grid; gap: 14px; }
.news-thumb { width: 100%; border-radius: 8px; object-fit: cover; aspect-ratio: 16 / 9; }
@media (min-width: 640px) { .news-card { grid-template-columns: 220px 1fr; } .news-thumb { aspect-ratio: 4 / 3; } }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }

/* ---- Detail ---- */
.detail-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.detail-category { color: var(--grey-500); margin: 0 0 4px; font-size: .9rem; }
.detail-category a { color: inherit; text-decoration: none; }
.detail-category a:hover { color: var(--navy); text-decoration: underline; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.detail-image { width: 100%; max-width: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.detail-side { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); align-self: start; }
.detail-side h2 { font-size: 1.1rem; margin-top: 18px; }
.detail-side h2:first-child { margin-top: 0; }
.prose p { margin-bottom: .9em; }
.lead { font-size: 1.1rem; color: var(--grey-700); }
.article-image { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.contact-list dt { color: var(--grey-500); font-size: .875rem; }
.contact-list dd { margin: 0; }
.contact-list.inline { margin-top: 8px; }
.opening-table { width: 100%; border-collapse: collapse; }
.opening-table th, .opening-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--grey-100); }
.opening-table th { font-weight: 500; color: var(--grey-700); width: 40%; text-transform: capitalize; }
.opening-table tr.is-today { background: #eef3fa; font-weight: 700; }
.opening-table tr.is-today th { color: var(--navy); }
.exceptions { margin-top: 12px; }
.exceptions h3 { font-size: .95rem; }
.exceptions ul { padding-left: 18px; margin: 0; }
.mini-map { height: 220px; border-radius: 8px; margin-top: 16px; z-index: 0; }

/* ---- Polední menu ---- */
.menu-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.menu-card-head h3 { margin: 0; }
.menu-card-head a { text-decoration: none; }
.menu-note { font-size: .9rem; color: var(--grey-700); background: var(--grey-100); padding: 6px 10px; border-radius: 6px; }
.menu-kind { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); margin: 14px 0 4px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--grey-300); }
.menu-list li:last-child { border-bottom: 0; }
.menu-weight { color: var(--grey-500); font-size: .85rem; }
.menu-desc { display: block; color: var(--grey-500); }
.menu-price { white-space: nowrap; font-weight: 600; }
.menu-date { margin-top: 20px; }
.date-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--white); padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; flex-wrap: wrap; }
.date-current { text-transform: capitalize; }
.print-hint { text-align: right; margin-top: 12px; }

/* ---- Kontakty ---- */
.contact-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 2px 0; }
.contact-phone { font-size: 1.15rem; font-weight: 700; }
.contact-phone a { text-decoration: none; }

/* ---- Mapa ---- */
.big-map { height: 70vh; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 12px; }
.map-legend { font-size: .85rem; color: var(--grey-700); display: inline-flex; gap: 4px 6px; align-items: center; flex-wrap: wrap; }
.map-legend .status-dot { margin-left: 8px; }
.leaflet-popup-content { font: inherit; font-size: .9rem; }

/* ---- Chyby ---- */
.error-page { text-align: center; padding: 48px 0; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--grey-300); margin: 0; line-height: 1; }

/* ---- Formulář „Nahlásit chybu“ ---- */
.report-link { margin-top: 16px; }
.report-link a { text-decoration: none; color: var(--grey-700); }
.report-link a:hover { color: var(--red); }
/* Honeypot: pole viditelné jen pro roboty, u lidí mimo obrazovku a bez tabulátoru */
.hp-field { position: absolute; left: -5000px; top: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Patička ---- */
.site-footer { background: var(--navy-dark); color: #c9d3e0; padding: 32px 0; font-size: .9rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.footer-brand p { margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta p { margin: 4px 0; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---- Administrace ---- */
.admin-body { background: var(--grey-100); }
.admin-header { background: var(--navy); color: var(--white); }
.admin-header .container { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.admin-header .brand { color: var(--white); }
.admin-header .brand-name { color: var(--white); font-size: 1.1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.admin-nav a, .admin-nav button { color: var(--white); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .9rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255, 255, 255, .15); color: var(--white); }
.admin-main { padding: 24px 0 48px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { margin: 0; font-size: 1.5rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: .95rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
.table th { background: var(--grey-100); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-700); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--grey-100); color: var(--grey-700); }
.badge-ok { background: #eaf6ee; color: var(--green); }
.badge-off { background: #fbecee; color: var(--red); }
.form { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .span-2 { grid-column: span 2; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field input[type="datetime-local"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--grey-300); border-radius: 8px; font: inherit; background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--grey-500); margin: 4px 0 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.form-actions .right { margin-left: auto; }
.hours-table input[type="text"] { width: 70px; padding: 6px; text-align: center; }
.hours-table td { white-space: nowrap; }
.items-table input[type="text"] { width: 100%; min-width: 80px; }
.items-table .w-price { width: 90px; }
.items-table .w-weight { width: 90px; }
.items-table .w-kind { width: 130px; }
.items-table select { width: 100%; padding: 6px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.stat strong { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--grey-500); }
.login-box { max-width: 400px; margin: 40px auto; }
.login-box .brand { justify-content: center; margin-bottom: 20px; }
.coord-picker { height: 300px; border-radius: 8px; margin-top: 8px; z-index: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1 1 140px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---- Tisk ---- */
@media print {
  .site-header, .site-footer, .date-nav, .print-hint, .filter-bar, .chip-nav, .flash, .breadcrumb { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .grid { display: block; }
  .grid > * { margin-bottom: 12px; }
}
