/*
Theme Name:   Royaltyland
Description:  Royaltyland child theme for Empiral, with full RTL (Hebrew) support and the Royaltyland brand palette. All code changes to the site are made here, never in the parent theme.
Author:       Wbit Cloud Services
Template:     empiral
Version:      1.0.0
Requires PHP: 7.4
License:      GNU General Public License v3 or later
License URI:  http://www.gnu.org/licenses/gpl-3.0.html
Tags:         rtl-language-support, custom-colors, custom-menu, translation-ready
Text Domain:  royalityland
Domain Path:  /languages
*/

/* ==========================================================================
   Brand tokens
   ========================================================================== */
:root {
	--rl-navy:        #0B2545;
	--rl-ocean:       #1478A6;
	--rl-sea:         #7FC8DE;
	--rl-gold:        #B8913A;
	--rl-gold-light:  #D9B870;
	--rl-ground:      #F4F7FA;
	--rl-line:        #DCE5EE;
	--rl-text:        #0F2238;
	--rl-muted:       #56697F;

	--rl-font-body:    "Heebo", "Assistant", Arial, sans-serif;
	--rl-font-heading: "Heebo", "Assistant", Arial, sans-serif;
	--rl-font-latin:   "Cinzel", "Times New Roman", serif;
}

/* ==========================================================================
   Direction-neutral brand styles (apply in LTR and RTL)
   Direction-specific fixes live in rtl.css
   ========================================================================== */
::selection {
	background: var(--rl-ocean);
	color: #fff;
}

/* ==========================================================================
   Property status badges (Empiral ships lime / green / black demo colors;
   its selectors are very specific, hence !important)
   ========================================================================== */
.tm-status-list a,
.tm-status-list span {
	border-radius: 4px;
	font-weight: 500;
}
.tm-status-list[class*="for-sale"] a,
.tm-status-list[class*="for-sale"] span {
	background-color: var(--rl-navy) !important;
	color: #fff !important;
}
.tm-status-list[class*="for-rent"] a,
.tm-status-list[class*="for-rent"] span {
	background-color: var(--rl-ocean) !important;
	color: #fff !important;
}
.tm-status-list.tm-featured,
.tm-status-list.tm-featured a,
.tm-status-list.tm-featured span {
	background-color: var(--rl-gold) !important;
	color: #fff !important;
}

/* Ratings, likes, image placeholders */
.tm-empiral-icon-star-1.tm-active {
	color: var(--rl-gold);
}
a.themetechmount-property-likes {
	color: var(--rl-navy);
}
.themetechmount-item-thumbnail {
	background-color: var(--rl-ground);
}

/* Buttons: brand hover */
.elementor-button:hover,
.elementor-button:focus-visible {
	background-color: var(--rl-navy);
	color: #fff;
}

/* ==========================================================================
   Responsive type scale (theme options hold the desktop sizes)
   ========================================================================== */
@media (max-width: 1024px) {
	h1 { font-size: 44px; line-height: 54px; }
	h2 { font-size: 34px; line-height: 44px; }
	h3 { font-size: 24px; line-height: 34px; }
	h4 { font-size: 20px; line-height: 30px; }
}
@media (max-width: 767px) {
	body { font-size: 16px; line-height: 26px; }
	h1 { font-size: 34px; line-height: 42px; }
	h2 { font-size: 28px; line-height: 36px; }
	h3 { font-size: 22px; line-height: 30px; }
	h4 { font-size: 19px; line-height: 28px; }
}

/* Latin brand text, e.g. <span class="rl-latin">ROYALTY LAND</span> */
.rl-latin {
	font-family: var(--rl-font-latin);
	letter-spacing: .08em;
	direction: ltr;
	unicode-bidi: isolate;
}

/* ==========================================================================
   Language switcher (header)
   ========================================================================== */
