:root {
	--tmg-bg: #f9f9f6;
	--tmg-surface: #ffffff;
	--tmg-surface-2: #f2f5ef;
	--tmg-text: #1e293b;
	--tmg-muted: #5b6472;
	--tmg-border: rgba(30, 41, 59, 0.1);
	--tmg-primary: #0f5132;
	--tmg-primary-strong: #198754;
	--tmg-accent: #d4af37;
	--tmg-shadow: 0 20px 50px rgba(30, 41, 59, 0.08);
	--tmg-radius: 24px;
	--tmg-radius-sm: 16px;
	--tmg-neon: 0 0 0 transparent, 0 0 18px rgba(15, 81, 50, 0.18);
}

body {
	margin: 0;
	font-family: "Cairo", Tahoma, "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 28%),
		radial-gradient(circle at top left, rgba(25, 135, 84, 0.06), transparent 24%),
		linear-gradient(180deg, #fcfcfa 0%, #f3f6f1 100%);
	color: var(--tmg-text);
	line-height: 1.7;
	overflow-x: hidden;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html[dir="rtl"] body,
body.is-rtl {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .tmg-container,
body.is-rtl .tmg-container,
html[dir="rtl"] .tmg-card,
body.is-rtl .tmg-card,
html[dir="rtl"] .tmg-hero,
body.is-rtl .tmg-hero,
html[dir="rtl"] .tmg-search-panel,
body.is-rtl .tmg-search-panel,
html[dir="rtl"] .tmg-property-card__body,
body.is-rtl .tmg-property-card__body,
html[dir="rtl"] .tmg-entry,
body.is-rtl .tmg-entry {
	direction: rtl;
	text-align: right;
}

body.single-property-screen {
	background:
		radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 28%),
		radial-gradient(circle at top left, rgba(25, 135, 84, 0.06), transparent 24%),
		linear-gradient(180deg, #fcfcfa 0%, #f3f6f1 100%);
	color: var(--tmg-text);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.tmg-container {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
}

.tmg-section {
	padding: 2rem 0 5rem;
}

.tmg-site-header,
.tmg-site-footer,
.tmg-card,
.tmg-filter-card,
.tmg-property-card,
.tmg-contact-panel,
.tmg-gallery__thumb,
.tmg-mobile-sticky-cta,
.tmg-icon-button {
	backdrop-filter: blur(14px);
}

.tmg-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 252, 248, 0.84);
	border-bottom: 1px solid var(--tmg-border);
}

.single-property-screen .tmg-site-header {
	background: rgba(255, 252, 248, 0.84);
}

.tmg-site-header__inner,
.tmg-nav__menu,
.tmg-filter-actions,
.tmg-contact-actions,
.tmg-mobile-sticky-cta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tmg-site-header__inner {
	justify-content: space-between;
	padding: 1rem 0;
	position: relative;
}

html[dir="rtl"] .tmg-site-header__inner,
body.is-rtl .tmg-site-header__inner {
	flex-direction: row-reverse;
}

.tmg-brand__logo {
	display: block;
	width: clamp(180px, 17vw, 260px);
	height: auto;
}

.tmg-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.tmg-brand {
	display: grid;
	gap: 0.15rem;
}

.tmg-brand__eyebrow,
.tmg-kicker {
	font-size: 0.8rem;
	color: var(--tmg-primary);
	letter-spacing: 0;
}

.tmg-brand__name {
	font-size: 1.1rem;
	font-weight: 700;
}

.tmg-header-actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.tmg-mobile-menu {
	display: block;
	position: relative;
}

.tmg-mobile-menu > summary {
	list-style: none;
}

.tmg-mobile-menu > summary::-webkit-details-marker {
	display: none;
}

.tmg-header-panel {
	display: block !important;
	position: relative;
	z-index: 1001;
}

.tmg-header-panel--desktop {
	display: block;
}

@media (min-width: 861px) {
	.tmg-mobile-menu {
		display: none;
	}

	.tmg-header-panel--desktop {
		display: block !important;
		position: static;
		width: auto;
	}
}

.tmg-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.28rem;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid var(--tmg-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 28px rgba(30, 41, 59, 0.08);
	cursor: pointer;
	position: relative;
	z-index: 1002;
}

.tmg-menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 999px;
	background: var(--tmg-primary);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tmg-menu-toggle.is-open span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.tmg-menu-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.tmg-menu-toggle.is-open span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.tmg-mobile-menu[open] .tmg-menu-toggle span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.tmg-mobile-menu[open] .tmg-menu-toggle span:nth-child(2) {
	opacity: 0;
}

.tmg-mobile-menu[open] .tmg-menu-toggle span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

html[dir="rtl"] .tmg-nav__menu,
body.is-rtl .tmg-nav__menu,
html[dir="rtl"] .tmg-header-actions,
body.is-rtl .tmg-header-actions,
html[dir="rtl"] .tmg-home-search__tabs,
body.is-rtl .tmg-home-search__tabs,
html[dir="rtl"] .tmg-home-search__actions,
body.is-rtl .tmg-home-search__actions,
html[dir="rtl"] .tmg-home-stats,
body.is-rtl .tmg-home-stats,
html[dir="rtl"] .tmg-feature-list,
body.is-rtl .tmg-feature-list,
html[dir="rtl"] .tmg-contact-actions,
body.is-rtl .tmg-contact-actions,
html[dir="rtl"] .tmg-mobile-sticky-cta,
body.is-rtl .tmg-mobile-sticky-cta {
	flex-direction: row-reverse;
}

.tmg-header-link {
	color: var(--tmg-text);
	font-weight: 700;
}

.tmg-nav__menu a,
.tmg-header-link,
.tmg-property-card__title a {
	transition: color 0.2s ease;
}

.tmg-nav__menu a:hover,
.tmg-header-link:hover,
.tmg-property-card__title a:hover {
	color: var(--tmg-primary);
}

.tmg-button--sm {
	padding: 0.72rem 1.05rem;
	font-size: 0.95rem;
}

.home-screen .tmg-site-header {
	background: rgba(255, 250, 244, 0.9);
}

.tmg-hero,
.tmg-card,
.tmg-filter-card,
.tmg-property-card,
.tmg-contact-panel {
	background: var(--tmg-surface);
	border: 1px solid var(--tmg-border);
	border-radius: var(--tmg-radius);
	box-shadow: var(--tmg-shadow);
}

.tmg-hero {
	padding: 2rem;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

.tmg-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -50% auto;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(255, 183, 3, 0.22), transparent 70%);
}

.tmg-hero--compact {
	margin-bottom: 1.5rem;
}

.tmg-home {
	padding-bottom: 4rem;
}

.tmg-home-hero {
	padding: 2rem 0 1.5rem;
}

.tmg-home-hero__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
	align-items: center;
	gap: 1.5rem;
}

