/*
 * Home „Nasz dom” section (template-parts/home/place.php).
 * Mockup: docs/sections/home/home_our_home_place.png. Desktop: text left,
 * video right. Below 56em: text, then the video. Section spacing is the
 * shared, smaller --hf-space-section-block (user, 2026-10-26).
 */

.hf-place
{
	padding-block: var(--hf-space-section-block);
}

.hf-place__inner
{
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 1rem + 4vw, 5.5rem);
}

.hf-place__eyebrow
{
	margin-bottom: var(--hf-space-s);
}

.hf-place__title
{
	margin: 0 0 var(--hf-space-m);
	font-size: var(--hf-text-h2);
	text-wrap: balance;
}

.hf-place__text
{
	max-width: 30em;
	margin: 0;
	font-size: var(--hf-text-l);
	line-height: 1.5;
}

.hf-place__amenities
{
	display: flex;
	flex-wrap: wrap;
	gap: var(--hf-space-m) clamp(1.25rem, 0.5rem + 2vw, 2.75rem);
	margin: var(--hf-space-l) 0;
	padding: 0;
	list-style: none;
}

.hf-place__amenity
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	color: var(--hf-color-heading);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	text-align: center;
}

.hf-place__icon
{
	display: block;
	width: clamp(2.5rem, 2.2rem + 0.8vw, 3.25rem);
	height: auto;
	aspect-ratio: 1;
	color: var(--hf-color-icon);
}

.hf-place__image
{
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hf-radius-m);
}

/* Decoration around the video, chosen in the panel (frame / shadow / none;
   user, 2026-10-26). The frame is a thin line offset behind the picture. */
.hf-place__media--frame,
.hf-place__media--shadow
{
	--hf-place-decor-offset: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
}

.hf-place__media--frame .hf-video__trigger,
.hf-place__media--frame .hf-place__image,
.hf-place__media--shadow .hf-video__trigger,
.hf-place__media--shadow .hf-place__image
{
	box-shadow:
		0 2px 6px color-mix(in srgb, var(--hf-color-heading) 8%, transparent),
		0 22px 48px -18px color-mix(in srgb, var(--hf-color-heading) 38%, transparent);
}

.hf-place__media--frame
{
	position: relative;
	z-index: 0;
	margin: 0 var(--hf-place-decor-offset) var(--hf-place-decor-offset) 0;
}

.hf-place__media--frame::before
{
	position: absolute;
	z-index: -1;
	inset: var(--hf-place-decor-offset) calc(-1 * var(--hf-place-decor-offset)) calc(-1 * var(--hf-place-decor-offset)) var(--hf-place-decor-offset);
	border: 1px solid var(--hf-color-outline);
	border-radius: var(--hf-radius-m);
	content: "";
}

@media (max-width: 55.99em)
{
	.hf-place__inner
	{
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Phones: three amenities per row, evenly spaced. */
@media (max-width: 30em)
{
	.hf-place__amenities
	{
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--hf-space-m) var(--hf-space-s);
	}
}
