/*
Theme Name: Autoprofil
Template: twentytwentyone
Version: 0.1.2
Description: Detská téma pre autoprofil.sk postavená na Twenty Twenty-One.
Author: Autoprofil
*/

html,
body,
*,
*::before,
*::after {
	font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif !important;
}

.ap-page-title {
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #142B45;
	margin: 6px auto 28px;
}

.ap-breadcrumb {
	font-weight: 500;
}

.ap-breadcrumb a {
	font-weight: 600;
}

.ap-section-heading {
	font-weight: 800;
	letter-spacing: 0.08em;
}

/* =========================================================
 * Diskusie (bbPress) - fóra, témy, odpovede
 * ========================================================= */
body.bbpress .entry-header {
	max-width: 900px;
	margin: 30px auto 8px;
	padding: 0 20px;
	border-bottom: none !important;
	padding-bottom: 0 !important;
}
body.bbpress .entry-header .entry-title {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #142B45;
}
body.bbpress .entry-content,
body.bbpress .entry-content > * {
	max-width: 900px !important;
}
body.bbpress .entry-content {
	margin: 0 auto;
	padding: 0 20px;
}
body.bbpress .site-main > article { margin-top: 0; }

#bbpress-forums {
	font-size: 1rem;
	color: #222;
}
#bbpress-forums div.bbp-breadcrumb,
.ap-topic-crumb {
	margin: 0 0 14px;
	color: #777;
	font-size: 0.9rem;
}
#bbpress-forums div.bbp-breadcrumb a,
.ap-topic-crumb a {
	color: #1f6f9c;
	font-weight: 600;
	text-decoration: none;
}
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-search-results {
	border: 1px solid #e2e8ec;
	border-radius: 10px;
	overflow: hidden;
	font-size: 0.95rem;
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
	background: #15314a;
	color: #fff;
	border: none;
	font-weight: 700;
}
#bbpress-forums li.bbp-header a { color: #fff; }
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums div.odd,
#bbpress-forums ul.odd { background: #fff; }
#bbpress-forums div.even,
#bbpress-forums ul.even { background: #f7f9fb; }
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
	background: #eef3f6;
	border-top: 1px solid #e2e8ec;
}
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
	font-size: 1rem;
	line-height: 1.6;
}
#bbpress-forums a.bbp-forum-title,
#bbpress-forums a.bbp-topic-permalink {
	font-weight: 700;
	color: #15314a;
	font-size: 1.05rem;
	text-decoration: none;
}
#bbpress-forums .bbp-forum-content { color: #678; font-size: 0.9rem; }
#bbpress-forums div.bbp-template-notice {
	border-radius: 8px;
	border-color: #e2e8ec;
	background: #f5f8fa;
}
#bbpress-forums fieldset.bbp-form {
	border: 1px solid #e2e8ec;
	border-radius: 14px;
	padding: 20px 22px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(20,43,69,0.05);
}
/* Nadpis formulára („Odpoveď na: …“) vnútri karty, nie na jej okraji */
#bbpress-forums fieldset.bbp-form legend {
	float: left;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #15314a;
}
#bbpress-forums fieldset.bbp-form legend + * { clear: both; }
/* Bez technických hlášok o HTML */
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form > .bbp-template-notice:not(.error),
:is(#bbpress-forums, .ap-new-topic-body) .form-allowed-tags { display: none; }
/* Zaškrtávanie „Informujte ma…“ menšie */

:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form p:has(> input[type="checkbox"]) { margin: 10px 0 0; }
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="checkbox"] {
	-webkit-appearance: auto !important; appearance: auto !important; outline: none !important;
	border: none; background: none; position: static; flex: 0 0 auto;
	width: 15px; height: 15px; margin: 0 6px 0 0; vertical-align: -2px; accent-color: #1f6f9c;
}
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="checkbox"] + label {
	font-size: 0.85rem; color: #567; font-weight: 500; cursor: pointer;
}

