/*
Theme Name: ارس میشو - قالب فرزند
Theme URI: https://arasmisho.ir
Template: real-estate-theme
Version: 1.0.7
Author: Samad Tekrari
Author URI: https://arasmisho.ir
Author Email: SAMADTEKRARI@OUTLOOK.COM
*/

:root {
    --background-color: #fff;
    --text-color: #333;
    --header-bg: rgba(255, 255, 255, 0.97);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --primary-color: #007bff;
}
.dark-mode {
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --header-bg: rgba(26, 26, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.5);
}
/* Logo visibility based on theme — پشتیبانی از هر دو روش dark-mode class و data-theme attribute */

/* تم روشن: لوگوی روشن نمایش داده می‌شه، تاریک مخفی */
body:not(.dark-mode) .am-logo-dark,
html:not([data-theme="dark"]) .am-logo-dark {
    display: none;
}

/* تم تاریک: لوگوی تاریک نمایش داده می‌شه، روشن مخفی */
body.dark-mode .am-logo-light,
html[data-theme="dark"] .am-logo-light {
    display: none;
}

/* اطمینان از نمایش صحیح در هر دو حالت — اندازه از Customizer کنترل می‌شه */
.am-logo-light,
.am-logo-dark {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}
.am-logo-light:hover,
.am-logo-dark:hover {
    opacity: 0.85;
}

/* Base & Typography */
body, html { margin-top: 0 !important; padding-top: 0 !important; }
body, body.dark-mode { background-color: var(--background-color); color: var(--text-color); transition: background-color 0.4s ease, color 0.4s ease; }
.rep-single-wrapper { direction: rtl; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); padding: 30px 0 60px; position: relative; overflow: visible; }

