/*
Theme Name: Martin Nguyen
Theme URI: https://martinnguyen.cz
Author: Martin Nguyen
Description: Šablona osobního webu realitního makléře Martina Nguyena. Obsahuje správu nemovitostí (Na prodej / Rezervováno / Prodáno), formulář pro odhad ceny a evidenci poptávek.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martin-nguyen
*/

/* ---------- Základ ---------- */
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Sekce ---------- */
.mn-section { padding-top: 104px; padding-bottom: 104px; }
.mn-section--tight { padding-top: 72px; padding-bottom: 72px; }
.mn-bg-alt { background: #EFE8DA; }
.mn-bg-dark { background: #2A2826; color: #FFFCF5; }
.mn-bg-dark a:not(.wp-element-button) { color: #FFFCF5; }
.mn-bg-yellow { background: #F0B323; color: #2A2826; }
.mn-bg-yellow a:not(.wp-element-button) { color: #2A2826; }
@media (max-width: 781px) {
	.mn-section { padding-top: 64px; padding-bottom: 64px; }
	.mn-section--tight { padding-top: 48px; padding-bottom: 48px; }
}

.mn-section .wp-block-columns { gap: 56px; }
.mn-vcenter { align-items: center !important; }
.mn-narrow > * { max-width: 760px; }
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.mn-center { text-align: center; }
.mn-center .wp-block-buttons { justify-content: center; }

/* ---------- Typografie ---------- */
.mn-eyebrow {
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #3E2C22;
	margin-bottom: -8px !important;
}
.mn-bg-dark .mn-eyebrow { color: #F0B323; }
.mn-bg-yellow .mn-eyebrow { color: #3E2C22; }
.mn-lead { font-size: var(--wp--preset--font-size--large); color: #4A4540; max-width: 640px; }
.mn-muted { color: #4A4540; }
.mn-bg-dark .mn-lead, .mn-bg-dark .mn-muted { color: #D9D3C7; }
.mn-bg-yellow .mn-lead, .mn-bg-yellow .mn-muted { color: #3E2C22; }
.mn-note { font-size: 14px; color: #6F6A62; }
.mn-bg-dark .mn-note { color: #A8A196; }
.mn-bg-yellow .mn-note { color: #3E2C22; }

/* ---------- Tlačítka ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: #2A2826;
	border: 1px solid #B9B0A2;
	padding: 15px 23px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #FFFCF5; border-color: #2A2826; }
.mn-bg-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #FFFCF5; border-color: #6F6A62; }
.mn-bg-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: transparent; border-color: #FFFCF5; }
.mn-bg-yellow .wp-block-button.is-style-outline > .wp-block-button__link { color: #2A2826; border-color: #2A2826; }
.mn-bg-yellow .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #F5C962; }
.wp-block-button.mn-btn-dark > .wp-block-button__link { background: #2A2826; color: #FFFCF5; }
.wp-block-button.mn-btn-dark > .wp-block-button__link:hover { background: #3E2C22; color: #FFFCF5; }

/* ---------- Karty a mřížky ---------- */
.mn-card {
	background: #FFFCF5;
	border: 1px solid #E4DCCB;
	border-radius: 12px;
	padding: 28px;
}
.mn-bg-alt .mn-card { border-color: transparent; }
.mn-bg-dark .mn-card { background: transparent; border-color: #4A4642; }
.mn-card > * { margin-block-start: 0; }
.mn-card > * + * { margin-block-start: 10px !important; }
.mn-card h3 { margin-bottom: 0; }
.mn-card p { font-size: 16px; color: #4A4540; }
.mn-bg-dark .mn-card p { color: #D9D3C7; }
.mn-card--accent { border-top: 3px solid #F0B323 !important; }

/* Výhody se žlutou ikonou */
.mn-feature::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 10px;
	background: #FBEBC4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2C22' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* Seznam s fajfkami */
ul.mn-checks { list-style: none; padding-left: 0; }
ul.mn-checks li { position: relative; padding-left: 30px; margin: 0 0 10px; font-weight: 600; }
ul.mn-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E2C22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
ul.mn-checks.mn-checks--inline { display: flex; flex-wrap: wrap; gap: 8px 28px; }
ul.mn-checks.mn-checks--inline li { margin: 0; font-size: 15px; }
.mn-bg-dark ul.mn-checks li::before { filter: invert(1); }

/* Kroky prodeje (tmavá sekce) */
.mn-step { border-top: 2px solid #4A4642; padding-top: 24px; }
.mn-step > * { margin-block-start: 0; }
.mn-step > * + * { margin-block-start: 12px !important; }
.mn-step-num { font-family: var(--wp--preset--font-family--jakarta); font-size: 32px !important; font-weight: 800; color: #F0B323; line-height: 1; }
.mn-step p:not(.mn-step-num) { font-size: 15px; color: #D9D3C7; }

/* Číslovaný seznam kroků */
.mn-numbered { counter-reset: mnstep; }
.mn-numbered > .wp-block-group {
	counter-increment: mnstep;
	position: relative;
	padding-left: 92px;
}
.mn-numbered > .wp-block-group::before {
	content: counter(mnstep);
	position: absolute;
	left: 28px;
	top: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #2A2826;
	color: #FFFCF5;
	font-family: var(--wp--preset--font-family--jakarta);
	font-weight: 800;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mn-numbered--light > .wp-block-group::before { background: #FBEBC4; color: #3E2C22; }
.mn-role { font-size: 14px !important; font-weight: 700; color: #3E2C22 !important; }

/* Čísla */
.mn-stat-num { font-family: var(--wp--preset--font-family--jakarta); font-size: 44px !important; line-height: 1.1 !important; font-weight: 800; letter-spacing: -0.02em; color: #3E2C22; }
.mn-big { font-family: var(--wp--preset--font-family--jakarta); font-size: 64px !important; line-height: 1 !important; font-weight: 800; letter-spacing: -0.03em; }
.mn-bg-dark .mn-big { color: #FFFCF5; }

/* Box se žlutým pozadím uvnitř sekce */
.mn-yellow-box { background: #F0B323; color: #2A2826; border-radius: 14px; padding: 36px; }
.mn-yellow-box p { color: #2A2826; }

/* ---------- Obrázky ---------- */
.mn-photo img { width: 100%; border-radius: 16px; object-fit: cover; display: block; }
.mn-photo { margin: 0; }
.mn-before, .mn-after { position: relative; }
.mn-before::before, .mn-after::before {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 1;
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 6px;
}
.mn-before::before { content: "Před"; background: #6F6A62; color: #FFFCF5; }
.mn-after::before { content: "Po"; background: #F0B323; color: #2A2826; }
.mn-before img, .mn-after img { width: 100%; border-radius: 10px; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.mn-reel img { border-radius: 14px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; display: block; }

/* ---------- Žlutý makléř ---------- */
.mn-pill {
	display: inline-block;
	align-self: flex-start;
	background: #F0B323;
	color: #2A2826 !important;
	font-family: var(--wp--preset--font-family--jakarta);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1 !important;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 28px !important;
}
.mn-pill--small { font-size: 14px !important; padding: 6px 14px; }

/* ---------- Reference ---------- */
.mn-stars { color: #3E2C22; letter-spacing: 0.15em; font-size: 18px !important; }
.mn-quote-text { font-size: 17px !important; color: #2A2826 !important; }
.mn-quote-cite { font-size: 15px !important; color: #6F6A62 !important; }

/* ---------- FAQ ---------- */
.mn-faq .wp-block-details { border-bottom: 1px solid #E4DCCB; padding: 20px 0; margin: 0; }
.mn-faq .wp-block-details:first-child { border-top: 1px solid #E4DCCB; }
.mn-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--jakarta); font-weight: 700; font-size: 18px; }
.mn-faq details p { color: #4A4540; margin-top: 12px; }

/* ---------- Hlavička ---------- */
.mn-header { background: #FFFCF5; border-bottom: 1px solid #E4DCCB; padding-top: 14px; padding-bottom: 14px; position: relative; z-index: 20; }
.mn-header .wp-block-site-title { font-family: var(--wp--preset--font-family--jakarta); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.mn-header .wp-block-site-title a { color: #2A2826; text-decoration: none; }
.mn-header .wp-block-site-tagline { font-family: var(--wp--preset--font-family--jakarta); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6F6A62; margin: 2px 0 0; }
.mn-header .wp-block-navigation { font-size: 15px; font-weight: 600; }
.mn-header .wp-block-navigation a { text-decoration: none; padding: 10px 0; }
.mn-header .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -3px 0 #F0B323; }
.mn-header-phone { font-size: 15px; font-weight: 700; margin: 0; }
.mn-header-phone a { color: #2A2826; text-decoration: none; }
.mn-header .wp-block-button__link { padding: 12px 18px; font-size: 15px; }
@media (max-width: 781px) { .mn-header-phone { display: none; } }

/* ---------- Patička ---------- */
.mn-footer { background: #2A2826; color: #D9D3C7; padding-top: 64px; padding-bottom: 32px; font-size: 15px; }
.mn-footer a { color: #D9D3C7; text-decoration: none; }
.mn-footer a:hover { color: #FFFCF5; text-decoration: underline; }
.mn-footer h2, .mn-footer .mn-footer-title { font-size: 13px !important; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #FFFCF5; font-family: var(--wp--preset--font-family--jakarta); }
.mn-footer .mn-footer-brand { font-family: var(--wp--preset--font-family--jakarta); font-size: 22px !important; font-weight: 800; color: #FFFCF5; letter-spacing: -0.02em; }
.mn-footer p { margin: 0 0 8px; }
.mn-footer-bottom { border-top: 1px solid #3A3633; padding-top: 24px; margin-top: 40px; font-size: 13px; color: #A8A196; }
.mn-footer-bottom p { font-size: 13px; color: #A8A196; }
.mn-footer-bottom a { color: #A8A196; }

/* ---------- Nemovitosti ---------- */
.mn-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mn-prop { display: flex; flex-direction: column; background: #FFFCF5; border: 1px solid #E4DCCB; border-radius: 12px; overflow: hidden; color: #2A2826; text-decoration: none; transition: box-shadow .2s; }
.mn-prop:hover { box-shadow: 0 8px 24px rgba(42, 40, 38, 0.10); color: #2A2826; }
.mn-prop-img { position: relative; aspect-ratio: 3 / 2; background: #E2D9C8; }
.mn-prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-prop-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.mn-prop-title { font-family: var(--wp--preset--font-family--jakarta); font-size: 19px; font-weight: 700; margin: 0; line-height: 1.3; }
.mn-prop-place, .mn-prop-meta { font-size: 15px; color: #6F6A62; margin: 0; }
.mn-prop-price { font-family: var(--wp--preset--font-family--jakarta); font-size: 20px; font-weight: 800; margin: 8px 0 0; }
.mn-badge { position: absolute; left: 16px; top: 16px; font-family: var(--wp--preset--font-family--jakarta); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px; border-radius: 6px; }
.mn-badge--static { position: static; display: inline-block; }
.mn-badge--na-prodej { background: #F0B323; color: #2A2826; }
.mn-badge--rezervovano { background: #9A5230; color: #FFFCF5; }
.mn-badge--prodano { background: #2A2826; color: #FFFCF5; }
.mn-empty { background: #FFFCF5; border: 1px dashed #B9B0A2; border-radius: 12px; padding: 32px; color: #4A4540; text-align: center; }

.mn-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.mn-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 10px 18px; border-radius: 999px; border: 1px solid #B9B0A2; background: #FFFCF5; color: #2A2826; font-weight: 700; font-size: 15px; text-decoration: none; }
.mn-filters a span { font-weight: 500; color: #6F6A62; }
.mn-filters a.is-active { background: #2A2826; border-color: #2A2826; color: #FFFCF5; }
.mn-filters a.is-active span { color: #D9D3C7; }

/* Detail nemovitosti */
.mn-detail { padding-top: 48px; padding-bottom: 96px; }
.mn-detail-inner { max-width: 1200px; margin: 0 auto; }
.mn-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.mn-detail-head h1 { margin: 12px 0 6px; font-size: clamp(30px, 4vw, 44px); }
.mn-detail-price { font-family: var(--wp--preset--font-family--jakarta); font-size: 32px; font-weight: 800; margin: 0; }
.mn-detail-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 16px; display: block; }
.mn-detail-grid { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.mn-detail-content { flex: 2 1 560px; min-width: 0; }
.mn-detail-side { flex: 1 1 300px; min-width: 0; }
.mn-params { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.mn-params th, .mn-params td { text-align: left; padding: 12px 0; border-bottom: 1px solid #E4DCCB; font-size: 15px; }
.mn-params th { color: #6F6A62; font-weight: 500; width: 45%; }
.mn-params td { font-weight: 700; }
.mn-breadcrumb { font-size: 14px; color: #6F6A62; }
.mn-breadcrumb a { color: #6F6A62; }

/* ---------- Formulář ---------- */
.mn-form { display: flex; flex-direction: column; gap: 18px; }
.mn-form-card { background: #FFFCF5; border-radius: 16px; padding: 36px; border: 1px solid #E4DCCB; color: #2A2826; }
.mn-bg-yellow .mn-form-card { border-color: transparent; }
.mn-form .mn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.mn-form .mn-row > label { flex: 1 1 180px; min-width: 0; }
.mn-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.mn-form input[type=text], .mn-form input[type=tel], .mn-form input[type=email], .mn-form input[type=number], .mn-form select, .mn-form textarea {
	font: inherit;
	font-weight: 500;
	font-size: 16px;
	padding: 13px 14px;
	border: 1px solid #B9B0A2;
	border-radius: 8px;
	background: #FFFCF5;
	color: #2A2826;
	width: 100%;
	box-sizing: border-box;
}
.mn-form input:focus, .mn-form select:focus, .mn-form textarea:focus { outline: 2px solid #2A2826; outline-offset: 1px; border-color: #2A2826; }
.mn-form fieldset { border: 0; margin: 0; padding: 0; }
.mn-form legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.mn-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.mn-choices label { flex-direction: row; align-items: center; gap: 0; font-size: 15px; }
.mn-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mn-choices span { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 18px; border-radius: 999px; border: 1px solid #B9B0A2; background: #FFFCF5; cursor: pointer; }
.mn-choices input:checked + span { background: #F0B323; border-color: #F0B323; }
.mn-choices input:focus-visible + span { outline: 2px solid #2A2826; outline-offset: 2px; }
.mn-form .mn-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; line-height: 1.5; color: #4A4540; }
.mn-form .mn-consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #2A2826; }
.mn-form button { font-family: var(--wp--preset--font-family--jakarta); font-size: 17px; font-weight: 700; color: #2A2826; background: #F0B323; border: 0; border-radius: 8px; padding: 18px 24px; cursor: pointer; }
.mn-form button:hover { background: #F5C962; }
.mn-bg-yellow .mn-form button { background: #2A2826; color: #FFFCF5; }
.mn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mn-form-error { background: #FBEBC4; border-radius: 8px; padding: 12px 16px; font-weight: 600; }

/* ---------- Blog ---------- */
.mn-posts .wp-block-post-featured-image img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.mn-posts .wp-block-post-title a { color: #2A2826; text-decoration: none; }
.mn-article { max-width: 760px; margin-left: auto; margin-right: auto; }
.mn-article-cta { background: #F0B323; border-radius: 16px; padding: 36px; }

/* ---------- Přístupnost ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid #2A2826; outline-offset: 2px; }
.mn-bg-dark a:focus-visible { outline-color: #F0B323; }

/* ---------- Doplňky ---------- */
.mn-detail { padding-left: 24px; padding-right: 24px; }
.mn-center .mn-lead { margin-left: auto; margin-right: auto; }
.mn-detail-content > * + * { margin-top: 1.2em; }
.mn-detail-content .wp-block-gallery img { border-radius: 10px; }
.mn-numbered > .wp-block-group { width: 100%; box-sizing: border-box; }