.rl-lang-switch {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-inline-start: 14px;
}
.rl-lang-switch ul {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rl-lang-switch a {
	display: block;
	padding: 7px 9px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .04em;
	color: var(--rl-navy);
}
.rl-lang-switch a:hover,
.rl-lang-switch a:focus-visible {
	color: var(--rl-ocean);
}
.rl-lang-switch .current a {
	background: var(--rl-navy);
	color: #fff;
}

/* Language switcher on the mobile header (≤1200px, where Empiral shows the menu toggle):
   sits in the header row, between the toggle and the logo */
@media (max-width: 1200px) {
	#site-header-menu .site-header-menu-list {
		position: static;
	}
	.rl-lang-switch.rl-in-header {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		inset-inline-end: 56px;
		margin: 0;
		z-index: 11;
	}
}
@media (max-width: 480px) {
	.site-branding .headerlogo img {
		max-width: 165px;
		height: auto;
	}
	.rl-lang-switch a {
		padding: 6px 7px;
		font-size: 13px;
	}
}
@media (max-width: 359px) {
	.site-branding .headerlogo img {
		max-width: 138px;
	}
	.rl-lang-switch a {
		padding: 5px 5px;
	}
}

/* ==========================================================================
   Home hero (replaces the demo Slider Revolution, which has no working
   mobile layout). Markup: an Elementor HTML widget per language.
   ========================================================================== */
.rl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: clamp(620px, 92vh, 900px);
	padding: 150px 0 170px;
	background-color: var(--rl-ground);
}
.rl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("/wp-content/uploads/2025/05/slider-image.png.webp") 100% 50% / cover no-repeat;
}
.rtl .rl-hero::before {
	transform: scaleX(-1); /* building on the left, text over the sky on the right */
}
.rl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(244, 247, 250, .92) 0%, rgba(244, 247, 250, .7) 38%, rgba(244, 247, 250, 0) 64%);
}
.rtl .rl-hero::after {
	background: linear-gradient(270deg, rgba(244, 247, 250, .92) 0%, rgba(244, 247, 250, .7) 38%, rgba(244, 247, 250, 0) 64%);
}
.rl-hero__inner {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 60px;
}
.rl-hero__content {
	max-width: 680px;
}
.rl-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--rl-ocean);
}
.rl-hero__eyebrow::before {
	content: "";
	width: 36px;
	height: 2px;
	background: var(--rl-gold);
}
.rl-hero .rl-hero__title {
	margin: 0 0 22px;
	font-family: var(--rl-font-heading);
	font-size: clamp(36px, 4.2vw, 62px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--rl-navy);
}
.rl-hero__title span {
	color: var(--rl-ocean);
}
.rl-hero__text {
	max-width: 560px;
	margin: 0 0 34px;
	font-size: 18px;
	line-height: 1.7;
	color: #3E5268;
}
.rl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.rl-hero .rl-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 30px;
	border: 2px solid var(--rl-navy);
	border-radius: 40px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.rl-hero .rl-hero__btn--primary {
	background: var(--rl-navy);
	color: #fff;
}
.rl-hero .rl-hero__btn--primary:hover,
.rl-hero .rl-hero__btn--primary:focus-visible {
	background: var(--rl-ocean);
	border-color: var(--rl-ocean);
	color: #fff;
}
.rl-hero .rl-hero__btn--ghost {
	background: rgba(255, 255, 255, .6);
	color: var(--rl-navy);
}
.rl-hero .rl-hero__btn--ghost:hover,
.rl-hero .rl-hero__btn--ghost:focus-visible {
	background: var(--rl-navy);
	color: #fff;
}

/* Tablet: the search box no longer overlaps the hero, and the text needs
   a stronger veil because it spans most of the width */
