/* Prime Ride – Hirdetések. A Cygni téma sötét arculatát követi. */

:root {
	--prh-bg: #1e1e2c;
	--prh-surface: #2a2a39;
	--prh-surface-2: #33334a;
	--prh-black: #000;
	--prh-text: #ededed;
	--prh-muted: #b8b8c8;
	--prh-line: rgba(255, 255, 255, 0.14);
	--prh-focus: #fff;
	--prh-accent: var(--pr-accent, #c9a46a);
	--prh-accent-hover: var(--pr-accent-hover, #d8b57a);
	--prh-on-accent: #1e1e2c;
	--prh-font-head: "Playfair Display", Georgia, serif;
	--prh-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--prh-radius: 3px;
	--prh-gutter: 16px;
	--prh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.prh-listing,
.prh-single {
	font-family: var(--prh-font-body);
	color: var(--prh-text);
	-webkit-font-smoothing: antialiased;
}

.prh-listing *,
.prh-single * {
	box-sizing: border-box;
}

.prh-listing :focus-visible,
.prh-single :focus-visible {
	outline: 2px solid var(--prh-focus);
	outline-offset: 3px;
}

/* ---------- Gombok ---------- */

.prh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid #fff;
	border-radius: var(--prh-radius);
	font-family: var(--prh-font-head);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.5px;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color 0.2s var(--prh-ease), color 0.2s var(--prh-ease);
}

.prh-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.prh-btn.prh-btn--ghost {
	background: transparent;
	color: #fff;
}

.prh-btn.prh-btn--ghost:hover {
	background: #fff;
	color: var(--prh-bg);
}

.prh-btn.prh-btn--solid {
	background: #fff;
	color: var(--prh-bg);
}

.prh-btn.prh-btn--solid:hover {
	background: transparent;
	color: #fff;
}

.prh-btn.prh-btn--accent {
	background: var(--prh-accent);
	border-color: var(--prh-accent);
	color: var(--prh-on-accent);
	font-weight: 600;
}

.prh-btn.prh-btn--accent:hover {
	background: var(--prh-accent-hover);
	border-color: var(--prh-accent-hover);
	color: var(--prh-on-accent);
}

.prh-listing .screen-reader-text,
.prh-single .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Lista ---------- */

.prh-listing {
	width: 100%;
}

.prh-filter {
	margin: 0 0 32px;
}

.prh-filter__panel {
	border: 1px solid var(--prh-line);
	background: var(--prh-surface);
	border-radius: var(--prh-radius);
}

.prh-filter__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 16px;
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.prh-filter__toggle::-webkit-details-marker {
	display: none;
}

.prh-filter__toggle::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s var(--prh-ease);
}

.prh-filter__panel[open] > .prh-filter__toggle::after {
	transform: rotate(-135deg);
}

.prh-filter__toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.prh-filter__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 12px;
	background: var(--prh-accent);
	color: var(--prh-on-accent);
	font-size: 14px;
	font-weight: 600;
}

.prh-filter__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px 16px;
	padding: 4px 16px 16px;
}

.prh-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.prh-field label,
.prh-field legend {
	width: auto;
	float: none;
	padding: 0;
	color: var(--prh-text);
	font-size: 15px;
	font-weight: 400;
}

.prh-field select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 48px;
	padding: 10px 40px 10px 14px;
	border: 1px solid var(--prh-line);
	border-radius: var(--prh-radius);
	background: var(--prh-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ededed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
	color: #fff;
	font-family: var(--prh-font-body);
	font-size: 16px;
	line-height: 1.3;
	cursor: pointer;
}

.prh-field select:hover {
	border-color: rgba(255, 255, 255, 0.35);
}

.prh-field select option,
.prh-field select optgroup {
	background: var(--prh-bg);
	color: #fff;
}

.prh-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
}

.prh-extras {
	margin: 0 16px;
	border-top: 1px solid var(--prh-line);
}

.prh-extras > summary {
	display: flex;
	align-items: center;
	min-height: 48px;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.prh-extras__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px 16px;
	padding: 0 0 12px;
}

