/* Home page (Inzeráty): hero, search panel, listing, promo cards, newest, how it works. */

/* ---------- Hero text ---------- */
.home-hero__eyebrow { margin-bottom: 14px; }

.home-hero__title {
	margin-bottom: 16px;
	font-weight: 800;
	font-size: 3.25rem;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.home-hero__lead {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--text-secondary);
	text-wrap: pretty;
}

.home-hero__free {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.home-hero__free-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--ink-900);
	text-wrap: pretty;
}

@media (max-width: 759px) {
	.home-hero__title { font-size: 2.5rem; }
}

/* ---------- Search panel ---------- */
.search {
	margin-top: 36px;
	padding: 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 24px;
	border-radius: var(--radius-2xl);
	background: var(--surface-card);
	box-shadow: var(--shadow-md);
}

.search__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search__selects {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border-subtle);
}

.search__select { flex: 0 0 112px; }
.search__select--wide { flex-basis: 230px; }
.search__select[hidden] { display: none; }

@media (max-width: 759px) {
	.search { padding: 20px; }
	.search__select--wide { flex: 1 1 100%; }
	.search__select { flex: 1 1 112px; }
}

/* ---------- Listing ---------- */
.listing { padding: 8px var(--gutter) 80px; }

.listing__grid {
	display: grid;
	grid-template-columns: 264px 1fr;
	gap: 36px;
	align-items: start;
}

/* Not sticky on purpose: a sticky layer loses ClearType and the small chip text turns blurry on Windows. */
.filters {
	padding: 24px;
	border-radius: var(--radius-xl);
	background: var(--surface-card);
	box-shadow: var(--shadow-sm);
}

.filters__title {
	margin-bottom: 4px;
	font-size: 1.25rem;
	letter-spacing: 0;
}

.filters__sub {
	margin-bottom: 22px;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.filters__group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.filters__group--checks {
	gap: 12px;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-subtle);
}

.filters__group--checks .check { align-items: center; }
.filters__group--checks .check input { margin-top: 0; }

.filters__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.filters .tag.is-active,
.active-filters .tag {
	border-color: var(--secondary);
	background: var(--secondary);
	color: #FFFFFF;
}

.active-filters { margin: -6px 0 20px; }
.active-filters .tag i { font-size: 14px; }

.results { min-width: 0; }

.results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.results__title {
	font-size: 1.5rem;
	letter-spacing: 0;
}
.results__title span {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-muted);
}

.sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.sort__select {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.sort__select i {
	position: absolute;
	right: 0;
	font-size: 16px;
	color: var(--brand-hover);
	pointer-events: none;
}

.sort__select select {
	padding: 0 20px 0 0;
	border: 0;
	background: transparent;
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--brand-hover);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ads {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Hover lift animates `top`, not `transform`: a transformed layer re-rasterises text blurry and late. */
.ad {
	position: relative;
	top: 0;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	padding: 20px;
	border-radius: var(--radius-xl);
	background: var(--surface-card);
	box-shadow: var(--shadow-sm);
	transition: top var(--dur-base) var(--ease-out);
}
.ad:hover { top: -3px; }

.ad__photo {
	position: relative;
	height: 200px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.ad__photo:hover { opacity: 1; }

.ad__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ad__online {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(6px);
	font-size: 0.6875rem;
	font-weight: 700;
	color: #FFFFFF;
}
.ad__online span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--online);
}

.ad__body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
}

.ad__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.ad__title {
	font-size: 1.375rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}
.ad__title a { color: inherit; }

.ad__active {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--text-muted);
}

.ad__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
}
.ad__meta > span:not(.badge) {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ad__meta i { font-size: 1.05em; }

.ad__quote {
	padding-left: 16px;
	border-left: 3px solid var(--rose-200);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--text-secondary);
	text-wrap: pretty;
}

.ad__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.ad__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding-top: 36px;
}

.pager__item {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--border-default);
	border-radius: var(--radius-pill);
	background: #FFFFFF;
	font-weight: 700;
	color: var(--text-primary);
}
.pager__item:hover {
	opacity: 1;
	border-color: var(--secondary);
}
.pager__item.is-active {
	border-color: var(--secondary);
	background: var(--secondary);
	color: #FFFFFF;
}

.pager__gap {
	padding: 0 6px;
	color: var(--text-muted);
}