@media (max-width: 1200px) {
	.rl-hero {
		min-height: 600px;
		padding: 130px 0 90px;
	}
	.rl-hero::after {
		background: linear-gradient(90deg, rgba(244, 247, 250, .95) 0%, rgba(244, 247, 250, .86) 55%, rgba(244, 247, 250, .45) 100%);
	}
	.rtl .rl-hero::after {
		background: linear-gradient(270deg, rgba(244, 247, 250, .95) 0%, rgba(244, 247, 250, .86) 55%, rgba(244, 247, 250, .45) 100%);
	}
	.rl-hero__inner {
		padding-inline: 40px;
	}
}
@media (max-width: 767px) {
	.rl-hero {
		min-height: 0;
		padding: 150px 0 56px;
		align-items: flex-end;
	}
	.rl-hero::before {
		background-position: 72% 50%;
	}
	.rl-hero::after,
	.rtl .rl-hero::after {
		background: linear-gradient(180deg, rgba(244, 247, 250, .35) 0%, rgba(244, 247, 250, .86) 45%, rgba(244, 247, 250, .96) 100%);
	}
	.rl-hero__inner {
		padding-inline: 20px;
	}
	.rl-hero__eyebrow {
		margin-bottom: 12px;
		font-size: 13px;
	}
	.rl-hero .rl-hero__title {
		font-size: 34px;
	}
	.rl-hero__text {
		margin-bottom: 26px;
		font-size: 16px;
	}
	.rl-hero .rl-hero__btn {
		flex: 1 1 150px;
		min-height: 50px;
		padding: 0 20px;
		font-size: 15px;
	}
}

/* Location cards: a term without a logo image gets Empiral's placeholder.jpg,
   which the theme does not ship (404) – hide the empty slot */
.tm-term-logo-img:has(img[src$="/images/placeholder.jpg"]),
.tm-term-featured-img img[src$="/images/placeholder.jpg"] {
	display: none;
}

/* Counters ("39k+"): number and suffix are separate spans, so in RTL they
   swap to "k+39" – keep the figure itself left-to-right */
