/* Realtique design layer (rtq-design.php). Everything is scoped under body.rtq-design, so removing the
   class switches the whole layer off. Loaded after theme + Elementor CSS. */

/* ---------- 1. Tokens: re-point the theme + Elementor kit variables at one palette ---------- */
body.rtq-design {
	--rtq-brand: #0e7c93;
	--rtq-brand-d: #0a6275;
	--rtq-brand-soft: #eef7f9;
	--rtq-ink: #14232b;
	--rtq-text: #34454e;
	--rtq-muted: #5a6b73;
	--rtq-line: #e2e9ec;
	--rtq-bg: #f5f8f9;
	--rtq-r: 12px;
	--rtq-r-s: 8px;
	--rtq-shadow: 0 1px 2px rgba(20, 35, 43, .05), 0 6px 20px rgba(20, 35, 43, .06);
	--rtq-shadow-h: 0 2px 4px rgba(20, 35, 43, .06), 0 12px 32px rgba(20, 35, 43, .10);
	--rtq-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wp-estate-main-color: var(--rtq-brand);
	--wp-estate-main-color-option: var(--rtq-brand);
	--wp-estate-second-color-option: var(--rtq-brand);
	--wp-estate-active-menu-font-color: var(--rtq-brand);
	--wp-estate-active-menu-font-color-option: var(--rtq-brand);
	--wp-estate-top-menu-hover-font-color: var(--rtq-brand);
	--wp-estate-menu-hover-back-color: var(--rtq-brand);
	--wp-estate-menu-hover-back-color-option: var(--rtq-brand);
	--wp-estate-transparent-menu-hover-font-color: var(--rtq-brand);
	--wp-estate-mobile-item-hover-back-color: var(--rtq-brand);
	--wp-estate-menu-font-color-option: var(--rtq-ink);
	--wp-estate-menu-items-color-option: var(--rtq-ink);
	--wp-estate-font-color: var(--rtq-text);
	--wp-estate-font-color-option: var(--rtq-text);
	--wp_estate_link_color-option: var(--rtq-brand);
	--wp_estate_headings_color: var(--rtq-ink);
	--wp_estate_breadcrumbs_font_color-option: var(--rtq-muted);
	--wp-estate-background-color: var(--rtq-bg);
	--wp_estate_content_back_color: var(--rtq-bg);
	--wp_estate_border_radius_corner: var(--rtq-r);
	--wp-estate-unit-border-color: var(--rtq-line);
	--wp-estate-card-unit-font-color: var(--rtq-muted);
	--wp_estate_card_details_image_color: var(--rtq-muted);
	--wp-estate-cssbox-shadow-elementor-option: var(--rtq-shadow);
	--wp-estate-top-bar-font-option: var(--rtq-muted);
	--wp-estate-footer-back-color-option: #10242c;
	--wp-estate-footer-copy-back-color-option: #0b1b21;
	--wp-estate-footer-font-color-option: #c3cfd4;
	--wp-estate-footer-copy-color-option: #9fb0b7;
	--wp_estate_footer_back_color: #10242c;
	--wp_estate_footer_copy_back_color: #0b1b21;
	--wp-estate-mobile-header-background-color: var(--rtq-ink);
	--wp-estate-mobile-menu-background-color: var(--rtq-ink);
	--e-global-color-primary: var(--rtq-brand);
	--e-global-color-secondary: var(--rtq-ink);
	--e-global-color-text: var(--rtq-text);
	--e-global-color-accent: var(--rtq-brand);
	--e-global-typography-primary-font-family: var(--rtq-font);
	--e-global-typography-secondary-font-family: var(--rtq-font);
	--e-global-typography-text-font-family: var(--rtq-font);
	--e-global-typography-accent-font-family: var(--rtq-font);
	--wp-estate-menu-font-family: var(--rtq-font);
	--wp-estate-card-unit-font-family: var(--rtq-font);
	--bs-font-sans-serif: var(--rtq-font);

	background: var(--rtq-bg);
	color: var(--rtq-text);
	font-family: var(--rtq-font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* Chinese / Japanese / Korean: keep the Noto CJK face from rtq-cjk-fonts.php first. */
html[lang^="zh"] body.rtq-design { --rtq-font: "Noto Sans SC", "Be Vietnam Pro", system-ui, sans-serif; }
html[lang^="ja"] body.rtq-design { --rtq-font: "Noto Sans JP", "Be Vietnam Pro", system-ui, sans-serif; }
html[lang^="ko"] body.rtq-design { --rtq-font: "Noto Sans KR", "Be Vietnam Pro", system-ui, sans-serif; }

/* One family everywhere (theme mixes Roboto, Poppins, Inter, Montserrat). Icon fonts excluded. */
body.rtq-design :is(h1, h2, h3, h4, h5, h6, p, a, li, td, th, label, input, select, textarea, button, span, div, strong, em, blockquote, figcaption, caption, dt, dd):not([class*="fa-"]):not([class^="fa"]):not([class*="eicon"]):not([class*="dashicons"]):not(.carousel-control-prev-icon):not(.carousel-control-next-icon) {
	font-family: var(--rtq-font) !important;
}
body.rtq-design :is(h1, h2, h3, h4, h5, h6, .entry-title) {
	color: var(--rtq-ink);
	font-weight: 600;
	letter-spacing: -.01em;
}
body.rtq-design .elementor-heading-title { font-weight: 600 !important; letter-spacing: -.01em; }
body.rtq-design h1, body.rtq-design .entry-title.single-title, body.rtq-design h1.entry-title { font-size: clamp(28px, 2.2vw + 16px, 40px); line-height: 1.2; }
body.rtq-design a { color: var(--rtq-brand); }
body.rtq-design a:hover { color: var(--rtq-brand-d); }
body.rtq-design :is(strong, b) { font-weight: 600; }

/* Visible focus for keyboard users everywhere. */
body.rtq-design :is(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--rtq-brand) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(14, 124, 147, .18) !important;
}

/* ---------- 2. Elementor entrance animations: content was invisible until scrolled (900 px blank) ---------- */
body.rtq-design .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}
body.rtq-design .elementor-element.animated { animation: none !important; }

