/* Coordinotes Widgets — Hotelaanbevelingen (carrousel) */

.cw-hotels-title {
	margin: 0 0 8px;
}

.cw-hotels-intro {
	margin: 0 0 20px;
}

.cw-hotels-intro p {
	margin: 0 0 0.6em;
}

.cw-hotels-intro p:last-child {
	margin-bottom: 0;
}

.cw-hotels-wrapper {
	position: relative;
	width: 100%;
}

.cw-hotels-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
	cursor: grab;
}

.cw-hotels-viewport.cw-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

.cw-hotels-viewport.cw-dragging .cw-hotel-link {
	pointer-events: none;
}

.cw-hotels-slides {
	display: flex;
	will-change: transform;
	transition: transform 0.4s ease;
}

.cw-hotels-slide {
	flex: 0 0 300px;
	width: 300px;
	box-sizing: border-box;
}

.cw-hotel-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cw-hotel-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cw-hotel-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #e5e7eb;
	flex-shrink: 0;
	box-sizing: border-box;
}

.cw-hotel-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cw-hotel-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #e5e7eb 25%, #f3f4f6 25%, #f3f4f6 50%, #e5e7eb 50%, #e5e7eb 75%, #f3f4f6 75%, #f3f4f6 100% );
	background-size: 24px 24px;
}

.cw-hotel-info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cw-hotel-name {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.3;
	/* Altijd ruimte voor 2 regels reserveren (ook bij een naam van 1 regel),
	   en een langere naam netjes afkappen met "…" i.p.v. de kaart hoger te
	   maken — dit is wat de knop eronder overal op dezelfde hoogte houdt,
	   ongeacht de lengte van naam/locatie per hotel. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.3em * 2);
}

.cw-hotel-location {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #6b7280;
	/* Zelfde reden als bij .cw-hotel-name hierboven: vaste hoogte voor 2
	   regels, zodat de knop onder de kaart altijd op dezelfde afstand van
	   de onderkant staat, of de locatie nu op 1 of 2 regels past. */
	min-height: calc(1.3em * 2);
}

.cw-hotel-location span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}

.cw-hotel-location svg,
.cw-hotel-location i {
	flex-shrink: 0;
	line-height: 1;
	margin-top: 3px;
}

.cw-hotel-button {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cw-hotel-btn-width-full .cw-hotel-button {
	width: 100%;
}

.cw-hotels-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	color: #1f2937;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 2;
	padding: 0;
}

.cw-hotels-arrow svg {
	width: 55%;
	height: 55%;
}

.cw-hotels-arrow:hover {
	background: #f3f4f6;
}

.cw-hotels-prev {
	left: -8px;
}

.cw-hotels-next {
	right: -8px;
}

.cw-hotels-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.cw-hotels-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.cw-hotels-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d1d5db;
	border: none;
	padding: 0;
	cursor: pointer;
}

.cw-hotels-dot.cw-active {
	background: #2563eb;
}

.cw-hotels-empty {
	padding: 20px;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	color: #6b7280;
	text-align: center;
}

.cw-hotels-debug-note {
	margin: 0 16px 12px;
	padding: 8px 10px;
	background: #fff7ed;
	border: 1px dashed #f59e0b;
	border-radius: 6px;
	color: #92400e;
	font-size: 12px;
	line-height: 1.4;
}

.cw-hotels-extra-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

.cw-hotels-extra-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	background: #ffffff;
	color: #2563eb;
	border: 1px solid #2563eb;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