html[dir="rtl"] .tmg-home-hero__wrap,
body.is-rtl .tmg-home-hero__wrap,
html[dir="rtl"] .tmg-payment-panel,
body.is-rtl .tmg-payment-panel,
html[dir="rtl"] .tmg-single-property__hero,
body.is-rtl .tmg-single-property__hero,
html[dir="rtl"] .tmg-single-property__content,
body.is-rtl .tmg-single-property__content {
	direction: rtl;
}

.tmg-home-hero__content {
	display: grid;
	gap: 1.25rem;
}

.tmg-home-hero__eyebrow {
	display: inline-flex;
	width: fit-content;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: rgba(15, 81, 50, 0.08);
	color: var(--tmg-primary);
	font-weight: 800;
}

.tmg-home-hero__content h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.2rem);
	line-height: 1.1;
	max-width: 14ch;
}

.tmg-home-hero__content p {
	margin: 0;
	color: var(--tmg-muted);
	font-size: 1.04rem;
	max-width: 58ch;
}

.tmg-home-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.tmg-hero-chip {
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	background: rgba(212, 175, 55, 0.14);
	color: var(--tmg-accent);
	font-weight: 800;
}

.tmg-home-search {
	display: grid;
	gap: 1rem;
	padding: 1.1rem;
	background: rgba(255, 250, 244, 0.95);
	border: 1px solid rgba(24, 59, 55, 0.09);
	border-radius: 30px;
	box-shadow: 0 18px 54px rgba(24, 59, 55, 0.12);
}

.tmg-home-search__tabs,
.tmg-home-search__actions,
.tmg-home-stats,
.tmg-section-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tmg-home-search__tabs {
	flex-wrap: wrap;
}

.tmg-search-tab {
	padding: 0.85rem 1.2rem;
	border: 1px solid var(--tmg-border);
	border-radius: 18px;
	background: #fff;
	color: var(--tmg-muted);
	font-weight: 800;
	cursor: pointer;
}

.tmg-search-tab.is-active {
	background: linear-gradient(135deg, rgba(15, 81, 50, 0.12), rgba(212, 175, 55, 0.14));
	color: var(--tmg-text);
	border-color: rgba(15, 81, 50, 0.2);
}

.tmg-home-search__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.tmg-home-search__actions {
	flex-wrap: wrap;
}

.tmg-home-stats {
	flex-wrap: wrap;
}

.tmg-home-stats div {
	min-width: 120px;
	padding: 0.8rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--tmg-border);
}

.tmg-home-stats strong {
	display: block;
	font-size: 1.2rem;
}

.tmg-home-stats span {
	color: var(--tmg-muted);
	font-weight: 700;
	font-size: 0.92rem;
}

.tmg-home-hero__visual {
	position: relative;
}

.tmg-home-hero__visual-card {
	position: relative;
	padding: 1rem;
	border-radius: 36px;
	background: linear-gradient(180deg, rgba(255, 250, 244, 0.72), rgba(255, 250, 244, 0.96));
	border: 1px solid rgba(24, 59, 55, 0.08);
	box-shadow: 0 26px 60px rgba(24, 59, 55, 0.14);
}