/* ---------- 3. Buttons: one primary (teal) + one secondary (outline) ---------- */
body.rtq-design :is(.wpresidence_button, .elementor-button, .rtq-btn-main, input[type="submit"], button[type="submit"], .wpcf7-submit, .agent_submit_class, #submit_compare, .is-search-submit):not(.wpresidence_button_inverse):not(.slick-arrow) {
	background: var(--rtq-brand) !important;
	border: 1px solid var(--rtq-brand) !important;
	color: #fff !important;
	border-radius: var(--rtq-r-s) !important;
	font-weight: 600 !important;
	font-size: 15px;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
	background-image: none !important;
	transition: background-color .15s, border-color .15s;
}
body.rtq-design :is(.wpresidence_button, .elementor-button, .rtq-btn-main, input[type="submit"], button[type="submit"], .agent_submit_class):not(.wpresidence_button_inverse):hover {
	background: var(--rtq-brand-d) !important;
	border-color: var(--rtq-brand-d) !important;
	color: #fff !important;
}
/* Transparent Elementor buttons ("Read more" on cards) → secondary outline. */
body.rtq-design .elementor-button[style*="transparent"],
body.rtq-design .elementor-widget-button.rtq-ghost .elementor-button,
body.rtq-design :is(.wpresidence_button_inverse, .rtq-btn:not(.rtq-btn-main)) {
	background: #fff !important;
	color: var(--rtq-brand) !important;
	border: 1px solid var(--rtq-brand) !important;
	border-radius: var(--rtq-r-s) !important;
	font-weight: 600 !important;
}
body.rtq-design :is(.wpresidence_button_inverse, .rtq-btn:not(.rtq-btn-main)):hover { background: var(--rtq-brand-soft) !important; color: var(--rtq-brand-d) !important; }
body.rtq-design .rtq-btn { padding: 12px 18px; border-radius: var(--rtq-r-s); }

