/*
 * Site-wide components restyled to the Lovable prototype.
 * Loaded on every page after style.css and design.css, so a component looks
 * the same wherever it is reused (home, catalogs, city/region pages, profile).
 */

/* ---------- Save button (heart) on cards ---------- */
/* Lovable: round ghost icon button; saved (.in-wishlist, toggled by script.js) = heart filled in primary */

.ds-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--ds-radius-full);
	background-color: transparent;
	color: var(--ds-foreground);
	cursor: pointer;
	transition: background-color var(--ds-transition), color var(--ds-transition);
}

.ds-save::before {
	content: '';
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url(../img/lucide/heart.svg) center / contain no-repeat;
	mask: url(../img/lucide/heart.svg) center / contain no-repeat;
}

.ds-save:hover,
.ds-save:focus-visible {
	outline: none;
	background-color: var(--ds-accent);
	color: var(--ds-accent-foreground);
}

.ds-save:focus-visible {
	box-shadow: 0 0 0 1px var(--ds-primary);
}

.ds-save.in-wishlist,
.ds-save.in-wishlist:hover {
	color: var(--ds-primary);
}

.ds-save.in-wishlist::before {
	-webkit-mask-image: url(../img/lucide/heart-filled.svg);
	mask-image: url(../img/lucide/heart-filled.svg);
}

/* ---------- Trip card (resources/views/pages/trips/partials/trip-card.blade.php) ---------- */