.tmg-home-hero__visual-card img {
	width: 100%;
	border-radius: 28px;
}

.tmg-floating-badge {
	position: absolute;
	max-width: 240px;
	padding: 0.95rem 1rem;
	border-radius: 22px;
	background: rgba(255, 250, 244, 0.96);
	border: 1px solid rgba(24, 59, 55, 0.08);
	box-shadow: 0 12px 28px rgba(24, 59, 55, 0.12);
}

.tmg-floating-badge strong,
.tmg-project-card__index {
	display: block;
	font-weight: 900;
}

.tmg-floating-badge span {
	color: var(--tmg-muted);
	font-size: 0.9rem;
}

.tmg-floating-badge--top {
	top: 2rem;
	right: -1rem;
}

.tmg-floating-badge--bottom {
	bottom: 2rem;
	left: -1rem;
}

html[dir="rtl"] .tmg-floating-badge--top,
body.is-rtl .tmg-floating-badge--top {
	right: auto;
	left: -1rem;
}

html[dir="rtl"] .tmg-floating-badge--bottom,
body.is-rtl .tmg-floating-badge--bottom {
	left: auto;
	right: -1rem;
}

.tmg-home-section {
	padding: 1.5rem 0 2rem;
}

.tmg-home-section--contrast {
	background:
		radial-gradient(circle at top left, rgba(196, 106, 54, 0.08), transparent 22%),
		linear-gradient(180deg, rgba(255, 250, 244, 0.55), rgba(245, 236, 224, 0.95));
}

.tmg-section-heading {
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

html[dir="rtl"] .tmg-section-heading,
body.is-rtl .tmg-section-heading,
html[dir="rtl"] .tmg-search-panel__header,
body.is-rtl .tmg-search-panel__header,
html[dir="rtl"] .tmg-results-toolbar,
body.is-rtl .tmg-results-toolbar {
	flex-direction: row-reverse;
}

.tmg-section-heading h2 {
	margin: 0.35rem 0 0;
}

.tmg-projects-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.tmg-project-card {
	display: grid;
	gap: 0.8rem;
	padding: 1.4rem;
	border-radius: 26px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 247, 239, 0.95));
	border: 1px solid var(--tmg-border);
	box-shadow: var(--tmg-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tmg-project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 56px rgba(24, 59, 55, 0.12);
}

.tmg-project-card__index {
	color: var(--tmg-accent);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
}

.tmg-project-card h3,
.tmg-property-card h3 {
	margin: 0;
}

.tmg-project-card p {
	margin: 0;
	color: var(--tmg-muted);
}

.tmg-archive-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.tmg-search-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 248, 0.94));
	border: 1px solid var(--tmg-border);
	border-radius: 32px;
	box-shadow: var(--tmg-shadow);
	padding: 1.5rem;
	margin-bottom: 1.75rem;
}

.tmg-search-panel__header,
.tmg-search-actions,
.tmg-results-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tmg-search-panel__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--tmg-primary);
}

.tmg-search-panel__header h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.tmg-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	justify-content: center;
	padding: 0.85rem 1rem;
	border-radius: 16px;
	border: 1px solid var(--tmg-border);
	background: var(--tmg-surface);
	color: var(--tmg-text);
	font-weight: 700;
	cursor: pointer;
}

.tmg-filter-toggle::before {
	content: "+";
	font-size: 1.1rem;
	line-height: 1;
}

.tmg-filter-toggle.is-active::before {
	content: "−";
}

.tmg-search-form {
	display: grid;
	gap: 1rem;
}

.tmg-search-grid {
	display: grid;
	gap: 1rem;
}

.tmg-search-grid--primary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tmg-search-grid--advanced {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding-top: 0.5rem;
}

.tmg-range-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.tmg-field {
	display: grid;
	gap: 0.45rem;
}

.tmg-field__label {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--tmg-text);
}

.tmg-field input,
.tmg-field select,
.tmg-field textarea {
	width: 100%;
	min-height: 56px;
	border: 1px solid rgba(15, 118, 110, 0.14);
	background: #fff;
	border-radius: 18px;
	padding: 0.9rem 1rem;
	color: var(--tmg-text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
	font-family: inherit;
	text-align: right;
}

html[dir="rtl"] .tmg-field input,
html[dir="rtl"] .tmg-field select,
html[dir="rtl"] .tmg-field textarea,
html[dir="rtl"] .tmg-filter-form input,
html[dir="rtl"] .tmg-filter-form select,
html[dir="rtl"] .acf-form input,
html[dir="rtl"] .acf-form textarea,
html[dir="rtl"] .acf-form select {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .tmg-field input[type="number"],
body.is-rtl .tmg-field input[type="number"],
html[dir="rtl"] .tmg-payment-method p[dir="ltr"],
body.is-rtl .tmg-payment-method p[dir="ltr"] {
	text-align: left;
}

.tmg-field input:focus,
.tmg-field select:focus,
.tmg-field textarea:focus {
	outline: none;
	border-color: rgba(15, 118, 110, 0.45);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.tmg-field textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.8;
}

.tmg-auth-form .tmg-field input,
.tmg-auth-form .tmg-field select,
.tmg-auth-form .tmg-field textarea {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.96));
}