/* ---------- 4. Forms ---------- */
body.rtq-design :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea, .form-control, .form-select, .filter_menu_trigger) {
	border: 1px solid #d3dde1 !important;
	border-radius: var(--rtq-r-s) !important;
	background-color: #fff;
	color: var(--rtq-ink) !important;
	box-shadow: none !important;
	font-size: 15px;
}
body.rtq-design :is(input, select, textarea, .form-control):focus { border-color: var(--rtq-brand) !important; }
body.rtq-design ::placeholder { color: var(--rtq-muted) !important; opacity: 1; }

/* ---------- 5. Header ---------- */
/* Top bar: keep email + phone/WhatsApp, drop the social icons and the second search box. */
body.rtq-design .top_bar_wrapper { background: #fff !important; border-bottom: 1px solid var(--rtq-line) !important; }
body.rtq-design .top_bar { min-height: 36px; }
body.rtq-design .top_bar .left-top-widet,
body.rtq-design .top_bar .is-search-form,
body.rtq-design .top_bar .widget_is_search { display: none !important; }
body.rtq-design .top_bar, body.rtq-design .top_bar a { color: var(--rtq-text) !important; font-size: 13px; }
body.rtq-design .top_bar .right-top-widet { margin-left: auto; }
body.rtq-design .master_header, body.rtq-design .header_wrapper { background: #fff !important; }
body.rtq-design .master_header { border-bottom: 1px solid var(--rtq-line); }
body.rtq-design .wpresidence-navigation-menu .menu-item-link,
body.rtq-design .wpresidence-navigation-menu > ul > li > a { font-size: 14px !important; font-weight: 500 !important; color: var(--rtq-ink) !important; }
body.rtq-design .wpresidence-navigation-menu > ul > li.current-menu-item > a,
body.rtq-design .wpresidence-navigation-menu > ul > li > a:hover { color: var(--rtq-brand) !important; }
body.rtq-design .wpresidence-navigation-menu .sub-menu {
	border-radius: var(--rtq-r) !important;
	box-shadow: var(--rtq-shadow-h) !important;
	border: 1px solid var(--rtq-line) !important;
	overflow: hidden;
}
/* Header advanced search bar: home already has the hero search card. */
body.rtq-design.home #search_wrapper { display: none !important; }
body.rtq-design #search_wrapper:not(.search_wr_elementor) { background: #fff; border-bottom: 1px solid var(--rtq-line); }

/* ---------- 6. Cards (blog + property + widgets) ---------- */
body.rtq-design :is(.blog_unit, .property_listing, .agent_unit, .wpresidence_agent_unit_wrapper .agent_unit) {
	background: #fff !important;
	border: 1px solid var(--rtq-line) !important;
	border-radius: var(--rtq-r) !important;
	box-shadow: var(--rtq-shadow) !important;
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
body.rtq-design :is(.blog_unit, .property_listing):hover { box-shadow: var(--rtq-shadow-h) !important; transform: translateY(-2px); }
body.rtq-design :is(.blog_unit_image, .listing-unit-img-wrapper, .property_media) img { border-radius: 0 !important; }
body.rtq-design .blog_unit { display: flex; flex-direction: column; height: 100%; }
body.rtq-design .blog_unit_image { margin: 0 !important; border-radius: 0 !important; overflow: hidden; }
body.rtq-design .blog_unit_image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; display: block; }
body.rtq-design .blog_unit h4 { margin: 18px 0 6px !important; padding: 0 20px !important; }
body.rtq-design .blog_unit_title {
	color: var(--rtq-ink) !important;
	font-size: 18px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
body.rtq-design .blog_unit_title:hover { color: var(--rtq-brand) !important; }
body.rtq-design .blog_unit_meta { height: auto !important; margin: 0 0 8px !important; padding: 0 20px !important; color: var(--rtq-muted) !important; font-size: 13px !important; }
body.rtq-design .blog_unit .listing_details {
	margin: 0 0 4px !important; padding: 0 20px !important; color: var(--rtq-text) !important; font-size: 15px !important; line-height: 1.6 !important;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.rtq-design .blog_unit .listing_details a { display: none; } /* stray "[…]" link inside the excerpt */
body.rtq-design .blog_unit .read_more { position: static !important; margin-top: auto !important; display: inline-flex; align-items: center; gap: 6px; padding: 14px 20px 20px; margin-left: 0 !important; font-weight: 600; font-size: 14px; color: var(--rtq-brand) !important; min-height: 24px; }

body.rtq-design .property_listing h4, body.rtq-design .property_listing h4 a { color: var(--rtq-ink) !important; font-weight: 600 !important; font-size: 17px !important; line-height: 1.35 !important; }
body.rtq-design .listing_unit_price_wrapper { color: var(--rtq-brand) !important; font-weight: 600 !important; font-size: 18px !important; }
body.rtq-design .property_listing .listing_details { color: var(--rtq-muted) !important; font-size: 14px !important; line-height: 1.55 !important; }
body.rtq-design .property_listing_details { color: var(--rtq-text) !important; }
body.rtq-design .property_agent_wrapper, body.rtq-design .property_listing .listing_actions { border-color: var(--rtq-line) !important; }
body.rtq-design :is(.action_tag_wrapper, .status-wrapper .action_tag_wrapper, .featured_div, .property_title_label, .ribbon-inside) {
	background: var(--rtq-brand) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 12px !important;
	letter-spacing: .02em;
}
body.rtq-design .property_title_label a { color: #fff !important; }
body.rtq-design .property_title_label { padding: 4px 12px !important; }
body.rtq-design .property_title_label.actioncat { background: var(--rtq-brand-soft) !important; }
body.rtq-design .property_title_label.actioncat a { color: var(--rtq-brand-d) !important; }

/* Sidebar widgets as quiet cards */
body.rtq-design #primary .widget-container {
	background: #fff !important;
	border: 1px solid var(--rtq-line) !important;
	border-radius: var(--rtq-r) !important;
	box-shadow: none !important;
	padding: 24px !important;
	margin-bottom: 24px !important;
}
body.rtq-design #primary :is(.widget-title-sidebar, .wp-block-heading) { font-size: 20px !important; margin: 0 0 16px !important; color: var(--rtq-ink) !important; }
body.rtq-design #primary a { color: var(--rtq-ink); }
body.rtq-design #primary a:hover { color: var(--rtq-brand); }
body.rtq-design #primary .wp-block-latest-posts li { margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
body.rtq-design #primary .wp-block-latest-posts__featured-image img { border-radius: var(--rtq-r-s); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; margin-bottom: 8px; }
body.rtq-design #primary .wpp-list li { font-size: 14px; line-height: 1.45; }
body.rtq-design #primary .wpp-list img { border-radius: 6px; }

/* Content boxes (archive wrappers, single post article, listing panels) */
body.rtq-design :is(.single-content, .wpestate_column_content .property-panel, #tab_prpg, .agent_contanct_form, .wpestate_contact_form_parent, .contact-wrapper, .single-content.single-blog) {
	border-radius: var(--rtq-r) !important;
	box-shadow: none !important;
}
body.rtq-design .breadcrumb, body.rtq-design .breadcrumb a, body.rtq-design .breadcrumb li { color: var(--rtq-muted) !important; font-size: 13px !important; }
body.rtq-design .breadcrumb .active { color: var(--rtq-text) !important; }

/* Pagination */
body.rtq-design .pagination { gap: 6px; flex-wrap: wrap; }
body.rtq-design .pagination li a, body.rtq-design .pagination li span {
	min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--rtq-r-s) !important; border: 1px solid var(--rtq-line) !important; background: #fff !important; color: var(--rtq-ink) !important; font-weight: 500;
}
body.rtq-design .pagination li { background: transparent !important; border: 0 !important; }
body.rtq-design .pagination li.active a, body.rtq-design .pagination li.active span, body.rtq-design .pagination li a:hover {
	background: var(--rtq-brand) !important; border-color: var(--rtq-brand) !important; color: #fff !important;
}

/* ---------- 7. Article (single post) ---------- */
body.rtq-design .single-content.single-blog { padding: 40px clamp(20px, 5vw, 56px) 48px !important; border: 1px solid var(--rtq-line) !important; background: #fff; }
body.rtq-design .single-blog > :is(p, ul, ol, h2, h3, h4, blockquote, figure, table, .rtq-cta-box, .meta-info, h1),
body.rtq-design .single-blog .elementor-widget-container > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 720px; }
body.rtq-design .single-blog :is(p, li) { font-size: 18px; line-height: 1.7; color: var(--rtq-text); }
body.rtq-design .single-blog p { margin: 0 0 1.15em; }
body.rtq-design .single-blog li { margin-bottom: .45em; }
body.rtq-design .single-blog :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.3em; }
body.rtq-design .single-blog h2 { font-size: clamp(23px, 1vw + 16px, 28px); line-height: 1.3; margin: 1.9em 0 .6em; }
body.rtq-design .single-blog h3 { font-size: clamp(19px, .6vw + 15px, 22px); line-height: 1.35; margin: 1.6em 0 .5em; }
body.rtq-design .single-blog h1.entry-title { margin: 28px 0 12px; }
body.rtq-design .single-blog p a, body.rtq-design .single-blog li a { text-decoration: underline; text-decoration-color: rgba(14, 124, 147, .35); text-underline-offset: 3px; }
body.rtq-design .single-blog p a:hover { text-decoration-color: currentColor; }

/* Meta line: "Posted by … on …" + category chip; "0 Comments" hidden (comments are off). */
body.rtq-design .meta-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 28px !important; padding: 0 0 20px; border-bottom: 1px solid var(--rtq-line); }
body.rtq-design .meta-info .meta-element { margin: 0 !important; padding: 0 !important; font-size: 14px !important; color: var(--rtq-muted) !important; display: inline-flex; align-items: center; gap: 6px; }
body.rtq-design .meta-info .meta-element:has(.fa-comment) { display: none !important; }
body.rtq-design .meta-info .meta_icon { display: none !important; }
body.rtq-design .meta-info .meta-element a { background: var(--rtq-brand-soft); color: var(--rtq-brand-d) !important; padding: 4px 12px; border-radius: 999px; font-weight: 500; text-decoration: none; }

/* Featured image slider: one calm 16:9 frame, no tall crop on phones. */
body.rtq-design .post-carusel { border-radius: var(--rtq-r); overflow: hidden; }
body.rtq-design .post-carusel .carousel-item img { width: 100%; aspect-ratio: 16 / 9; height: auto !important; object-fit: cover; }
body.rtq-design .post-carusel .carousel-caption { left: 0; right: 0; bottom: 0; padding: 8px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); font-size: 12px; text-align: left; }
body.rtq-design .post-carusel .carousel-indicators { margin-bottom: 10px; }