section .trip-item .item-link {
	height: 100%;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	background-color: var(--ds-card);
	box-shadow: var(--ds-shadow-card);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .trip-item .item-link:hover {
	transform: translateY(-4px);
	box-shadow: var(--ds-shadow-card-hover);
}

section .trip-item .item-link .thumbnail .img-wrap {
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

section .trip-item .item-link .thumbnail .img-wrap img {
	transition: transform 0.5s ease;
}

section .trip-item .item-link:hover .thumbnail .img-wrap img {
	transform: scale(1.03);
}

/* Travel mode badge with its icon */
section .trip-item .item-link .thumbnail .trip-card-mode {
	left: 1rem;
	top: 1rem;
	gap: 0.375rem;
	padding: calc(0.375rem + 1px) 0.75rem calc(0.375rem - 1px);
	border: 0;
	border-radius: var(--ds-radius-md);
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: var(--ds-shadow-card);
	color: var(--ds-ink);
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.3333;
}

section .trip-item .item-link .thumbnail .trip-card-mode::before {
	content: '';
	width: 14px;
	height: 14px;
	background-color: var(--ds-primary);
	-webkit-mask: url(../img/lucide/car.svg) center / contain no-repeat;
	mask: url(../img/lucide/car.svg) center / contain no-repeat;
}

section .trip-item .item-link .thumbnail .trip-card-mode-walking::before {
	-webkit-mask-image: url(../img/lucide/footprints.svg);
	mask-image: url(../img/lucide/footprints.svg);
}

section .trip-item .item-link .thumbnail .trip-card-mode-bicycling::before {
	-webkit-mask-image: url(../img/lucide/bike.svg);
	mask-image: url(../img/lucide/bike.svg);
}

section .trip-item .item-link .caption {
	position: relative;
	padding: 1.25rem;
}

/* Save heart in the caption's top-right corner, as in Lovable */
section .trip-item .item-link .caption > .ds-save {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
}

section .trip-item .item-link .caption span.location,
section .trip-item .item-link .caption p.h3 {
	padding-right: 2.25rem;
}

section .trip-item .item-link .caption span.location {
	gap: 0.375rem;
	margin-bottom: 0;
	font-size: 0.875em;
	line-height: 1.4286;
	color: var(--ds-ink-soft);
}

section .trip-item .item-link .caption span.location::before {
	width: 16px;
	min-width: 16px;
	height: 16px;
	margin-right: 0;
	background: var(--ds-primary);
	-webkit-mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
	mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
}

section .trip-item .item-link .caption p.h3 {
	margin: 0.75rem 0 1.25rem;
	font-family: var(--ds-font-display);
	letter-spacing: var(--ds-heading-tracking);
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.375;
	color: var(--ds-ink);
}

section .trip-item .item-link:hover .caption p.h3 {
	color: var(--ds-primary);
}

section .trip-item .item-link .caption .meta-wrap {
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: auto 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ds-border);
}

section .trip-item .item-link .caption .meta-wrap .meta-item {
	flex: 0 0 auto;
	flex-direction: row;
	gap: 0.375rem;
	padding: 0;
	border: 0;
}

section .trip-item .item-link .caption .meta-wrap .meta-item:nth-child(2) {
	border: 0;
}

section .trip-item .item-link .caption .meta-wrap .meta-item span.title {
	display: none;
}

/* Meta icons as in Lovable: route for "N locations · X km", clock for duration */
section .trip-item .item-link .caption .meta-wrap .meta-item .meta-icon {
	width: 16px;
	min-width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	background: var(--ds-ink-soft);
	-webkit-mask: url(../img/lucide/route.svg) center / contain no-repeat;
	mask: url(../img/lucide/route.svg) center / contain no-repeat;
}

/* Drop the old style.css icons, which out-specify the rule above */
section .trip-item .item-link .caption .meta-wrap .meta-item.locations .meta-icon,
section .trip-item .item-link .caption .meta-wrap .meta-item.distance .meta-icon,
section .trip-item .item-link .caption .meta-wrap .meta-item.time .meta-icon {
	background-image: none;
}

section .trip-item .item-link .caption .meta-wrap .meta-item.time .meta-icon {
	-webkit-mask-image: url(../img/lucide/clock-3.svg);
	mask-image: url(../img/lucide/clock-3.svg);
}

.trip-item .meta-item .value-unit {
	display: inline;
}

/* Distance continues the locations item: no icon, joined with a dot */
section .trip-item .item-link .caption .meta-wrap .meta-item.locations {
	margin-right: -0.75rem;
}

section .trip-item .item-link .caption .meta-wrap .meta-item.distance .meta-icon {
	display: none;
}

section .trip-item .item-link .caption .meta-wrap .meta-item.distance span.value::before {
	content: '· ';
}

section .trip-item .item-link .caption .meta-wrap .meta-item span.value {
	font-size: 0.875em;
	line-height: 1.4286;
	font-weight: 400;
	color: var(--ds-ink-soft);
}

/* Phones: tighter card so the text gets more room */
@media (max-width: 767px) {
	section .trip-item .item-link .caption {
		padding: 1rem;
	}

	section .trip-item .item-link .caption p.h3 {
		margin: 0.5rem 0 0.75rem;
	}

	section .trip-item .item-link .caption .meta-wrap {
		padding-top: 0.75rem;
	}
}

/* ---------- Pagination (resources/views/vendor/pagination/custom.blade.php) ---------- */
/* div.pagination out-specifies the old style.css rules and their breakpoint overrides */

section div.pagination {
	gap: 0.5rem;
	margin-top: 2.5rem;
}

section div.pagination a,
section div.pagination span {
	width: auto;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 2px 0.75rem 0;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius-md);
	background-color: var(--ds-background);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	font-family: var(--ds-font-sans);
	font-size: 0.875em;
	font-weight: 500;
	line-height: 1;
	color: var(--ds-foreground);
	transition: background-color var(--ds-transition), color var(--ds-transition);
}

section div.pagination a:hover,
section div.pagination a:focus-visible {
	background-color: var(--ds-accent);
	color: var(--ds-accent-foreground);
}

section div.pagination span.current {
	border-color: var(--ds-primary);
	background-color: var(--ds-primary);
	color: var(--ds-primary-foreground);
}