.rtl .tm-fid-inner {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Review bars: "100%" is wider than the percentage slot */
.rating-percent {
	min-width: 3.2em;
	white-space: nowrap;
}

/* Multi-step contact form: Empiral hides steps 2–3 only in its rtl.css,
   so on the LTR sites every step showed at once */
.prt-commonform.contactform-1 .tm--multistep-box:not(:first-of-type) {
	display: none;
}
.prt-commonform.contactform-1.tm-contact-form p.nxt-prev-button {
	text-align: start;
}

/* ==========================================================================
   About page – house with room hotspots (replaces the demo Slider Revolution
   "property-section"). Spots are placed on the photo in %, so they follow it
   at every width; on phones they turn into a 2×2 list under the photo.
   ========================================================================== */
.rl-rooms__media {
	position: relative;
}
.rl-rooms__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 700;
	object-fit: cover;
}
.rl-rooms__spots {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rl-rooms__label strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rl-navy);
}
.rl-rooms__label span {
	font-size: 13px;
	line-height: 1.4;
	color: var(--rl-muted);
}
@media (min-width: 768px) {
	.rl-rooms__spots {
		position: absolute;
		inset: 0;
	}
	.rl-rooms__spot {
		position: absolute;
		left: var(--x);
		top: var(--y);
	}
	.rl-rooms__dot {
		position: absolute;
		left: -9px;
		top: -9px;
		width: 18px;
		height: 18px;
		border: 3px solid #fff;
		border-radius: 50%;
		background: var(--rl-gold);
		animation: rl-rooms-pulse 2.4s ease-out infinite;
	}
	.rl-rooms__label {
		position: absolute;
		left: 0;
		bottom: 20px;
		transform: translateX(-50%);
		padding: 10px 16px;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 8px 24px rgba(11, 37, 69, .18);
		text-align: center;
		white-space: nowrap;
	}
}
@media (min-width: 768px) and (max-width: 1100px) {
	.rl-rooms__label {
		padding: 7px 11px;
	}
	.rl-rooms__label strong {
		font-size: 13px;
	}
	.rl-rooms__label span {
		font-size: 12px;
	}
}
@media (max-width: 767px) {
	.rl-rooms__media img {
		aspect-ratio: 16 / 10;
	}
	.rl-rooms__spots {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 16px 20px 24px;
		background: var(--rl-ground);
	}
	.rl-rooms__dot {
		display: none;
	}
	.rl-rooms__label {
		display: block;
		height: 100%;
		padding: 12px 14px;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 4px 14px rgba(11, 37, 69, .08);
	}
}
@keyframes rl-rooms-pulse {
	0% { box-shadow: 0 0 0 0 rgba(184, 145, 58, .55); }
	70% { box-shadow: 0 0 0 14px rgba(184, 145, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(184, 145, 58, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.rl-rooms__dot {
		animation: none;
	}
}

/* ==========================================================================
   Floating WhatsApp button (bottom left in every language; the theme's
   "back to top" button sits bottom right)
   ========================================================================== */
.rl-whatsapp {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 6px 18px rgba(11, 37, 69, .25);
	transition: transform .2s ease;
}
.rl-whatsapp:hover,
.rl-whatsapp:focus-visible {
	color: #fff;
	transform: scale(1.06);
}
.rl-whatsapp:focus-visible {
	outline: 3px solid var(--rl-navy);
	outline-offset: 3px;
}
@media (max-width: 767px) {
	.rl-whatsapp {
		left: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
}
@media print {
	.rl-whatsapp,
	.rl-consent {
		display: none !important;
	}
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.rl-consent {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(760px, calc(100% - 32px));
	padding: 18px 22px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(11, 37, 69, .22);
	transform: translateX(-50%);
}
.rl-consent[hidden] {
	display: none;
}
.rl-consent__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--rl-text);
}
.rl-consent__text a {
	color: var(--rl-ocean);
	text-decoration: underline;
}
.rl-consent__actions {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	gap: 8px;
}
.rl-consent .rl-consent__btn {
	min-height: 44px;
	padding: 0 20px;
	border: 2px solid var(--rl-navy);
	border-radius: 30px;
	background: #fff;
	color: var(--rl-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.rl-consent .rl-consent__btn--primary {
	background: var(--rl-navy);
	color: #fff;
}
.rl-consent .rl-consent__btn:focus-visible {
	outline: 3px solid var(--rl-ocean);
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.rl-consent {
		bottom: 12px;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 16px;
	}
	.rl-consent__text {
		font-size: 14px;
	}
	.rl-consent__actions {
		flex-direction: row;
	}
	.rl-consent .rl-consent__btn {
		flex: 1;
		padding: 0 12px;
		white-space: normal;
	}
}

/* Contact Form 7 honeypot – off screen, never shown */
.rl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Legal pages (privacy, terms, accessibility statement)
   ========================================================================== */
.rl-legal {
	max-width: 820px;
	margin-inline: auto;
	font-size: 17px;
	line-height: 1.8;
}
.rl-legal .rl-legal__updated {
	margin-bottom: 28px;
	color: var(--rl-muted);
	font-size: 15px;
}
.rl-legal h2 {
	margin: 34px 0 12px;
	font-size: 24px;
	line-height: 1.35;
}
.rl-legal ul {
	margin: 0 0 18px;
	padding-inline-start: 22px;
}
.rl-legal li {
	margin-bottom: 6px;
}
.rl-legal a {
	color: var(--rl-ocean);
	text-decoration: underline;
}
.rl-legal .rl-legal__contact {
	margin-top: 30px;
	padding: 20px 24px;
	border-inline-start: 4px solid var(--rl-gold);
	border-radius: 8px;
	background: var(--rl-ground);
}

/* ==========================================================================
   Touch targets on phones: primary controls at least 44×44px
   ========================================================================== */
@media (max-width: 767px) {
	#site-header-menu #site-navigation .menu-toggle {
		min-width: 44px;
		min-height: 44px;
	}
	.site-branding .headerlogo img {
		max-width: 150px;
	}
	.rl-lang-switch a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 44px;
		padding: 0 6px;
	}
	.themetechmount-property-readmore a,
	.rl-hero .rl-hero__btn,
	.elementor-button,
	.e-n-tab-title,
	.wpcf7 input[type="submit"],
	.wpcf7 input[type="button"] {
		min-height: 44px;
	}
	.themetechmount-property-readmore a {
		display: inline-flex;
		align-items: center;
	}
	a.themetechmount-property-likes,
	a.tm_comp_pro,
	a.tm_sharelink,
	a.tm_print_page {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
	.widget_nav_menu li a,
	.widget_recent_entries li a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}
@media (max-width: 359px) {
	.site-branding .headerlogo img {
		max-width: 128px;
	}
	.rl-lang-switch a {
		min-width: 34px;
		padding: 0 4px;
	}
}

/* Bootstrap's glyphicons font (star ratings on the property review form):
   bootstrap.min.css points at a fonts folder the theme doesn't ship */
@font-face {
	font-family: 'Glyphicons Halflings';
	src: url('../empiral/inc/assets/bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'),
		url('../empiral/inc/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype');
	font-display: swap;
}

/* ==========================================================================
   Header buttons on desktop (rl-header-order): sign in, all properties,
   then the language switcher at the end of the row
   ========================================================================== */
@media (min-width: 1201px) {
	#site-header-menu .site-header-menu-list {
		position: relative;
		z-index: 20; /* the main menu list stretches over the header and hid these buttons from clicks */
		display: flex;
		align-items: center;
		gap: 16px;
	}
	#site-header-menu .site-header-menu-list > * {
		float: none;
		margin-inline: 0;
	}
	#site-header-menu .site-header-menu-list > .tm-account-box {
		order: 1;
	}
	#site-header-menu .site-header-menu-list > .tm-header-contact-btn-wrapper {
		order: 2;
	}
	#site-header-menu .site-header-menu-list > .rl-lang-switch {
		order: 3;
	}
}