/* Tables: zebra, quiet borders, scroll inside their own box on small screens. */
body.rtq-design .single-blog table {
	width: 100%; max-width: 720px; border-collapse: collapse; margin: 8px 0 28px; font-size: 15px; line-height: 1.5;
	border: 1px solid var(--rtq-line); border-radius: var(--rtq-r-s); overflow: hidden;
}
body.rtq-design .single-blog :is(th, td) { padding: 10px 14px !important; border: 0 !important; border-bottom: 1px solid var(--rtq-line) !important; text-align: left; vertical-align: top; color: var(--rtq-text); }
body.rtq-design .single-blog thead th, body.rtq-design .single-blog tr:first-child th { background: var(--rtq-brand-soft); color: var(--rtq-ink); font-weight: 600; font-size: 14px; }
body.rtq-design .single-blog tbody tr:nth-child(even) td { background: #f8fafb; }
body.rtq-design .single-blog table caption { caption-side: bottom; padding: 10px 2px 0; font-size: 13px; color: var(--rtq-muted); text-align: left; }

/* Blockquotes, figures */
body.rtq-design .single-blog blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rtq-brand); background: none; font-size: 19px; color: var(--rtq-ink); }
body.rtq-design .single-blog blockquote p { font-size: inherit; color: inherit; margin-bottom: .5em; }
body.rtq-design .single-blog :is(figure, .wp-caption) { margin: 28px 0; max-width: 100%; }
body.rtq-design .single-blog :is(figure, .wp-caption, p) img { border-radius: var(--rtq-r-s); height: auto; max-width: 100%; }
body.rtq-design .single-blog :is(figcaption, .wp-caption-text) { font-size: 13px !important; line-height: 1.5; color: var(--rtq-muted) !important; margin-top: 8px; }