section div.pagination span.dots {
	min-width: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* Prev / next: chevron icon instead of the old round arrow */
section div.pagination a.direction-page.prev-page,
section div.pagination a.direction-page.next-page {
	padding: 0;
	background-image: none;
	font-size: 0;
	color: transparent;
}

section div.pagination a.direction-page::before {
	content: '';
	width: 16px;
	height: 16px;
	background-color: var(--ds-foreground);
	-webkit-mask: url(../img/lucide/chevron-down.svg) center / contain no-repeat;
	mask: url(../img/lucide/chevron-down.svg) center / contain no-repeat;
	transform: rotate(90deg);
}

section div.pagination a.direction-page.next-page::before {
	transform: rotate(-90deg);
}

section div.pagination a.direction-page:hover {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

section div.pagination a.disabled {
	opacity: 0.5;
}

/* Three versions in the markup (custom.blade.php): full from 1280px, medium (2 pages on each side
   of the current one) 640–1279px, compact (1 on each side) on phones; each keeps a fixed number of slots.
   div.pagination.x beats the style.css display rules */
div.pagination.pagination--compact,
div.pagination.pagination--medium {
	display: none;
}

@media (max-width: 1279px) {
	div.pagination.pagination--full {
		display: none;
	}

	div.pagination.pagination--medium {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
	}
}

@media (max-width: 639px) {
	div.pagination.pagination--medium {
		display: none;
	}

	div.pagination.pagination--compact {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
	}

	/* phones: smaller buttons so the 9 slots fit one row */
	section div.pagination {
		gap: 3px;
	}

	section div.pagination a,
	section div.pagination span {
		min-width: 2.25rem;
		height: 2.25rem;
		padding-inline: 0.375rem;
	}

	section div.pagination span.dots {
		min-width: 1rem;
		padding: 0;
	}

	section div.pagination a.direction-page.prev-page,
	section div.pagination a.direction-page.next-page {
		padding: 0;
	}
}

@media (max-width: 399px) {
	section div.pagination {
		gap: 2px;
	}

	section div.pagination a,
	section div.pagination span {
		min-width: 2rem;
		height: 2rem;
		padding-inline: 0.25rem;
	}
}

@media (max-width: 359px) {
	section div.pagination a,
	section div.pagination span {
		min-width: 1.875rem;
		font-size: 0.8125em;
	}

	/* the very narrowest phones: a second row is better than a cut-off button */
	div.pagination.pagination--compact {
		flex-wrap: wrap;
	}
}

/* ---------- Telegram channel banner (resources/views/partials/newsletter.blade.php) ---------- */
/* Home page and catalogs; was in home.css under .hp */

.hp-news {
	background-color: var(--ds-surface);
	padding-block: 3.5rem;
	font-family: var(--ds-font-sans);
}

.hp-news *,
.hp-news *::before,
.hp-news *::after {
	box-sizing: border-box;
}

.hp-news :where(p, h2) {
	margin: 0;
}

.hp-news__box {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	gap: 2rem;
	overflow: hidden;
	padding: 2.5rem 1.5rem;
	border-radius: 24px;
	background-color: var(--ds-ink);
	box-shadow: var(--ds-shadow-card);
	color: #fff;
}

/* Discover pattern over the dark box, as .brand-pattern in Lovable */
.hp-news__box::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(../img/discover-pattern.svg) center / cover no-repeat;
	opacity: 0.055;
	pointer-events: none;
}

.hp-news__content {
	position: relative;
	z-index: 1;
}

.hp-news .hp-news__title {
	font-family: var(--ds-font-display);
	letter-spacing: var(--ds-heading-tracking);
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.3333;
	color: #fff;
}

.hp-news .hp-news__text {
	max-width: 28rem;
	margin-top: 0.75rem;
	font-size: 1em;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.75);
}

.hp-news .hp-news__btn {
	display: inline-flex;
	text-decoration: none;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	margin-top: 1.75rem;
	padding: 2px 1.75rem 0;
	border-radius: 12px;
	background-color: var(--ds-primary);
	box-shadow: 0 12px 30px -10px rgba(48, 99, 214, 0.55);
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	transition: transform var(--ds-transition), background-color var(--ds-transition);
}

.hp-news .hp-news__btn::before {
	content: '';
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url(../img/lucide/send.svg) center / contain no-repeat;
	mask: url(../img/lucide/send.svg) center / contain no-repeat;
}

.hp-news .hp-news__btn:hover {
	transform: translateY(-2px);
	background-color: var(--ds-primary-hover);
}

/* Phones: full-width button */
@media (max-width: 639px) {
	.hp-news .hp-news__btn {
		display: flex;
		width: 100%;
	}
}