/* ---------- Editor príspevku ---------- */
.ap-ed { position: relative; border: 1px solid #d6dee5; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ap-ed:focus-within { border-color: #1f6f9c; box-shadow: 0 0 0 3px rgba(31,111,156,0.15); }
#bbpress-forums div.bbp-the-content-wrapper div.wp-editor-container { border: none; background: transparent; }
#bbpress-forums div.bbp-the-content-wrapper textarea.ap-ed-textarea,
#bbpress-forums .ap-ed textarea.ap-ed-textarea,
.ap-ed textarea.ap-ed-textarea {
	font-size: 1rem !important; padding: 14px 16px 6px !important; margin: 0 !important;
	display: block; width: 100%; min-height: 120px; resize: vertical;
	border: none !important; outline: none; box-shadow: none !important; background: transparent;
	padding: 14px 16px 6px; font-size: 1rem; line-height: 1.55; color: #1d2d3c; border-radius: 12px 12px 0 0;
}
.ap-ed-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-top: 1px solid #eef2f5; }
.ap-ed-btn {
	min-width: 34px; height: 32px; padding: 0 8px; border: none !important; border-radius: 8px;
	background: transparent !important; color: #456 !important; font-size: 1rem; line-height: 1; cursor: pointer;
}
.ap-ed-btn:hover { background: #eef3f6 !important; color: #142B45 !important; }
.ap-ed-btn.is-at { font-weight: 700; }
.ap-ed-hint { margin-left: auto; font-size: 0.75rem; color: #9aa7b2; padding-right: 6px; }
.ap-ed-pop {
	position: absolute; left: 8px; top: 100%; margin-top: 6px; z-index: 20;
	display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 8px;
	background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.ap-ed-pop[hidden], .ap-ed-mention[hidden] { display: none; }
.ap-ed-emoji { font-size: 1.25rem; min-width: 36px; height: 36px; padding: 0; }
.ap-ed-mention {
	position: absolute; left: 8px; top: 100%; margin-top: 6px; z-index: 21; min-width: 240px;
	background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.14); overflow: hidden;
}
.ap-ed-mention-item {
	display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left;
	padding: 9px 14px; border: none !important; background: #fff !important; color: #1d2d3c !important; cursor: pointer; font-size: 0.95rem;
}
.ap-ed-mention-item span { color: #8a99a6; font-size: 0.85rem; }
.ap-ed-mention-item.is-active, .ap-ed-mention-item:hover { background: #eef5fa !important; }
.ap-ed-mention-empty { padding: 10px 14px; color: #8a99a6; font-size: 0.9rem; }
#bbpress-forums input[type="text"],
#bbpress-forums textarea,
#bbpress-forums select { max-width: 100%; }
#bbpress-forums .bbp-submit-wrapper button,
.ap-new-topic-body .bbp-submit-wrapper button {
	background: #1f6f9c;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 22px;
	font-weight: 700;
	cursor: pointer;
}

/* bbPress má na kontajneri overflow:hidden (kvôli floatom) – orezával okienko smajlíkov a @mien. flow-root drží floaty bez orezania. */
body #bbpress-forums { overflow: visible; display: flow-root; }

/* Polia formulárov v diskusiách – jemné, moderné */
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="text"],
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="password"],
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form select {
	width: 100%; border: 1px solid #d6dee5 !important; border-radius: 10px; background: #fff;
	padding: 10px 14px; font-size: 1rem; color: #1d2d3c; box-shadow: none; outline: none;
}
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="text"]:focus,
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="password"]:focus,
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form select:focus {
	border-color: #1f6f9c !important; box-shadow: 0 0 0 3px rgba(31,111,156,0.15);
}
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form label { font-size: 0.85rem; font-weight: 600; color: #456; }
.ap-new-topic-body div.wp-editor-container { border: none; background: transparent; }
.ap-new-topic-body .ap-ed textarea.ap-ed-textarea { font-size: 1rem !important; }

/* Prihlasovací formulár bbPress (pod témou pre neprihlásených) */
#bbpress-forums .bbp-login-form { max-width: 420px; }
#bbpress-forums .bbp-login-form .bbp-username,
#bbpress-forums .bbp-login-form .bbp-password { margin-bottom: 12px; }
#bbpress-forums .bbp-login-form label { display: block; float: none; width: auto; margin: 0 0 4px; }
/* Zaškrtávacie políčko + text v jednom riadku (aj „Nechať ma prihláseného“) */
#bbpress-forums .bbp-login-form .bbp-remember-me,
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form p:has(> input[type="checkbox"]) {
	display: flex; align-items: center; gap: 8px;
}
#bbpress-forums .bbp-login-form .bbp-remember-me label,
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="checkbox"] + label {
	display: inline; margin: 0; font-size: 0.85rem; font-weight: 500; color: #567; cursor: pointer;
}
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="checkbox"]::before,
:is(#bbpress-forums, .ap-new-topic-body) fieldset.bbp-form input[type="checkbox"]::after { content: none !important; display: none !important; }

/* =========================================================
 * Používatelia – registrácia, prihlásenie, môj profil
 * ========================================================= */
.ap-u-card { background: #fff; border: 1px solid #e2e8ec; border-radius: 14px; padding: 22px 24px; box-shadow: 0 2px 10px rgba(20,43,69,0.05); }
.ap-u-auth { max-width: 480px; margin: 0 auto 60px; }
.ap-u-lead { color: #456; margin: 0 0 18px; line-height: 1.5; }
.ap-u-form { display: flex; flex-direction: column; gap: 16px; }
.ap-u-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ap-u-field > span { font-size: 0.85rem; font-weight: 700; color: #33475a; }
.ap-u-field > span em { font-style: normal; font-weight: 500; color: #8a99a6; }
.ap-u-field small, .ap-u-muted { font-size: 0.8rem; color: #8a99a6; line-height: 1.4; }
.ap-u-form input[type="text"], .ap-u-form input[type="email"], .ap-u-form input[type="password"],
.ap-u-form select, .ap-u-form textarea {
	width: 100%; border: 1px solid #d6dee5 !important; border-radius: 10px; background: #fff;
	padding: 10px 14px; font-size: 1rem; color: #1d2d3c; box-shadow: none; outline: none;
}
.ap-u-form input:focus, .ap-u-form select:focus, .ap-u-form textarea:focus { border-color: #1f6f9c !important; box-shadow: 0 0 0 3px rgba(31,111,156,0.15); }
.ap-u-form input[type="file"] { font-size: 0.9rem; border: none; padding: 0; }
.ap-u-form input[type="checkbox"] {
	-webkit-appearance: auto !important; appearance: auto !important; width: 15px; height: 15px; margin: 0;
	position: static; border: none; background: none; flex: 0 0 auto; accent-color: #1f6f9c;
}
.ap-u-form input[type="checkbox"]::before, .ap-u-form input[type="checkbox"]::after { content: none !important; display: none !important; }
.ap-u-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; color: #456; cursor: pointer; margin: 0; line-height: 1.4; }
.ap-u-check input { margin-top: 2px !important; }
.ap-u-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; }
.ap-u-row a, .ap-u-alt a, .ap-u-small a { color: #1f6f9c; font-weight: 600; }
.ap-u-btn, .site .ap-u-btn, button.ap-u-btn:not(:hover):not(:active):not(.has-background) {
	display: inline-block; background: #1f6f9c !important; color: #fff !important; border: none !important; border-radius: 10px !important;
	padding: 12px 22px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none !important; text-align: center;
}
.site .ap-u-btn:hover, button.ap-u-btn:hover { background: #185a80 !important; color: #fff !important; }
.ap-u-alt { text-align: center; font-size: 0.9rem; color: #567; margin: 0; }
.ap-u-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap-u-spzbox { background: #f5f8fa; border: 1px dashed #c9d6df; border-radius: 12px; padding: 14px 16px; }
.ap-u-spzbox p { margin: 10px 0 0; font-size: 0.82rem; color: #567; line-height: 1.45; }
.ap-u-spz { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.ap-u-msg { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; background: #f5f8fa; border: 1px solid #e2e8ec; color: #33475a; }
.ap-u-msg ul { margin: 0; padding-left: 18px; }
.ap-u-msg.is-error { background: #fff1f1; border-color: #f3c4c4; color: #8a1f1f; }
.ap-u-msg.is-ok { background: #ecf8ef; border-color: #bfe5c8; color: #1f6b33; }

.ap-u-profile { max-width: 900px; margin: 0 auto 70px; }
.ap-u-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; position: relative; flex-wrap: wrap; }
.ap-u-head .ap-u-avatar, .ap-u-head img.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #e7f1fb; }
.ap-u-head h2 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; color: #142B45; }
.ap-u-meta { font-size: 0.88rem; color: #678; margin-bottom: 6px; }
.ap-u-small { margin: 6px 0 0; font-size: 0.85rem; }
.ap-u-logout-wrap { display: flex; justify-content: center; margin-top: 8px; }
.ap-u-logout { display: inline-block; padding: 10px 22px; border: 1px solid #d6dee5; border-radius: 10px; background: #fff; color: #8a1f1f !important; font-weight: 600; text-decoration: none !important; }
.ap-u-logout:hover { background: #fff1f1; border-color: #f3c4c4; }
.ap-u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ap-u-grid .ap-u-card { display: flex; flex-direction: column; gap: 12px; }
.ap-u-grid h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #15314a; }
.ap-u-wide { grid-column: 1 / -1; }
.ap-u-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-u-save { display: flex; justify-content: flex-end; }
.ap-u-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-u-list li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: #f7f9fb; }
.ap-u-list a { font-weight: 700; color: #15314a; text-decoration: none; }
.ap-u-list span { font-size: 0.78rem; color: #8a99a6; }
@media (max-width: 760px) { .ap-u-grid, .ap-u-cols { grid-template-columns: 1fr; } .ap-u-head { flex-direction: column; text-align: center; } }

/* „Teraz jazdí“ pri príspevkoch a na verejnom profile */
.ap-now-driving { display: inline-block; font-size: 0.85rem; color: #33475a; background: #e7f1fb; padding: 4px 10px; border-radius: 14px; }
.ap-now-driving a { color: #1f6f9c; font-weight: 600; text-decoration: none; }
.ap-u-bbp-car { margin-top: 6px; }
.ap-u-bbp-car .ap-now-driving { font-size: 0.72rem; padding: 3px 8px; line-height: 1.35; }
.ap-u-public { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.ap-u-public p { margin: 0; color: #456; }
/* Stránky registrácie / prihlásenia / profilu – nadpis */
body:is(.page-registracia, .page-prihlasenie, .page-moj-profil) .entry-header {
	max-width: 900px; margin: 34px auto 18px; padding: 0 20px; border-bottom: none !important; padding-bottom: 0 !important; text-align: center;
}
body:is(.page-registracia, .page-prihlasenie, .page-moj-profil) .entry-header .entry-title {
	font-size: 2rem; font-weight: 800; color: #142B45; letter-spacing: -0.02em;
}
body:is(.page-registracia, .page-prihlasenie, .page-moj-profil) .entry-content > * { max-width: 900px !important; }
body:is(.page-registracia, .page-prihlasenie, .page-moj-profil) .entry-content > .ap-u-auth { max-width: 480px !important; }
body:is(.page-registracia, .page-prihlasenie, .page-moj-profil) .site-main { min-height: 60vh; }

/* Profilová fotka – výber a okamžité uloženie */
.ap-u-photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-u-photo-row img.ap-u-photo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #e7f1fb; }
.ap-u-photo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site .ap-u-btn.ap-u-btn-light, .ap-u-btn.ap-u-btn-light { background: #e7f1fb !important; color: #1f6f9c !important; padding: 9px 16px; font-size: 0.92rem; cursor: pointer; }
.site .ap-u-btn.ap-u-btn-light:hover { background: #d6e8f7 !important; color: #1f6f9c !important; }
.ap-u-photo-remove, .site .ap-u-photo-remove {
	background: none !important; border: none !important; color: #8a1f1f !important; font-size: 0.85rem; padding: 0 !important; cursor: pointer; text-decoration: underline;
}
.ap-u-photo-remove[hidden] { display: none; }

/* Mobil: hlavné tlačidlá na celú šírku (ako „Odhlásiť sa“) */
@media (max-width: 640px) {
	#bbpress-forums .bbp-submit-wrapper,
	.ap-new-topic-body .bbp-submit-wrapper { float: none; width: 100%; }
	#bbpress-forums .bbp-submit-wrapper button,
	.ap-new-topic-body .bbp-submit-wrapper button,
	.ap-u-save .ap-u-btn,
	.ap-u-auth .ap-u-btn,
	.ap-u-logout-wrap .ap-u-logout { display: block; width: 100%; text-align: center; }
	.ap-u-save { display: block; }
}

/* =========================================================
 * Užívateľské recenzie – formulár a zobrazenie
 * ========================================================= */
body.page-pridat-recenziu .entry-header { max-width: 900px; margin: 34px auto 18px; padding: 0 20px; border-bottom: none !important; padding-bottom: 0 !important; text-align: center; }
body.page-pridat-recenziu .entry-header .entry-title { font-size: 2rem; font-weight: 800; color: #142B45; letter-spacing: -0.02em; }
body.page-pridat-recenziu .entry-content > * { max-width: 820px !important; }
.ap-ur-form { gap: 16px; margin-bottom: 60px; }
.ap-ur-step { display: flex; flex-direction: column; gap: 14px; }
.ap-ur-step h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: #15314a; display: flex; align-items: center; gap: 10px; }
.ap-ur-num { width: 28px; height: 28px; border-radius: 50%; background: #2f9e44; color: #fff; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; }
.ap-ur-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ap-ur-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-ur-toggle label { cursor: pointer; margin: 0; }
.ap-ur-toggle input { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; margin: 0 !important; }
.ap-ur-toggle b { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid #d6dee5; background: #fff; font-weight: 600; color: #456; transition: all .12s; }
.ap-ur-toggle input:checked + b { background: #e7f1fb; border-color: #1f6f9c; color: #1f6f9c; }
.ap-ur-toggle .is-yes input:checked + b { background: #e9f7ec; border-color: #2f9e44; color: #2f9e44; }
.ap-ur-toggle .is-no input:checked + b { background: #fff1f1; border-color: #c92a4b; color: #c92a4b; }
.ap-ur-toggle .is-maybe input:checked + b { background: #fff4e0; border-color: #b86e00; color: #b86e00; }
.ap-ur-toggle input:focus-visible + b { box-shadow: 0 0 0 3px rgba(31,111,156,0.25); }
.ap-ur-stars { display: inline-flex; gap: 2px; }
.ap-ur-stars button, .site .ap-ur-stars button {
	background: none !important; border: none !important; padding: 0 2px !important; cursor: pointer;
	font-size: 1.5rem; line-height: 1; color: #d6dee5 !important; transition: transform .1s, color .1s;
}
.ap-ur-stars.is-big button { font-size: 2.4rem; }
.ap-ur-stars button.on { color: #f5a623 !important; }
.ap-ur-stars button:hover { transform: scale(1.12); }
.ap-ur-overall { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-ur-overall-label { font-weight: 700; color: #33475a; font-size: 1.05rem; }
.ap-ur-more summary { cursor: pointer; color: #1f6f9c; font-weight: 600; font-size: 0.92rem; }
.ap-ur-more summary em { font-style: normal; color: #8a99a6; font-weight: 500; }
.ap-ur-criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 10px; }
.ap-ur-crit { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.92rem; color: #33475a; border-bottom: 1px dashed #eef2f5; padding: 4px 0; }
.ap-ur-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-ur-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; }
.ap-ur-list.is-plus { background: #f0faf2; }
.ap-ur-list.is-minus { background: #fff4f4; }
.ap-ur-list h4 { margin: 0 0 2px; font-size: 0.95rem; font-weight: 800; }
.ap-ur-list.is-plus h4 { color: #2f9e44; }
.ap-ur-list.is-minus h4 { color: #c92a4b; }
.ap-ur-add, .site .ap-ur-add { align-self: flex-start; background: none !important; border: none !important; padding: 2px 0 !important; color: #1f6f9c !important; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.ap-ur-photos { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border: 2px dashed transparent; border-radius: 12px; transition: border-color .12s; }
.ap-ur-photos.is-drag { border-color: #1f6f9c; background: #f5f9fc; }
.ap-ur-photo, .ap-ur-photo-add { position: relative; width: 108px; height: 108px; border-radius: 10px; overflow: hidden; }
.ap-ur-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-ur-photo.is-loading img { opacity: 0.45; }
.ap-ur-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #142B45; }
.ap-ur-photo-del, .site .ap-ur-photo-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0 !important; border-radius: 50% !important; border: none !important; background: rgba(0,0,0,0.6) !important; color: #fff !important; font-size: 15px; line-height: 1; cursor: pointer; }
.ap-ur-photo-ins, .site .ap-ur-photo-ins { position: absolute; left: 4px; bottom: 4px; padding: 2px 7px !important; border-radius: 8px !important; border: none !important; background: rgba(255,255,255,0.92) !important; color: #1f6f9c !important; font-size: 11px; font-weight: 700; cursor: pointer; }
.ap-ur-photo-add { display: flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed #c9d6df; background: #f7f9fb; color: #567; font-size: 0.82rem; font-weight: 600; cursor: pointer; line-height: 1.5; }
.ap-ur-photo-add:hover { border-color: #1f6f9c; color: #1f6f9c; }
.ap-ur-photo-add span { font-size: 0.82rem; }
.ap-ur-final { align-items: stretch; }
.ap-ur-submit { font-size: 1.1rem !important; padding: 14px 22px !important; background: #2f9e44 !important; }
.site .ap-ur-submit:hover { background: #26823a !important; }
@media (max-width: 700px) { .ap-ur-cols, .ap-ur-pm, .ap-ur-criteria { grid-template-columns: 1fr; } .ap-ur-stars.is-big button { font-size: 2.2rem; } }

/* Zobrazenie užívateľskej recenzie */
.ap-stars { display: inline-flex; gap: 1px; color: #d6dee5; letter-spacing: 0; vertical-align: 1px; }
.ap-stars i { font-style: normal; color: #d6dee5; }
.ap-stars i.on { color: #f5a623; }
.ap-stars.is-small { font-size: 0.85em; margin-left: 4px; }
.ap-stars.is-big { font-size: 1.6rem; }
.ap-ur-author { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; flex-wrap: wrap; }
.ap-ur-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ap-ur-author strong { display: block; color: #15314a; }
.ap-ur-author span { font-size: 0.85rem; color: #8a99a6; }
.ap-ur-edit { margin-left: auto; font-size: 0.88rem; font-weight: 600; color: #1f6f9c; text-decoration: none; }
.ap-ur-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid #e2e8ec; border-radius: 14px; padding: 18px 22px; margin-bottom: 16px; }
.ap-ur-score { display: flex; flex-direction: column; align-items: center; min-width: 130px; }
.ap-ur-score b { font-size: 2.6rem; font-weight: 800; color: #142B45; line-height: 1; }
.ap-ur-score b small { font-size: 1rem; color: #8a99a6; }
.ap-ur-score span { font-size: 0.85rem; font-weight: 700; color: #33475a; margin-top: 2px; }
.ap-ur-sumright { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.ap-ur-rec { display: inline-block; align-self: flex-start; font-weight: 700; padding: 6px 14px; border-radius: 16px; font-size: 0.92rem; }
.ap-ur-rec.is-ano { background: #e9f7ec; color: #2f9e44; }
.ap-ur-rec.is-nie { background: #fff1f1; color: #c92a4b; }
.ap-ur-rec.is-neviem { background: #fff4e0; color: #b86e00; }
.ap-ur-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-ur-facts span { background: #f1f5f8; color: #33475a; border-radius: 12px; padding: 4px 10px; font-size: 0.84rem; }
.ap-ur-pmview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.ap-ur-pmview > div { border-radius: 14px; padding: 16px 20px; }
.ap-ur-pmview .is-plus { background: #f0faf2; }
.ap-ur-pmview .is-minus { background: #fff4f4; }
.ap-ur-pmview h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.ap-ur-pmview .is-plus h3 { color: #2f9e44; }
.ap-ur-pmview .is-minus h3 { color: #c92a4b; }
.ap-ur-pmview ul { margin: 0; padding-left: 18px; color: #2c3e50; }
.ap-ur-pmview li { margin: 3px 0; }
.ap-ur-bars { background: #fff; border: 1px solid #e2e8ec; border-radius: 14px; padding: 14px 22px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.ap-ur-bar { display: grid; grid-template-columns: 1fr 90px 34px; align-items: center; gap: 10px; font-size: 0.88rem; color: #33475a; }
.ap-ur-bar i { height: 8px; background: #eef2f5; border-radius: 4px; overflow: hidden; }
.ap-ur-bar em { display: block; height: 100%; background: #f5a623; border-radius: 4px; }
.ap-ur-bar b { font-size: 0.82rem; color: #678; text-align: right; }
.ap-ur-figure { margin: 16px 0; }
.ap-ur-figure img, .ap-ur-inline-img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.ap-ur-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.ap-ur-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
@media (max-width: 700px) { .ap-ur-pmview, .ap-ur-bars { grid-template-columns: 1fr; } }

/* Diskusia pod recenziou */
.ap-rev-comments { margin-top: 26px; }
.ap-rev-comments > h2 { font-size: 1.3rem; font-weight: 800; color: #142B45; margin: 0 0 14px; }
.ap-rev-comments > h2 span { color: #8a99a6; font-weight: 600; }
.ap-cm-list, .ap-cm-list .children { list-style: none; margin: 0; padding: 0; }
.ap-cm-list .children { margin-left: 28px; padding-left: 14px; border-left: 2px solid #e2e8ec; }
.ap-cm { margin: 0 0 10px; }
.ap-cm-box { background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; padding: 12px 16px; }
.ap-cm-head { display: flex; gap: 10px; align-items: flex-start; }
.ap-cm-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ap-cm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.88rem; }
.ap-cm-who strong { color: #15314a; }
.ap-cm-badge { background: #e9f7ec; color: #2f9e44; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.ap-cm-date { color: #8a99a6; font-size: 0.8rem; }
.ap-cm-who .ap-now-driving { font-size: 0.72rem; padding: 2px 8px; }
.ap-cm-text { margin: 8px 0 0 46px; color: #2c3e50; line-height: 1.55; }
.ap-cm-text p { margin: 0 0 8px; }
.ap-cm-actions { margin-left: 46px; font-size: 0.82rem; }
.ap-cm-actions a { color: #1f6f9c; font-weight: 600; text-decoration: none; }
.ap-cm-empty { color: #678; background: #fff; border: 1px dashed #c9d6df; border-radius: 12px; padding: 14px 16px; }
.ap-rev-comments .comment-respond { background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; padding: 16px; margin-top: 14px; }
.ap-cm-list .comment-respond { margin: 10px 0 10px 46px; }
.ap-cm-form-title { margin: 0 0 10px; font-size: 1rem; font-weight: 800; color: #15314a; display: flex; justify-content: space-between; align-items: center; }
.ap-cm-form-title small a { font-size: 0.82rem; font-weight: 600; color: #8a1f1f; }
.ap-rev-comments .comment-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ap-rev-comments .comment-form p { margin: 0; }
.ap-rev-comments .form-submit { display: flex; justify-content: flex-end; }
.ap-rev-comments .ap-ed textarea.ap-ed-textarea { font-size: 1rem !important; padding: 12px 14px 4px !important; }
@media (max-width: 640px) {
	.ap-cm-text, .ap-cm-actions { margin-left: 0; }
	.ap-cm-list .children { margin-left: 10px; padding-left: 10px; }
	.ap-cm-list .comment-respond { margin-left: 0; }
	.ap-rev-comments .form-submit .ap-u-btn { width: 100%; }
}

/* Jednotný štítok auta (Značka Model – Generácia) – rovnaký v diskusiách aj recenziách */
.ap-car-pill {
	display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: 12px;
	background: #e2efef !important; color: #1e5459 !important; border: 1px solid #c3dedf; line-height: 1.5;
}
.ap-car-pill-sm { margin-right: 4px; }
.ap-rev-typetxt { font-weight: 700; font-size: 0.8rem; }

/* =========================================================
 * Nahlásenia – tlačidlo a okno
 * ========================================================= */
.ap-report-btn, .site .ap-report-btn, button.ap-report-btn:not(:hover):not(:active) {
	background: none !important; border: none !important; padding: 0 !important; margin: 0;
	color: #c92a4b !important; font-size: 0.8rem !important; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ap-report-btn:hover, .site .ap-report-btn:hover { color: #9b1c37 !important; background: none !important; text-decoration: underline; }
.ap-report-row { margin-top: 10px; text-align: right; }
.ap-report-row-rev { margin: 10px 0 0; }
.ap-cm-actions { display: flex; gap: 14px; align-items: center; }
.ap-cm-actions .ap-report-btn { margin-left: auto !important; }
body.ap-rep-open { overflow: hidden; }
.ap-rep-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ap-rep-modal[hidden] { display: none; }
.ap-rep-backdrop { position: absolute; inset: 0; background: rgba(11,24,40,0.55); }
.ap-rep-box {
	position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	display: flex; flex-direction: column; gap: 12px; margin: 0;
}
.ap-rep-box[hidden] { display: none; }
.ap-rep-box h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: #142B45; }
.ap-rep-lead { margin: 0; font-size: 0.88rem; color: #678; }
.ap-rep-x, .site .ap-rep-x { position: absolute; top: 10px; right: 12px; background: none !important; border: none !important; font-size: 24px; color: #8a99a6 !important; cursor: pointer; padding: 0 6px !important; }
.ap-rep-reasons { display: flex; flex-direction: column; gap: 6px; }
.ap-rep-reasons label { display: block; margin: 0; cursor: pointer; }
.ap-rep-reasons input { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; margin: 0 !important; }
.ap-rep-reasons span { display: block; position: relative; padding: 9px 12px 9px 36px; border: 1px solid #e2e8ec; border-radius: 10px; font-size: 0.92rem; color: #33475a; transition: all .12s; }
.ap-rep-reasons label:hover span { border-color: #c9d6df; background: #f7f9fb; }
.ap-rep-reasons input:checked + span { border-color: #c92a4b; background: #fff4f4; color: #8a1f1f; font-weight: 600; }
.ap-rep-reasons span::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid #c9d6df; border-radius: 4px; background: #fff; box-sizing: border-box; }
.ap-rep-reasons input:checked + span::before { border-color: #c92a4b; background: #c92a4b; }
.ap-rep-reasons input:checked + span::after { content: "✓"; position: absolute; left: 14px; top: 50%; margin-top: -10px; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; }
.ap-rep-reasons input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201,42,75,0.2); }
.ap-rep-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ap-rep-field > span { font-size: 0.85rem; font-weight: 700; color: #33475a; }
.ap-rep-field em { font-style: normal; font-weight: 500; color: #8a99a6; }
.ap-rep-field textarea, .ap-rep-field input {
	width: 100%; border: 1px solid #d6dee5 !important; border-radius: 10px; padding: 9px 12px; font-size: 0.95rem; background: #fff; box-shadow: none; outline: none;
}
.ap-rep-field textarea:focus, .ap-rep-field input:focus { border-color: #1f6f9c !important; box-shadow: 0 0 0 3px rgba(31,111,156,0.15); }
.ap-rep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ap-rep-err { margin: 0; color: #8a1f1f; background: #fff1f1; border-radius: 8px; padding: 8px 12px; font-size: 0.88rem; }
.ap-rep-err[hidden] { display: none; }
.ap-rep-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.ap-rep-cancel, .site .ap-rep-cancel { background: #f1f5f8 !important; color: #456 !important; border: none !important; border-radius: 10px !important; padding: 10px 16px !important; font-weight: 600; cursor: pointer; }
.ap-rep-send, .site .ap-rep-send { background: #c92a4b !important; color: #fff !important; border: none !important; border-radius: 10px !important; padding: 10px 18px !important; font-weight: 700; cursor: pointer; }
.ap-rep-send:disabled { opacity: 0.6; }
@media (max-width: 520px) { .ap-rep-actions button { flex: 1; } }

/* =========================================================
 * Hlasovanie o značkách
 * ========================================================= */
.ap-vote {
	max-width: 860px; margin: 14px auto 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 16px 18px; border-radius: 14px; background: #fff8e6; border: 1px solid #f2dca6;
}
.ap-vote-ico { font-size: 1.8rem; }
.ap-vote-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; color: #5a4300; font-size: 0.9rem; line-height: 1.4; }
.ap-vote-txt b { font-size: 1rem; color: #3d2e00; }
.ap-vote-count { font-size: 0.8rem; font-weight: 700; color: #b07d00; }
.ap-vote-btn, .site .ap-vote-btn {
	background: #f2a65a !important; color: #142B45 !important; border: none !important; border-radius: 10px !important;
	padding: 11px 18px !important; font-weight: 800; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
}
.site .ap-vote-btn:hover { background: #f5b77a !important; }
.ap-vote.is-voted .ap-vote-btn, .ap-vote-btn:disabled { background: #e9f7ec !important; color: #2f9e44 !important; cursor: default; }
@media (max-width: 640px) { .ap-vote { margin-left: 16px; margin-right: 16px; } .ap-vote-btn { width: 100%; } }

.ap-vote-results { margin-top: 30px; }
.ap-vote-results-lead { margin: -6px 0 12px; font-size: 0.88rem; color: #567; }
.ap-vote-bars { list-style: none; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; display: flex; flex-direction: column; gap: 9px; }
.ap-vote-bars a { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; text-decoration: none; color: #15314a; }
.ap-vote-name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-vote-bar { height: 10px; background: #eef2f5; border-radius: 5px; overflow: hidden; }
.ap-vote-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f2a65a, #e8893a); border-radius: 5px; min-width: 2px; }
.ap-vote-pct { font-weight: 700; font-size: 0.88rem; text-align: right; color: #33475a; }
.ap-vote-bars a:hover .ap-vote-name { color: #1f6f9c; }

/* =========================================================
 * Pás s tipmi (pod hlavičkou) a „Vedeli ste?“
 * ========================================================= */
.ap-tips { background: #1f3f63; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid #16304d; color: #dce6f1; font-size: 0.8rem; line-height: 1.35; font-weight: 400; }
.ap-tips-inner { max-width: 1100px; margin: 0 auto; padding: 7px 32px; display: flex; align-items: center; gap: 10px; min-height: 34px; transition: opacity .25s; }
.ap-tips.is-fading .ap-tips-inner { opacity: 0; }
.ap-tips-kind { flex: 0 0 auto; font-weight: 800; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 10px; background: rgba(242,166,90,0.2); color: #f6bd84; }
.ap-tips-kind.is-ako { background: rgba(120,210,210,0.18); color: #9fe0e0; }
.ap-tips-kind.is-chystame { background: rgba(170,145,255,0.2); color: #c7b8ff; }
.ap-tips-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-tips-text a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); }
.ap-tips-text a:hover { color: #F2A65A; text-decoration-color: #F2A65A; }
.ap-tips-next, .site .ap-tips-next { flex: 0 0 auto; background: none !important; border: none !important; color: #8fa6c0 !important; font-size: 1.1rem !important; font-weight: 700; line-height: 1; padding: 0 4px !important; cursor: pointer; }
.ap-tips-next:hover { color: #F2A65A !important; }
@media (max-width: 640px) {
	.ap-tips-inner { padding: 6px 16px; }
	.ap-tips-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.ap-fact {
	max-width: 1160px; margin: 22px auto 0; padding: 12px 18px; display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; box-shadow: 0 2px 10px rgba(20,43,69,0.05);
}
.ap-fact-ico { font-size: 1.5rem; flex: 0 0 auto; }
.ap-fact-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-fact-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #1f6f9c; }
.ap-fact-text { font-size: 0.95rem; color: #2c3e50; line-height: 1.4; }
.ap-fact-more { flex: 0 0 auto; font-weight: 700; font-size: 0.88rem; color: #1f6f9c; text-decoration: none; white-space: nowrap; }
@media (max-width: 1200px) { .ap-fact { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 640px) { .ap-fact { margin: 16px; flex-wrap: wrap; } .ap-fact-more { width: 100%; text-align: right; } }