/* Enquiry boxes from rtq-lead-cta.php as proper cards */
body.rtq-design .rtq-cta-box {
	position: relative; margin: 40px 0 12px; padding: 28px 28px 24px;
	border: 1px solid #cfe4e9; border-left: 1px solid #cfe4e9; border-radius: 14px;
	background: linear-gradient(135deg, #f2fafb 0%, #fff 70%);
	box-shadow: var(--rtq-shadow);
}
body.rtq-design .rtq-cta-box::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--rtq-brand); }
body.rtq-design .rtq-cta-box .rtq-cta-h { font-size: 21px !important; line-height: 1.3 !important; color: var(--rtq-ink); margin: 0 0 8px; font-weight: 600; }
body.rtq-design .rtq-cta-box p { font-size: 16px; line-height: 1.6; }
body.rtq-design .rtq-cta-mid { margin: 36px 0; }
body.rtq-design .rtq-cta-btns { gap: 10px !important; }
body.rtq-design .rtq-cta-btns .rtq-btn { min-height: 46px; display: inline-flex; align-items: center; text-decoration: none !important; }

/* Social share row at the end of articles */
body.rtq-design .single-blog .prop_social_single, body.rtq-design .single-blog .single_social_share { display: flex; gap: 8px; }
body.rtq-design .single-blog [class^="share_"] { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rtq-line); border-radius: 50%; color: var(--rtq-muted) !important; text-decoration: none !important; }