/* Phone mockup with the channel screenshot, hidden on phones */
.hp-news__phone {
	position: relative;
	display: none;
	pointer-events: none;
}

.hp-news__phone-frame {
	position: absolute;
	right: -4rem;
	top: 50%;
	width: 13rem;
	padding: 6px;
	border-radius: 2.6rem;
	background-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 30px 60px -20px rgba(6, 12, 40, 0.65);
	transform: translateY(-38%) rotate(-16deg);
}

.hp-news__phone-frame img {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 19.5;
	border-radius: 2.2rem;
	object-fit: cover;
	object-position: top;
}

@media (min-width: 768px) {
	.hp-news {
		padding-block: 4rem;
	}

	.hp-news__box {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 1rem;
		padding: 3rem;
	}

	.hp-news .hp-news__title {
		font-size: 1.75em;
	}

	.hp-news__phone {
		display: block;
		align-self: stretch;
	}
}

@media (min-width: 1024px) {
	.hp-news__phone-frame {
		right: -3rem;
	}
}


/* ==========================================================================
   Home section base + FAQ (moved from home.css): used by the home page and by
   resources/views/partials/faq.blade.php (guides list and other pages).
   Markup sits inside .hp.ds, like the home page.
   ========================================================================== */

.hp {
	background-color: var(--ds-background);
}

.hp *,
.hp *::before,
.hp *::after {
	box-sizing: border-box;
}

/* Reset Bootstrap / style.css margins (p, h1-h3, ul get margin-bottom there).
   Specificity 0,1,0: beats those element selectors, while the component rules below
   (same weight, later in the file) still set their own top margins. */
.hp :where(p, h1, h2, h3, ul) {
	margin: 0;
}

.hp a {
	text-decoration: none;
}

/* Layout: shell 1248px, section padding 64 / 96px */
.hp-container {
	width: 100%;
	max-width: var(--ds-shell);
	margin-inline: auto;
	padding-inline: var(--ds-gutter);
	position: relative;
}

.hp-section {
	padding-block: var(--ds-section);
	background-color: var(--ds-background);
}

/* Section backgrounds follow Lovable: destinations, blog, FAQ on the warm surface */
.hp-section--dest,
.hp-section--tint,
.hp-faq {
	background-color: var(--ds-surface);
}

/* Section heading set */
.hp-eyebrow {
	display: block;
	color: var(--ds-primary);
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hp-title {
	margin-top: 0.75rem;
	font-family: var(--ds-font-display);
	letter-spacing: var(--ds-heading-tracking);
	font-size: 2em;
	font-weight: 600;
	line-height: 1.12;
	color: var(--ds-ink);
}

.hp-lead {
	margin-top: 1rem;
	max-width: 40rem;
	font-size: 1em;
	line-height: 1.7;
	color: var(--ds-ink-soft);
}

@media (min-width: 768px) {
	.hp-title {
		font-size: 2.75em;
	}

	.hp-lead {
		font-size: 1.125em;
	}
}

/* ---------- FAQ ---------- */

.hp-faq {
	border-top: 1px solid var(--ds-border);
}

.hp-faq__grid {
	display: grid;
	gap: 2.5rem;
	align-items: start;
}

.hp-faq__intro .hp-lead {
	margin-top: 1.25rem;
}

/* Formatted description under the FAQ title (list pages: content of the list's static page) */
.hp-faq__intro .hp-lead--html > * {
	margin: 0;
}

.hp-faq__intro .hp-lead--html > * + * {
	margin-top: 0.75rem;
}

.hp-faq__intro .hp-lead--html a {
	color: var(--ds-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hp-faq__list {
	border-top: 1px solid var(--ds-border);
}

.hp-faq__item {
	padding-block: 0.25rem;
	border-bottom: 1px solid var(--ds-border);
}

.hp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	padding: 1.25rem 0;
	border: 0;
	background: none;
	text-align: left;
	font-family: var(--ds-font-sans);
	font-size: 1.125em;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ds-ink);
	cursor: pointer;
}

.hp-faq__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background-color: var(--ds-primary);
	-webkit-mask: url(../img/lucide/plus.svg) center / contain no-repeat;
	mask: url(../img/lucide/plus.svg) center / contain no-repeat;
	transition: transform 0.25s;
	transform: rotate(45deg);
}