.prh-check {
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	float: none;
	min-height: 40px;
	padding: 0;
	color: var(--prh-text);
	font-size: 15px;
	cursor: pointer;
}

.prh-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--prh-accent);
	flex: none;
}

.prh-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 16px;
	border-top: 1px solid var(--prh-line);
}

.prh-filter__reset {
	color: #fff;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.prh-filter__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-top: 20px;
}

.prh-filter__count {
	margin: 0;
	color: var(--prh-muted);
	font-size: 16px;
}

.prh-filter__count strong {
	color: #fff;
	font-weight: 600;
}

.prh-field--inline {
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.prh-field--inline select {
	width: auto;
	min-width: 200px;
}

.prh-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prh-card {
	margin: 0;
	padding: 0;
}

.prh-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.prh-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--prh-surface);
}

.prh-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--prh-ease);
}

.prh-card__link:hover .prh-card__img {
	transform: scale(1.04);
}

.prh-card__title {
	margin: 0 0 4px;
	color: #fff;
	font-family: var(--prh-font-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.prh-card__body {
	display: block;
	padding-top: 14px;
}

.prh-card__meta {
	margin: 0;
	color: var(--prh-muted);
	font-size: 16px;
}

.prh-card__price {
	margin: 6px 0 0;
	color: #fff;
	font-family: var(--prh-font-head);
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.prh-empty {
	padding: 48px 0;
	text-align: center;
	font-size: 18px;
}

.prh-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.prh-similar {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--prh-line);
}

.prh-pagination {
	margin: 48px 0 0;
}

.prh-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prh-pagination a,
.prh-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--prh-line);
	border-radius: var(--prh-radius);
	color: #fff;
	font-size: 16px;
	text-decoration: none;
}

.prh-pagination a:hover {
	border-color: #fff;
}

.prh-pagination .page-numbers.current {
	background: #fff;
	border-color: #fff;
	color: var(--prh-bg);
	font-weight: 500;
}

.prh-pagination .dots {
	border-color: transparent;
}

/* ---------- Adatlap ---------- */

.prh-single {
	background: var(--prh-bg);
	padding: 112px 0 64px;
}

.prh-wrap {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--prh-gutter);
}

.prh-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
}

.prh-back:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.prh-back--bottom {
	margin-top: 48px;
}

.prh-head {
	display: grid;
	gap: 20px;
	margin: 16px 0 24px;
}

.prh-head__title {
	margin: 0;
	color: #fff;
	font-family: var(--prh-font-body);
	font-size: clamp(30px, 6vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.prh-head__sub {
	margin: 10px 0 0;
	color: var(--prh-muted);
	font-size: 16px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.prh-price {
	align-self: start;
	padding: 16px 20px;
	background: var(--prh-black);
}

.prh-price p {
	margin: 0;
}

.prh-price__main {
	color: #fff;
	font-family: var(--prh-font-head);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.prh-price__main span {
	font-family: var(--prh-font-body);
	font-size: 16px;
	font-weight: 400;
	color: var(--prh-muted);
}

.prh-price__eur {
	margin-top: 4px !important;
	color: var(--prh-muted);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

.prh-price__badge {
	margin-top: 10px !important;
	padding-top: 10px;
	border-top: 1px solid var(--prh-line);
	color: #fff;
	font-size: 16px;
}

.prh-price__badge + .prh-price__badge {
	margin-top: 6px !important;
	padding-top: 0;
	border-top: 0;
}

/* Galéria: görgethető sáv, JS nélkül is működik. */

.prh-gallery {
	margin: 0 calc(var(--prh-gutter) * -1) 24px;
}

.prh-gallery__stage {
	position: relative;
}

.prh-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	background: var(--prh-black);
}

.prh-gallery__track::-webkit-scrollbar {
	display: none;
}

.prh-gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 4 / 3;
	scroll-snap-align: center;
}

.prh-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prh-gallery__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s var(--prh-ease);
}

.prh-gallery__nav:hover {
	background: rgba(0, 0, 0, 0.85);
}

.prh-gallery__nav svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.prh-gallery__nav--prev {
	left: 12px;
}

.prh-gallery__nav--next {
	right: 12px;
}

.prh-gallery__count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.prh-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0 var(--prh-gutter) 4px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.prh-gallery__thumbs a {
	display: block;
	width: 88px;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: opacity 0.2s var(--prh-ease), border-color 0.2s var(--prh-ease);
}

.prh-gallery__thumbs a:hover,
.prh-gallery__thumbs a[aria-current="true"] {
	opacity: 1;
}

.prh-gallery__thumbs a[aria-current="true"] {
	border-color: #fff;
}

.prh-gallery__thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Fő adatok */

.prh-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin: 0 0 40px;
	background: var(--prh-line);
	border: 1px solid var(--prh-line);
}

.prh-facts__item {
	flex: 1 1 calc(50% - 1px);
	min-width: 0;
	padding: 14px 16px;
	background: var(--prh-bg);
}

.prh-facts dt {
	color: var(--prh-muted);
	font-family: var(--prh-font-head);
	font-size: 14px;
	letter-spacing: 0.5px;
}

.prh-facts dd {
	margin: 4px 0 0;
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

/* Törzs */

.prh-body {
	display: grid;
	gap: 40px;
}

.prh-body__main {
	min-width: 0;
}

.prh-section + .prh-section {
	margin-top: 40px;
}

.prh-section__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--prh-font-head);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
}

