/* Converting card to horizontal layout 
.offer-card {
	background: white;
	max-width: 1200px;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	min-height: 320px;
	container-type: inline-size;
}

/* Header now takes left side of horizontal layout 
.offer-header {
	background: var(--primary-color);
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: white;
	flex: 0 0 280px;
}

.offer-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.offer-subtitle {
	font-size: 16px;
	opacity: 0.9;
	font-weight: 400;
}

/* Content now takes right side and uses flex layout 
.offer-content {
	padding: 32px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.room-name {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	font-weight: 500;
}

.offer-description {
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-color);
	margin-bottom: 20px;
	font-weight: 400;
	flex-grow: 1;
}

/* Features now in single row for horizontal space 
.offer-features {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 24px;
}

.feature {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: #666;
}

.feature-icon {
	width: 14px;
	height: 14px;
	background: var(--primary-color);
	border-radius: 50%;
	margin-right: 6px;
	flex-shrink: 0;
}

/* Price section more compact for horizontal layout 
.price-section {
	background: #f8f9fa;
	padding: 16px 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 2px solid rgba(185, 185, 185, 0.1);
}

.price-info {
	display: flex;
	flex-direction: column;
}

.price {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
	line-height: 1;
}

.old-price {
	font-size: 12px;
	text-decoration: line-through;
	color: #666;
	margin-top: 2px;
}

.book-button {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.validity {
	margin-top: 12px;
	font-size: 11px;
	color: #888;
	text-align: right;
}

/* Responsive design for mobile 
@media (max-width: 768px) {
	.offer-card {
		flex-direction: column;
		max-width: 720px;
	}

	.offer-header {
		flex: none;
		text-align: center;
		padding: 24px;
	}

	.offer-title {
		font-size: 28px;
	}

	.price-section {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.book-button {
		width: 100%;
	}

	.validity {
		text-align: center;
	}
}

@container (max-width: 768px) {
  .offer-card {
    flex-direction: column;
	max-width: 720px;
  }
}
/* Contenedor padre para container query */
.offer-container {
	container-type: inline-size;
	container-name: offer;
	width: 100%;
	max-width: 1200px;
}

/* Converting card to horizontal layout */
.offer-card {
	background: white;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	min-height: 320px;
}

/* Header now takes left side of horizontal layout */
.offer-header {
	background: var(--primary-color);
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: white;
	flex: 0 0 280px;
}

.offer-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.offer-subtitle {
	font-size: 16px;
	opacity: 0.9;
	font-weight: 400;
}

/* Content now takes right side and uses flex layout */
.offer-content {
	padding: 32px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.room-name {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	font-weight: 500;
}

.offer-description {
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-color);
	margin-bottom: 20px;
	font-weight: 400;
	flex-grow: 1;
}

/* Features now in single row for horizontal space */
.offer-features {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 24px;
}

.feature {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: #666;
}

.feature-icon {
	width: 14px;
	height: 14px;
	background: var(--primary-color);
	border-radius: 50%;
	margin-right: 6px;
	flex-shrink: 0;
}

/* Price section more compact for horizontal layout */
.price-section {
	background: #f8f9fa;
	padding: 16px 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 2px solid rgba(185, 185, 185, 0.1);
}

.price-info {
	display: flex;
	flex-direction: column;
}

.price {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
	line-height: 1;
}

.old-price {
	font-size: 12px;
	text-decoration: line-through;
	color: #666;
	margin-top: 2px;
}

.book-button {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.validity {
	margin-top: 12px;
	font-size: 11px;
	color: #888;
	text-align: right;
}

.price-error {
  background-color: var(--error-color); /* fondo suave */
  border: 1px solid var(--error-color);
  border-radius: 8px;
  padding: 25px 15px; 
}


/* Container Query - Funciona correctamente */
@container offer (max-width: 768px) {
	.offer-card {
		flex-direction: column;
	}

	.offer-header {
		flex: none;
		text-align: center;
		padding: 24px;
	}

	.offer-title {
		font-size: 28px;
	}

	.price-section {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.book-button {
		width: 100%;
	}

	.validity {
		text-align: center;
	}
}

/* Responsive design for mobile - Fallback */
@media (max-width: 768px) {
	.offer-card {
		flex-direction: column;
		max-width: 720px;
	}

	.offer-header {
		flex: none;
		text-align: center;
		padding: 24px;
	}

	.offer-title {
		font-size: 28px;
	}

	.price-section {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.book-button {
		width: 100%;
	}

	.validity {
		text-align: center;
	}
}