.hp-faq__q.collapsed .hp-faq__icon {
	transform: rotate(0);
}

.hp-faq__a {
	max-width: 42rem;
	padding: 0 2.5rem 1.5rem 0;
	font-size: 1em;
	line-height: 1.625;
	color: var(--ds-ink-soft);
}

.hp-faq__a p {
	margin: 0 0 1rem;
}

.hp-faq__a p:last-child {
	margin-bottom: 0;
}

@media (min-width: 1024px) {
	.hp-faq__grid {
		grid-template-columns: 0.75fr 1.25fr;
		gap: 5rem;
	}
}

/* ==========================================================================
   Guide card (resources/views/pages/guides/partials/guide-card.blade.php), Lovable.
   Used on the guides list, city / region pages, the guide page and tours, so it lives here.
   ========================================================================== */

.gd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem 1.75rem 1.75rem;
	overflow: hidden;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	background-color: var(--ds-card);
	box-shadow: var(--ds-shadow-card);
	font-family: var(--ds-font-sans);
	color: var(--ds-foreground);
	text-align: left;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gd-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ds-shadow-card-hover);
}

.gd-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
}

.gd-card__photo {
	flex-shrink: 0;
	width: 7rem;
	height: 7rem;
	overflow: hidden;
	border: 4px solid var(--ds-background);
	border-radius: var(--ds-radius-full);
	background-color: var(--ds-surface);
	box-shadow: var(--ds-shadow-card);
}

.gd-card__photo picture,
.gd-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
}

.gd-card__photo img {
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gd-card:hover .gd-card__photo img {
	transform: scale(1.05);
}

@media (min-width: 640px) {
	.gd-card__photo {
		width: 8rem;
		height: 8rem;
	}
}

.gd-card__rating {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
}

.gd-card__score {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875em;
	font-weight: 600;
	line-height: 1.43;
	color: var(--ds-ink);
}

.gd-card__star {
	width: 18px;
	height: 18px;
	background-color: var(--ds-gold);
	-webkit-mask: url(../img/lucide/star-filled.svg) center / contain no-repeat;
	mask: url(../img/lucide/star-filled.svg) center / contain no-repeat;
}

.gd-card__reviews {
	font-size: 0.75em;
	line-height: 1.33;
	color: var(--ds-ink-soft);
}

.gd-card__body {
	padding-bottom: 1.5rem;
}

.gd-card .gd-card__name {
	margin: 1.5rem 0 0;
	font-family: var(--ds-font-display);
	letter-spacing: var(--ds-heading-tracking);
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ds-ink);
	transition: color var(--ds-transition);
}

.gd-card:hover .gd-card__name {
	color: var(--ds-primary);
}

/* The name link covers the whole card */
.gd-card__link,
.gd-card__link:hover {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.gd-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--ds-radius);
}

.gd-card__link:focus-visible::after {
	box-shadow: 0 0 0 2px var(--ds-primary);
}

.gd-card .gd-card__place,
.gd-card .gd-card__langs {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	font-size: 0.875em;
	line-height: 1.625;
	color: var(--ds-ink-soft);
}

.gd-card__icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 0.2em;
	background-color: var(--ds-primary);
	-webkit-mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
	mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
}

.gd-card__icon--langs {
	-webkit-mask-image: url(../img/lucide/languages.svg);
	mask-image: url(../img/lucide/languages.svg);
}

.gd-card .gd-card__moto {
	display: -webkit-box;
	margin: 1.5rem 0 0;
	padding-left: 1rem;
	overflow: hidden;
	border-left: 2px solid var(--ds-gold);
	font-size: 0.9375em;
	line-height: 1.625;
	color: var(--ds-foreground);
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.gd-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 1.5rem;
}

.gd-card__tag {
	padding: 0.25rem 0.625rem;
	border-radius: var(--ds-radius-full);
	background-color: var(--ds-surface);
	font-size: 0.6875em;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ds-ink-soft);
}