.tmg-auth-form .tmg-field input[type="file"] {
	padding: 0.8rem 1rem;
	min-height: auto;
	line-height: 1.5;
	cursor: pointer;
}

.tmg-auth-form .tmg-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-inline: 1rem 2.75rem;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--tmg-text) 50%),
		linear-gradient(135deg, var(--tmg-text) 50%, transparent 50%);
	background-position:
		left 1.2rem center,
		left 0.85rem center;
	background-size: 10px 10px, 10px 10px;
	background-repeat: no-repeat;
	cursor: pointer;
}

html[dir="rtl"] .tmg-auth-form .tmg-field select,
body.is-rtl .tmg-auth-form .tmg-field select {
	background-position:
		left 1.2rem center,
		left 0.85rem center;
}

.tmg-auth-form .tmg-field option {
	color: var(--tmg-text);
	background: #fff;
}

.tmg-agent-dashboard__hero,
.tmg-agent-dashboard__identity,
.tmg-agent-dashboard__actions,
.tmg-agent-listing-card__head,
.tmg-agent-listing-card__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.tmg-agent-dashboard__hero,
.tmg-agent-dashboard__reports,
.tmg-agent-listings {
	display: grid;
	gap: 1rem;
}

.tmg-agent-dashboard__hero {
	grid-template-columns: minmax(0, 1fr) auto;
}

.tmg-agent-dashboard__avatar img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid rgba(15, 118, 110, 0.12);
}

.tmg-agent-dashboard__actions {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tmg-agent-dashboard__reports {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmg-agent-listing-card {
	padding: 1.2rem;
	border: 1px solid var(--tmg-border);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 239, 0.96));
}

.tmg-agent-listing-card__head {
	justify-content: space-between;
	align-items: start;
}

.tmg-agent-listing-card__head h3 {
	margin: 0 0 0.35rem;
}

.tmg-agent-listing-card__actions {
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.tmg-search-actions {
	padding-top: 0.25rem;
}

.tmg-button--wide {
	min-width: 180px;
}

.tmg-results-toolbar {
	margin-bottom: 1rem;
	color: var(--tmg-muted);
	font-weight: 700;
}

.tmg-filter-card,
.tmg-card {
	padding: 1.5rem;
}

.tmg-filter-form,
.tmg-stack,
.tmg-form-page {
	display: grid;
	gap: 1rem;
}

.tmg-payment-panel,
.tmg-payment-methods {
	display: grid;
	gap: 1rem;
}

.tmg-payment-panel {
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.tmg-payment-fee {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 900;
	color: var(--tmg-primary);
}

.tmg-payment-methods {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tmg-payment-method {
	padding: 1rem;
	border: 1px solid var(--tmg-border);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.6);
}

html[dir="rtl"] .tmg-payment-method,
body.is-rtl .tmg-payment-method {
	text-align: right;
}

.tmg-payment-method h3 {
	margin: 0 0 0.5rem;
}

.tmg-payment-qr {
	margin-top: 0.9rem;
	padding: 0.5rem;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--tmg-border);
}

.tmg-payment-qr img {
	width: min(100%, 220px);
	margin: 0 auto;
	border-radius: 14px;
}

.tmg-auth-shell {
	display: grid;
	grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.85fr);
	gap: 1.5rem;
	align-items: stretch;
}

.tmg-auth-shell__visual,
.tmg-auth-card {
	background: var(--tmg-surface);
	border: 1px solid var(--tmg-border);
	border-radius: 32px;
	box-shadow: var(--tmg-shadow);
	padding: 2rem;
}

.tmg-auth-shell__visual {
	display: grid;
	gap: 1rem;
	background:
		radial-gradient(circle at top right, rgba(196, 106, 54, 0.14), transparent 30%),
		linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(245, 236, 224, 0.92));
}

.tmg-auth-shell__visual h1 {
	margin: 0;
}

.tmg-auth-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.8rem;
}

.tmg-auth-benefits li {
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--tmg-border);
	font-weight: 700;
}

.tmg-auth-card {
	display: grid;
	gap: 1rem;
}

.tmg-auth-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.tmg-auth-switch__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	border-radius: 18px;
	border: 1px solid var(--tmg-border);
	background: rgba(255, 255, 255, 0.65);
	font-weight: 800;
}

.tmg-auth-switch__item.is-active {
	background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(196, 106, 54, 0.12));
	color: var(--tmg-text);
	border-color: rgba(15, 118, 110, 0.14);
}

.tmg-auth-form {
	display: grid;
	gap: 1rem;
}