/* ---------- 8. Listing (single estate_property) ---------- */
body.rtq-design .wpresidence_property_page_title_area { padding-top: 8px; }
@media (min-width: 768px) {
	body.rtq-design .wpresidence_property_page_title_area { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: start; }
	body.rtq-design .wpresidence_property_page_title_area > .single_property_labels { grid-column: 1; grid-row: 1; }
	body.rtq-design .wpresidence_property_page_title_area > .entry-title { grid-column: 1; grid-row: 2; margin: 0 !important; }
	body.rtq-design .wpresidence_property_page_title_area > .price_area { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; margin: 0 !important; }
	body.rtq-design .wpresidence_property_page_title_area > .property_categs { grid-column: 1; grid-row: 3; margin: 0 !important; }
	body.rtq-design .wpresidence_property_page_title_area > .prop_social { grid-column: 2; grid-row: 3; justify-self: end; margin: 0 !important; }
}
body.rtq-design .price_area .second_price_area:empty, body.rtq-design .price_area .second_price_area:not(:has(:not(:empty))) { display: none; }
body.rtq-design .entry-title.entry-prop { font-size: clamp(24px, 1.4vw + 16px, 34px) !important; line-height: 1.25 !important; }
body.rtq-design .price_area { color: var(--rtq-brand) !important; font-weight: 600 !important; font-size: clamp(22px, 1vw + 16px, 28px) !important; }
body.rtq-design .price_area .price_label { color: var(--rtq-muted) !important; font-weight: 500; font-size: .62em; }
body.rtq-design .property_categs { color: var(--rtq-muted) !important; font-size: 14px !important; }
body.rtq-design .prop_social { gap: 8px; }
body.rtq-design .single_property_action {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px !important;
	border: 1px solid var(--rtq-line) !important; border-radius: 999px !important; background: #fff !important;
	color: var(--rtq-ink) !important; font-size: 13px !important; font-weight: 500 !important; box-shadow: none !important;
}
body.rtq-design .single_property_action:hover { border-color: var(--rtq-brand) !important; color: var(--rtq-brand) !important; }
body.rtq-design .wpestate_property_slider_thing, body.rtq-design .property_slider_wrapper,
body.rtq-design #carousel-listing, body.rtq-design .carousel-listing { border-radius: var(--rtq-r); overflow: hidden; }
body.rtq-design .carousel-indicators-wrapper img, body.rtq-design .carousel-indicators img { border-radius: 6px; }

