/* ==========================================================================
   Homepage hero polish (26/11/2026): title hue, readable paragraph, booking bar
   icons, tinted feature cards, trust badge on apartment photos.
   Loaded after booking.css; every rule targets markup added the same day.
   ========================================================================== */

/* ── Title: warm hue + accent on the number ─────────────────── */
.hts-hero__content h1 { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45)); }
.hts-hero__content h1 > span,
.hts-hero__content h1 em { color: #fff; }
.hts-hl {
	font-weight: 700;
	color: #ff8a1a;
	text-shadow: 0 0 22px rgba(255, 138, 26, .45);
}
/* Brand monograms next to the competitor names: small, never over the text */
.hts-brand-word { white-space: nowrap; }
.hts-brand {
	display: inline-grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	margin-left: .55em;
	margin-right: 0;
	border-radius: .42em;
	font: 700 .3em/1 var(--font-body);
	font-style: normal;
	letter-spacing: -.02em;
	color: #fff;
	vertical-align: 1.5em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	animation: hts-bob 3.2s ease-in-out infinite;
}
.hts-brand--bk { background: #003b95; }
.hts-brand--ab { background: #ff5a5f; border-radius: 50%; animation-delay: -1.6s; }
@keyframes hts-bob {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50% { transform: translateY(-.3em) rotate(4deg); }
}

/* The theme caps every svg at 28px and paints it dark: lift both for the new graphics */
.hts-fx svg,
.hts-bk__ico svg,
.hts-card__trust svg { max-width: none; max-height: none; color: inherit; }

/* ── Paragraph: soft blurred plate instead of a text shadow ──── */
.hts-hero__subtitle {
	padding: 14px 22px;
	border-radius: 18px;
	background: rgba(18, 14, 8, .3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-shadow: none;
	line-height: 1.6;
}

/* ── Booking bar: even padding, hue, animated icons ──────────── */
.hts-bk:not(.hts-bk--stack) {
	padding: 8px;
	background: linear-gradient(100deg, #fffaf2 0%, #ffffff 45%, #f3f9ff 100%);
	box-shadow:
		0 10px 40px rgba(0, 0, 0, .22),
		-22px 6px 46px -20px rgba(252, 127, 0, .6),
		22px 6px 46px -20px rgba(47, 143, 255, .5);
}
.hts-bk .hts-bk__seg {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 10px 20px 10px 14px;
}
.hts-bk__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.hts-bk__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ico-bg);
	color: var(--ico-ink);
}
.hts-bk__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* one colour for the three step icons (Michele, 26/11/2026) */
.hts-bk__ico { --ico-bg: #fff0dd; --ico-ink: #d96b00; }

.hts-ico-pin { animation: hts-ico-drop 3.6s cubic-bezier(.3, 1.4, .5, 1) infinite; transform-origin: 12px 21px; }
.hts-ico-day { animation: hts-ico-blink 3.6s ease-in-out infinite .6s; transform-origin: center; transform-box: fill-box; }
.hts-ico-guest { animation: hts-ico-join 3.6s ease-in-out infinite 1.2s; transform-origin: center; transform-box: fill-box; }
@keyframes hts-ico-drop {
	0%, 70%, 100% { transform: translateY(0); }
	78% { transform: translateY(-4px); }
	88% { transform: translateY(0) scaleY(.92); }
}
@keyframes hts-ico-blink {
	0%, 60%, 100% { opacity: .25; transform: scale(.8); }
	72%, 88% { opacity: 1; transform: scale(1.15); }
}
@keyframes hts-ico-join {
	0%, 60%, 100% { opacity: .3; transform: translateX(-2px); }
	72%, 90% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
	.hts-bk .hts-bk__seg { padding: 10px 12px; }
	.hts-bk__txt { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
	.hts-bk__ico { width: 34px; height: 34px; }
}
.hts-bk--stack .hts-bk__txt { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.hts-bk--stack .hts-bk__ico { width: 34px; height: 34px; }

/* ── Feature cards: the "Metric glow" tile of the EasyTask Design dashboard (app/src/styles.css): a blurred
   gradient drifting in a loop, a dark scrim with a faint grid on top, one colour per card. ── */
.hts-features__grid .hts-feature-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #0b0d0c;
	border: 1px solid rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px -18px rgba(0, 0, 0, .7);
}
.hts-features__grid .hts-feature-card::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -30%;
	background: var(--fx-bg);
	filter: blur(20px);
	animation: hts-tile-drift var(--fx-d, 6s) ease-in-out infinite alternate;
	will-change: transform;
}
.hts-features__grid .hts-feature-card::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background-color: rgba(0, 0, 0, .5);
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 24px 24px;
}
.hts-feature-card--1 { --fx: #5f9cff; --fx-ink: #a6ddff; --fx-d: 7s;
	--fx-bg: radial-gradient(40% 26% at 50% 50%, #a6ddff 0%, #5f9cff 45%, transparent 85%), radial-gradient(80% 90% at 50% 50%, #0a1460 0%, #1c2a8a 60%, #4a63d0 100%); }
.hts-feature-card--2 { --fx: #4fe07a; --fx-ink: #a5f5bd; --fx-d: 6s;
	--fx-bg: radial-gradient(42% 70% at 50% 100%, #64f08c 0%, #4fe07a 55%, transparent 90%), linear-gradient(180deg, #041a08 0%, #0c3a18 45%, #2a9a4a 100%); }
.hts-feature-card--3 { --fx: #ff9a2e; --fx-ink: #ffcf8a; --fx-d: 6.2s;
	--fx-bg: radial-gradient(44% 66% at 50% 100%, #ffc46b 0%, #ff9a2e 50%, transparent 90%), linear-gradient(180deg, #1a0c02 0%, #4a2406 45%, #d9700f 100%); }
.hts-feature-card--4 { --fx: #d2f21e; --fx-ink: #efff9a; --fx-d: 5.4s;
	--fx-bg: radial-gradient(46% 70% at 35% 100%, #fbff8a 0%, #d2f21e 50%, transparent 90%), linear-gradient(180deg, #0f1602 0%, #2a4206 45%, #86c40e 100%); }
@keyframes hts-tile-drift {
	0% { transform: translate(-6%, 4%) rotate(-7deg) scale(1); }
	50% { transform: translate(5%, -4%) rotate(5deg) scale(1.1); }
	100% { transform: translate(6%, 3%) rotate(8deg) scale(1.04); }
}
.hts-features__grid .hts-feature-card .hts-feature-card__title { color: #fff; }
.hts-features__grid .hts-feature-card .hts-feature-card__text { color: rgba(255, 255, 255, .86); }
.hts-features__grid .hts-feature-card .hts-feature-card__icon svg { fill: var(--fx-ink); }
@media (hover: hover) {
	.hts-features__grid .hts-feature-card:hover,
	.hts-features__grid .hts-feature-card.is-highlighted {
		background: #0b0d0c;
		transform: none;
		border-color: color-mix(in srgb, var(--fx) 60%, transparent);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px color-mix(in srgb, var(--fx) 25%, transparent), 0 14px 40px -12px color-mix(in srgb, var(--fx) 65%, transparent);
	}
}
@media (hover: none) {
	.hts-features__grid .hts-feature-card { background: #0b0d0c; }
}

.hts-fx {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 64px;
	height: 40px;
	color: var(--fx-ink);
}
.hts-fx svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hts-fx .fill { fill: currentColor; stroke: none; }
/* 1: wifi arcs light up one after another */
.hts-fx--1 .a { animation: hts-fx-arc 2.4s ease-in-out infinite; opacity: .2; }
.hts-fx--1 .a2 { animation-delay: .3s; }
.hts-fx--1 .a3 { animation-delay: .6s; }
@keyframes hts-fx-arc { 0%, 100% { opacity: .2; } 40%, 70% { opacity: 1; } }
/* 2: typing dots in a chat bubble */
.hts-fx--2 .d { animation: hts-fx-type 1.4s ease-in-out infinite; transform-box: fill-box; }
.hts-fx--2 .d2 { animation-delay: .18s; }
.hts-fx--2 .d3 { animation-delay: .36s; }
@keyframes hts-fx-type { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
/* 3: the check draws itself, the ring breathes */
.hts-fx--3 .c { stroke-dasharray: 26; animation: hts-fx-draw 3s ease-in-out infinite; }
.hts-fx--3 .r { animation: hts-fx-ring 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hts-fx-draw { 0% { stroke-dashoffset: 26; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 26; } }
@keyframes hts-fx-ring { 0%, 100% { transform: scale(.94); opacity: .55; } 45% { transform: scale(1); opacity: 1; } }
/* 4: licence sheet, lines write in, seal pops */
.hts-fx--4 .l { stroke-dasharray: 16; animation: hts-fx-line 3.2s ease-in-out infinite; }
.hts-fx--4 .l2 { animation-delay: .25s; }
.hts-fx--4 .s { animation: hts-fx-seal 3.2s cubic-bezier(.3, 1.5, .5, 1) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hts-fx-line { 0% { stroke-dashoffset: 16; } 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 16; } }
@keyframes hts-fx-seal { 0%, 35% { transform: scale(0); } 50%, 88% { transform: scale(1); } 100% { transform: scale(0); } }

/* ── Trust badge on the apartment photo ──────────────────────── */
.hts-card__trust {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 10px;
	border-radius: var(--radius-pill);
	background: rgba(0, 107, 56, .94);
	color: #fff;
	font: 700 13px/1 var(--font-body);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.hts-card__trust svg { width: 15px; height: 15px; fill: #ffd25e; }

@media (prefers-reduced-motion: reduce) {
	.hts-brand,
	.hts-bk__ico *,
	.hts-fx *,
	.hts-features__grid .hts-feature-card::before { animation: none !important; }
	.hts-fx--3 .c, .hts-fx--4 .l { stroke-dashoffset: 0; }
	.hts-fx--4 .s { transform: none; }
}

/* One graphic per feature card: the animated one takes the place of the old static icon (Michele, 26/11/2026) */
.hts-features__grid .hts-feature-card__icon { display: none; }
.hts-features__grid .hts-fx { position: static; display: block; width: 58px; height: 36px; margin-bottom: var(--space-md); }
.hts-features__grid .hts-fx svg { display: block; }

/* The date picker comes before the paragraph, on every screen */
.hts-hero__top .hts-hero__explore { order: 1; }
.hts-hero__top .hts-hero__subtitle { order: 2; }
@media (max-width: 767px) {
	.hts-hero__top .hts-hero__subtitle { margin-top: 8px; }
}
/* Desktop: the paragraph plate spans the four cards below it, text on the left */
@media (min-width: 1025px) {
	.home .hts-hero__top .hts-hero__subtitle { width: calc(100% - 2 * var(--space-lg)); max-width: none; margin-bottom: 0; text-align: left; }
}

/* Search button: gold to orange, dark icon and label for contrast */
.hts-bk .hts-bk__go,
.hts-bk .hts-bk__go:hover,
.hts-bk.is-active .hts-bk__go { background: linear-gradient(135deg, #f4c257 0%, #fc8f1a 100%); color: #1d1d1b; }
.hts-bk .hts-bk__go:hover { filter: brightness(1.06); }


/* Bar corners match the feature cards; search icon sits dead centre (Michele, 26/11/2026) */
@media (min-width: 768px) {
	.hts-bk:not(.hts-bk--stack) { border-radius: var(--radius-md); }
	.hts-bk:not(.hts-bk--stack) .hts-bk__seg { border-radius: calc(var(--radius-md) - 4px); }
	.hts-bk:not(.hts-bk--stack) .hts-bk__go { gap: 0; min-width: 52px; padding: 0; justify-content: center; border-radius: calc(var(--radius-md) - 4px); }
	.hts-bk:not(.hts-bk--stack) .hts-bk__go svg { display: block; flex: none; }
	.hts-bk:not(.hts-bk--stack).is-active .hts-bk__go,
	.hts-bk:not(.hts-bk--stack) .hts-bk__go:hover { padding: 0 20px 0 16px; gap: 8px; }
}

/* Arrow under the saving line, curving down to the right end of the date picker; a pulse of light every 3 s */
.hts-hero__arrow { display: none; }
@media (min-width: 1100px) {
	.hts-hero__arrow { display: block; width: 1100px; max-width: 100%; height: 92px; margin: -14px 0 -66px; pointer-events: none; }
	.hts-hero__arrow svg { display: block; width: 100%; height: 100%; max-width: none; max-height: none; overflow: visible; }
	.hts-hero__arrow-track { stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; }
	.hts-hero__arrow-pulse {
		stroke: #ffb347;
		stroke-width: 3.5;
		stroke-linecap: round;
		stroke-dasharray: 14 100;
		stroke-dashoffset: 14;
		filter: drop-shadow(0 0 6px #ff8a1a) drop-shadow(0 0 14px rgba(255, 138, 26, .7));
		animation: hts-arrow-flow 3s cubic-bezier(.4, 0, .2, 1) infinite;
	}
}
@keyframes hts-arrow-flow {
	0% { stroke-dashoffset: 14; }
	45%, 100% { stroke-dashoffset: -100; }
}
@media (prefers-reduced-motion: reduce) {
	.hts-hero__arrow-pulse { animation: none; opacity: 0; }
}

/* Apartment pages: saving line under the title, date picker before rating and paragraph */
.hts-hero__saving {
	margin: 0;
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(22px, 3.1vw, 42px);
	line-height: 1.2;
	letter-spacing: -.02em;
	color: #fff;
	filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
}
body:not(.home) .hts-hero__top > .hts-hero__explore { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: var(--space-md); }
.hts-hero__top .hts-rating { order: 2; }
@media (max-width: 1024px) {
	body:not(.home) .hts-hero__top > .hts-hero__explore { align-items: flex-start; }
}

/* WhatsApp button in the request panel: white label and icon on every page (page link colours were winning) */
.hts-bk-pop a.hts-bk-btn--wa,
.hts-bk-pop a.hts-bk-btn--wa:visited,
.hts-bk-pop a.hts-bk-btn--wa:hover { color: #fff; }
.hts-bk-pop .hts-bk-btn svg { color: inherit; max-width: none; max-height: none; }
/* no label row between arrow and picker on apartment pages: keep the arrow head above the bar */
@media (min-width: 1100px) {
	body:not(.home) .hts-hero__arrow { margin-bottom: -26px; }
}

/* Contact section: the request box is as tall as the three info cards together; its rows share the extra height */
@media (min-width: 1025px) {
	.hts-contact__inner { align-items: stretch; }
	.hts-contact__form-wrap { display: flex; flex-direction: column; }
	.hts-contact__form-wrap .hts-bk--stack { flex: 1 1 auto; display: flex; flex-direction: column; }
	.hts-contact__form-wrap .hts-bk--stack .hts-bk__seg { flex: 1 1 auto; }
}