@media (max-width: 1023px) {
	.listing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
	.ad {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.ad__photo { height: 220px; }
}

/* ---------- Promo cards ---------- */
.promo {
	padding: 32px var(--gutter);
	background: #FFFFFF;
}

.promo__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 20px;
}

.promo-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 30px 32px;
	border-radius: var(--radius-xl);
}

.promo-card--ad {
	border: 1px solid var(--rose-100);
	background: var(--rose-50);
}

.promo-card--speed { background: var(--cream-300); }

.promo-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.promo-card__hearts {
	position: relative;
	width: 56px;
	height: 46px;
	flex-shrink: 0;
}
.promo-card__hearts i { position: absolute; }
.promo-card__hearts i:first-child {
	left: 0;
	top: 8px;
	font-size: 36px;
	color: var(--rose-300);
}
.promo-card__hearts i:last-child {
	left: 16px;
	top: 0;
	font-size: 40px;
	color: var(--brand);
}

.promo-card__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--ink-900);
}

.promo-card__accent { color: var(--brand); }

.promo-card__icon {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #FFFFFF;
	font-size: 24px;
	color: var(--secondary);
}

.promo-card__eyebrow { color: var(--ink-900); }

.promo-card__text {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-secondary);
	text-wrap: pretty;
}
.promo-card--speed .promo-card__text { color: var(--text-primary); }

.promo-card__actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.promo-card--ad .promo-card__actions { gap: 14px; }

.promo-card__add {
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: var(--radius-md);
	font-size: 1.0625rem;
}
.promo-card__add i { font-size: 18px; }

.promo-card__note {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--hand-ink);
}
.promo-card__note .hand {
	font-size: 24px;
	text-align: center;
	transform: rotate(-6deg);
}

@media (max-width: 759px) {
	.promo-card { padding: 24px 22px; }
}

/* ---------- Newest ---------- */
.newest {
	padding: 48px var(--gutter);
	background: var(--section-blue);
}

.newest__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.newest__title {
	font-size: 1.5rem;
	letter-spacing: 0;
}

.newest__hint {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-muted);
}

.newest__row {
	display: flex;
	gap: 14px;
	padding: 6px 2px 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
}

.new-card {
	position: relative;
	top: 0;
	flex: 0 0 180px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface-card);
	box-shadow: var(--shadow-sm);
	scroll-snap-align: start;
	transition: top var(--dur-base) var(--ease-out);
}
.new-card:hover {
	opacity: 1;
	top: -3px;
}

.new-card__photo {
	position: relative;
	height: 150px;
}
.new-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.new-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--brand);
	font-size: 0.6875rem;
	font-weight: 800;
	color: #FFFFFF;
}

.new-card__body { padding: 10px 12px 12px; }

.new-card__name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--ink-900);
}

.new-card__city {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-secondary);
}

/* ---------- How it works ---------- */
.how {
	padding: 40px var(--gutter) 64px;
	background: #FFFFFF;
	scroll-margin-top: 80px;
}

.how__inner { position: relative; }

.how__note {
	position: absolute;
	right: 8px;
	top: -6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--hand-ink);
	pointer-events: none;
}
.how__note .hand {
	font-size: 28px;
	text-align: center;
	transform: rotate(-5deg);
}
.how__note .hand__heart {
	display: inline-block;
	margin-left: 5px;
	font-size: 34px;
	transform: rotate(12deg);
}
.how__note svg {
	margin-left: -44px;
	margin-top: 2px;
}

.how__title {
	font-weight: 800;
	font-size: 2rem;
	line-height: 1.15;
}

.how__bar {
	width: 36px;
	height: 4px;
	margin: 12px 0 32px;
	border-radius: var(--radius-pill);
	background: var(--brand);
}

.how__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px 32px;
	align-items: center;
}

.step {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.step__main {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.step__icon {
	position: relative;
	flex-shrink: 0;
	padding-top: 14px;
}

.step__num {
	position: absolute;
	top: 0;
	left: -4px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: var(--shadow-sm);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--ink-900);
}

.step__circle {
	width: 76px;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cream-300);
	font-size: 34px;
	color: var(--secondary);
}

.step__title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.25;
	color: var(--ink-900);
}

.step__text {
	margin-top: 4px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--text-secondary);
	text-wrap: pretty;
}

.step__arrow {
	flex-shrink: 0;
	font-size: 22px;
	color: var(--ink-300);
}

@media (max-width: 759px) {
	.how__note { display: none; }
}
