/**
 * Houzez "Properties Tabs" widget (houzez_properties_tabs) — restyled to the
 * Oplus design system (look only: markup, tabs, AJAX Load More, favourite,
 * preview and email popup are Houzez's, untouched).
 *
 * The card mirrors the type/hub card (oplus-ds.css .tx-card): 14px radius
 * panel, fixed 3:2 photo, price first, two-line title, muted facts, one
 * outlined action. Tabs become the DS chip row; Load More the secondary button.
 *
 * Specificity: `:is(#oplus-pt, .elementor-widget)` carries ID weight but
 * matches through the class, so these rules beat Houzez main.css and the
 * Elementor per-widget CSS (".elementor-17651 .elementor-element-f539527 …")
 * without !important. Logical properties throughout, so RTL just works.
 *
 * Tokens are local (the homepage does not load oplus-ds.css); values are the
 * DS ones — keep them in step with assets/css/oplus-ds.css.
 */

.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) {
	--pt-brand: #247a3b;
	--pt-brand-700: #1d6330;
	--pt-brand-50: #e9f3ec;
	--pt-ink: #14261c;
	--pt-text: #4a5b52;
	--pt-muted: #5d6d65;
	--pt-line: #e3e8e5;
	--pt-line-strong: #8a978f;
	--pt-surface: #fff;
	--pt-r-md: 10px;
	--pt-r-lg: 14px;
	--pt-shadow-1: 0 1px 2px rgba(19, 38, 28, 0.06);
	--pt-shadow-2: 0 8px 30px rgba(19, 38, 28, 0.09);
	--pt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--pt-font: "Plus Jakarta Sans", "Oplus Jakarta Fallback", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--pt-font);
}
[dir="rtl"] .elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) {
	--pt-font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* ================================================================= TABS */

.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 0 0 28px; padding: 0; border: 0; list-style: none;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-item { margin: 0; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 18px; margin: 0;
	border: 1px solid var(--pt-line); border-radius: var(--pt-r-md);
	background: var(--pt-surface); color: var(--pt-ink);
	cursor: pointer; white-space: nowrap;
	transition: border-color 150ms var(--pt-ease), background-color 150ms var(--pt-ease), color 150ms var(--pt-ease);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link::before,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link::after { display: none; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link:hover { border-color: var(--pt-ink); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link.active {
	background: var(--pt-brand); border-color: var(--pt-brand); color: #fff;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-link:focus-visible { outline: 3px solid var(--pt-brand); outline-offset: 2px; }
/* Sentence-style labels like the rest of the site ("Ras Al Khaimah", not "RAS AL KHAIMAH"). */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) span.tab-title {
	font: 600 0.875rem/1.2 var(--pt-font); letter-spacing: 0; text-transform: none; color: inherit;
}

/* ================================================================= GRID */

.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .listing-view.grid-view.card-deck {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
	margin: 0; padding: 0;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-cards-module-3-cols .listing-view.grid-view.card-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .listing-view.grid-view.card-deck > .item-listing-wrap {
	display: flex; width: auto; max-width: none; flex: none; margin: 0; padding: 0;
	border: 1px solid var(--pt-line); border-radius: var(--pt-r-lg);
	background: var(--pt-surface); box-shadow: var(--pt-shadow-1); overflow: hidden;
	transition: box-shadow 220ms var(--pt-ease), border-color 220ms var(--pt-ease);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .listing-view.grid-view.card-deck > .item-listing-wrap:hover { border-color: transparent; box-shadow: var(--pt-shadow-2); }

/* ================================================================= CARD */

.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 > .d-flex { display: flex !important; flex-direction: column; align-items: stretch !important; height: 100%; }

/* Photo: one fixed ratio, so every card in a row lines up. */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-header { position: relative; width: 100%; margin: 0; padding: 0; flex: none; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-image-wrap,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-thumb { margin: 0; border-radius: 0; overflow: hidden; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-featured-thumb { display: block; aspect-ratio: 3 / 2; background: var(--pt-line); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-featured-thumb::before,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-featured-thumb::after { display: none; } /* Houzez hover overlay */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .listing-featured-thumb img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform 500ms var(--pt-ease);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-listing-wrap:hover .listing-featured-thumb img { transform: scale(1.03); }

/* Status badge: the DS card badge (white chip on the photo). */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .labels-wrap {
	position: absolute; inset-block-start: 12px; inset-inline-start: 12px; inset-inline-end: auto; z-index: 2;
	display: flex; gap: 6px; margin: 0;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .labels-wrap .label {
	display: inline-flex; align-items: center; height: 26px; margin: 0; padding: 0 10px;
	border-radius: 8px; background: var(--pt-surface); color: var(--pt-ink);
	font: 700 0.75rem/1 var(--pt-font); letter-spacing: 0; text-transform: none;
	box-shadow: var(--pt-shadow-1); text-decoration: none;
}

/* Tools (preview, favourite): quiet square buttons, top corner. */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-tools {
	position: absolute; inset-block-start: 12px; inset-inline-end: 12px; inset-inline-start: auto; inset-block-end: auto; z-index: 2;
	display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-tool { margin: 0; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-tool > span {
	display: inline-grid; place-items: center; width: 36px; height: 36px;
	border-radius: var(--pt-r-md); background: rgba(255, 255, 255, 0.94); color: var(--pt-ink);
	box-shadow: var(--pt-shadow-1); cursor: pointer;
	transition: background-color 150ms var(--pt-ease), color 150ms var(--pt-ease);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-tool > span:hover { background: #fff; color: var(--pt-brand); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-tool .houzez-icon { font-size: 14px; color: inherit; }

/* Body: type → price → title → where → facts. */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-body {
	display: flex; flex-direction: column; flex: 1 1 auto; gap: 4px;
	width: 100%; margin: 0; padding: 16px 20px 0; text-align: start;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-body ul { margin: 0; padding: 0; list-style: none; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-body > .item-amenities:first-child { order: 0; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .h-type,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .h-type span {
	font: 600 0.75rem/1.3 var(--pt-font); color: var(--pt-muted); text-transform: none; letter-spacing: 0; margin: 0; padding: 0;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-price-wrap { margin: 0; padding: 0; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-price {
	display: block; margin: 0; padding: 0;
	font: 800 1.375rem/1.2 var(--pt-font); letter-spacing: -0.01em; color: var(--pt-ink);
	font-variant-numeric: tabular-nums;
}
/* No price set: say so instead of leaving a gap (same wording as the new pages). */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-price:empty::before { content: "Price on request"; font-size: 1rem; font-weight: 700; color: var(--pt-text); }
[dir="rtl"] .elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-price:empty::before { content: "السعر عند الطلب"; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-title {
	margin: 2px 0 0; padding: 0;
	font: 600 0.9375rem/1.4 var(--pt-font); color: var(--pt-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.8em; white-space: normal; text-overflow: clip;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-title a { color: inherit; text-decoration: none; white-space: normal; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-title a:hover { color: var(--pt-brand); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-address {
	display: flex; align-items: center; gap: 4px; margin: 0; padding: 0;
	font: 400 0.8125rem/1.4 var(--pt-font); color: var(--pt-muted); font-style: normal;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-address::before {
	content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Facts: muted, icon + figure, wrap rather than squeeze. */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-with-icons:not(:first-child) {
	display: flex; flex-wrap: wrap; gap: 6px 14px; margin-block-start: 8px;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-with-icons:not(:first-child) li {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0;
	font: 600 0.8125rem/1.3 var(--pt-font); color: var(--pt-text);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-with-icons li::before,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-with-icons li::after { display: none; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-with-icons .houzez-icon { margin: 0 !important; font-size: 15px; color: var(--pt-muted); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-amenities-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* "Bed:" stays for screen readers */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .hz-figure { font-weight: 600; color: var(--pt-ink); }

/* Footer: one outlined action, pinned to the card bottom. */
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-footer {
	flex: none; width: 100%; margin: 16px 0 0; padding: 16px 20px 20px;
	border: 0; border-block-start: 1px solid var(--pt-line); background: none;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-buttons-wrap { display: flex; gap: 8px; margin: 0; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .btn-item {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 44px; margin: 0; padding: 0 16px;
	border: 1px solid var(--pt-line-strong); border-radius: var(--pt-r-md);
	background: var(--pt-surface); color: var(--pt-ink);
	font: 700 0.875rem/1.2 var(--pt-font); box-shadow: none;
	transition: border-color 150ms var(--pt-ease), background-color 150ms var(--pt-ease), color 150ms var(--pt-ease);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .btn-item:hover,
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .btn-item:focus-visible {
	border-color: var(--pt-brand); background: var(--pt-brand-50); color: var(--pt-brand-700);
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .btn-item .houzez-icon { font-size: 15px; color: inherit; margin: 0; }

/* ============================================================= LOAD MORE */

.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .load-more-wrap { margin-block-start: 32px; text-align: center; }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .btn-load-more {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; min-width: 200px; padding: 12px 24px;
	border: 1px solid var(--pt-line-strong); border-radius: var(--pt-r-md);
	background: var(--pt-surface); color: var(--pt-ink);
	font: 700 0.875rem/1.2 var(--pt-font); box-shadow: none;
}
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .btn-load-more:hover { border-color: var(--pt-ink); background: var(--pt-surface); color: var(--pt-ink); }
.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .btn-load-more:focus-visible { outline: 3px solid var(--pt-brand); outline-offset: 2px; }

/* ============================================================ RESPONSIVE */

@media (max-width: 1100px) {
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .listing-view.grid-view.card-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	/* Tabs: one swipeable row instead of a wrapped block. */
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs {
		/* !important: Bootstrap's .justify-content-center is !important, and a
		   centred overflowing row pushes the first tabs out of reach. */
		flex-wrap: nowrap; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none;
		margin-inline: -16px; padding-inline: 16px; margin-block-end: 20px;
	}
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs::-webkit-scrollbar { display: none; }
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .property-nav-tabs .nav-item { flex: none; }
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .listing-view.grid-view.card-deck { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-wrap-v9 .item-title { min-height: 0; }
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .btn-load-more { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) * { transition: none !important; }
	.elementor-widget-houzez_properties_tabs:is(#oplus-pt, .elementor-widget) .item-listing-wrap:hover .listing-featured-thumb img { transform: none; }
}