.prh-section__title span {
	color: var(--prh-muted);
	font-size: 18px;
	font-weight: 400;
}

.prh-specs {
	margin: 0;
}

.prh-specs__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	padding: 12px 16px;
	background: var(--prh-black);
}

.prh-specs__row + .prh-specs__row {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prh-specs dt {
	color: #dbdbdb;
	font-family: var(--prh-font-head);
	font-size: 15px;
}

.prh-specs dd {
	margin: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.prh-desc {
	font-size: 16px;
	line-height: 1.7;
}

.prh-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prh-features li {
	padding: 6px 12px;
	border: 1px solid var(--prh-line);
	border-radius: var(--prh-radius);
	font-size: 15px;
	line-height: 1.4;
}

.prh-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-self: start;
	padding: 24px;
	background: var(--prh-surface);
}

.prh-contact__title {
	margin: 0;
	color: #fff;
	font-family: var(--prh-font-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
}

.prh-contact__text {
	margin: 0 0 4px;
	color: var(--prh-muted);
	font-size: 16px;
	line-height: 1.6;
}

.prh-contact__meta {
	margin: 8px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--prh-line);
	font-size: 15px;
}

.prh-contact__meta div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}

.prh-contact__meta dt {
	color: var(--prh-muted);
}

.prh-contact__meta dd {
	margin: 0;
	text-align: right;
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
	:root {
		--prh-gutter: 24px;
	}

	.prh-filter__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.prh-extras__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.prh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.prh-facts__item {
		flex-basis: calc(33.333% - 1px);
	}

	.prh-specs__row {
		grid-template-columns: minmax(160px, 34%) 1fr;
		gap: 16px;
	}

	.prh-gallery {
		margin-left: 0;
		margin-right: 0;
	}

	.prh-gallery__thumbs {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ---------- Asztali ---------- */

@media (min-width: 1024px) {
	.prh-filter__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.prh-extras__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.prh-single {
		padding-top: 140px;
	}

	.prh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.prh-head {
		grid-template-columns: 1fr auto;
		align-items: end;
		gap: 32px;
	}

	.prh-facts__item {
		flex-basis: 0;
	}

	.prh-body {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 48px;
	}

	.prh-contact {
		position: sticky;
		top: 120px;
	}

	.prh-gallery__slide {
		aspect-ratio: 16 / 10;
	}
}

@media (prefers-reduced-motion: reduce) {
	.prh-gallery__track {
		scroll-behavior: auto;
	}

	.prh-card__img,
	.prh-btn,
	.prh-gallery__thumbs a {
		transition: none;
	}

	.prh-card__link:hover .prh-card__img {
		transform: none;
	}
}
