/* Mělnicko 2.0: blok Mělnicko teď pod hlavními zprávami: stav regionu a pod ním obec čtenáře (includes/dnes.php, assets/dnes.js). */
.mz-dnes { margin: 4px 0 22px; border: 1px solid #b7dfc3; border-radius: 16px; background: var(--surface); overflow: visible; }
.mz-dnes--1 { border-color: #f1d36b; }
.mz-dnes--2 { border-color: #f6a35e; }
.mz-dnes--3 { border-color: #ef8a8a; }

/* Stav regionu (pro všechny stejný, barva podle úrovně) */
.mz-dnes__sit { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 40px 12px 16px; border-radius: 15px 15px 0 0; background: linear-gradient(135deg, #e8f6ec, #fff); color: #1e5b33; text-decoration: none; }
.mz-dnes--1 .mz-dnes__sit { background: linear-gradient(135deg, #fff6cc, #fff); color: #5c4400; }
.mz-dnes--2 .mz-dnes__sit { background: linear-gradient(135deg, #ffe3cc, #fff); color: #7a2e00; }
.mz-dnes--3 .mz-dnes__sit { background: linear-gradient(135deg, #ffd6d6, #fff); color: #7d1010; }
.mz-dnes__lvl { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.mz-dnes__lvl i { width: 10px; height: 10px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 3px rgba(47, 158, 68, .2); }
.mz-dnes--1 .mz-dnes__lvl i { background: #f0b429; }
.mz-dnes--2 .mz-dnes__lvl i { background: #f76707; }
.mz-dnes--3 .mz-dnes__lvl i { background: #e03131; }
.mz-dnes__sit:hover .mz-dnes__lvl { text-decoration: underline; }
.mz-dnes__chips { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #3b4450; font-size: 14px; }
.mz-dnes__go { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: 24px; line-height: 1; }

/* Výběr obce nebo ulice */
.mz-dnes__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 6px 10px 16px; border-top: 1px solid var(--line); }
.mz-misto .mz-dnes__ask, .mz-dnes-pryc .mz-dnes__ask, .mz-dnes.is-ready .mz-dnes__ask { display: none; }
.mz-dnes.is-asking .mz-dnes__ask { display: flex; }
.mz-dnes-pryc .mz-dnes:not(.is-ready):not(.is-asking) .mz-dnes__sit { border-radius: 15px; }
.mz-dnes__ask-t { flex: 1 1 300px; margin: 0; font-size: 15px; line-height: 1.45; cursor: pointer; }
.mz-dnes__ask-t span:last-child { color: var(--muted); }
.mz-dnes__field { position: relative; flex: 1 1 320px; }
/* Moderní hledací pole (stejné jako Moje obec v Mělnicku teď): špendlík, tlačítko uvnitř, výrazné zaměření. */
.mz-dnes__field input { box-sizing: border-box; width: 100%; min-height: 50px; margin: 0; padding: 0 108px 0 46px; border: 1.5px solid #cfd8e3; border-radius: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480c4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") no-repeat 14px center / 20px; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.mz-dnes__field input::placeholder { color: #8a94a3; font-weight: 500; opacity: 1; }
.mz-dnes__field input:hover { border-color: #a9b6c6; }
.mz-dnes__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 128, 196, .18); }
.mz-dnes__field input::-webkit-search-cancel-button { display: none; }
.mz-dnes__find { position: absolute; top: 6px; right: 6px; bottom: 6px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.mz-dnes__find:hover { background: var(--accent-dark, #0e5f94); }
.mz-dnes__list-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(16, 24, 40, .16); max-height: 340px; overflow: auto; }
.mz-dnes__list-sug li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 16px; font-weight: 600; }
.mz-dnes__list-sug li[aria-selected="true"], .mz-dnes__list-sug li:hover { background: #eaf2fb; }
.mz-dnes__list-sug mark { background: none; color: #1971c2; font-weight: 800; }
.mz-dnes__sug-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; background: #f2f5f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") no-repeat center / 18px; }
.mz-dnes__list-sug li.is-ulice .mz-dnes__sug-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 4l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.mz-dnes__sug-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-dnes__list-sug .mz-dnes__none { color: var(--muted); cursor: default; background: none; font-weight: 400; font-size: 15px; }
.mz-dnes__close { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }

/* Místo pro část obce, než dorazí data (stránka neposkočí) */
.mz-misto .mz-dnes:not(.is-ready) .mz-dnes__out { min-height: 150px; border-top: 1px solid var(--line); }

/* Obec čtenáře */
.mz-dnes.is-ready .mz-dnes__out { padding: 6px 16px 14px; border-top: 1px solid var(--line); }
.mz-dnes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mz-dnes__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.mz-dnes__title a { color: var(--ink); text-decoration: none; }
.mz-dnes__title a:hover { text-decoration: underline; }
.mz-dnes__change, .mz-dnes__link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.mz-dnes__change { min-height: 44px; color: var(--accent); font-weight: 600; }
.mz-dnes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 6px 32px; }
.mz-dnes__list, .mz-dnes__rows { margin: 0; padding: 0; list-style: none; }
.mz-dnes__i { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.mz-dnes__i:first-child { border-top: 0; }
.mz-dnes__ic { font-size: 16px; line-height: 1.35; text-align: center; }
.mz-dnes__txt a, .mz-dnes__link { color: var(--ink); font-weight: 700; text-decoration: none; text-align: left; }
.mz-dnes__txt a:hover, .mz-dnes__link:hover, .mz-dnes__rows a:hover { text-decoration: underline; }
.mz-dnes__link { color: var(--accent); }
.mz-dnes__txt small, .mz-dnes__rows small { display: block; color: var(--muted); font-size: 13.5px; }
.mz-dnes__i.is-important .mz-dnes__txt a { color: var(--hot); }
.mz-dnes__i--ok .mz-dnes__txt, .mz-dnes__i--ok .mz-dnes__ic { color: #1e7b34; font-weight: 600; }
.mz-dnes__h { margin: 8px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mz-dnes__rows li { padding: 7px 0; border-top: 1px solid var(--line); }
.mz-dnes__rows li:first-child { border-top: 0; }
.mz-dnes__rows a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mz-dnes__more { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.mz-dnes__empty { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
	.mz-dnes { margin-bottom: 18px; }
	.mz-dnes__sit { padding: 12px 34px 12px 14px; gap: 6px 12px; }
	.mz-dnes__ask { padding: 10px 4px 10px 14px; }
	.mz-dnes__ask-t span:last-child { display: none; }
	.mz-dnes.is-ready .mz-dnes__out { padding: 4px 14px 12px; }
	.mz-misto .mz-dnes:not(.is-ready) .mz-dnes__out { min-height: 190px; }
	.mz-dnes__title { font-size: 16px; }
	/* Na telefonu kratší: zprávy a akce po dvou. */
	.mz-dnes__rows li:nth-child(n+3) { display: none; }
}
