/**
 * =============================================
 * پالت رنگی جدید پرند ملک
 * =============================================
 */
:root {
    --primary: #12263A;
    --primary-dark: #0A1A2A;
    --primary-light: #1E3A5F;
    --secondary: #6C8DA3;
    --accent: #E0AA6E;
    --accent-cta: #E07A5F;
    --bg-light: #F8F9FC;
    --text-dark: #1E2A3A;
    --text-muted: #4A627A;
    --white: #FEFEFE;
}

/* =============================================
 * ۱. تنظیمات عمومی
 * ============================================= */
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Vazirmatn', sans-serif;
    font-feature-settings: "ss02";
    font-size: 1rem;
    line-height: 1.6;
}

/* یک‌دست‌سازی پاراگراف‌ها */
p, li {
    line-height: 1.8;
    text-align: justify;          /* تراز دوطرفه برای یکدستی خطوط */
    word-spacing: -0.02em;        /* کمی فشرده‌تر شدن کلمات */
    hyphens: auto;                /* خط‌تیره خودکار در صورت نیاز */
}

/* تنظیم تیترها کوچک‌تر */
h1, .home-seo-header h2 {
    font-size: 2rem !important;
}
h2 {
    font-size: 1.7rem !important;
}
h3 {
    font-size: 1.35rem !important;
}
h4 {
    font-size: 1.1rem !important;
}
h1, h2, h3, h4, h5, h6,
.site-title a,
.entry-title a {
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}

button,
input[type="submit"],
.button,
.property-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.25rem;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}
button:hover,
input[type="submit"]:hover,
.button:hover,
.property-button:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

/* =============================================
 * ۲. عرض کامل محتوا (حذف سایدبار)
 * ============================================= */
.site-content {
    max-width: 100% !important;
    padding: 0 !important;
}
.content-area,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0rem 0rem 0rem !important;
}
.sidebar,
.widget-area,
#right-sidebar,
#left-sidebar {
    display: none !important;
}

/* مخفی کردن عنوان صفحه اصلی */
.home .entry-header,
.home .page-header,
.home .entry-title,
.home h1.entry-title,
.home .site-content > .page-header {
    display: none !important;
}

/* =============================================
 * ۳. هدر سفارشی
 * ============================================= */
.custom-header {
    background: transparent !important;
    padding: 0;
    border: none;
}
.header-wrapper {
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5625rem rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}
.header-wrapper:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 1.25rem 2.1875rem rgba(0,0,0,0.12);
}
.border-gold-bottom {
    border-bottom: 0.25rem solid var(--accent);
}
.header-gradient {
    background: linear-gradient(120deg, var(--primary), var(--primary-light), var(--primary-dark));
    padding: 1.375rem 2rem;
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}
.brand-logo img {
    max-height: 3rem;
    width: auto;
    display: block;
}
.brand-name {
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--white);
    text-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.1);
    white-space: nowrap;
}
.brand-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0.0625rem 0.0625rem rgba(0,0,0,0.2));
    margin-left: 0.375rem;
}

.custom-navigation {
    background: transparent;
}
.custom-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.custom-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.95;
    text-decoration: none;
    display: block;
    padding: 0.375rem 0;
    transition: opacity 0.2s, color 0.2s;
}
.custom-nav a:hover {
    color: var(--accent);
    opacity: 1;
}

.btn-phone {
    background: var(--accent-cta);
    color: var(--white);
    padding: 0.5rem 1.375rem;
    border-radius: 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.btn-phone:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.02);
}

.menu-toggle,
#site-navigation:not(.custom-navigation),
.main-navigation:not(.custom-navigation) {
    display: none !important;
}

/* =============================================
 * ۴. فوتر سفارشی
 * ============================================= */