.tmg-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 700;
}

.tmg-auth-divider {
	position: relative;
	text-align: center;
	color: var(--tmg-muted);
	font-weight: 700;
}

.tmg-auth-divider::before {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	border-top: 1px solid var(--tmg-border);
}

.tmg-auth-divider span {
	position: relative;
	padding: 0 1rem;
	background: var(--tmg-surface);
}

.tmg-google-auth {
	display: grid;
	gap: 0.75rem;
}

.tmg-auth-notice {
	padding: 0.9rem 1rem;
	border-radius: 18px;
	font-weight: 700;
}

.tmg-auth-notice--error {
	background: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

.tmg-auth-notice--success {
	background: rgba(15, 118, 110, 0.1);
	color: var(--tmg-primary);
}

.tmg-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.08);
	font-size: 0.9rem;
	font-weight: 900;
}

.tmg-packages-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.tmg-package-card {
	display: grid;
	gap: 0.9rem;
	padding: 1.5rem;
	border-radius: 28px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 247, 239, 0.95));
	border: 1px solid var(--tmg-border);
	box-shadow: var(--tmg-shadow);
}

.tmg-package-card h2,
.tmg-package-card__price {
	margin: 0;
}

.tmg-package-card__price {
	font-size: 2rem;
	font-weight: 900;
	color: var(--tmg-primary);
}

.tmg-filter-form label {
	font-weight: 700;
}

.tmg-filter-form input,
.tmg-filter-form select,
.acf-form input[type="text"],
.acf-form input[type="number"],
.acf-form textarea,
.acf-form select {
	width: 100%;
	border: 1px solid var(--tmg-border);
	background: var(--tmg-surface-2);
	border-radius: 14px;
	padding: 0.85rem 1rem;
	color: var(--tmg-text);
}

.tmg-price-grid,
.tmg-grid,
.tmg-metrics-grid,
.tmg-specs-grid {
	display: grid;
	gap: 1rem;
}

.tmg-price-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmg-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tmg-home-featured-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	align-items: stretch;
}

.tmg-home-featured-grid--single {
	grid-template-columns: minmax(0, 440px);
	justify-content: center;
}

.tmg-home-featured-grid--double {
	grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.tmg-property-card {
	overflow: hidden;
	height: 100%;
}

.tmg-property-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #d7dee3;
}

.tmg-property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmg-price-pill,
.tmg-badge,
.tmg-location-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
}

.tmg-price-pill {
	position: absolute;
	inset: 1rem 1rem auto auto;
	background: rgba(30, 41, 59, 0.88);
	color: #fff;
	font-weight: 700;
}

.tmg-badge {
	background: rgba(15, 81, 50, 0.1);
	color: var(--tmg-primary);
	font-weight: 700;
}

.tmg-badge--soft {
	background: rgba(212, 175, 55, 0.18);
	color: #9f7b12;
}

.tmg-property-card__body,
.tmg-single-property__summary {
	padding: 1.35rem;
}

.tmg-property-card__title,
.tmg-card__title,
.tmg-single-property__summary h1 {
	margin: 0 0 0.5rem;
}

.tmg-property-card__excerpt,
.tmg-entry,
.tmg-location-badge,
.tmg-site-footer,
.tmg-empty-state p {
	color: var(--tmg-muted);
}

.tmg-feature-list,
.tmg-metrics-grid {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tmg-feature-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-weight: 700;
}

.tmg-feature-list li,
.tmg-home-stats span,
.tmg-project-card p,
.tmg-property-card__excerpt {
	word-break: break-word;
}

.tmg-metrics-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 1.25rem 0;
}

.tmg-metrics-grid li,
.tmg-specs-grid div {
	background: var(--tmg-surface-2);
	border: 1px solid var(--tmg-border);
	border-radius: 18px;
	padding: 1rem;
}

.tmg-metrics-grid strong,
.tmg-specs-grid strong,
.tmg-price-block {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
}

.tmg-price-block {
	color: var(--tmg-primary);
	margin-top: 0.75rem;
}

.tmg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.3rem;
	border-radius: 16px;
	border: none;
	font-weight: 800;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, filter 0.25s ease;
}

.tmg-button:hover {
	transform: translateY(-1px);
}

.tmg-button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 36%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.06) 64%, transparent 100%);
	transform: translateX(-140%);
	animation: tmg-button-glow 3.8s ease-in-out infinite;
	pointer-events: none;
}

.tmg-button__icon,
.tmg-button > span:not(.tmg-header-icon) {
	position: relative;
	z-index: 1;
}

.tmg-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	font-size: 0.95rem;
	line-height: 1;
}

.tmg-button--primary {
	background: linear-gradient(135deg, var(--tmg-primary), var(--tmg-primary-strong));
	color: #fff;
	box-shadow: 0 12px 30px rgba(15, 81, 50, 0.22);
}