/* Description / Address / Details tabs: quiet underline tabs instead of solid teal blocks. */
body.rtq-design #tab_prpg { background: #fff; border: 1px solid var(--rtq-line); overflow: hidden; }
body.rtq-design #tab_prpg .nav-tabs { border: 0 !important; border-bottom: 1px solid var(--rtq-line) !important; padding: 0 16px; gap: 4px; background: #fff; }
body.rtq-design #tab_prpg .nav-link {
	background: transparent !important; color: var(--rtq-muted) !important; border: 0 !important; border-bottom: 2px solid transparent !important;
	border-radius: 0 !important; font-weight: 600 !important; font-size: 15px !important; padding: 16px 14px 14px !important; min-height: 48px;
}
body.rtq-design #tab_prpg .nav-link.active, body.rtq-design #tab_prpg .nav-link:hover { color: var(--rtq-brand) !important; border-bottom-color: var(--rtq-brand) !important; }
body.rtq-design #tab_prpg .tab-content { padding: 8px 4px !important; }
body.rtq-design #tab_prpg .tab-content :is(p, li) { font-size: 16px; line-height: 1.7; color: var(--rtq-text); }
body.rtq-design #tab_prpg .tab-content h2 { font-size: 22px; margin: 1.4em 0 .5em; }
body.rtq-design #tab_prpg .tab-content h2:first-child { margin-top: 0; }

