/* Hotel Listings – front end. Builds on Bootstrap 5; override the variables below to match your theme. */

.hl-hotels {
	--hl-accent: var(--bs-primary, #1f5f8b);
	--hl-text: var(--bs-body-color, #212529);
	--hl-muted: var(--bs-secondary-color, #5c636a);
	--hl-border: var(--bs-border-color, #dee2e6);
	--hl-surface: var(--bs-body-bg, #fff);
	--hl-soft: var(--bs-tertiary-bg, #f4f5f7);
	--hl-yes: #1e7a46;
	--hl-no: #8a6d1f;
	margin-block: 1.5rem;
	container-type: inline-size;
}

/* Columns follow the space the listing actually has, not just the screen width,
   so narrow theme content areas never get cramped cards. */
@container (max-width: 760px) {
	.hl-hotels [data-hl-list] > * {
		width: 50%;
	}
}

@container (max-width: 480px) {
	.hl-hotels [data-hl-list] > * {
		width: 100%;
	}
}

.hl-hotels [hidden] {
	display: none !important;
}

/* Language switcher -------------------------------------------------- */

.hl-lang-switcher {
	margin-bottom: 1rem;
}

.hl-lang-switcher .nav {
	gap: 0.25rem;
}

.hl-lang-switcher .nav-link {
	padding: 0.3rem 0.8rem;
	font-size: 0.875rem;
}

.hl-lang-switcher .nav-link.active {
	background-color: var(--hl-accent);
}

/* Toolbar ------------------------------------------------------------ */

.hl-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem 1.5rem;
	padding: 1rem;
	border: 1px solid var(--hl-border);
	border-radius: 0.5rem;
	background: var(--hl-soft);
}

.hl-toolbar__group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hl-toolbar__sort {
	margin-inline-start: auto;
	min-width: 13rem;
}

.hl-toolbar__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hl-muted);
}

.hl-toolbar .btn-check:focus-visible + .btn {
	outline: 2px solid var(--hl-accent);
	outline-offset: 2px;
}

.hl-count {
	margin: 0.75rem 0 1rem;
	font-size: 0.875rem;
	color: var(--hl-muted);
}

/* Card --------------------------------------------------------------- */

.hl-card {
	border-color: var(--hl-border);
	overflow: hidden;
}

.hl-card__media {
	aspect-ratio: 16 / 9;
	background: var(--hl-soft);
	overflow: hidden;
}

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

.hl-card .card-body {
	gap: 0.9rem;
}

.hl-card__head {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.hl-card__head .card-title {
	line-height: 1.25;
}

.hl-price {
	line-height: 1.2;
}

.hl-price__amount {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--hl-accent);
	font-variant-numeric: tabular-nums;
}

.hl-price__unit {
	font-size: 0.875rem;
	color: var(--hl-muted);
}

/* Quick facts: distance, shuttle, parking */
.hl-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0;
	padding: 0.6rem 0;
	border-block: 1px solid var(--hl-border);
	font-size: 0.875rem;
}

.hl-fact {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--hl-text);
}

.hl-fact::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--hl-muted);
	flex: none;
}

.hl-fact--distance {
	font-weight: 600;
}

.hl-fact--distance::before {
	background: var(--hl-accent);
}

.hl-fact.is-yes::before {
	background: var(--hl-yes);
}

.hl-fact.is-no::before {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--hl-no);
}

.hl-description > :last-child {
	margin-bottom: 0;
}

.hl-section-label {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hl-muted);
}

.hl-amenity {
	font-weight: 500;
	color: var(--hl-text);
	background: var(--hl-soft);
	border: 1px solid var(--hl-border);
	white-space: normal;
	text-align: start;
}

.hl-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.3rem 0.85rem;
	margin: 0;
	font-size: 0.875rem;
}

.hl-details dt {
	font-weight: 600;
	color: var(--hl-muted);
}

.hl-details dd {
	margin: 0;
}

.hl-code {
	font-weight: 600;
	letter-spacing: 0.02em;
	user-select: all;
}

/* More information */
.hl-more {
	margin-top: auto;
	border-top: 1px solid var(--hl-border);
	padding-top: 0.6rem;
}

.hl-more summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--hl-accent);
	list-style-position: inside;
}

.hl-more summary:focus-visible {
	outline: 2px solid var(--hl-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.hl-more__body {
	padding-top: 0.6rem;
	font-size: 0.9375rem;
}

.hl-more__body img,
.hl-more__body iframe,
.hl-more__body video {
	max-width: 100%;
	height: auto;
}

.hl-more__body iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.hl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	background: transparent;
	border-top-color: var(--hl-border);
}

/* Empty states */
.hl-no-results,
.hl-empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--hl-muted);
	border: 1px dashed var(--hl-border);
	border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
	.hl-toolbar__sort {
		margin-inline-start: 0;
		width: 100%;
	}
}
