/* Mělnicko 2.0: karta obce na rubrice obce a na stránce /obec/{slug}/ (includes/obec.php). */

/* Hlavička */
.mzr-obec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mzr-obec-head__foto { flex: none; width: 96px; margin: 0; }
.mzr-obec-head__foto img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--soft); }
.mzr-obec-head__foto figcaption { margin-top: 3px; overflow: hidden; font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.mzr-obec-head__foto figcaption a { color: inherit; text-decoration: none; }
.mzr-obec-head__t { flex: 1 1 260px; min-width: 0; }
.mzr-obec-head__t .kicker { margin: 0 0 4px; }
.mzr-obec-head__t .page-title { margin: 0; }
.mzr-obec-head__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mzr-obec-moje, .mzr-obec-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 14.5px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.mzr-obec-moje { border-color: var(--accent); background: var(--accent); color: #fff; }
.mzr-obec-moje[aria-pressed="true"] { background: var(--surface); color: var(--accent); }
.mzr-obec-btn:hover { border-color: var(--accent); }
.mzr-obec-head .archive-head__desc { flex-basis: 100%; }

/* Pruh se stavem nad zprávami */
.mzr-obec-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 22px; padding: 12px 16px; border: 1px solid #b7dfc3; border-radius: 14px; background: linear-gradient(135deg, #e8f6ec, #fff); font-size: 14.5px; line-height: 1.4; }
.mzr-obec-strip.is-hot { border-color: #f1d36b; background: linear-gradient(135deg, #fff6cc, #fff); }
.mzr-obec-strip a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mzr-obec-strip a:hover { text-decoration: underline; }
.mzr-obec-strip a.is-ok { color: #1e5b33; font-weight: 700; }
.mzr-obec-strip a.is-hot { color: var(--hot); }
.mzr-obec-strip em { color: var(--accent); font-style: normal; }

/* Bloky: akce, lékárny, inzeráty */
.mzr-obec-box h2 { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mzr-obec-box ul { margin: 0; padding: 0; list-style: none; }
.mzr-obec-box li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.mzr-obec-box li:first-child { border-top: 0; }
.mzr-obec-box b { display: block; color: var(--ink); font-weight: 700; }
.mzr-obec-box small { display: block; color: var(--muted); font-size: 13.5px; }
.mzr-obec-box li > a { color: var(--ink); text-decoration: none; }
.mzr-obec-box li > a:hover b { text-decoration: underline; }
.mzr-obec-akce a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.mzr-obec-akce img { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.mzr-obec-box .mzr-ph { margin: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.mzr-obec-box .mzr-ph:first-child { border-top: 0; }
.mzr-obec-box .mzr-ph__now { padding: 0; background: none; font-size: inherit; font-weight: 600; }
.mzr-obec-box .mzr-ph__now.is-open { color: #1e7b34; }
.mzr-obec-box .mzr-ph__now.is-closed { color: var(--muted); }
.mzr-obec-box small a { color: inherit; }
.mzr-obec-more { margin: 6px 0 0; font-size: 14.5px; }
.mzr-obec-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.mzr-obec-empty { margin: 4px 0; color: var(--muted); font-size: 14.5px; }

/* Na počítači v postranním panelu, na telefonu mezi zprávami, u obce bez zpráv celé nahoře */
.mzr-obec-side .mzr-obec-box { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mzr-obec-inline { display: none; }
.mzr-obec-full { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 28px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

@media (max-width: 760px) {
	.mzr-obec-head__foto, .mzr-obec-head__foto img { width: 64px; height: auto; }
	.mzr-obec-head__foto img { height: 64px; border-radius: 12px; }
	.mzr-obec-head__foto figcaption { display: none; }
	.mzr-obec-head__btns { width: 100%; }
	.mzr-obec-head__btns > * { flex: 1 1 0; padding: 0 10px; white-space: nowrap; }
	.mzr-obec-head__btns .mzr-obec-moje { flex-grow: 1.7; }
	.mzr-obec-strip { gap: 6px 14px; padding: 10px 14px; }
	.mzr-obec-side { display: none; }
	.mzr-obec-inline { display: block; margin: 8px 0 22px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
	.mzr-obec-inline .mzr-obec-box + .mzr-obec-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* Zprávy ze stránek obce (includes/obce-weby.php) a V okolí */
.mzr-obec-web { margin: 0 0 22px; }
.mzr-obec-web__i { border-top: 1px solid var(--line); }
.mzr-obec-web__i:first-of-type { border-top: 0; }
.mzr-obec-web summary { display: block; padding: 12px 0; cursor: pointer; list-style: none; }
.mzr-obec-web summary::-webkit-details-marker { display: none; }
.mzr-obec-web summary b { display: block; font-size: 17px; line-height: 1.35; color: var(--ink); }
.mzr-obec-web summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.mzr-obec-web summary:hover b { text-decoration: underline; }
.mzr-obec-web details:not([open]) summary b::after { content: " ›"; color: var(--accent); }
.mzr-obec-web__text { font-size: 15.5px; line-height: 1.6; }
.mzr-obec-web__text table { border-collapse: collapse; font-size: 14px; }
.mzr-obec-web__text td, .mzr-obec-web__text th { padding: 4px 8px; border: 1px solid var(--line); }
.mzr-obec-web__src { margin: 8px 0 14px; color: var(--muted); font-size: 13.5px; }
.mzr-obec-web__src a { color: var(--accent); }
.mzr-obec-web__note { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mzr-obec-okoli { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }

/* Stránky Pro obce a Obce na Mělnicku (includes/pro-obce.php) */
.mzr-po { max-width: 860px; }
.mzr-po h2 { margin: 34px 0 12px; }
.mzr-po__lead { font-size: 19px; line-height: 1.5; }
.mzr-po__obec { display: grid; gap: 2px; margin: 18px 0; padding: 16px 18px; border: 1px solid #b7dfc3; border-radius: 14px; background: linear-gradient(135deg, #e8f6ec, #fff); color: var(--ink); text-decoration: none; }
.mzr-po__obec span { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.mzr-po__obec strong { font-size: 24px; }
.mzr-po__obec em { color: var(--accent); font-style: normal; font-weight: 600; }
.mzr-po__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mzr-po__sec { font-weight: 600; }
.mzr-po__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mzr-po__tile { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mzr-po__tile span { font-size: 26px; }
.mzr-po__tile h3 { margin: 6px 0 4px; font-size: 17px; }
.mzr-po__tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mzr-po__steps li, .mzr-po__rules li { margin: 0 0 10px; line-height: 1.55; }
.mzr-po-form { margin-top: 34px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.mzr-po-form h2 { margin-top: 0; }
.mzr-po-form h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.mzr-po-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.mzr-po-form__set { margin: 0 0 16px; padding: 0; border: 0; }
.mzr-po-form__set legend { margin-bottom: 6px; font-weight: 700; }
.mzr-po-form .mzr-check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 15px; }
.mzr-po__faq details { padding: 12px 0; border-top: 1px solid var(--line); }
.mzr-po__faq summary { font-weight: 700; cursor: pointer; }
.mzr-po-seznam__hledat input { width: 100%; max-width: 420px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.mzr-po-seznam__reg h2 { margin: 28px 0 8px; }
.mzr-po-seznam__reg h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.mzr-po-seznam__reg ul { columns: 4 180px; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.mzr-po-seznam__reg li { padding: 4px 0; break-inside: avoid; }
.mzr-po-seznam__reg a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mzr-po-seznam__reg a:hover { color: var(--accent); text-decoration: underline; }
.mzr-po-seznam__pro { margin-top: 30px; font-weight: 600; }
.mzr-po__cta .mzr-btn, .mzr-po-form .mzr-btn { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.mzr-po__cta .mzr-btn:hover, .mzr-po-form .mzr-btn:hover { background: var(--accent-dark, #0e5f94); color: #fff; }