.tmg-button--call {
	background: linear-gradient(135deg, #2458a6, #183a73);
	color: #fff;
	box-shadow: 0 12px 30px rgba(36, 88, 166, 0.24);
}

.tmg-button--call:hover {
	box-shadow: 0 18px 34px rgba(36, 88, 166, 0.3);
	filter: saturate(1.08);
}

.tmg-button--ghost {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(212, 175, 55, 0.34);
	color: var(--tmg-text);
}

.tmg-button--whatsapp {
	background: linear-gradient(135deg, #2ea86a, #1f7d57);
	color: #fff;
	box-shadow: 0 12px 30px rgba(34, 144, 90, 0.22);
}

.tmg-button--whatsapp:hover {
	box-shadow: 0 18px 34px rgba(34, 144, 90, 0.28);
	filter: saturate(1.05);
}

.tmg-site-footer {
	padding: 1.25rem 0 2rem;
}

.tmg-site-footer__card {
	padding: 1.5rem;
	border: 1px solid var(--tmg-border);
	border-radius: 32px;
	background:
		radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 24%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 246, 0.96));
	box-shadow: var(--tmg-shadow);
}

.tmg-site-footer__grid,
.tmg-site-footer__bottom,
.tmg-site-footer__actions {
	display: flex;
	gap: 1rem;
}

.tmg-site-footer__grid {
	align-items: start;
	justify-content: space-between;
}

.tmg-site-footer__brand,
.tmg-site-footer__column {
	display: grid;
	gap: 0.85rem;
}

.tmg-site-footer__brand {
	max-width: 320px;
}

.tmg-site-footer__logo {
	width: min(220px, 100%);
	height: auto;
}

.tmg-site-footer__column h2 {
	margin: 0;
	font-size: 1.08rem;
}

.tmg-site-footer__text {
	margin: 0;
	color: var(--tmg-muted);
}

.tmg-site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.tmg-site-footer__links a {
	color: var(--tmg-text);
	font-weight: 700;
}

.tmg-site-footer__links a:hover,
.tmg-site-footer__bottom a:hover {
	color: var(--tmg-primary);
}

.tmg-site-footer__actions {
	flex-wrap: wrap;
}

.tmg-site-footer__bottom {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tmg-border);
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.tmg-site-footer__bottom p {
	margin: 0;
	color: var(--tmg-muted);
}

.tmg-site-footer__bottom a {
	color: var(--tmg-text);
	font-weight: 800;
}

.tmg-single-property__hero,
.tmg-single-property__content {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.tmg-gallery__stage {
	position: relative;
	overflow: hidden;
	background: var(--tmg-surface);
	border-radius: var(--tmg-radius);
	border: 1px solid var(--tmg-border);
	aspect-ratio: 16 / 10;
}

.tmg-gallery__slide {
	display: none;
	width: 100%;
	height: 100%;
}

.tmg-gallery__slide.is-active {
	display: block;
}

.tmg-gallery__slide img,
.tmg-gallery__slide .wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmg-gallery__controls {
	display: flex;
	justify-content: space-between;
	margin-top: 0.75rem;
}

.tmg-icon-button {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--tmg-border);
	background: var(--tmg-surface);
	color: var(--tmg-text);
}

.tmg-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.tmg-gallery__thumb {
	padding: 0;
	border: 1px solid var(--tmg-border);
	border-radius: 16px;
	overflow: hidden;
	background: var(--tmg-surface);
}

.tmg-gallery__thumb.is-active {
	box-shadow: 0 0 0 2px var(--tmg-primary);
}

.tmg-gallery__thumb img {
	width: 100%;
	height: 80px;
	object-fit: cover;
}

.tmg-contact-panel {
	padding: 1.25rem;
}

.tmg-contact-actions {
	margin-top: 1rem;
	flex-wrap: wrap;
}

.tmg-specs-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmg-empty-state,
.tmg-placeholder {
	display: grid;
	place-items: center;
	text-align: center;
	min-height: 240px;
	padding: 2rem;
	border-radius: var(--tmg-radius);
	border: 1px dashed var(--tmg-border);
	background: var(--tmg-surface);
}

.tmg-placeholder--large {
	min-height: 100%;
}