/* Languages: footer row */
.gd-card .gd-card__langs {
	align-items: center;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ds-border);
	font-size: 0.75em;
	line-height: 1.33;
}

.gd-card__langs .gd-card__icon {
	margin-top: 0;
}

/* Guide cards: 1 / 2 (768px) / 3 (1280px) columns */
.gd-list {
	display: grid;
	gap: 2rem 1.5rem;
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.gd-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.gd-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   Tour card (resources/views/pages/tours/partials/tour-card.blade.php), Lovable.
   Used on the tours list, the tour page ("Інші тури") and company pages.
   ========================================================================== */

.to-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	background-color: var(--ds-card);
	box-shadow: var(--ds-shadow-card);
	font-family: var(--ds-font-sans);
	color: var(--ds-foreground);
	text-align: left;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.to-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ds-shadow-card-hover);
}

.to-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: var(--ds-surface);
}

.to-card__media picture,
.to-card__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.to-card__media img {
	object-fit: cover;
	transition: transform 0.5s ease;
}

.to-card:hover .to-card__media img {
	transform: scale(1.03);
}

.to-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.625rem;
	border-radius: var(--ds-radius-md);
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.33;
	color: var(--ds-primary);
}

.to-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

/* heart above the stretched title link */
.to-card .to-card__save {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
}

.to-card .to-card__place {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding-right: 2.5rem;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.33;
	color: var(--ds-primary);
}

.to-card__pin {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
	mask: url(../img/lucide/map-pin.svg) center / contain no-repeat;
}

.to-card .to-card__title {
	margin: 0.5rem 0 1.25rem;
	padding-right: 2rem;
	font-family: var(--ds-font-display);
	letter-spacing: var(--ds-heading-tracking);
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.375;
	color: var(--ds-ink);
	transition: color var(--ds-transition);
}

.to-card:hover .to-card__title {
	color: var(--ds-primary);
}

/* The title link covers the whole card */
.to-card__link,
.to-card__link:hover {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.to-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--ds-radius);
}

.to-card__link:focus-visible::after {
	box-shadow: 0 0 0 2px var(--ds-primary);
}

.to-card__org {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3rem;
	margin: auto 0 1rem;
}

.to-card__logo {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	padding: 0.25rem;
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius-md);
	background-color: var(--ds-background);
	object-fit: contain;
}

.to-card__org-text {
	min-width: 0;
}

.to-card .to-card__org-label {
	margin: 0;
	font-size: 0.75em;
	line-height: 1.33;
	color: var(--ds-ink-soft);
}

.to-card .to-card__org-name {
	margin: 0.125rem 0 0;
	font-size: 0.875em;
	font-weight: 500;
	line-height: 1.375;
	color: var(--ds-foreground);
}

.to-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--ds-border);
}

.to-card__reviews {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875em;
	line-height: 1.43;
	color: var(--ds-ink-soft);
}

.to-card__star {
	width: 16px;
	height: 16px;
	background-color: var(--ds-gold);
	-webkit-mask: url(../img/lucide/star-filled.svg) center / contain no-repeat;
	mask: url(../img/lucide/star-filled.svg) center / contain no-repeat;
}

.to-card__star.is-empty {
	background-color: rgba(96, 103, 113, 0.4);
	-webkit-mask-image: url(../img/lucide/star.svg);
	mask-image: url(../img/lucide/star.svg);
}

.to-card__price {
	font-size: 1em;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ds-foreground);
	white-space: nowrap;
}

.to-card__price--request {
	font-size: 0.875em;
	font-weight: 500;
	color: var(--ds-ink-soft);
}

.to-card__from {
	margin-right: 0.25rem;
	font-size: 0.75em;
	font-weight: 400;
	color: var(--ds-ink-soft);
}

/* Tour cards grid: 1 / 2 (640px) / 3 (1280px) columns */
.to-list {
	display: grid;
	gap: 2rem 1.25rem;
	margin-top: 2rem;
}

@media (min-width: 640px) {
	.to-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.to-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.to-list > .ct-empty {
	grid-column: 1 / -1;
}
