/* Utazás a Holdba – pergamen és sárgaréz, a Nautilus sablonhoz igazítva (önállóan is működik) */

.hold-ut,
.ho-popup {
	--ho-pergamen: var(--n-pergamen, #efe5cd);
	--ho-pergamen-2: var(--n-pergamen-2, #e4d6b6);
	--ho-tinta: var(--n-tinta, #2b2118);
	--ho-tinta-2: var(--n-tinta-2, #5e4c38);
	--ho-rez: var(--n-rez, #b08d57);
	--ho-rez-sotet: var(--n-rez-sotet, #6f5430);
	--ho-bordo: var(--n-bordo, #6e2a22);
	--ho-cimke-font: var(--n-cimke-font, "Cinzel", Georgia, serif);
	--ho-szoveg-font: var(--n-szoveg-font, "EB Garamond", Georgia, serif);
}

.hold-ut {
	box-sizing: border-box;
	padding: 12px;
	background: var(--ho-pergamen);
	color: var(--ho-tinta);
	border: 1px solid #c9b48a;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	font-family: var(--ho-szoveg-font);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}
.hold-ut *,
.ho-popup * { box-sizing: border-box; }
.hold-ut p { margin: 0; }

.hold-ut .ho-allapot,
.hold-ut .ho-pihen { font-style: italic; color: var(--ho-tinta-2); }
.hold-ut .ho-pihen { margin: 0 0 8px; font-size: .9em; }

/* --- térkép --- */
.hold-ut .ho-terkep-keret {
	position: relative;
	border: 1px solid var(--ho-rez-sotet);
	outline: 1px solid rgba(111, 84, 48, .35);
	outline-offset: 2px;
	background: #efe5cd;
	line-height: 0;
}
.hold-ut .ho-kattinthato { cursor: zoom-in; }
.hold-ut .ho-terkep { display: block; width: 100%; height: auto; overflow: hidden; }

.hold-ut .ho-ut-teljes { fill: none; stroke: var(--ho-bordo); stroke-width: 1px; stroke-dasharray: 2 3; opacity: .35; vector-effect: non-scaling-stroke; }
.hold-ut .ho-ut { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hold-ut .ho-ut-r { stroke: var(--ho-bordo); stroke-width: 2px; }
.hold-ut .ho-ut-b { stroke: var(--ho-bordo); stroke-width: 2px; stroke-dasharray: 1 4; }
.hold-ut.ho-nagy .ho-ut-r, .hold-ut.ho-nagy .ho-ut-b { stroke-width: 2.6px; }

.hold-ut .ho-pont { fill: var(--ho-pergamen); stroke: var(--ho-bordo); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .55; cursor: pointer; }
.hold-ut .ho-pont-volt { fill: var(--ho-bordo); opacity: .9; }
.hold-ut .ho-pont-mai { fill: #f3e2b8; stroke-width: 2px; opacity: 1; }
.hold-ut .ho-pont:hover { opacity: 1; stroke-width: 2px; }
.hold-ut:not(.ho-nagy) .ho-pont { display: none; }
.hold-ut:not(.ho-nagy) .ho-pont-mai { display: inline; }

/* a járművek */
.ho-jarmu .ho-viz { fill: none; stroke: #3d5a73; stroke-width: .6; opacity: .65; }
.ho-jarmu .ho-sin { stroke: #5e4c38; stroke-width: .7; }
.ho-jarmu .ho-fold { stroke: #8c6d45; stroke-width: .6; }
.ho-jarmu .ho-ho { fill: none; stroke: #b8c4cc; stroke-width: 1.3; }
.ho-fust circle { fill: #ddd2bb; stroke: #8c7e66; stroke-width: .3; opacity: 0; animation: ho-fust 2.4s ease-out infinite; }
.ho-fust circle:nth-child(2) { animation-delay: .8s; }
.ho-fust circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes ho-fust { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-5px, -4px) scale(1.25); } }
.ho-imbolyog { animation: ho-imbolyog 3.2s ease-in-out infinite; transform-origin: 0 4px; }
@keyframes ho-imbolyog { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.ho-lepked { animation: ho-lepked .9s ease-in-out infinite; }
@keyframes ho-lepked { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.6px); } }
@media (prefers-reduced-motion: reduce) { .ho-fust circle, .ho-imbolyog, .ho-lepked { animation: none; } .ho-fust circle { opacity: .7; } }

/* --- szöveg --- */
.hold-ut .ho-info { margin: 10px 0 8px; min-height: 7em; display: flex; flex-direction: column; }
.hold-ut .ho-ures { visibility: hidden; }
.hold-ut .ho-szoveg { margin: 9px 0 0; }
.hold-ut .ho-szoveg[hidden] { display: block; visibility: hidden; height: 0; margin: 0; }
.hold-ut .ho-datum { font-size: .82em; color: var(--ho-tinta-2); }
.hold-ut .ho-datum b { color: var(--ho-bordo); font-weight: 600; }
.hold-ut .ho-hely { margin: 2px 0 3px; font-family: var(--ho-cimke-font); font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ho-tinta); }
.hold-ut .ho-hely small { font-family: var(--ho-szoveg-font); font-size: 1.1em; font-weight: 400; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--ho-tinta-2); }
.hold-ut .ho-menetrend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 5px; font-size: .8em; color: var(--ho-tinta); }
.hold-ut .ho-menetrend .ho-cimke { padding: 1px 6px; border: 1px solid var(--ho-rez-sotet); font-family: var(--ho-cimke-font); font-size: .82em; letter-spacing: .1em; text-transform: uppercase; background: rgba(176, 141, 87, .18); }
.hold-ut .ho-menetrend.ho-jo span:last-child { color: #3f6a2c; font-weight: 600; }
.hold-ut .ho-menetrend.ho-rossz span:last-child { color: var(--ho-bordo); font-weight: 600; }
.hold-ut .ho-szoveg { font-style: italic; font-size: .95em; line-height: 1.4; }

/* --- vezérlők --- */
.hold-ut .ho-vezerlo { display: flex; align-items: center; gap: 4px; }
.hold-ut .ho-gomb,
.ho-popup .ho-gomb {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin: 0;
	padding: 0 7px;
	border: 1px solid var(--ho-rez-sotet);
	border-radius: 0;
	background: transparent;
	color: var(--ho-tinta);
	font-family: var(--ho-szoveg-font);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.hold-ut .ho-gomb:hover,
.hold-ut .ho-gomb:focus-visible,
.ho-popup .ho-gomb:hover,
.ho-popup .ho-gomb:focus-visible { background: var(--ho-rez); color: var(--ho-tinta); outline: none; }
.hold-ut .ho-ma { font-family: var(--ho-cimke-font); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hold-ut .ho-csuszka { flex: 1; min-width: 40px; margin: 0 4px; accent-color: var(--ho-bordo); background: transparent; border: 0; padding: 0; height: 28px; }

.hold-ut .ho-ugras {
	display: block;
	width: 100%;
	margin: 8px 0 0;
	padding: 4px 6px;
	border: 1px solid var(--ho-rez-sotet);
	border-radius: 0;
	background: rgba(255, 255, 255, .35);
	color: var(--ho-tinta);
	font-family: var(--ho-szoveg-font);
	font-size: 14px;
}

.hold-ut .ho-jelmagyarazat { margin-top: 7px; font-size: .74em; color: var(--ho-tinta-2); }
.hold-ut .ho-j { display: inline-block; width: 18px; height: 0; margin: 0 4px 3px 0; vertical-align: middle; border-top: 2px solid var(--ho-bordo); }
.hold-ut .ho-j + .ho-j, .hold-ut .ho-jelmagyarazat .ho-j:not(:first-child) { margin-left: 8px; }
.hold-ut .ho-j-b { border-top-style: dotted; }

/* nagyítás gomb a térképen */
.hold-ut .ho-nagyit {
	position: absolute;
	right: 6px;
	top: 6px;
	min-width: 26px;
	height: 26px;
	padding: 0;
	background: rgba(239, 229, 205, .9);
}
.hold-ut .ho-nagyit svg { width: 14px; height: 14px; }

/* --- összecsukott állapot --- */
.hold-ut .ho-osszecsukva { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hold-ut .ho-mini { width: 56px; height: 26px; flex: none; }
.hold-ut .ho-osszecsukva-szoveg { flex: 1; min-width: 140px; font-size: .9em; line-height: 1.3; }
.hold-ut .ho-osszecsukva-szoveg span { display: block; color: var(--ho-tinta-2); font-style: italic; }
.hold-ut .ho-osszecsukva-szoveg .ho-osszecsukva-cim { font-family: var(--ho-cimke-font); font-style: normal; font-size: .82em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ho-tinta); }
.hold-ut .ho-kinyit { font-family: var(--ho-cimke-font); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hold-ut:not(.ho-kinyitva) .ho-osszecsukva ~ * { display: none; }
.hold-ut.ho-kinyitva .ho-osszecsukva { margin-bottom: 10px; }

/* --- felugró ablak --- */
.ho-popup {
	width: min(1180px, 96vw);
	max-height: 96vh;
	margin: 2vh auto auto;
	padding: 18px 22px 16px;
	border: 1px solid #c9b48a;
	outline: 1px solid rgba(217, 189, 132, .5);
	outline-offset: 6px;
	background: var(--ho-pergamen);
	color: var(--ho-tinta);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	font-family: var(--ho-szoveg-font);
	overflow: auto;
}
.ho-popup::backdrop { background: rgba(5, 10, 14, .78); }
html.ho-popup-nyitva { overflow: hidden; }
.ho-popup-fej { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ho-rez-sotet); }
.ho-popup-fej h2 { margin: 0; padding: 0; font-family: var(--ho-cimke-font); font-size: 18px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ho-tinta); background: none; border: 0; }
.ho-popup-al { flex: 1; font-style: italic; color: var(--ho-tinta-2); font-size: 15px; }
.ho-popup .ho-zar { align-self: center; margin-left: auto; }
.ho-popup .hold-ut.ho-nagy { padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 17px; }
.ho-popup .ho-nagy .ho-terkep-keret { cursor: default; width: fit-content; max-width: 100%; margin: 0 auto; }
.ho-popup .ho-nagy .ho-terkep { width: auto; max-width: 100%; height: min(calc(94vh - 290px), calc((min(1180px, 96vw) - 50px) * .533)); min-height: 160px; }
.ho-popup .ho-nagy .ho-info { min-height: 6.2em; }
.ho-popup .ho-nagy .ho-szoveg { min-height: 3em; }
.ho-popup .ho-nagy .ho-hely { font-size: .8em; }
.ho-popup .ho-nagy .ho-ugras { width: auto; display: inline-block; margin-right: 12px; }
.ho-popup .ho-nagy .ho-jelmagyarazat { display: inline-block; }
.ho-popup .ho-forras { margin: 10px 0 0; font-size: 13px; font-style: italic; color: var(--ho-tinta-2); }

@media (max-width: 600px) {
	.ho-popup { padding: 12px; }
	.ho-popup-al { display: none; }
}


/* „Ma egy éve” megjegyzés */
.hold-ut .ho-egyeve { margin: 8px 0 0; padding: 6px 8px; border-left: 2px solid var(--ho-rez); background: rgba(176, 141, 87, .12); font-size: .85em; line-height: 1.35; }
.hold-ut .ho-egyeve b { font-family: var(--ho-cimke-font); font-size: .82em; letter-spacing: .06em; font-weight: 700; }
.hold-ut .ho-egyeve[hidden] { display: none; }
.hold-ut .ho-menetrend[hidden] { display: none; }

/* a világűr-vázlaton világos vonal */
.hold-ut .ho-ur .ho-ut-r, .hold-ut .ho-ur .ho-ut-b { stroke: #f3d995; }
.hold-ut .ho-ur .ho-ut-teljes { stroke: #f3d995; opacity: .3; }
.hold-ut .ho-ur .ho-pont { fill: #1f2a33; stroke: #f3d995; }
.hold-ut .ho-ur .ho-pont-volt { fill: #f3d995; }