.tmg-mobile-sticky-cta {
	position: sticky;
	bottom: 1rem;
	width: min(480px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0.75rem;
	background: rgba(7, 19, 26, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	justify-content: center;
}

.tmg-mobile-sticky-cta .tmg-button {
	flex: 1;
	min-height: 54px;
	border-radius: 18px;
	font-size: 1rem;
}

.tmg-mobile-sticky-cta .tmg-button__icon {
	font-size: 1rem;
}

@keyframes tmg-button-glow {
	0%,
	100% {
		transform: translateX(-140%);
		opacity: 0.18;
	}
	50% {
		transform: translateX(140%);
		opacity: 0.72;
	}
}

.acf-form .acf-fields > .acf-field {
	border-top-color: var(--tmg-border);
	padding-inline: 0;
}

.acf-form .acf-label label {
	font-weight: 700;
	color: var(--tmg-text);
}

@media (min-width: 861px) {
	.tmg-mobile-sticky-cta {
		display: none;
	}
}

@media (max-width: 860px) {
	.tmg-site-header__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0.75rem;
	}

	.tmg-brand {
		grid-column: 1;
		width: auto;
		justify-items: start;
	}

	.tmg-menu-toggle {
		grid-column: 2;
		grid-row: 1;
		display: inline-flex;
		justify-self: end;
	}

	.tmg-mobile-menu {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		position: static;
	}

	.tmg-header-panel--desktop {
		display: none !important;
	}

	.tmg-mobile-menu:not([open]) .tmg-header-panel {
		display: none !important;
	}

	.tmg-mobile-menu[open] .tmg-header-panel {
		display: block !important;
		position: absolute;
		top: calc(100% + 0.35rem);
		right: 0;
		left: auto;
		width: min(320px, calc(100vw - 1rem));
	}

	.tmg-header-actions {
		width: 100%;
		padding: 0.9rem;
		border: 1px solid var(--tmg-border);
		border-radius: 22px;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 18px 40px rgba(30, 41, 59, 0.08);
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.7rem;
	}

	.tmg-agent-dashboard__actions,
	.tmg-agent-listing-card__actions {
		justify-content: stretch;
	}

	.tmg-archive-layout,
	.tmg-auth-shell,
	.tmg-home-hero__wrap,
	.tmg-payment-panel,
	.tmg-packages-grid,
	.tmg-agent-dashboard__hero,
	.tmg-agent-dashboard__reports,
	.tmg-single-property__hero,
	.tmg-single-property__content,
	.tmg-grid {
		grid-template-columns: 1fr;
	}

	.tmg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmg-home-featured-grid,
	.tmg-home-featured-grid--double,
	.tmg-home-featured-grid--single {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmg-metrics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmg-search-grid--primary,
	.tmg-search-grid--advanced {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmg-search-panel__header,
	.tmg-search-actions,
	.tmg-results-toolbar,
	.tmg-section-heading {
		flex-direction: column;
		align-items: stretch;
	}

	.tmg-site-footer__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	html[dir="rtl"] .tmg-nav__menu,
	body.is-rtl .tmg-nav__menu {
		flex-direction: column;
	}

	html[dir="rtl"] .tmg-site-header__inner,
	body.is-rtl .tmg-site-header__inner {
		grid-template-columns: 1fr auto;
	}

	html[dir="rtl"] .tmg-brand,
	body.is-rtl .tmg-brand {
		grid-column: 1;
		justify-items: start;
	}

	html[dir="rtl"] .tmg-mobile-menu,
	body.is-rtl .tmg-mobile-menu,
	html[dir="rtl"] .tmg-menu-toggle,
	body.is-rtl .tmg-menu-toggle {
		grid-column: 2;
		justify-self: end;
	}

	.tmg-home-search__grid,
	.tmg-projects-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmg-home-hero {
		padding-top: 1.25rem;
	}

	.tmg-home-hero__wrap {
		gap: 1rem;
	}

	.tmg-home-hero__content h1 {
		font-size: clamp(2rem, 7vw, 3.6rem);
		max-width: 11ch;
	}

	.tmg-home-hero__content,
	.tmg-home-hero__visual,
	.tmg-home-search,
	.tmg-home-stats,
	.tmg-section-heading {
		width: 100%;
	}

	.tmg-floating-badge--top,
	.tmg-floating-badge--bottom {
		position: static;
		max-width: none;
		margin-top: 1rem;
	}

	.tmg-home-hero__visual {
		max-width: 540px;
		margin-inline: auto;
	}
}

@media (max-width: 640px) {
	.tmg-container {
		width: min(100% - 1rem, 1180px);
	}

	.tmg-site-header {
		position: sticky;
		top: 0;
	}

	.tmg-site-header__inner {
		padding: 0.5rem 0;
		gap: 0.6rem;
		align-items: center;
	}

	.tmg-brand {
		width: auto;
		justify-items: start;
	}

	.tmg-brand__logo {
		width: min(150px, 64vw);
	}

	.tmg-header-actions .tmg-button,
	.tmg-header-actions .tmg-header-link {
		width: 100%;
		text-align: center;
		justify-content: center;
		min-height: 44px;
		padding: 0.72rem 0.9rem;
		font-size: 0.88rem;
	}

	.tmg-header-link {
		border: 1px solid var(--tmg-border);
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.82);
	}

	.tmg-menu-toggle {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.tmg-menu-toggle span {
		width: 18px;
	}

	.tmg-mobile-menu[open] .tmg-header-panel {
		top: calc(100% + 0.2rem);
		width: min(300px, calc(100vw - 1rem));
	}

	.tmg-header-actions {
		padding: 0.7rem;
		border-radius: 18px;
		gap: 0.55rem;
	}

	.tmg-header-icon {
		width: 1.35rem;
		height: 1.35rem;
		font-size: 0.82rem;
	}

	.tmg-grid,
	.tmg-price-grid,
	.tmg-metrics-grid,
	.tmg-specs-grid,
	.tmg-search-grid--primary,
	.tmg-search-grid--advanced,
	.tmg-range-group,
	.tmg-home-search__grid,
	.tmg-projects-grid {
		grid-template-columns: 1fr;
	}

	.tmg-site-footer__grid {
		grid-template-columns: 1fr;
	}

	.tmg-site-footer__card {
		padding: 1rem;
		border-radius: 24px;
	}

	.tmg-site-footer__bottom,
	.tmg-site-footer__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tmg-site-footer__actions .tmg-button {
		width: 100%;
	}

	.tmg-home-featured-grid,
	.tmg-home-featured-grid--double,
	.tmg-home-featured-grid--single {
		grid-template-columns: 1fr;
	}

	.tmg-hero,
	.tmg-card,
	.tmg-filter-card,
	.tmg-search-panel {
		padding: 1rem;
		border-radius: 20px;
	}

	.tmg-section {
		padding-bottom: 5rem;
	}

	.tmg-button--wide,
	.tmg-search-actions .tmg-button,
	.tmg-home-search__actions .tmg-button,
	.tmg-agent-listing-card__actions .tmg-button,
	.tmg-agent-listing-card__actions form,
	.tmg-agent-dashboard__actions .tmg-button {
		width: 100%;
	}

	.tmg-home-hero__content h1 {
		max-width: none;
		font-size: clamp(1.95rem, 10vw, 2.7rem);
		line-height: 1.12;
	}

	.tmg-home-hero__content p {
		font-size: 0.94rem;
	}

	.tmg-home-search {
		padding: 0.9rem;
		border-radius: 22px;
		gap: 0.85rem;
	}

	.tmg-home-search__tabs,
	.tmg-home-search__actions,
	.tmg-home-stats,
	.tmg-agent-dashboard__identity,
	.tmg-agent-listing-card__head {
		flex-direction: column;
		align-items: stretch;
	}

	.tmg-search-tab,
	.tmg-home-stats div {
		width: 100%;
	}

	.tmg-home-search__grid {
		gap: 0.75rem;
	}

	.tmg-home-hero {
		padding-top: 0.75rem;
	}

	.tmg-home-hero__content {
		gap: 0.8rem;
	}

	.tmg-home-hero__chips {
		gap: 0.55rem;
	}

	.tmg-hero-chip {
		padding: 0.5rem 0.75rem;
		font-size: 0.84rem;
	}

	.tmg-home-stats {
		gap: 0.75rem;
	}

	.tmg-home-stats div {
		min-width: 0;
		padding: 0.75rem 0.85rem;
		text-align: center;
	}

	.tmg-home-hero__visual {
		display: none;
	}

	.tmg-project-card {
		padding: 1rem;
		border-radius: 20px;
	}

	.tmg-project-card p {
		font-size: 0.92rem;
	}

	.tmg-property-card__media {
		aspect-ratio: 5 / 4;
	}

	.tmg-property-card__body,
	.tmg-single-property__summary {
		padding: 1rem;
	}

	.tmg-metrics-grid {
		gap: 0.75rem;
	}

	.tmg-mobile-sticky-cta {
		width: calc(100% - 1rem);
		bottom: 0.5rem;
	}
}

@media (max-width: 420px) {
	.tmg-container {
		width: calc(100% - 0.75rem);
	}

	.tmg-site-header__inner {
		padding: 0.45rem 0;
	}

	.tmg-brand__logo {
		width: min(138px, 62vw);
	}

	.tmg-menu-toggle {
		width: 40px;
		height: 40px;
	}

	.tmg-header-actions .tmg-button,
	.tmg-header-actions .tmg-header-link {
		min-height: 42px;
		padding: 0.68rem 0.82rem;
		font-size: 0.84rem;
	}

	.tmg-home-hero__eyebrow {
		font-size: 0.72rem;
		padding: 0.45rem 0.75rem;
	}

	.tmg-home-hero__content h1 {
		font-size: clamp(1.75rem, 9.6vw, 2.25rem);
	}

	.tmg-home-hero__content p {
		font-size: 0.9rem;
	}

	.tmg-home-hero__chips {
		display: none;
	}

	.tmg-home-search__tabs {
		gap: 0.55rem;
	}

	.tmg-search-tab {
		min-height: 46px;
		padding: 0.72rem 0.9rem;
		font-size: 0.9rem;
	}

	.tmg-field__label {
		font-size: 0.84rem;
	}

	.tmg-field input,
	.tmg-field select,
	.tmg-field textarea {
		min-height: 52px;
		padding: 0.8rem 0.9rem;
		font-size: 0.95rem;
	}

	.tmg-button {
		min-height: 48px;
		font-size: 0.94rem;
	}

	.tmg-home-stats strong {
		font-size: 1.05rem;
	}
}