.custom-footer {
    background: transparent;
    padding: 0;
    margin-top: 2.5rem;
}
.footer-wrapper {
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5625rem rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}
.footer-wrapper:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 1.25rem 2.1875rem rgba(0,0,0,0.12);
}
.footer-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-top: 0.25rem solid var(--accent);
    padding: 2.5rem 2rem 1.5rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.875rem;
}
.footer-col {
    flex: 1;
    min-width: 9.375rem;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.8;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
}
.footer-col i {
    color: var(--accent);
}
.footer-brand {
    color: var(--accent) !important;
    margin-bottom: 1rem;
}
.footer-desc {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-link {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
    transition: 0.2s;
}
.footer-link:hover {
    color: var(--accent);
}
.social-row {
    display: flex;
    flex-wrap: wrap;
}
.social-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-left: 0.5rem;
    transition: 0.2s;
    text-decoration: none;
}
.social-icon:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-0.1875rem);
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}
.footer-copy {
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
}

/* =============================================
 * ۵. کارت‌های املاک
 * ============================================= */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    padding: 1.25rem 0;
}
.property-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.property-card:hover {
    transform: translateY(-0.3125rem);
}
.property-card-image {
    position: relative;
    overflow: hidden;
    height: 13.75rem;
}
.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.deal-type-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: var(--accent-cta);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}
.property-card-content {
    padding: 0.9375rem;
}
.property-title {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}
.property-title a {
    color: var(--primary);
    text-decoration: none;
}
.property-meta {
    display: flex;
    gap: 0.9375rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}
.property-price {
    color: var(--accent);
    font-weight: bold;
}
.property-price-per-meter {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.9375rem;
}
.property-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.property-button:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* =============================================
 * ۶. صفحه تکی ملک
 * ============================================= */