/* Home: the property search bar spans the whole page width. The demo sets it
   to 84% next to an empty spacer column; the fields stay centred inside it. */
.tm-search-boxes > .tm-empty-columns,
.tm-search-boxes > .e-con-inner > .tm-empty-columns {
	display: none;
}
.tm-search-boxes .tm-search-white {
	--width: 100%;
	width: 100% !important;
	max-width: 100%;
}
.tm-search-boxes .tm-search-white .elementor-widget {
	--container-widget-width: 100%;
	width: 100% !important;
	max-width: 1400px !important;
	margin-inline: auto !important;
}

/* ==========================================================================
   Property search (rl-search-row): type, country, region and keyword share
   the main row with the buttons; stars for the property level
   ========================================================================== */
@media (min-width: 992px) {
	.property-search-widget {
		display: flex;
		align-items: center;
		width: 100%;
	}
	.property-search-widget > .property-field {
		float: none;
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
	.property-search-widget > .property-search-box {
		flex: 0 0 auto;
		order: 5;
	}
	.property-search-widget > .property-field:has(select[name="country"]) {
		order: 1;
	}
	.property-search-widget > .property-field:has(select[name="region"]) {
		order: 2;
	}
	.property-search-widget > .property-field:has(select[name="type"]) {
		order: 3;
	}
	.property-search-widget > .property-search-inputbox {
		order: 4;
	}
}
.rl-search-field select:disabled + .select2 {
	opacity: .55;
}
.rl-stars {
	display: inline-block;
	margin-inline-start: 8px;
	color: var(--rl-gold);
	font-size: .72em;
	letter-spacing: 1px;
	line-height: 1;
	vertical-align: middle;
	white-space: nowrap;
}

/* Footer logo (rl-footer-logo): the stacked white logo, kept compact */
#media_image-1 img.wp-image-5360,
.tm-footer-logo img {
	width: 200px;
	max-width: 100%;
	height: auto;
	margin-bottom: 20px;
}
@media (max-width: 767px) {
	#media_image-1 img.wp-image-5360,
	.tm-footer-logo img {
		width: 170px;
	}
}
