/* Emmcee Room Card – Basis-Layout */

/*
 * Elementor-Flexbox-Container (ab Elementor 3.6+) schrumpfen Widgets
 * standardmäßig auf ihre Inhaltsbreite ("width: auto" als Flex-Item),
 * statt sie automatisch die Spaltenbreite ausfüllen zu lassen. Deshalb
 * muss der Elementor-eigene Wrapper hier explizit auf volle Breite
 * gezwungen werden – sonst greift unser width:100% auf der Karte selbst
 * ins Leere, weil der Elterncontainer bereits geschrumpft ist.
 */
.elementor-widget-emmcee-room-card,
.elementor-widget-emmcee-room-card > .elementor-widget-container {
	width: 100%;
	height: 100%;
}

.emmcee-room-card {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	overflow: visible;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-family: inherit;
}

.room-card-image-wrap {
	position: relative;
	line-height: 0;
	flex-shrink: 0;
}

.room-card-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	border-radius: 20px 20px 0 0;
}

.room-card-image--hover {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.emmcee-room-card:hover .room-card-image--hover {
	opacity: 1;
}

.room-card-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #C97C4B;
	mix-blend-mode: soft-light;
	opacity: 0.35;
	pointer-events: none;
	border-radius: 20px 20px 0 0;
}

.room-card-icon {
	position: absolute;
	left: 24px;
	top: 100%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.room-card-icon i,
.room-card-icon svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #a05a3c;
}

.room-card-content {
	padding: 32px 24px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.room-card-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.room-card-price {
	margin: 0 0 18px;
	font-size: 14px;
	color: #8a8a8a;
}

.room-card-price strong {
	color: #2b2b2b;
	font-weight: 600;
}

.room-card-free-text {
	margin: 14px 0;
	font-size: 13px;
	line-height: 1.6;
	color: #5a5a5a;
	min-height: 60px;
	box-sizing: border-box;
}

.room-card-amenities {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 6px 0 18px;
}

.room-card-amenity {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #e5e0d8;
	border-radius: 10px;
	padding: 10px 6px;
	box-sizing: border-box;
}

.room-card-amenity-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.room-card-amenity-icon i,
.room-card-amenity-icon svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #433c38;
}

.room-card-amenity-label {
	font-size: 11px;
	line-height: 1.3;
	color: #5a5a5a;
}

/* Alternative Darstellung: Trennlinien statt Rahmen-Boxen */
.room-card-amenities--divider {
	align-items: center;
}

.room-card-amenities--divider .room-card-amenity {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 12px;
}

.room-card-amenities--divider .room-card-amenity:first-child {
	padding-left: 0;
}

.room-card-amenities--divider .room-card-amenity:last-child {
	padding-right: 0;
}

.room-card-amenities--divider .room-card-amenity:not(:first-child) {
	border-left: 1px solid #e5e0d8;
}

.room-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #a05a3c;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
	margin-top: auto;
	padding-top: 8px;
}

.room-card-link:hover {
	color: #7c4429;
}

/*
 * Quform verpackt den Inhalt des [quform_popup]-Shortcodes in ein
 * eigenes klickbares Element (Klassenname "quform-popup-link" bzw.
 * "quform-popup-link-{id}"). WICHTIG: Der Selektor muss "-link"
 * enthalten und darf NICHT nur "quform-popup" lauten – Quform legt
 * direkt daneben zusätzlich ein <div class="quform-popup"> an, das
 * den eigentlichen (per JS standardmäßig versteckten) Formularinhalt
 * enthält. Ein zu weiter Selektor wie [class*="quform-popup"] trifft
 * versehentlich auch dieses Div und hebelt damit Quforms eigene
 * "versteckt bis Klick"-Logik aus – das Formular erscheint dann
 * dauerhaft sichtbar direkt in der Seite statt als Popup.
 */
.room-card-content [class*="quform-popup-link"] {
	display: inline-flex;
	position: relative;
	margin-top: auto;
	padding-top: 8px;
	text-decoration: none !important;
	color: inherit !important;
	cursor: pointer;
}

.room-card-link .arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.room-card-link:hover .arrow {
	transform: translateX(4px);
}