.single-property { padding: 1.25rem 0; }
.property-single {
    max-width: 56.25rem;
    margin: 0 auto;
    background: var(--white);
    padding: 1.875rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 1.25rem rgba(0,0,0,0.03);
}
.property-header {
    border-bottom: 0.125rem solid var(--accent);
    padding-bottom: 0.9375rem;
    margin-bottom: 1.875rem;
}
.property-price-large {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
    margin-top: 0.625rem;
}
.property-gallery { margin-bottom: 1.875rem; }
.main-image img { width: 100%; border-radius: 0.5rem; }
.gallery-thumbs {
    display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.625rem;
}
.gallery-thumbs .thumb-link {
    display: block; border-radius: 0.25rem; overflow: hidden;
    border: 0.125rem solid transparent; transition: border-color 0.3s;
}
.gallery-thumbs .thumb-link:hover { border-color: var(--accent); }
.gallery-thumbs .thumb-link img {
    display: block; width: auto; height: 6.25rem; object-fit: cover;
}
.property-details-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.875rem; margin-bottom: 1.875rem;
}
.detail-box ul { list-style: none; padding: 0; }
.detail-box li { padding: 0.5rem 0; border-bottom: 1px dashed #eee; }
.property-description { margin-bottom: 1.875rem; }
.property-contact {
    background: var(--bg-light); padding: 1.25rem; border-radius: 0.5rem; text-align: center;
}
.contact-button {
    display: inline-block; padding: 0.75rem 1.875rem;
    background: var(--accent-cta); color: var(--white);
    border-radius: 0.25rem; font-weight: bold;
}
.contact-button:hover {
    background: var(--accent); color: var(--primary-dark);
}

/* =============================================
 * ۷. لایت‌باکس
 * ============================================= */
.lightbox-overlay {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); text-align: center;
}
.lightbox-overlay.active { display: block; }
.lightbox-content {
    max-width: 90%; max-height: 80vh; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    border-radius: 0.25rem; box-shadow: 0 0 1.25rem rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: 1.25rem; right: 2.5rem;
    color: var(--white); font-size: 2.5rem; font-weight: bold;
    cursor: pointer; z-index: 10000; transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: var(--white);
    border: none; font-size: 2.5rem; padding: 0.625rem 0.9375rem;
    cursor: pointer; border-radius: 0.25rem; transition: background 0.3s; z-index: 10001;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* =============================================
 * ۸. فرم جستجوی کشویی
 * ============================================= */
.search-collapsible { margin-bottom: 2.5rem; }
.search-toggle {
    display: flex; align-items: center; justify-content: center; gap: 0.625rem;
    width: 100%; max-width: 37.5rem; margin: 0 auto;
    padding: 0.875rem 1.5625rem;
    background: var(--primary); color: var(--white);
    border: none; border-radius: 0.75rem; font-size: 1rem; font-weight: bold;
    cursor: pointer; transition: background 0.3s, border-radius 0.3s; font-family: inherit;
}
.search-toggle:hover {
    background: var(--accent); color: var(--primary-dark);
}
.search-toggle.active { border-radius: 0.75rem 0.75rem 0 0; }
.search-toggle-arrow { transition: transform 0.3s; }
.search-toggle.active .search-toggle-arrow { transform: rotate(180deg); }
.search-collapsible .search-form-wrapper {
    max-width: 37.5rem; margin: 0 auto; background: var(--white);
    border: 0.125rem solid var(--primary); border-top: none;
    border-radius: 0 0 0.75rem 0.75rem; padding: 1.5625rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.08);
}
.property-search-form .form-row {
    display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.25rem;
}
.property-search-form .form-group { flex: 1; min-width: 12.5rem; }
.property-search-form .form-group label {
    display: block; font-weight: bold; margin-bottom: 0.5rem;
    color: var(--primary); font-size: 0.875rem;
}
.property-search-form .form-group select,
.property-search-form .form-group input {
    width: 100%; padding: 0.75rem 0.9375rem; border: 1px solid #e0e0e0;
    border-radius: 0.5rem; font-size: 0.875rem; background: var(--white);
    transition: border-color 0.3s; font-family: inherit;
}
.property-search-form .form-group select:focus,
.property-search-form .form-group input:focus {
    border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 0.1875rem rgba(224, 170, 110, 0.2);
}
.search-submit {
    display: block; width: 100%; max-width: 18.75rem; margin: 1.875rem auto 0;
    background: var(--accent-cta); color: var(--white);
    padding: 0.875rem 1.875rem; border: none; border-radius: 0.5rem;
    font-size: 1rem; font-weight: bold; cursor: pointer; transition: background 0.3s; font-family: inherit;
}
.search-submit:hover { background: var(--accent); color: var(--primary-dark); }
.no-results { text-align: center; font-size: 1.125rem; color: var(--text-muted); padding: 3.75rem 0; }
.pagination { text-align: center; margin-top: 2.5rem; }
.pagination .page-numbers {
    display: inline-block; padding: 0.5rem 0.875rem; margin: 0 0.1875rem;
    border: 1px solid #ddd; border-radius: 0.25rem; color: var(--primary);
    text-decoration: none; font-size: 0.875rem;
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .page-numbers:hover:not(.current) { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }

/* =============================================
 * ۹. فرم گام‌به‌گام درخواست خرید
 * ============================================= */
.wizard-container {
    max-width: 65rem; margin: 1.875rem auto; background: var(--white);
    border-radius: 0.75rem; box-shadow: 0 1.25rem 1.25rem rgba(0,0,0,0.20); padding: 1.875rem;
}
.wizard-header { text-align: center; margin-bottom: 1.5625rem; }
.wizard-header h3 { color: var(--primary); margin-bottom: 0.625rem; }
.wizard-progress { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.progress-step {
    width: 1.875rem; height: 1.875rem; border-radius: 50%; background: #eee; color: #666;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.875rem; transition: 0.3s;
}
.progress-step.active { background: var(--primary); color: var(--white); }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h4 { margin-bottom: 0.9375rem; color: var(--text-dark); }
.wizard-step select,
.wizard-step input {
    width: 100%; padding: 0.75rem 0.9375rem; border: 1px solid #ddd; border-radius: 0.5rem;
    font-family: inherit; font-size: 0.875rem; margin-bottom: 1.25rem;
}
.wizard-buttons { display: flex; justify-content: space-between; gap: 0.625rem; }
.btn-prev, .btn-next, .btn-submit {
    padding: 0.625rem 1.5625rem; border: none; border-radius: 0.375rem;
    font-weight: bold; cursor: pointer; font-family: inherit; transition: 0.3s;
}
.btn-prev { background: #eee; color: var(--text-dark); }
.btn-next, .btn-submit { background: var(--accent-cta); color: var(--white); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-prev:hover { background: #ddd; }
.btn-next:hover:not(:disabled), .btn-submit:hover { background: var(--accent); color: var(--primary-dark); }
.wizard-success { text-align: center; font-size: 1.125rem; color: var(--primary); padding: 1.875rem; }

/* =============================================
 * ۱۰. فرم فروش با گرادیان
 * ============================================= */
.sell-property-box {
    max-width: 65rem; margin: 1.875rem auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); text-align: center; border-radius: 0.75rem;
    padding: 1.875rem; box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.20);
}
.sell-property-box h3 { color: var(--accent); margin-bottom: 0.625rem; }
.sell-contact { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; }
.sell-phone {
    display: inline-block; background: var(--accent-cta); color: var(--white);
    padding: 0.75rem 1.5625rem; border-radius: 0.5rem; text-decoration: none;
    font-weight: bold; font-size: 1.125rem; transition: 0.3s;
}
.sell-phone:hover { background: var(--accent); color: var(--primary-dark); }

/* =============================================
 * ۱۱. برگه تماس با ما
 * ============================================= */
.contact-page-wrapper { max-width: 65.75rem; margin: 1.25rem auto 2.5rem; display: flex; flex-wrap: wrap; gap: 1.875rem; align-items: flex-start; }
.contact-map { flex: 1 1 25rem; background: var(--white); border-radius: 0.75rem; box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.05); overflow: hidden; padding: 0.625rem; }
.map-hint { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.contact-details { flex: 1 1 25rem; background: var(--white); border-radius: 0.75rem; box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.05); padding: 1.875rem; }
.contact-details h2 { color: var(--primary); margin-bottom: 0.625rem; }
.contact-info-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.contact-info-list li { padding: 0.5rem 0; border-bottom: 1px dashed #eee; color: var(--text-dark); }
.contact-info-list i { color: var(--accent); margin-left: 0.5rem; width: 1.25rem; text-align: center; }
.contact-info-list a { color: var(--primary); }
.contact-info-list a:hover { color: var(--accent); }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5625rem; }
.social-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: 1.25rem; color: var(--white); text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
.social-btn:hover { opacity: 0.9; transform: translateY(-0.125rem); }
.instagram { background: #E1306C; }
.telegram { background: #2AABEE; }
.whatsapp { background: #25D366; }
.eitaa { background: #F7941D; }
.rubika { background: #00BFA5; }

/* =============================================
 * ۱۲. فهرست مطالب خودکار
 * ============================================= */
.parand-toc { background: var(--white); border-right: 0.3125rem solid var(--accent); padding: 1.25rem 1.5625rem; margin: 1.5625rem 0; border-radius: 0.5rem; box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.03); }
.toc-title { font-weight: bold; color: var(--primary); margin-bottom: 0.75rem; font-size: 1.1rem; }
.parand-toc ul { list-style: none; padding: 0; margin: 0; }
.parand-toc ul li { margin-bottom: 0.5rem; position: relative; padding-right: 1.125rem; }
.parand-toc ul li::before { content: "▸"; color: var(--accent); position: absolute; right: 0; top: 0; }
.parand-toc ul li a { color: var(--primary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.parand-toc ul li a:hover { color: var(--accent-cta); text-decoration: underline; }

/* =============================================
 * ۱۳. واترمارک تصاویر
 * ============================================= */
.property-card-image::after,
.main-image::after {
    content: "© پرند ملک"; position: absolute; bottom: 0.625rem; left: 0.625rem;
    background: rgba(0,0,0,0.6); color: #fff; padding: 0.25rem 0.625rem;
    border-radius: 0.25rem; font-size: 0.75rem; z-index: 2; pointer-events: none;
}
.property-card-image, .main-image { position: relative; }

/* =============================================
 * ۱۴. بخش سئوی صفحه اصلی
 * ============================================= */
.home-seo-header { text-align: center; margin-bottom: 1.875rem; }
.home-seo-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.3125rem; }
.home-seo-slogan { font-size: 1.1rem; color: var(--accent); font-weight: 500; margin-top: 0; }
.home-seo-closing { text-align: center; font-size: 1.1rem; margin-top: 1.5625rem; color: var(--primary); }
.home-seo-block p { text-align: justify; }

/* =============================================
 * ۱۵. نمایش افقی املاک (اسلایدر)
 * ============================================= */
.horizontal-grid { display: flex; flex-wrap: nowrap; gap: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.625rem; margin: 1.25rem 0; }
.horizontal-grid .property-card { flex: 0 0 17.5rem; max-width: 18.75rem; }
.horizontal-grid::-webkit-scrollbar { height: 0.375rem; }
.horizontal-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0.1875rem; }

/* =============================================
 * ۱۶. واکنش‌گرایی (موبایل)
 * ============================================= */
@media (max-width: 48rem) {
    .header-wrapper { border-radius: 0 0 1.75rem 1.75rem !important; }
    .header-gradient { padding: 0.625rem 0.75rem; }
    .header-inner {
        flex-wrap: nowrap !important; justify-content: flex-start !important;
        align-items: center; gap: 0.5rem; overflow-x: visible; white-space: normal; padding-bottom: 0;
    }
    .brand-name { display: none !important; }
    .btn-phone i { display: none !important; }
    .brand-block { flex-shrink: 0; margin-right: auto; }
    .brand-logo img { max-height: 2.2rem; }
    .custom-navigation { flex-shrink: 1; }
    .custom-nav { flex-wrap: nowrap !important; gap: 0.5rem; }
    .custom-nav a { font-size: 0.9rem; padding: 0.5rem 0.25rem; white-space: nowrap; }
    .btn-phone { flex-shrink: 0; font-size: 0.85rem; padding: 0.5rem 0.875rem; white-space: nowrap; }
    .property-meta, .property-price-per-meter { font-size: 0.9rem; }
    .property-title { font-size: 1.15rem; }
    .footer-inner { flex-direction: column; gap: 1.25rem; }
    .footer-gradient { padding: 1.5rem 1rem 1.25rem; }
    .lightbox-nav { font-size: 1.5rem; padding: 0.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .contact-page-wrapper { flex-direction: column; }
}

/* =============================================
 * ۱۷. بریک‌پوینت جدید برای موبایل‌های خیلی باریک (زیر ۴۸۰px)
 * ============================================= */
@media (max-width: 30rem) {
    /* هدر: اجازه پیچش و تنظیم اندازه‌ها */
    .header-inner {
        flex-wrap: wrap !important;
        row-gap: 0.5rem;
    }
    .custom-navigation {
        width: 100%;
        order: 3;
        overflow-x: auto;
    }
    .custom-nav {
        flex-wrap: wrap !important;
        justify-content: flex-start;
    }
    .custom-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
        white-space: normal;
    }
    .btn-phone {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* تیترها: کاهش بیشتر برای خوانایی در صفحه‌های باریک */
    h1, .home-seo-header h2 {
        font-size: 1.3rem !important;
    }
    h2 {
        font-size: 1.15rem !important;
    }
    h3 {
        font-size: 1rem !important;
    }
    h4 {
        font-size: 0.9rem !important;
    }

    /* کارت‌های املاک: تک‌ستونه و تمام‌عرض */
    .property-grid {
        grid-template-columns: 1fr;
    }

    /* محتوای اصلی: کاهش padding افقی به نصف (از 0.75rem به 0.375rem) */
    .content-area,
    .site-main {
        padding: 0.75rem 0.375rem !important;
    }
}