/*
 * Trip Ooty — OYO-style search-result room card.
 * Styles the card markup in:
 *   inc/modules/layouts/elementorv2/inc/views/services/hotel/loop/grid.php
 * Only presentational. Does not affect booking, pricing, filters,
 * sorting, or pagination — those are separate elements/scripts untouched
 * by this file.
 */

/* ---------- results wrapper: always one full-width card per row ---------- */
.tripooty-oyo-row-layout {
	display: block;
}
.tripooty-oyo-row-layout > .item-service {
	float: none;
	width: 100%;
}

/* ---------- card shell ---------- */
.tripooty-oyo-card {
	display: flex;
	align-items: stretch;
	gap: 18px;
	background: #fff;
	border: 1px solid #222;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 18px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---------- LEFT: image + gallery ---------- */
.tripooty-oyo-card-media {
	flex: 0 0 270px;
	max-width: 270px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.tripooty-oyo-card-media-main {
	position: relative;
	border-radius: 0;
	overflow: hidden;
	display: block;
}
.tripooty-oyo-card-main-img {
	width: 100%;
	height: 198px;
	object-fit: cover;
	display: block;
}
.tripooty-oyo-card-gallery {
	display: flex;
	gap: 5px;
}
.tripooty-oyo-card-gallery-thumb {
	flex: 1;
	display: block;
	border-radius: 0;
	overflow: hidden;
}
.tripooty-oyo-card-gallery-thumb img {
	width: 100%;
	height: 50px;
	object-fit: cover;
	display: block;
}

/* ---------- CENTER: details ---------- */
.tripooty-oyo-card-details {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 2px 0;
}
.tripooty-oyo-card-details .tripooty-room-hotel-name {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	color: #111;
	text-transform: uppercase;
	letter-spacing: .3px;
}

/* ---------- hotel star rating badge (3★/4★/5★) ---------- */
.tripooty-oyo-star-badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	background: #0d8a4f !important;
	border-radius: 4px;
	padding: 2px 6px;
	line-height: 1.4;
}

/* ---------- city/area location line (distinct from full street address) ---------- */
.tripooty-oyo-location {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #111;
	margin-top: -2px;
}
.tripooty-oyo-location-icon {
	font-size: 12px;
	line-height: 1;
	color: #e11d1d;
}
.tripooty-oyo-room-name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
.tripooty-oyo-room-name a {
	color: #1a1a1a;
}

/* Property Type (e.g. "Boat House") — sits below the hotel name, above
   location. Only rendered when the site actually has one configured. */
.tripooty-oyo-property-type {
	font-size: 12px;
	font-weight: 700;
	color: #111;
}
.tripooty-oyo-address {
	font-size: 12px;
	font-weight: 700;
	color: #111;
}
.tripooty-oyo-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
	margin-top: 2px;
}
.tripooty-oyo-rating .rate {
	background: #0d8a4f !important;
	color: #fff !important;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.4;
	display: inline-block;
}
.tripooty-oyo-rating .rate-text {
	font-weight: 600;
	color: #111;
}
/* Rating badge colour tiers — the badge colour itself communicates the
   score band, same idea as the OYO reference. */
