/* ==========================================================================
   Tarahill horizontal room card  [tarahill_rooms]
   ========================================================================== */

.tarahill-rooms-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---- Card shell ---- */
.tarahill-room-card-h {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	overflow: hidden;
}

/* ---- Thumbnail ---- */
.tarahill-room-card-h__image {
	flex: 0 0 300px;
	min-height: 100px;
	overflow: hidden;
}

.tarahill-room-card-h__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Body ---- */
.tarahill-room-card-h__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 30px 40px;
	min-width: 0;
}

/* ---- Header row: meta left, rating right ---- */
.tarahill-room-card-h__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.tarahill-room-card-h__meta {
	flex: 1;
	min-width: 0;
}

.tarahill-room-card-h__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tarahill-room-card-h__header .tarahill-room-card-h__title a {
	text-decoration: none;
}


.tarahill-room-card-h__location {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	margin: 0;
}

.tarahill-room-card-h__location svg {
	flex-shrink: 0;
	opacity: 0.6;
}

/* ---- Rating badge ---- */
.tarahill-room-card-h__rating {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.tarahill-rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 5px;
	white-space: nowrap;
	line-height: 1.4;
}

.tarahill-rating-badge svg {
	color: #fbbf24;
	fill: #fbbf24;
}

.tarahill-rating-count {
	font-size: 10px;
	white-space: nowrap;
}

/* ---- Excerpt ---- */
.tarahill-room-card-h__excerpt {
	font-size: 16px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	line-height: 1.45;
}

/* ---- Pill tags ---- */
.tarahill-room-card-h__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 20px;
}

.tarahill-room-card-h__tags .tarahill-tag {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 1px 9px;
	white-space: nowrap;
	line-height: 1.6;
}

/* ---- Amenities ---- */
.tarahill-room-card-h__amenities {
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tarahill-amenities-label {
	font-weight: 600;
	margin-right: 3px;
}

/* ---- Footer: price + CTA ---- */
.tarahill-room-card-h__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: auto;
	padding-top: 2px;
}

.tarahill-room-card-h__price {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

a.tarahill-room-card-h__book-btn,
button.tarahill-room-card-h__book-btn {
	background-color: var(--e-global-color-primary);
	color: var(--e-global-color-34abe9b);
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none !important;
	white-space: nowrap;
	line-height: 1.5;
	transition: background 0.15s ease;
	text-transform: uppercase;
}

a.tarahill-room-card-h__book-btn:hover,
button.tarahill-room-card-h__book-btn:hover {
	background-color: var(--e-global-color-secondary);
	color: var(--e-global-color-34abe9b);
}

.tarahill-reserve-form {
	display: inline-flex;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Booking popup modal
   ========================================================================== */

.tarahill-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tarahill-modal[hidden] {
	display: none;
}

.tarahill-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.tarahill-modal__panel {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	padding: 32px 28px;
	width: 100%;
	max-width: 460px;
	margin: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.tarahill-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 4px 8px;
	border-radius: 4px;
}

.tarahill-modal__close:hover {
	background: #f3f4f6;
	color: #111827;
}

.tarahill-modal__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-right: 32px;
}

.tarahill-modal__row {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.tarahill-modal__field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.tarahill-modal__field--full {
	flex: 1 1 100%;
}

.tarahill-modal__label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.tarahill-modal__input,
.tarahill-modal__datepick,
.tarahill-modal__select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #111827;
	box-sizing: border-box;
}

.tarahill-modal__input:focus,
.tarahill-modal__datepick:focus,
.tarahill-modal__select:focus {
	outline: 2px solid var(--e-global-color-primary, #4f46e5);
	border-color: transparent;
}

.tarahill-modal__datepick.tarahill-datepick-error {
	border-color: #dc2626;
	outline: none;
}

/* Keep the datepick popup above the modal overlay */
.datepick-popup {
	z-index: 100000;
}

.tarahill-modal__submit {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px;
	background: var(--e-global-color-primary);
	color: var(--e-global-color-34abe9b, #fff);
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}

.tarahill-modal__submit:hover {
	background: var(--e-global-color-secondary);
}

.tarahill-modal__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

body.tarahill-modal-open {
	overflow: hidden;
}

/* ---- No-thumbnail fallback ---- */
.tarahill-room-card-h--no-image .tarahill-room-card-h__body {
	padding-left: 16px;
}

/* ---- Unavailable state (search results) ---- */
.tarahill-room-card-h--unavailable {
	opacity: 0.7;
}

.tarahill-room-card-h__unavailable {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
	padding: 1px 8px;
	margin: 0;
}

/* ---- "for N nights" sublabel in search result price ---- */
.tarahill-price-nights {
	font-size: 11px;
	font-weight: 400;
	color: #6b7280;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- Tablet: shrink image, tighten padding ---- */
@media (max-width: 900px) {
	.tarahill-room-card-h__image {
		flex: 0 0 220px;
	}

	.tarahill-room-card-h__body {
		padding: 20px 24px;
	}

	.tarahill-room-card-h__title {
		font-size: 22px;
	}
}

/* ---- Mobile: stack image above body ---- */
@media (max-width: 600px) {
	.tarahill-room-card-h {
		flex-direction: column;
	}

	.tarahill-room-card-h__image {
		flex: 0 0 auto;
		width: 100%;
		height: 200px;
	}

	.tarahill-room-card-h__body {
		padding: 16px;
		gap: 6px;
	}

	.tarahill-room-card-h__title {
		font-size: 20px;
		white-space: normal;
	}

	.tarahill-room-card-h__excerpt {
		font-size: 14px;
	}

	.tarahill-room-card-h__amenities {
		display: none;
	}

	.tarahill-room-card-h__footer {
		flex-wrap: wrap;
		gap: 8px;
	}

	.tarahill-room-card-h__price {
		flex: 1 1 auto;
	}

	/* Modal fits narrow screens */
	.tarahill-modal__panel {
		padding: 24px 16px;
	}

	.tarahill-modal__row {
		flex-direction: column;
		gap: 10px;
	}
}
