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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* a Gallia pályája */
.hector-ut .hs-ut { stroke: var(--hs-bordo); stroke-width: 2.2px; }
.hector-ut .hs-ut-hatra { fill: none; stroke: var(--hs-bordo); stroke-width: 1.4px; stroke-dasharray: 2 4; opacity: .6; vector-effect: non-scaling-stroke; }
.hector-ut .hs-felirat { font-family: Georgia, 'Times New Roman', serif; font-size: 11px; fill: #5e4c38; letter-spacing: .06em; }
.hector-ut .hs-dolt { font-style: italic; }
.hector-ut .hs-halvany { opacity: .7; font-style: italic; }
.hector-ut .hs-cimfelirat { font-family: var(--hs-cimke-font); font-size: 15px; font-weight: 700; letter-spacing: .22em; fill: #5e4c38; }
.hector-ut .hs-galliai { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 3px 0 2px; font-size: .8em; color: #3d5a73; }
.hector-ut .hs-galliai .hs-cimke, .hector-ut .hs-menetrend .hs-cimke { padding: 1px 6px; border: 1px solid var(--hs-rez-sotet); font-family: var(--hs-cimke-font); font-size: .82em; letter-spacing: .1em; text-transform: uppercase; background: rgba(176, 141, 87, .18); color: var(--hs-tinta); }
.hector-ut .hs-j-f { border-top: 1.5px dashed #3d5a73; }
.hector-ut .hs-mini { width: 60px; }
.hector-ut .hs-info { min-height: 10.2em; }
.hs-popup .hs-nagy .hs-info { min-height: 6.6em; }
.hector-ut:not(.hs-nagy) .hs-felirat, .hector-ut:not(.hs-nagy) .hs-cimfelirat { display: none; }