.tripooty-oyo-rating .rate.tripooty-rating-excellent { background: #0d8a4f !important; }
.tripooty-oyo-rating .rate.tripooty-rating-verygood   { background: #2e8b57 !important; }
.tripooty-oyo-rating .rate.tripooty-rating-good       { background: #3b82f6 !important; }
.tripooty-oyo-rating .rate.tripooty-rating-average    { background: #6b7280 !important; }
.tripooty-oyo-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #111;
}
.tripooty-oyo-amenities-title {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eaeaea;
}
.tripooty-oyo-amenities {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}
.tripooty-oyo-amenities li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	background: transparent;
	border-radius: 0;
	padding: 0;
	line-height: 1.3;
	white-space: nowrap;
	flex: 0 0 auto;
}
.tripooty-oyo-amenity-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 4px;
	background: #e11d1d !important;
	color: #fff !important;
	font-size: 11px;
	line-height: 1;
}
.tripooty-oyo-amenity-text {
	color: #111;
	font-weight: 500;
}
.tripooty-oyo-amenity-more {
	color: #e11d1d;
	background: transparent;
	font-weight: 700;
	padding: 0;
}
.tripooty-oyo-tags {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 8px;
	margin-top: 8px;
}
.tripooty-oyo-tag {
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	padding: 3px 8px;
}
.tripooty-oyo-tag-cancel {
	color: #0d8a4f;
	background: #e7f7ef;
}
.tripooty-oyo-tag-breakfast {
	color: #b45309;
	background: #fef3e0;
}

/* ---------- RIGHT: price + CTA ---------- */
.tripooty-oyo-card-price {
	flex: 0 0 190px;
	max-width: 190px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 4px;
	border-left: 1px solid #ececec;
	padding-left: 14px;
}
.tripooty-oyo-price-label {
	font-size: 12px;
	color: #6b7280;
}
.tripooty-oyo-price-regular {
	font-size: 13px;
	color: #9ca3af;
	text-decoration: line-through;
}
.tripooty-oyo-price-now-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.tripooty-oyo-price-now {
	font-size: 21px;
	font-weight: 800;
	color: #1a1a1a;
}
.tripooty-oyo-price-off {
	font-size: 13px;
	font-weight: 700;
	color: #0d8a4f;
}
.tripooty-oyo-price-suffix {
	font-size: 12px;
	color: #6b7280;
}
.tripooty-oyo-taxes-text {
   font-size:12px;
    font-weight:500;
    color:#757575;
    line-height:1.4;
    white-space:nowrap;
}
.tripooty-oyo-card-price .btn-tripooty-book-now {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: #111 !important;
	color: #fff !important;
	font-weight: 700;
	border-radius: 6px;
	padding: 9px 14px;
	text-decoration: none;
	border: none;
}
.tripooty-oyo-card-price .btn-tripooty-book-now:hover,
.tripooty-oyo-card-price .btn-tripooty-book-now:focus,
.tripooty-oyo-card-price .btn-tripooty-book-now:visited {
	background: #333 !important;
	color: #fff !important;
}

/* ==================== TABLET: responsive horizontal ==================== */
@media (max-width: 991px) {
	.tripooty-oyo-card {
		flex-wrap: wrap;
	}
	.tripooty-oyo-card-media {
		flex: 0 0 220px;
		max-width: 220px;
	}
	.tripooty-oyo-card-main-img {
		height: 170px;
	}
	.tripooty-oyo-card-details {
		flex: 1 1 calc(100% - 240px);
	}
	.tripooty-oyo-card-price {
		flex: 0 0 100%;
		max-width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		border-left: none;
		border-top: 1px solid #ececec;
		padding-left: 0;
		padding-top: 12px;
		margin-top: 8px;
	}
	.tripooty-oyo-price-now-row {
		align-items: center;
	}
	.tripooty-oyo-card-price .btn-tripooty-book-now {
		width: auto;
		padding: 10px 28px;
	}
	.tripooty-oyo-taxes-text {
		margin-bottom: 0;
	}
}

/* ==================== MOBILE: stacked card ==================== */
@media (max-width: 575px) {
	.tripooty-oyo-card {
		position: relative;
		flex-direction: column;
		padding: 12px;
	}
	.tripooty-oyo-card-media {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}
	.tripooty-oyo-card-main-img {
		height: 200px;
	}

	/* OYO's mobile card shows ONE large hero image only — no thumbnail
	   strip underneath it. */
	.tripooty-oyo-card-gallery {
		display: none;
	}

	/* Real review-score badge, repositioned to float over the bottom-left
	   of the hero image, OYO-style. Same data/markup as desktop — just
	   moved visually via absolute positioning, nothing duplicated and
	   nothing hardcoded. Hidden entirely (see rule further down) if there
	   is no real review data to show. */
	.tripooty-oyo-rating {
		position: absolute;
		top: 178px;
		left: 24px;
		z-index: 2;
		background: rgba(255, 255, 255, 0.96);
		border-radius: 6px;
		padding: 4px 8px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
		margin-top: 0;
	}

	/* OYO's mobile card only shows one location line (area/city), not a
	   separate full street address underneath it — trim to match. */
	.tripooty-oyo-address {
		display: none;
	}

	.tripooty-oyo-card-details {
		flex: 1 1 auto;
		gap: 4px;
	}
	.tripooty-oyo-card-price {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.tripooty-oyo-price-now-row {
		justify-content: flex-start;
	}
}

/* ==================== Desktop/mobile mutual exclusion ====================
 * loop/grid.php now always renders BOTH this card (.tripooty-oyo-card)
 * and the purpose-built mobile card (.tripooty-oyo-m-card, styled in
 * oyo-mobile-card.css) for every result — see the root-cause comment in
 * grid.php. Exactly one must ever be visible at a time; CSS alone (not
 * server-side device detection) decides which, so it's correct on every
 * render regardless of caching. This card owns >767px (its 991px/575px
 * blocks above already handle its own internal responsiveness down to
 * that floor); oyo-mobile-card.css owns the mirror rule for ≤767px. */
@media (max-width: 767px) {
	.tripooty-oyo-card {
		display: none;
	}
}