/* Header & Topbar */
.site-header, .am-header, #masthead, header.site-header, .header-main, #header {
    position: sticky !important; top: 0 !important; margin-top: 0 !important; z-index: 999 !important; width: 100%;
}
header.site-header { border-bottom: none !important; box-shadow: none !important; display: block; padding: 0; }
.site-header.is-scrolled { background-color: var(--header-bg); box-shadow: 0 2px 10px var(--shadow-color); }
.site-header.header-hidden { transform: translateY(-100%); }
.header-top, .header-main { background-color: transparent !important; border: none !important; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-top, .header-main, .header-top a, .header-main a, .header-main .search-toggle, .site-header .theme-toggle-btn, .site-branding .logo a { color: #fff !important; }
.site-branding .logo a { font-size: 24px; font-weight: bold; }
.admin-bar .site-header, .admin-bar .am-header { top: 32px !important; }
.am-topbar { background: #0f172a; color: #94a3b8; font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); animation: slideDownFade .5s ease both; }
.am-topbar__inner { display: flex; align-items: center; justify-content: flex-end; }
.am-topbar__contact { display: flex; gap: 20px; }
.am-topbar__item { display: inline-flex; align-items: center; gap: 5px; color: #94a3b8; text-decoration: none; transition: color .2s; direction: ltr; }
.am-topbar__item:hover { color: #f5c542; }
.am-header { background: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(0,0,0,.07); animation: slideDownFade .4s ease both; }
.am-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.am-header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.am-logo a { display: flex; align-items: center; text-decoration: none; }
.am-logo__img { max-height: 44px; width: auto; transition: opacity .2s; }
.am-logo__img:hover { opacity: .85; }
.am-logo__text { font-size: 20px; font-weight: 800; color: #1e293b; letter-spacing: -.01em; }

/* Navigation */
.am-nav { margin-right: auto; }
.am-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.am-nav__menu > li > a { display: block; padding: 8px 14px; color: #334155; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 8px; transition: background .2s, color .2s; position: relative; }
.am-nav__menu > li > a::after { content: ''; position: absolute; bottom: 4px; right: 14px; left: 14px; height: 2px; background: #f5c542; border-radius: 2px; transform: scaleX(0); transition: transform .25s ease; transform-origin: right; }
.am-nav__menu > li > a:hover, .am-nav__menu > li.current-menu-item > a { color: #0f172a; background: rgba(245, 197, 66, .1); }
.am-nav__menu > li > a:hover::after, .am-nav__menu > li.current-menu-item > a::after { transform: scaleX(1); }
.am-nav__menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 100; }
.am-nav__menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.am-nav__menu .sub-menu a { display: block; padding: 9px 14px; color: #475569; text-decoration: none; font-size: 13.5px; border-radius: 8px; transition: background .2s, color .2s; }
.am-nav__menu .sub-menu a:hover { background: rgba(245, 197, 66, .1); color: #0f172a; }
.nav-list > .menu-item > a { position: relative; text-decoration: none; transition: color 0.3s ease; }
.nav-list > .menu-item > a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.nav-list > .menu-item > a:hover::after, .nav-list > .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* Header Actions & Buttons */
.am-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.am-header__link { color: #475569; text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 6px 4px; transition: color .2s; }
.am-header__link:hover { color: #0f172a; }
.am-header__link--logout { color: #ef4444; }
.am-header__link--logout:hover { color: #b91c1c; }
.am-header__sep { color: #cbd5e1; font-size: 13px; }
.am-btn-submit { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: linear-gradient(135deg, #f5c542 0%, #f0a500 100%); color: #1e293b; font-size: 13.5px; font-weight: 700; border-radius: 10px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; box-shadow: 0 4px 14px rgba(245, 197, 66, .4); }
.am-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 197, 66, .5); filter: brightness(1.05); color: #1e293b; }
.am-btn-submit--full { width: 100%; justify-content: center; margin-top: 8px; }
.am-btn-add-property { background-color: #fca311; color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: bold; text-decoration: none; margin-left: 15px; transition: background-color 0.3s ease; display: inline-flex; align-items: center; }
.am-btn-add-property:hover { background-color: #e59400; color: #fff; }
.am-drawer__add-property { margin: 16px 20px 4px; justify-content: center; }
.theme-toggle-btn .icon-moon { display: none; }
.dark-mode .theme-toggle-btn .icon-moon { display: inline-block; }
.dark-mode .theme-toggle-btn .icon-sun { display: none; }
.am-progress-bar { position: absolute; bottom: 0; right: 0; height: 2px; width: 0%; background: linear-gradient(90deg, #f5c542, #f0a500); transition: width .1s linear; }

/* Mobile Menu Elements */
/* am-hamburger styles در ultra-modern.css تعریف شده‌اند (با کلاس‌های صحیح __line و is-active) */
.am-mobile-nav { position: fixed; top: 0; right: 0; width: min(320px, 85vw); height: 100svh; background: #fff; z-index: 1100; overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 40px rgba(0,0,0,.15); padding-bottom: 24px; }
.am-mobile-nav.is-open { transform: translateX(0); }
.am-mobile-nav__inner { padding: 24px 20px; }
.am-mobile-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.am-mobile-nav__menu a { display: block; padding: 12px 16px; color: #334155; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 10px; transition: background .2s, color .2s; }
.am-mobile-nav__menu a:hover, .am-mobile-nav__menu .current-menu-item > a { background: rgba(245, 197, 66, .12); color: #0f172a; }
.am-mobile-nav__menu .sub-menu { list-style: none; padding: 4px 0 4px 16px; margin: 0; }
.am-mobile-nav__menu .sub-menu a { font-size: 14px; color: #64748b; padding: 9px 14px; }
.am-mobile-nav__actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 6px; }
.am-mobile-nav__link { display: block; padding: 10px 16px; color: #475569; text-decoration: none; font-size: 14px; border-radius: 10px; transition: background .2s; }
.am-mobile-nav__link:hover { background: #f8fafc; color: #0f172a; }
.am-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; backdrop-filter: blur(3px); }
.am-mobile-overlay.is-open { opacity: 1; visibility: visible; }

/* Search Bar */
/* am-search-bar styles در ultra-modern.css تعریف شده‌اند */
.am-search-form { display: flex; gap: 0; border-radius: 12px; overflow: hidden; border: 1.5px solid #e2e8f0; background: #fff; transition: border-color .2s, box-shadow .2s; }
.am-search-form:focus-within { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245, 197, 66, .18); }
.am-search-form__input { flex: 1; border: none; outline: none; padding: 12px 18px; font-size: 14px; font-family: inherit; color: #1e293b; background: transparent; direction: rtl; }
.am-search-form__input::placeholder { color: #94a3b8; }
.am-search-form__btn { display: flex; align-items: center; justify-content: center; padding: 0 20px; background: linear-gradient(135deg, #f5c542, #f0a500); border: none; color: #1e293b; cursor: pointer; transition: filter .2s; }
.am-search-form__btn:hover { filter: brightness(1.07); }

/* Single Property Layout */
.rep-single-wrapper .rep-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid !important; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: stretch; }
.rep-single-wrapper .rep-main-content, .rep-single-wrapper .rep-sidebar { min-width: 0; position: relative; z-index: 20; }
.rep-single-wrapper .rep-sidebar { display: flex; flex-direction: column; }
/* قبلاً این باکس با aspect-ratio: 16/9 + object-fit: cover تصویر شاخص را
   همیشه از وسط کراپ می‌کرد. برای عکس‌هایی که عمودی (پرتره) گرفته شده‌اند یا
   ترکیب‌بندی نامتقارن دارند (مثلاً بیشتر آسمان در بالا و ساختمان در پایین)
   این کراپِ وسط‌چین، بخش اصلی/مهم عکس را می‌بریید و فقط آسمان/زمینه دیده
   می‌شد. حالا از یک پس‌زمینه‌ی بلور شده (از خودِ همان عکس) به‌علاوه‌ی
   object-fit: contain استفاده می‌شود تا کل تصویر شاخص، بدون بریده‌شدن هیچ
   بخشی، همیشه کامل نمایش داده شود. */
.rep-single-wrapper .rep-featured-image { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10); background: #f1f5f9; margin-bottom: 24px; transition: transform .35s ease, box-shadow .35s ease; animation: repFadeUp .55s ease both; aspect-ratio: 16 / 9; }
.rep-single-wrapper .rep-featured-image:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14); }
.rep-single-wrapper .rep-featured-image::before { content: ''; position: absolute; inset: 0; background-image: var(--rep-hero-bg, none); background-size: cover; background-position: center; filter: blur(28px) brightness(.85) saturate(1.15); transform: scale(1.15); z-index: 0; }
.rep-single-wrapper .rep-featured-image::after { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.18); z-index: 1; }
.rep-single-wrapper .rep-featured-image img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block; }
.rep-single-wrapper .rep-info-card { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); margin-bottom: 24px; border: 1px solid rgba(148, 163, 184, 0.14); animation: repFadeUp .55s ease both; }
.rep-single-wrapper .rep-info-card:nth-of-type(2) { animation-delay: .08s; }
.rep-single-wrapper .rep-info-card:nth-of-type(3) { animation-delay: .12s; }
.rep-single-wrapper .rep-info-card:nth-of-type(4) { animation-delay: .16s; }
.rep-single-wrapper .rep-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.rep-single-wrapper .property-title { margin: 0 0 10px; font-size: 28px; line-height: 1.4; font-weight: 800; color: #1e293b; }
.rep-single-wrapper .property-location { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-size: 15px; }
.rep-single-wrapper .price-badge { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5c542, #e2ac2f); color: #111827; font-weight: 800; padding: 12px 18px; border-radius: 16px; box-shadow: 0 10px 22px rgba(226, 172, 47, 0.28); white-space: nowrap; }
.rep-single-wrapper .section-title { margin: 0 0 18px; font-size: 22px; font-weight: 800; color: #334155; }
.rep-single-wrapper .property-description { color: #334155; line-height: 2.1; font-size: 16px; }
.rep-single-wrapper .property-description p { margin: 0 0 14px; }
.rep-single-wrapper .rep-features-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.rep-single-wrapper .rep-feature-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px 16px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.rep-single-wrapper .rep-feature-box:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); }
.rep-single-wrapper .rep-feature-box small { display: block; color: #64748b; margin-bottom: 8px; font-size: 13px; }
.rep-single-wrapper .rep-feature-box strong { display: block; color: #0f172a; font-size: 16px; font-weight: 800; }
.rep-single-wrapper .rep-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.rep-single-wrapper .rep-gallery-item { border-radius: 16px; overflow: hidden; background: #f1f5f9; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); aspect-ratio: 4 / 3; }
.rep-single-wrapper .rep-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rep-single-wrapper .rep-gallery-item:hover img { transform: scale(1.05); }

/* Property Map */
.rep-single-wrapper .property-map-section { padding-bottom: 20px; overflow: hidden; }
.rep-single-wrapper .property-map, .property-map { width: 100%; height: 420px; min-height: 320px; border-radius: 20px; overflow: hidden; background: #e2e8f0; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.property-map-error { width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; color: #991b1b; background: #fef2f2; font-size: 15px; font-weight: 600; text-align: center; padding: 24px; }
.am-map-marker.leaflet-div-icon, .am-map-marker { background: none !important; border: none !important; }

.am-marker { position: relative; display: block; width: 36px; height: 46px; }

.am-marker-pulse {
	position: absolute;
	left: 50%;
	bottom: 1px;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border-radius: 50%;
	background: rgba(214, 40, 57, 0.35);
	transform-origin: center;
	animation: amMarkerPulse 2.4s ease-out infinite;
	pointer-events: none;
}

.am-marker-pin {
	position: relative;
	z-index: 1;
	display: block;
	filter: drop-shadow(0 8px 10px rgba(214, 40, 57, 0.4)) drop-shadow(0 2px 4px rgba(15, 23, 42, 0.25));
	animation: amMarkerDrop .6s cubic-bezier(.34, 1.56, .64, 1) both;
	transition: transform .25s ease;
}

.am-marker:hover .am-marker-pin { transform: translateY(-3px) scale(1.05); }

@keyframes amMarkerPulse {
	0%   { transform: scale(.5); opacity: .85; }
	70%  { transform: scale(3.2); opacity: 0; }
	100% { opacity: 0; }
}

@keyframes amMarkerDrop {
	0%   { transform: translateY(-28px); opacity: 0; }
	60%  { transform: translateY(2px); opacity: 1; }
	100% { transform: translateY(0); opacity: 1; }
}
.leaflet-container { font-family: inherit; }

/* Visit Form (Sidebar) */
.rep-single-wrapper .rep-lister-card { position: relative; z-index: 31; background: #fff; border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 22px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); }
.rep-single-wrapper .rep-lister-card__eyebrow { display: block; font-size: 12px; color: #94a3b8; font-weight: 700; margin-bottom: 12px; }
.rep-single-wrapper .rep-lister-card__row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rep-single-wrapper .rep-lister-card__row img { border-radius: 50%; flex-shrink: 0; }
.rep-single-wrapper .rep-lister-card__info { min-width: 0; }
.rep-single-wrapper .rep-lister-card__name { display: block; font-size: 15.5px; font-weight: 800; color: #0f172a; }
.rep-single-wrapper .rep-lister-card__badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 20px; padding: 2px 10px; }
.rep-single-wrapper .rep-lister-card__badge.is-agent { color: #b7791f; background: linear-gradient(135deg, rgba(245,197,66,.22), rgba(226,172,47,.16)); }
.rep-single-wrapper .rep-lister-card__badge i { font-size: 10px; }
.rep-single-wrapper .rep-lister-card .btn-direct-call { width: 100%; }

.rep-single-wrapper .rep-sidebar > .visit-form-box:first-child { margin-top: -85px; }
.rep-single-wrapper .visit-form-box { position: -webkit-sticky !important; position: sticky !important; top: calc(var(--am-header-h, 72px) + 16px) !important; align-self: flex-start; z-index: 30; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 18px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); transition: box-shadow .25s ease, border-color .25s ease; isolation: isolate; overflow: hidden; }
.rep-single-wrapper .visit-form-box::before,
.rep-single-wrapper .visit-form-box::after { display: none; } /* حذف گرادیان چرخان دور کادر و درخشش پس‌زمینه برای ظاهر مینیمال */
.rep-single-wrapper .visit-form-box:hover { border-color: rgba(226, 232, 240, 0.9); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); } /* حذف حالت hover پرزرق‌وبرق (بلندشدن کادر + سایه بزرگ) */
.rep-single-wrapper .visit-form-box .form-title { position: relative; }
.rep-single-wrapper .visit-form-box .form-title::after { display: none; } /* حذف خط زیر عنوان */
.rep-single-wrapper .visit-form-box .m-input-group { animation: none; } /* حذف انیمیشن ورود تک‌تک فیلدها */
.rep-single-wrapper .visit-form-box .m-input-group:nth-of-type(1) { animation-delay: .15s; }
.rep-single-wrapper .visit-form-box .m-input-group:nth-of-type(2) { animation-delay: .22s; }
.rep-single-wrapper .visit-form-box .m-input-group:nth-of-type(3) { animation-delay: .29s; }
.rep-single-wrapper .visit-form-box .m-input-group:nth-of-type(4) { animation-delay: .36s; }
.rep-single-wrapper .visit-form-box .final-submit { position: relative; overflow: hidden; }
.rep-single-wrapper .visit-form-box .final-submit::after { display: none; } /* حذف افکت درخشش سوارشونده روی دکمه */
.rep-single-wrapper .visit-form-box .final-submit:not(:disabled) { animation: none; } /* حذف پالس مداوم دکمه ثبت */
.rep-single-wrapper .visit-form-box .visit-request-success { display: flex; align-items: center; gap: 10px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #15803d; border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 700; line-height: 1.7; text-align: center; justify-content: center; }
.rep-single-wrapper .visit-form-box .visit-request-success i { color: #16a34a; font-size: 18px; flex-shrink: 0; }
.rep-single-wrapper .visit-form-box .visit-availability-box { background: rgba(245, 197, 66, .12); border: 1px solid rgba(245, 197, 66, .4); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.7; color: #7a5c12; }
.rep-single-wrapper .visit-form-box .visit-availability-box strong { display: block; margin-bottom: 3px; color: #5c4409; font-size: 13px; }
.rep-single-wrapper .visit-form-box .visit-availability-box__note { margin-top: 3px; margin-inline-start: 6px; font-size: 11.5px; color: #8a6b1e; }
.rep-single-wrapper .visit-form-box .btn-send-otp, .rep-single-wrapper .visit-form-box .btn-verify-otp { position: relative; overflow: hidden; }
.rep-single-wrapper .visit-form-box .btn-send-otp::after, .rep-single-wrapper .visit-form-box .btn-verify-otp::after { display: none; } /* حذف افکت درخشش روی دکمه‌های ارسال/تایید کد */
.rep-single-wrapper .visit-form-box .otp-message.success { animation: none; }
.rep-single-wrapper .visit-form-box .form-title, .rep-single-wrapper .visit-form-box h2, .rep-single-wrapper .visit-form-box h3 { font-size: 17px; line-height: 1.4; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.rep-single-wrapper .visit-form-box .form-subtitle, .rep-single-wrapper .visit-form-box p { color: #64748b; font-size: 12.5px; line-height: 1.6; margin: 0 0 10px; }
.rep-single-wrapper .visit-form-box .m-input-group, .rep-single-wrapper .visit-form-box .form-group { margin-bottom: 10px; }
.rep-single-wrapper .visit-form-box input, .rep-single-wrapper .visit-form-box select, .rep-single-wrapper .visit-form-box textarea { width: 100%; height: 42px; box-sizing: border-box; border: 1px solid #dbe3ef; border-radius: 12px; background: #f8fafc; color: #0f172a; font-size: 13px; font-weight: 500; padding: 0 13px; outline: none; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.rep-single-wrapper .visit-form-box textarea { height: auto; min-height: 80px; padding-top: 10px; resize: vertical; }
.rep-single-wrapper .visit-form-box input:focus, .rep-single-wrapper .visit-form-box select:focus, .rep-single-wrapper .visit-form-box textarea:focus { background: #fff; border-color: #e2ac2f; box-shadow: 0 0 0 3px rgba(226, 172, 47, 0.16); }
.rep-single-wrapper .visit-form-box .phone-row, .rep-single-wrapper .visit-form-box .otp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rep-single-wrapper .visit-form-box button, .rep-single-wrapper .visit-form-box .btn-send-otp, .rep-single-wrapper .visit-form-box .btn-verify-otp, .rep-single-wrapper .visit-form-box .final-submit, .rep-single-wrapper .visit-form-box .btn-direct-call { height: 42px; border: none; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; transition: opacity .2s ease, background .2s ease; }
.rep-single-wrapper .visit-form-box .btn-send-otp, .rep-single-wrapper .visit-form-box .btn-verify-otp { padding: 0 16px; color: #fff; background: #0f172a; white-space: nowrap; }
.rep-single-wrapper .visit-form-box .btn-send-otp:hover, .rep-single-wrapper .visit-form-box .btn-verify-otp:hover { background: #1e293b; }
.rep-single-wrapper .visit-form-box .final-submit, .rep-single-wrapper .visit-form-box button[type="submit"] { width: 100%; margin-top: 4px; color: #111827; background: #f0b429; box-shadow: none; }
.rep-single-wrapper .visit-form-box .final-submit:hover, .rep-single-wrapper .visit-form-box button[type="submit"]:hover { background: #e2ac2f; }
.rep-single-wrapper .visit-form-box button:disabled, .rep-single-wrapper .visit-form-box .final-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.rep-single-wrapper .visit-form-box .otp-message, .rep-single-wrapper .visit-form-box .form-message { min-height: 0; margin-top: 8px; font-size: 12px; line-height: 1.6; color: #475569; text-align: center; }
.rep-single-wrapper .visit-form-box .otp-message.success, .rep-single-wrapper .visit-form-box .form-message.success { color: #16a34a; }
.rep-single-wrapper .visit-form-box .otp-message.error, .rep-single-wrapper .visit-form-box .form-message.error { color: #dc2626; }
.rep-single-wrapper .visit-form-box .btn-direct-call { width: 100%; margin-top: 6px; color: #fff; background: #16a34a; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-family: inherit; text-decoration: none; }
.rep-single-wrapper .visit-form-box .btn-direct-call:hover { background: #15803d; }
.rep-single-wrapper .visit-form-box .otp-timer { font-size: 11px; color: #94a3b8; margin-top: 4px; text-align: center; }
.rep-single-wrapper .visit-form-box .form-divider { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #94a3b8; font-size: 12px; }
.rep-single-wrapper .visit-form-box .form-divider::before, .rep-single-wrapper .visit-form-box .form-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.rep-single-wrapper .visit-form-box .agent-badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafc; border-radius: 12px; margin-bottom: 10px; border: 1px solid #e2e8f0; }
.rep-single-wrapper .visit-form-box .agent-badge img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rep-single-wrapper .visit-form-box .agent-badge__info { display: flex; flex-direction: column; gap: 2px; }
.rep-single-wrapper .visit-form-box .agent-badge__name { font-size: 13px; font-weight: 700; color: #1e293b; }
.rep-single-wrapper .visit-form-box .agent-badge__role { font-size: 12px; color: #64748b; }

/* Footer */
.am-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; direction: rtl; }
.am-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.am-footer__brand-desc { font-size: 14px; line-height: 2; margin: 14px 0 20px; color: #64748b; }
.am-footer__social { display: flex; gap: 10px; }
.am-footer__social-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.06); border-radius: 10px; color: #94a3b8; text-decoration: none; font-size: 16px; transition: background .2s, color .2s, transform .2s; }
.am-footer__social-link:hover { background: #f5c542; color: #0f172a; transform: translateY(-3px); }
.am-footer__col-title { font-size: 14px; font-weight: 700; color: #e2e8f0; margin: 0 0 18px; }
.am-footer__links, .am-footer__contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.am-footer__links a { color: #64748b; text-decoration: none; font-size: 13.5px; transition: color .2s, padding-right .2s; display: inline-block; }
.am-footer__links a:hover { color: #f5c542; padding-right: 4px; }
.am-footer__contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #64748b; direction: ltr; }
.am-footer__contact-item a { color: #64748b; text-decoration: none; transition: color .2s; }
.am-footer__contact-item a:hover { color: #f5c542; }
.am-footer__bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.am-footer__copy { font-size: 13px; color: #475569; }
.am-footer__bottom-links { display: flex; gap: 18px; }
.am-footer__bottom-links a { font-size: 13px; color: #475569; text-decoration: none; transition: color .2s; }
.am-footer__bottom-links a:hover { color: #f5c542; }

/* 404 Page */
body.error404 { display: block !important; }
.error404-main { direction: rtl; }
.error404-section { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%); }
.error404-box { text-align: center; max-width: 540px; width: 100%; background: #ffffff; border-radius: 32px; padding: 56px 44px; box-shadow: 0 2px 0 #e2e8f0, 0 20px 60px rgba(15, 23, 42, 0.09); border: 1px solid rgba(148, 163, 184, 0.18); animation: e404FadeUp .55s cubic-bezier(.22,.68,0,1.2) both; }
.error404-graphic { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 24px; user-select: none; }
.e404-digit { font-size: 100px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #f5c542 0%, #e2961a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: e404Bounce .6s cubic-bezier(.22,.68,0,1.2) both; }
.e404-digit:last-child { animation-delay: .08s; }
.e404-circle { display: flex; align-items: center; justify-content: center; width: 90px; height: 90px; border-radius: 50%; border: 10px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #f5c542, #e2961a) border-box; animation: e404Spin 10s linear infinite, e404Bounce .6s .04s cubic-bezier(.22,.68,0,1.2) both; position: relative; }
.e404-circle__inner { display: block; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f5c542, #e2961a); opacity: .25; }
.error404-title { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 12px; line-height: 1.5; }
.error404-desc { color: #64748b; font-size: 15px; line-height: 1.9; margin: 0 0 32px; }
.error404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.error404-btn-home, .error404-btn-back { display: inline-flex; align-items: center; gap: 7px; padding: 13px 26px; font-size: 14px; font-weight: 700; border-radius: 14px; text-decoration: none; cursor: pointer; border: none; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; font-family: inherit; }
.error404-btn-home { background: linear-gradient(135deg, #f5c542 0%, #e2961a 100%); color: #1e293b; box-shadow: 0 8px 22px rgba(245, 197, 66, 0.38); }
.error404-btn-home:hover, .error404-btn-home:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245, 197, 66, 0.48); color: #1e293b; text-decoration: none; }
.error404-btn-back { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.error404-btn-back:hover, .error404-btn-back:focus-visible { background: #e2e8f0; transform: translateY(-2px); color: #0f172a; text-decoration: none; }
.error404-search { margin-top: 32px; padding-top: 28px; border-top: 1px solid #f1f5f9; }
.error404-search-label { font-size: 13px; color: #94a3b8; margin: 0 0 12px; }
.error404-search-form { display: flex; border-radius: 14px; overflow: hidden; border: 1.5px solid #e2e8f0; background: #f8fafc; transition: border-color .2s, box-shadow .2s; }
.error404-search-form:focus-within { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18); background: #fff; }
.error404-search-input { flex: 1; border: none !important; outline: none !important; padding: 12px 16px !important; font-size: 14px !important; background: transparent !important; color: #1e293b !important; direction: rtl; font-family: inherit; box-shadow: none !important; height: auto !important; border-radius: 0 !important; }
.error404-search-input::placeholder { color: #94a3b8; }
.error404-search-btn { display: flex; align-items: center; justify-content: center; padding: 0 18px; background: linear-gradient(135deg, #f5c542, #e2961a); border: none; color: #1e293b; cursor: pointer; transition: filter .2s; height: auto; border-radius: 0 !important; font-family: inherit; }
.error404-search-btn:hover { filter: brightness(1.08); }

/* Animations */
@keyframes slideDownFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes repFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visitFormFloatIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes visitBorderFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes visitGlowFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, 18px) scale(1.18); } }
@keyframes visitUnderlineGrow { from { width: 0; opacity: 0; } to { width: 46px; opacity: 1; } }
@keyframes visitFieldIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visitSuccessPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes repPulse { 0%, 100% { box-shadow: 0 12px 25px rgba(226, 172, 47, 0.28); } 50% { box-shadow: 0 16px 32px rgba(226, 172, 47, 0.44); } }
@keyframes e404FadeUp { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes e404Bounce { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes e404Spin { to { transform: rotate(360deg); } }

/* Responsive Adjustments (Grouped) */
@media (max-width: 1024px) {
    .rep-single-wrapper .rep-container { grid-template-columns: 1fr; }
    .rep-single-wrapper .rep-sidebar > .visit-form-box:first-child { margin-top: 24px; }
    .rep-single-wrapper .rep-features-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .am-nav, .am-header__link, .am-header__sep { display: none; }
    .am-hamburger { display: flex; }
    .am-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 782px) {
    .admin-bar .site-header, .admin-bar .am-header { top: 46px !important; }
}
@media (max-width: 768px) {
    .rep-single-wrapper { padding: 20px 0 40px; }
    .rep-single-wrapper .rep-container { padding: 0 14px; gap: 20px; }
    .rep-single-wrapper .rep-info-card { padding: 20px 18px; border-radius: 18px; }
    .rep-single-wrapper .property-title { font-size: 22px; }
    .rep-single-wrapper .rep-features-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rep-single-wrapper .rep-features-row .rep-feature-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .rep-single-wrapper .rep-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rep-single-wrapper .property-map, .property-map { height: 300px; }
    .rep-single-wrapper .visit-form-box { padding: 22px 18px; border-radius: 20px; }
    .rep-single-wrapper .visit-form-box .form-title, .rep-single-wrapper .visit-form-box h2, .rep-single-wrapper .visit-form-box h3 { font-size: 20px; }

    /* دسترسی سریع به فرم درخواست بازدید در گوشی
       نوار عمومی سایت (kw-mobilebar) در پایین‌ترین لایه (لبه‌ی صفحه)
       می‌ماند و این نوار («درخواست بازدید») درست بالای آن قرار می‌گیرد؛
       پس دیگر خودش bottom:0 نیست و safe-area را هم دیگر خودش رعایت
       نمی‌کند (چون نوار پایین‌ترِ زیرِ آن این کار را انجام می‌دهد).
       FIX: عدد ارتفاع نوار عمومی دیگر این‌جا تکرار نمی‌شود — از همان
       متغیر واحد --am-mobilebar-h (در assets/css/am-mobile-bottom-bar.css)
       استفاده می‌شود تا هرگز با ارتفاع واقعی نوار عمومی عقب نیفتد. فضای
       رزروشده‌ی پایین صفحه (padding-bottom) هم به‌جای این‌که این‌جا دوباره
       محاسبه شود، همراه با بقیه‌ی صفحات از قانون عمومی body در همان فایل
       گرفته می‌شود (که مجموع --am-bottom-stack را رزرو می‌کند). */
    .rep-mobile-visit-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--am-mobilebar-h, 77px) + env(safe-area-inset-bottom, 0px));
        z-index: 9998;
        gap: 10px;
        padding: 10px 14px 10px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }
    .rep-mobile-visit-bar__call {
        flex: 0 0 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: #f1f5f9;
        color: #16a34a;
        font-size: 20px;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
        padding: 0;
    }
    .rep-mobile-visit-bar__cta {
        flex: 1;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: linear-gradient(135deg, #f7d35d, #e2ac2f);
        color: #111827;
        font-weight: 800;
        font-size: 15px;
        box-shadow: 0 10px 22px rgba(226, 172, 47, 0.3);
    }
    .rep-mobile-visit-bar--single .rep-mobile-visit-bar__cta { flex: 1; }
    .rep-mobile-visit-bar__call:disabled { opacity: 0.6; cursor: not-allowed; }

    /* ── فرم درخواست بازدید به‌صورت کشویی (Bottom Sheet) در گوشی ──
       پیش‌فرض بسته است و با زدن دکمه‌ی ثابت پایین صفحه باز می‌شود تا
       فضای زیادی از صفحه‌ی آگهی اشغال نکند. */
    .rep-single-wrapper .visit-form-box {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto !important;
        max-height: 82vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        z-index: 10000;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform .38s cubic-bezier(.2, .8, .2, 1);
        box-shadow: 0 -20px 55px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85);
        padding-top: 22px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        animation: none !important;
    }
    .rep-single-wrapper .visit-form-box.is-open {
        transform: translateY(0) !important;
    }
    .visit-form-box__handle {
        display: block;
        width: 42px;
        height: 5px;
        border-radius: 3px;
        background: #e2e8f0;
        margin: 0 auto 16px;
    }
    .visit-form-box__close {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background: #f1f5f9;
        color: #475569;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }
    .visit-form-box__close:hover { background: #e2e8f0; color: #1e293b; }
    .rep-visit-form-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }
    .rep-visit-form-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    body.rep-visit-form-lock { overflow: hidden; }

    /* FIX: ".rep-sidebar" چون position:relative + z-index:20 دارد، یک stacking context
       جدید می‌سازد. در نتیجه فرزند آن یعنی .visit-form-box با اینکه در حالت کشویی موبایل
       z-index:10000 دارد، این z-index فقط داخل همان stacking context (سایدبار) معنا
       دارد و نمی‌تواند از آن فراتر رود. ویجت‌های شناور صفحه مثل دکمه گفتگو (am-chat-fab،
       z-index:9999) و دکمه نصب اپلیکیشن (am-pwa-install-btn، z-index:9500) مستقیماً به
       body اضافه می‌شوند و در stacking context ریشه هستند؛ چون کل سایدبار از دید آن‌ها
       فقط با «z-index:20» مقایسه می‌شود (نه z-index:10000 داخلی‌اش)، این دو دکمه روی فرم
       باز‌شده‌ی درخواست بازدید می‌افتادند و اجازه نمی‌دادند کاربر فیلدها را کامل پر کند.
       راه‌حل: در حالت موبایل، stacking context سایدبار را خنثی می‌کنیم تا z-index واقعی
       فرم (10000) بتواند به‌درستی با ویجت‌های شناور مقایسه شود و همیشه بالاتر بماند. */
    .rep-single-wrapper .rep-sidebar { z-index: auto; }
    /* ── نسخه‌ی مینیمال و فشرده‌ی فرم درخواست بازدید در موبایل ──
       هدف: حذف افکت‌های تزئینی سنگین (گرادیان چرخان، درخشش، پالس) و
       کوچک‌کردن فاصله‌ها/فونت‌ها تا کل فرم در ارتفاع صفحه‌ی گوشی جا
       شود و کاربر مجبور به اسکرول داخل کادر نباشد. */
    .rep-single-wrapper .visit-form-box {
        max-height: 90vh;
        padding-top: 16px !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .rep-single-wrapper .visit-form-box::before,
    .rep-single-wrapper .visit-form-box::after {
        display: none !important; /* حذف گرادیان چرخان دور کادر و درخشش پس‌زمینه */
    }
    .rep-single-wrapper .visit-form-box .form-title,
    .rep-single-wrapper .visit-form-box h2,
    .rep-single-wrapper .visit-form-box h3 {
        font-size: 17px !important;
        margin-bottom: 4px !important;
    }
    .rep-single-wrapper .visit-form-box .form-title::after {
        display: none !important; /* حذف خط زیر عنوان برای ظاهر ساده‌تر */
    }
    .rep-single-wrapper .visit-form-box .form-subtitle {
        font-size: 12.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
    }
    .rep-single-wrapper .visit-form-box .m-input-group,
    .rep-single-wrapper .visit-form-box .form-group {
        margin-bottom: 10px !important;
    }
    .rep-single-wrapper .visit-form-box input,
    .rep-single-wrapper .visit-form-box select,
    .rep-single-wrapper .visit-form-box textarea,
    .rep-single-wrapper .visit-form-box button {
        height: 44px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
    }
    .rep-single-wrapper .visit-form-box .agent-badge {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
    }
    .rep-single-wrapper .visit-form-box .final-submit,
    .rep-single-wrapper .visit-form-box button[type="submit"] {
        margin-top: 4px !important;
    }
    /* حذف انیمیشن‌های پالس/درخشش روی دکمه‌ها برای ظاهری آرام‌تر و مینیمال */
    .rep-single-wrapper .visit-form-box .final-submit:not(:disabled) {
        animation: none !important;
    }
    .rep-single-wrapper .visit-form-box .final-submit::after,
    .rep-single-wrapper .visit-form-box .btn-send-otp::after,
    .rep-single-wrapper .visit-form-box .btn-verify-otp::after {
        display: none !important;
    }
    .rep-single-wrapper .visit-form-box .otp-message,
    .rep-single-wrapper .visit-form-box .form-message {
        margin-top: 6px !important;
        min-height: 0 !important;
        font-size: 12px !important;
    }
}
@media (min-width: 769px) {
    /* دستگیره و دکمه‌ی بستن فقط مخصوص حالت کشویی موبایل‌اند */
    .visit-form-box__handle,
    .visit-form-box__close,
    .rep-visit-form-backdrop { display: none !important; }
    .rep-mobile-visit-bar { display: none; }
}
@media (max-width: 560px) {
    .am-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .am-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .am-header__inner { height: 58px; }
    .am-btn-submit span, .am-topbar { display: none; }
    .rep-single-wrapper .rep-title-row { flex-direction: column; align-items: flex-start; }
    .rep-single-wrapper .rep-features-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-single-wrapper .rep-features-row .rep-feature-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .rep-single-wrapper .rep-gallery-grid { grid-template-columns: 1fr; }
    .rep-single-wrapper .visit-form-box input, .rep-single-wrapper .visit-form-box select, .rep-single-wrapper .visit-form-box textarea, .rep-single-wrapper .visit-form-box button { height: 48px; font-size: 13px; }
    .rep-single-wrapper .visit-form-box textarea { height: auto; min-height: 95px; }
    .error404-box { padding: 40px 22px; border-radius: 24px; }
    .e404-digit { font-size: 72px; }
    .e404-circle { width: 66px; height: 66px; border-width: 7px; }
    .error404-title { font-size: 21px; }
    .error404-actions { flex-direction: column; align-items: stretch; }
    .error404-btn-home, .error404-btn-back { justify-content: center; }
}

/* ── Hero Watermark ── */
.am-hero__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
    line-height: 1;
}
.am-hero.hero-section { position: relative; overflow: hidden; }
.am-hero__content { position: relative; z-index: 1; }

/* ===================== انیمیشن‌های واترمارک هیرو ===================== */
/* فونت‌های واترمارک دیگر اینجا import نمی‌شوند — فقط فونت انتخاب‌شده
   در پنل، از طریق functions.php (am_enqueue_styles) و فقط در صفحه اصلی
   به‌صورت async لود می‌شود. این کار سرعت موبایل را بهبود می‌دهد. */

.am-hero__bg-text {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	font-size: clamp(80px, 18vw, 220px) !important;
	font-weight: 900 !important;
	letter-spacing: 0.02em !important;
	white-space: nowrap !important;
	pointer-events: none !important;
	user-select: none !important;
	z-index: 0;
}

/* ---- فونت‌ها ---- */
.am-hero__bg-text.wmf-poppins    { font-family: 'Poppins', sans-serif !important; letter-spacing: 0.02em !important; }
.am-hero__bg-text.wmf-montserrat { font-family: 'Montserrat', sans-serif !important; letter-spacing: 0.03em !important; }
.am-hero__bg-text.wmf-playfair   { font-family: 'Playfair Display', serif !important; letter-spacing: 0 !important; font-style: italic; }
.am-hero__bg-text.wmf-oswald     { font-family: 'Oswald', sans-serif !important; letter-spacing: 0.06em !important; text-transform: uppercase; }
.am-hero__bg-text.wmf-vazirmatn  { font-family: 'Vazirmatn', sans-serif !important; letter-spacing: 0 !important; }

/* ---- استایل ۱ — Stroke Glow (درخشش حاشیه) ----
   نکته مهم: -webkit-text-stroke فقط در مرورگرهای مبتنی بر Chromium/WebKit
   کار می‌کند (Chrome, Edge, Safari). در Firefox و مرورگرهای دیگر این
   ویژگی پشتیبانی نمی‌شود و چون رنگ متن شفاف (rgba(0,0,0,0)) است،
   واترمارک کاملاً نامرئی می‌شد. اینجا یک رنگ پشتیبان (fallback) برای
   تمام مرورگرها اضافه شده و فقط در صورت پشتیبانی از stroke، حالت
   شفاف + حاشیه فعال می‌شود. */
.am-hero__bg-text.wm-stroke {
	color: rgba(212, 168, 71, 0.18) !important;
}
@supports (-webkit-text-stroke: 1px black) {
	.am-hero__bg-text.wm-stroke {
		color: rgba(255, 255, 255, 0) !important;
		-webkit-text-stroke: 1.5px rgba(212, 168, 71, 0.18);
		animation: wmStroke 4s ease-in-out infinite alternate;
	}
}
@keyframes wmStroke {
	from { -webkit-text-stroke-color: rgba(212, 168, 71, 0.12); }
	to   { -webkit-text-stroke-color: rgba(212, 168, 71, 0.4); }
}

/* ---- استایل ۲ — Breathe (نفس‌کشیدن) ---- */
.am-hero__bg-text.wm-breathe {
	color: rgba(255, 255, 255, 0.045) !important;
	animation: wmBreathe 5s ease-in-out infinite;
}
@keyframes wmBreathe {
	0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
	50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* ---- استایل ۳ — Shine (درخشش متحرک) ----
   background-clip:text با رنگ شفاف هم در برخی مرورگرهای قدیمی‌تر
   پشتیبانی نمی‌شود؛ یک رنگ پشتیبان اضافه شد. */
.am-hero__bg-text.wm-shine {
	color: rgba(212, 168, 71, 0.15) !important;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.am-hero__bg-text.wm-shine {
		color: rgba(255, 255, 255, 0) !important;
		background: linear-gradient(120deg,
			rgba(212, 168, 71, 0.05),
			rgba(212, 168, 71, 0.3),
			rgba(212, 168, 71, 0.05));
		-webkit-background-clip: text;
		background-clip: text;
		background-size: 200% 100%;
		animation: wmShine 3s linear infinite;
	}
}
@keyframes wmShine {
	0%   { background-position: 200% center; }
	100% { background-position: -200% center; }
}

/* ---- استایل ۴ — Float (شناوری) ---- */
.am-hero__bg-text.wm-float {
	color: rgba(255, 255, 255, 0.04) !important;
	animation: wmFloat 6s ease-in-out infinite;
}
@keyframes wmFloat {
	0%, 100% { transform: translate(-50%, -50%) translateY(0)     rotate(-2deg); }
	50%      { transform: translate(-50%, -50%) translateY(-18px) rotate(2deg); }
}

/* ---- استایل ۵ — Pulse (ضربان) ---- */
.am-hero__bg-text.wm-pulse {
	color: rgba(212, 168, 71, 0.12) !important;
}
@supports (-webkit-text-stroke: 1px black) {
	.am-hero__bg-text.wm-pulse {
		color: rgba(255, 255, 255, 0) !important;
		-webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
		animation: wmPulse 3s ease-in-out infinite;
	}
}
@keyframes wmPulse {
	0%, 100% { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05); }
	50%      { -webkit-text-stroke: 2px rgba(212, 168, 71, 0.3); }
}

/* حالت کاهش انیمیشن برای کاربرانی که حساسیت دارند */
@media (prefers-reduced-motion: reduce) {
	.am-hero__bg-text {
		animation: none !important;
	}
	.rep-single-wrapper .visit-form-box,
	.rep-single-wrapper .visit-form-box::before,
	.rep-single-wrapper .visit-form-box::after,
	.rep-single-wrapper .visit-form-box .form-title::after,
	.rep-single-wrapper .visit-form-box .m-input-group,
	.rep-single-wrapper .visit-form-box .final-submit,
	.rep-single-wrapper .visit-form-box .final-submit::after,
	.rep-single-wrapper .visit-form-box .btn-send-otp::after,
	.rep-single-wrapper .visit-form-box .btn-verify-otp::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ── غیرفعال‌سازی واترمارک در موبایل (برای افزایش سرعت) ──
   وقتی گزینه «نمایش واترمارک در موبایل» در پنل خاموش باشد،
   کلاس am-hero__bg-text--no-mobile به عنصر اضافه می‌شود و در
   این بریک‌پوینت کاملاً حذف می‌شود (display:none باعث توقف
   انیمیشن و صرفه‌جویی در رندر/پینت موبایل می‌شود). */
@media (max-width: 768px) {
	.am-hero__bg-text--no-mobile {
		display: none !important;
	}
}
.property-map-wrapper {
	position: relative;
	min-height: 320px;
}

.property-map-placeholder {
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f7fa;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-align: center;
	padding: 24px;
}

.property-map-placeholder__content {
	max-width: 320px;
}

.property-map-load-btn {
	background: #2563eb;
	color: #fff;
	border: 0;
	padding: 10px 18px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.property-map-load-btn:hover {
	background: #1d4ed8;
}

.property-map-error {
	padding: 20px;
	background: #fff1f2;
	color: #b91c1c;
	border: 1px solid #fecdd3;
	border-radius: 10px;
	text-align: center;
}

/* توجه: استایل .am-map-marker / .am-marker-pin پیش‌تر در همین فایل (نزدیک
   .property-map) تعریف شده. نسخه‌ی تکراری اینجا حذف شد چون با همان specificity
   ولی دیرتر در کسکید لود می‌شد و باعث می‌شد پین قرمز اصلی نمایش داده نشود و
   به‌جایش فقط یک دایره‌ی کوچک قرمز با حاشیه‌ی سفید دیده شود. */

/* ═══════════════════════════════════════════════════════════════
 * سازگاری چیدمان نوار جستجوی هیرو با فیلد جدید «استان»
 * (بدون تغییر در استایل‌های پوسته‌ی مادر، فقط یک fallback ایمن برای
 * جلوگیری از شکستن چیدمان روی صفحات کوچک، وقتی تعداد فیلدها بیشتر شده).
 * ═══════════════════════════════════════════════════════════════ */
.kw-search {
	flex-wrap: wrap;
	row-gap: 10px;
}
.kw-search__field {
	flex: 1 1 150px;
	min-width: 130px;
}
@media (max-width: 782px) {
	.kw-search__field {
		flex: 1 1 100%;
	}
}

/* ═══════════════════════════════════════════════════════════════
 * دسترسی‌پذیری (Accessibility) — لینک «پرش به محتوای اصلی»
 * طبق استاندارد WCAG 2.4.1 (Bypass Blocks). به‌صورت پیش‌فرض از دید
 * بصری خارج است و فقط وقتی با کیبورد (کلید Tab) فوکوس بگیرد نمایان
 * می‌شود؛ برای کاربران صفحه‌خوان و کیبورد-محور امکان رد شدن سریع از
 * هدر/منو و رسیدن مستقیم به محتوای اصلی صفحه را فراهم می‌کند.
 * ═══════════════════════════════════════════════════════════════ */
.am-skip-link {
	position: absolute !important;
	top: 0 !important;
	right: 10px !important;
	left: auto !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	z-index: 999999 !important;
	background: #111;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.am-skip-link:focus,
.am-skip-link:focus-visible {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 20px !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal !important;
	border-radius: 0 0 8px 8px;
	outline: 2px solid #f5c542;
	outline-offset: 2px;
}