body.rtq-design .property-panel { border: 1px solid var(--rtq-line) !important; border-radius: var(--rtq-r) !important; overflow: hidden; background: #fff; }
body.rtq-design .property-panel .accordion-button { font-size: 18px !important; font-weight: 600 !important; color: var(--rtq-ink) !important; background: #fff !important; box-shadow: none !important; }

/* Agent / enquiry box on listings */
body.rtq-design :is(.agent_contanct_form, .property_page_container .agent_contanct_form, #agent_contact_form_wrapper, .wpestate_single_agent_details_header_wrapper) { border-radius: var(--rtq-r) !important; }
body.rtq-design .realtor-contact-buttons .wpresidence_button { min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
body.rtq-design #primary .nav-tabs .nav-link { color: var(--rtq-muted) !important; font-weight: 600 !important; border: 0 !important; border-bottom: 2px solid transparent !important; background: transparent !important; }
body.rtq-design #primary .nav-tabs .nav-link.active { color: var(--rtq-brand) !important; border-bottom-color: var(--rtq-brand) !important; }
body.rtq-design .agent_unit img, body.rtq-design .property_agent_image { border-radius: var(--rtq-r-s); }

/* ---------- 9. Home ---------- */
/* Hero headline in ink, a touch tighter. */
body.rtq-design.home .elementor-top-section:first-of-type .elementor-heading-title { color: var(--rtq-ink) !important; }
body.rtq-design .search_wr_elementor { border-radius: 14px !important; box-shadow: var(--rtq-shadow-h) !important; }
/* Lilac panels and the navy band (Elementor template colours, same IDs on en/vi/zh) → brand tints. */
body.rtq-design :is(.elementor-element-2d862df, .elementor-element-156ad3f) > .elementor-widget-wrap { background-color: var(--rtq-brand-soft) !important; }
body.rtq-design .elementor-element-3a3b005 > .elementor-background-overlay { background-color: #10242c !important; opacity: .94 !important; }
/* "Read more" text buttons inside the dark band: light-teal links, not teal blocks. */
body.rtq-design .elementor-element-3a3b005 .elementor-icon-box-wrapper ~ * .elementor-button,
body.rtq-design .elementor-element-3a3b005 .elementor-inner-section .elementor-button {
	background: transparent !important; border: 0 !important; color: #8fdbe9 !important; padding: 10px 4px !important; min-height: 44px; display: inline-flex; align-items: center;
}
body.rtq-design .elementor-element-3a3b005 .elementor-inner-section .elementor-button:hover { color: #fff !important; text-decoration: underline; }
body.rtq-design .elementor-element-3a3b005 img { filter: hue-rotate(-28deg) saturate(.85) brightness(1.25); }
body.rtq-design .elementor-element-3a3b005 .elementor-icon-box-wrapper,
body.rtq-design .elementor-element-3a3b005 .elementor-column .elementor-widget-wrap { border-radius: var(--rtq-r); }
body.rtq-design .elementor-widget-video .elementor-wrapper { border-radius: var(--rtq-r); overflow: hidden; }
/* Hand-written HTML widgets (zh home hero card, agent cards) use the old light cyan #4fc6e0 with white text (2:1). */
body.rtq-design [style*="#4fc6e0" i]:is(a, button, div, span) { background: var(--rtq-brand) !important; color: #fff !important; }
body.rtq-design span[style*="#9aca3c" i] { color: var(--rtq-brand) !important; }
/* Video play rings and decorative tints used Elementor's lilac / bright blue. */
body.rtq-design .elementor-icon { color: var(--rtq-brand) !important; border-color: var(--rtq-brand) !important; }
body.rtq-design .slick-arrow { background: #fff !important; border: 1px solid var(--rtq-line) !important; color: var(--rtq-ink) !important; border-radius: 50% !important; }

/* ---------- 10. Footer ---------- */
body.rtq-design #colophon { background: #10242c !important; color: #c3cfd4; }
body.rtq-design #colophon :is(a, p, li, span) { color: #c3cfd4 !important; font-size: 14px; }
body.rtq-design #colophon a:hover { color: #fff !important; }
body.rtq-design #colophon .widget-title-footer { color: #fff !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: .02em; margin-bottom: 16px !important; }
body.rtq-design .sub_footer, body.rtq-design .sub_footer_content { background: #0b1b21 !important; }
body.rtq-design .sub_footer :is(a, p, span, div) { color: #9fb0b7 !important; font-size: 13px; }
body.rtq-design #footer-widget-area { padding-top: 56px; padding-bottom: 32px; }

/* ---------- 11. Phones ---------- */
@media (max-width: 767px) {
	body.rtq-design .single-content.single-blog { padding: 20px 18px 32px !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
	body.rtq-design .single-blog :is(p, li) { font-size: 17px !important; line-height: 1.7 !important; }
	body.rtq-design .single-blog table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; font-size: 14px; }
	body.rtq-design .single-blog :is(th, td) { min-width: 110px; }
	body.rtq-design .rtq-cta-box { padding: 22px 18px 18px; }
	body.rtq-design .rtq-cta-btns .rtq-btn { flex: 1 1 auto; justify-content: center; }
	body.rtq-design .meta-info { gap: 8px 12px; }
	body.rtq-design .blog_unit_title { font-size: 17px !important; }
	body.rtq-design .pagination li a, body.rtq-design .pagination li span { min-width: 44px; height: 44px; }
	body.rtq-design .rtq-cta-bar a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--rtq-r-s); }
	body.rtq-design #tab_prpg .nav-tabs { padding: 0 6px; flex-wrap: nowrap; overflow-x: auto; }
	body.rtq-design #tab_prpg .nav-link { padding: 14px 10px 12px !important; white-space: nowrap; }
}

/* ---------- 12. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	body.rtq-design *, body.rtq-design *::before, body.rtq-design *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	body.rtq-design :is(.blog_unit, .property_listing):hover { transform: none; }
}

/* 12-06 Ed: "Add Listing" button (logged-in only; mobile menu + header) had text and background in the same colour. */
body.rtq-design a.submit_listing,
body.rtq-design .mobilex-menu a.submit_listing,
body.rtq-design .wpresidence_submit_button_wrapper a {
  background: #0e7c93 !important; color: #fff !important; border: 1px solid #0e7c93 !important;
  border-radius: 8px; padding: 10px 16px; line-height: 1.2; text-align: center; display: inline-block;
}
body.rtq-design a.submit_listing:hover,
body.rtq-design a.submit_listing:focus,
body.rtq-design .wpresidence_submit_button_wrapper a:hover { background: #0a6275 !important; color: #fff !important; }
