/* =====================================================================
   Tmavý svět – Řetězy osudu (/retezy-osudu/, /rezervace/, /voucher/)
   Černé sklo, zlatý glow, mlha v hradní šatlavě. Cinzel + Georgia.
   ===================================================================== */

body.mms-dark {
	--mm-ink: #EDE3C8;
	--mm-slate: #A89F8A;
	--mm-mist: #141414;
	--mm-ice: #1a1a1a;
	--mm-gold: #C8A84B;
	--mm-gold-hi: #E2C878;
	--mm-deep: #C8A84B;
	--mm-sky: #E2C878;
	--mm-grad: linear-gradient(135deg, #E2C878 0%, #C8A84B 55%, #9C7F2E 100%);
	--mm-f-serif: "Cinzel", Georgia, serif;
	--nv-primary-accent: #C8A84B;
	--nv-secondary-accent: #E2C878;
	--nv-text-color: #EDE3C8;
	--nv-site-bg: #141414;

	background: #141414;
	color: #D9D0BA;
}
html:has(body.mms-dark) { background: #141414; }
body.mms-dark ::selection { background: rgba(200, 168, 75, .35); color: #fff; }
body.mms-dark :focus-visible { outline-color: #C8A84B; }
:where(body.mms-dark) a { color: #E2C878; }
:where(body.mms-dark) a:hover { color: #fff3cf; }

/* Zrnitost a vinětace přes celou stránku */
body.mms-dark::after {
	content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none;
	background:
		radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

/* ---------- Hlavička: černé sklo ---------- */
body.mms-dark .mms-header__bar::before {
	background: rgba(20, 20, 20, .55);
	border-color: rgba(200, 168, 75, .22);
	box-shadow: 0 14px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 200, .06);
}
body.mms-dark .mms-header.is-scrolled .mms-header__bar::before { background: rgba(16, 16, 16, .82); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .95), 0 0 40px -18px rgba(200, 168, 75, .35); }
body.mms-dark .mms-logo img { filter: drop-shadow(0 0 14px rgba(41, 171, 226, .25)); }
body.mms-dark .mms-menu a { color: #E6DCC2; }
body.mms-dark .mms-menu > li > a:hover, body.mms-dark .mms-menu > li:focus-within > a { background: rgba(200, 168, 75, .1); color: #E2C878; }
body.mms-dark .mms-menu > li.current-menu-item > a,
body.mms-dark .mms-menu > li.current-menu-ancestor > a,
body.mms-dark .mms-menu > li.current-page-ancestor > a { color: #E2C878; text-shadow: 0 0 18px rgba(200, 168, 75, .6); }
body.mms-dark .mms-sub-toggle { color: #A89F8A; }
body.mms-dark .mms-social a { color: #A89F8A !important; }
body.mms-dark .mms-social a:hover { background: rgba(200, 168, 75, .12); color: #E2C878 !important; }
body.mms-dark .mms-burger { background: rgba(255, 255, 255, .05); border-color: rgba(200, 168, 75, .25); color: #E2C878; }
body.mms-dark .mms-btn--primary { background: var(--mm-grad); color: #141414 !important; box-shadow: 0 0 0 1px rgba(200, 168, 75, .4), 0 10px 30px -10px rgba(200, 168, 75, .6); }
body.mms-dark .mms-btn--ghost { background: rgba(255, 255, 255, .04); color: #EDE3C8 !important; border-color: rgba(200, 168, 75, .3); }
body.mms-dark .mms-btn--ghost:hover { background: rgba(200, 168, 75, .12); border-color: rgba(200, 168, 75, .6); }

@media (min-width: 1100px) {
	body.mms-dark .mms-menu > li > .mms-sub {
		background: rgba(18, 18, 18, .92); border-color: rgba(200, 168, 75, .22);
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -20px rgba(200, 168, 75, .3);
	}
	body.mms-dark .mms-sub a:hover { background: rgba(200, 168, 75, .1); color: #E2C878; }
	body.mms-dark .mms-sub .mms-sub { border-left-color: rgba(200, 168, 75, .2); }
	body.mms-dark .mms-sub .mms-sub a { color: #A89F8A; }
}
@media (max-width: 1099px) {
	body.mms-dark .mms-nav { background: linear-gradient(170deg, rgba(24, 22, 18, .97), rgba(12, 12, 12, .98)); border-left: 1px solid rgba(200, 168, 75, .2); }
	body.mms-dark .mms-menu > li { border-bottom-color: rgba(200, 168, 75, .14); }
	body.mms-dark .mms-menu > li > a { font-family: var(--mm-f-serif); letter-spacing: .02em; font-size: 22px; }
	body.mms-dark .mms-sub-toggle { background: rgba(200, 168, 75, .1); color: #E2C878; }
	body.mms-dark .mms-sub a { color: #A89F8A; }
	body.mms-dark .mms-nav__foot .mms-social a { background: rgba(255, 255, 255, .04); border-color: rgba(200, 168, 75, .2); }
}
body.mms-dark .mms-scrim { background: rgba(0, 0, 0, .6); }

/* ---------- Úvodní pás ---------- */
body.mms-dark .mms-hero-page { background: radial-gradient(120% 100% at 50% 0%, #241f14 0%, #141414 65%); }
body.mms-dark .mms-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(200, 168, 75, .55), transparent 65%); opacity: .35; }
body.mms-dark .mms-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(120, 70, 30, .6), transparent 62%); opacity: .3; }
body.mms-dark .mms-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(226, 200, 120, .35), transparent 65%); opacity: .25; }
body.mms-dark .mms-hero-page__title {
	font-family: var(--mm-f-serif); font-weight: 700; letter-spacing: .02em; line-height: 1.05;
	color: #E2C878; text-shadow: 0 0 40px rgba(200, 168, 75, .45), 0 2px 0 rgba(0, 0, 0, .6);
}
body.mms-dark .mms-hero-page__lead { color: #CFC5AC; font-family: Georgia, serif; font-style: italic; }
body.mms-dark .mms-eyebrow { color: #C8A84B; font-family: var(--mm-f-serif); letter-spacing: .22em; }
body.mms-dark .mms-crumbs li { color: #8E866F; }
body.mms-dark .mms-crumbs a { background: rgba(255, 255, 255, .04); border-color: rgba(200, 168, 75, .2); color: #D9D0BA; }
body.mms-dark .mms-crumbs a:hover { background: rgba(200, 168, 75, .12); color: #E2C878; }
body.mms-dark .mms-crumbs [aria-current] { color: #E2C878; }

/* Řetězy osudu: filmový úvod s fotkou ze šatlavy, mlhou a svícem */
.mms-hero-page--retez { min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding-bottom: clamp(48px, 7vw, 96px); }
.mms-hero-page__bg {
	position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
	filter: saturate(.75) contrast(1.15) brightness(.7);
	animation: mms-kenburns 30s ease-in-out infinite alternate;
}
.mms-hero-page--retez::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 55% at 70% 35%, rgba(255, 190, 90, .18), transparent 60%),
		linear-gradient(180deg, rgba(20, 20, 20, .55) 0%, rgba(20, 20, 20, .2) 35%, rgba(20, 20, 20, .85) 80%, #141414 100%),
		linear-gradient(90deg, rgba(20, 20, 20, .85) 0%, transparent 65%);
	animation: mms-candle 5s ease-in-out infinite;
}
.mms-hero-page--retez .mms-hero-page__title { font-size: clamp(46px, 8vw, 120px); max-width: 12ch; }
.mms-fog { position: absolute; inset: auto -20% -10% -20%; height: 55%; z-index: -1; pointer-events: none; }
.mms-fog::before, .mms-fog::after {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(40% 60% at 20% 70%, rgba(210, 200, 180, .16), transparent 70%),
		radial-gradient(35% 50% at 60% 80%, rgba(210, 200, 180, .12), transparent 70%),
		radial-gradient(30% 45% at 90% 65%, rgba(210, 200, 180, .14), transparent 70%);
	filter: blur(18px);
	animation: mms-fog 26s ease-in-out infinite alternate;
}
.mms-fog::after { animation-duration: 38s; animation-direction: alternate-reverse; opacity: .8; transform: scaleX(-1); }
@keyframes mms-fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes mms-kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes mms-candle { 0%, 100% { opacity: 1; } 40% { opacity: .93; } 45% { opacity: .98; } 70% { opacity: .9; } }

/* ---------- List s obsahem: černé sklo ---------- */
body.mms-dark .mms-sheet {
	background: linear-gradient(180deg, rgba(30, 28, 24, .75), rgba(22, 22, 22, .85));
	border-color: rgba(200, 168, 75, .2);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(200, 168, 75, .3);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.mms-dark .mms-hero-page--retez + .mms-sheet { margin-top: -24px; }

/* Obsah z Beaver Builderu: modré boxy → černé sklo se zlatou linkou */
body.mms-dark .entry-content { color: #D9D0BA; font-family: Georgia, "Times New Roman", serif; }
body.mms-dark .entry-content p, body.mms-dark .entry-content li { color: #D2C9B2 !important; }
body.mms-dark .entry-content strong { color: #EDE3C8 !important; }
body.mms-dark .fl-builder-content :is(h1, h2, h3, h4, h5, h6),
body.mms-dark .fl-builder-content :is(h1, h2, h3, h4, h5, h6) * {
	font-family: var(--mm-f-serif) !important; color: #E2C878 !important; letter-spacing: .03em;
	text-shadow: 0 0 24px rgba(200, 168, 75, .35);
}
body.mms-dark .fl-builder-content .fl-row-content-wrap { background-color: transparent !important; border-color: rgba(200, 168, 75, .18) !important; }
body.mms-dark .fl-builder-content .fl-col-content {
	background-color: rgba(255, 255, 255, .025) !important;
	border-color: rgba(200, 168, 75, .3) !important;
	border-radius: 20px;
}
body.mms-dark .fl-builder-content .fl-col-content:not([style]):empty { background: none !important; }
body.mms-dark .fl-builder-content .fl-photo-content img { border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9); filter: saturate(.9); transition: filter .6s, transform 1s var(--mm-ease); }
body.mms-dark .fl-builder-content .fl-photo-content a:hover img,
body.mms-dark .fl-builder-content .fl-photo-content img:hover { filter: saturate(1.05) brightness(1.08); }
body.mms-dark .fl-builder-content a.fl-button,
body.mms-dark .entry-content .wp-block-button__link {
	background: linear-gradient(135deg, #E2C878, #C8A84B 55%, #9C7F2E) !important; color: #141414 !important;
	font-family: var(--mm-f-serif) !important; letter-spacing: .08em; font-weight: 700 !important;
	box-shadow: 0 0 0 1px rgba(200, 168, 75, .45), 0 14px 40px -12px rgba(200, 168, 75, .65) !important;
	animation: mms-glow 3.6s ease-in-out infinite;
}
body.mms-dark .fl-builder-content a.fl-button *,
body.mms-dark .fl-builder-content a.fl-button .fl-button-text,
body.mms-dark .fl-builder-content a.fl-button i { color: #141414 !important; text-shadow: none !important; }
@keyframes mms-glow { 50% { box-shadow: 0 0 0 1px rgba(226, 200, 120, .7), 0 14px 50px -8px rgba(200, 168, 75, .85); } }

/* ---------- Kotevní pás a patička ---------- */
body.mms-dark .mms-cta-band__inner {
	background: radial-gradient(90% 140% at 85% 0%, #3a2f17 0%, #1a1a1a 55%, #121212 100%);
	border: 1px solid rgba(200, 168, 75, .28);
	box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 200, .06);
}
body.mms-dark .mms-cta-band__inner::before { background: rgba(200, 168, 75, .35); }
body.mms-dark .mms-cta-band__inner::after { background: rgba(255, 170, 80, .12); }
body.mms-dark .mms-cta-band__title { font-family: var(--mm-f-serif); font-weight: 700; letter-spacing: .01em; line-height: 1.1; color: #E2C878; text-shadow: 0 0 36px rgba(200, 168, 75, .4); }

body.mms-dark .mms-footer__main { background: linear-gradient(180deg, #141414, #0e0e0e); border-top-color: rgba(200, 168, 75, .15); }
body.mms-dark .mms-footer__main::after { -webkit-text-stroke-color: rgba(200, 168, 75, .12); font-family: var(--mm-f-serif); letter-spacing: 0; content: "Řetězy osudu"; font-size: clamp(60px, 12vw, 190px); }
body.mms-dark .mms-footer__widget h2 { color: #E2C878; font-family: var(--mm-f-serif); letter-spacing: .02em; }
body.mms-dark .mms-footer__widget p, body.mms-dark .mms-footer__bottom { color: #8E866F; }
body.mms-dark .mms-footer__label { color: #C8A84B; }
body.mms-dark .mms-footer__col ul:not(.mms-social) a { color: #D9D0BA; }
body.mms-dark .mms-footer__col ul:not(.mms-social) a:hover { color: #E2C878; }
body.mms-dark .mms-social--footer a { background: rgba(255, 255, 255, .04); border-color: rgba(200, 168, 75, .2); }
body.mms-dark .mms-footer__bottom { border-top-color: rgba(200, 168, 75, .12); }
body.mms-dark .mms-footer__mark { filter: drop-shadow(0 0 18px rgba(41, 171, 226, .35)); }

/* Rezervace: plugin si hlavičku skrývá sám a kreslí vlastní hero; patička jen navazuje */
body.mms-dark.mms-bare .mms-footer__main { border-top: 0; }
