/* =====================================================================
   iran2d — wide layout + light (default) / dark theme   (2026-10)
   Light is the default. Dark = html[data-theme="dark"] (toggle in header,
   saved in localStorage "i2d-theme"). Colours go through the --i2d-* tokens.
   ===================================================================== */

:root {
    --i2d-bg: #F7F7F8;
    --i2d-surface: #FFFFFF;
    --i2d-surface-2: #F1F1F3;
    --i2d-text: #1C1C28;
    --i2d-text-2: #4A4F5A;
    --i2d-muted: #7C818B;
    --i2d-border: #E4E4E7;
    --i2d-accent: #D3A945;
    --i2d-accent-dark: #7C5906;
    --i2d-header-bg: #FFFFFF;
    --i2d-overlay: rgba(255, 255, 255, .92);
    --i2d-shadow: 0 2px 12px rgba(28, 28, 40, .08);
    --i2d-radius: 1rem;
    color-scheme: light;
}

html[data-theme="dark"] {
    --i2d-bg: #151515;
    --i2d-surface: #1E1E1E;
    --i2d-surface-2: #252628;
    --i2d-text: #FFFFFF;
    --i2d-text-2: #E0E0E0;
    --i2d-muted: #A4A4A4;
    --i2d-border: #343434;
    --i2d-header-bg: #1E1E1E;
    --i2d-overlay: rgba(21, 21, 21, .92);
    --i2d-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ---------- base ---------- */
html,
body,
#Body {
    background-color: var(--i2d-bg);
    color: var(--i2d-text);
}

.dng-main {
    width: 100%;
    background-color: var(--i2d-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--i2d-text);
}

body,
p,
li {
    font-size: 1rem;
}

/* photos: no default grayscale */
img,
video,
.swiper-slide img {
    filter: none;
}

/* ---------- theme toggle ---------- */
.i2d-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--i2d-border);
    border-radius: 50%;
    background: var(--i2d-surface);
    color: var(--i2d-text);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.i2d-theme-toggle:hover { border-color: var(--i2d-accent); color: var(--i2d-accent); }
.i2d-theme-toggle svg { width: 1.25rem; height: 1.25rem; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i2d-theme-toggle .i2d-icon-sun { display: none; }
html[data-theme="dark"] .i2d-theme-toggle .i2d-icon-sun { display: block; }
html[data-theme="dark"] .i2d-theme-toggle .i2d-icon-moon { display: none; }

/* Component rules below start with #Body so they win over module stylesheets
   (MBD/EasyDNN link their CSS inside <body>, after this file). */

/* ---------- slider arrows (brand search, ad gallery, any .navigation prev/next) ---------- */
#Body .navigation.prev-btn,
#Body .navigation.next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    box-shadow: var(--i2d-shadow);
    color: var(--i2d-text);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
#Body .navigation.prev-btn > svg,
#Body .navigation.next-btn > svg { display: none !important; }
#Body .navigation.prev-btn::before,
#Body .navigation.next-btn::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    background-color: currentColor;
    -webkit-mask: var(--i2d-chevron) center / contain no-repeat;
    mask: var(--i2d-chevron) center / contain no-repeat;
}
/* RTL: "prev" points right, "next" points left */
#Body .navigation.prev-btn { --i2d-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }
#Body .navigation.next-btn { --i2d-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
#Body .navigation.prev-btn:hover,
#Body .navigation.next-btn:hover { background: var(--i2d-accent); border-color: var(--i2d-accent); color: #fff; }
#Body .navigation.swiper-button-disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ---------- brand search slider (MBD ListSelectiveImage) ---------- */
#Body .list-selective-slider-wrapper { min-width: 0; }
#Body .list-selective-slider-wrapper .list-slider { flex: 1 1 auto; min-width: 0; overflow: hidden; }
#Body .list-selective-slider-wrapper .list-slider .swiper-slide {
    width: 7.5rem !important;
    padding: .75rem .5rem;
    border-radius: var(--i2d-radius);
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
#Body .list-selective-slider-wrapper .list-slider .swiper-slide:hover,
#Body .list-selective-slider-wrapper .list-slider .swiper-slide.active { border-color: var(--i2d-accent); box-shadow: var(--i2d-shadow); }
#Body .list-selective-slider-wrapper .list-slider .swiper-slide .img-box {
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}
#Body .list-selective-slider-wrapper .list-slider .swiper-slide .img-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; }
#Body .list-selective-slider-wrapper .list-slider .swiper-slide .title {
    margin: .5rem 0 0;
    font-size: .929rem;
    font-weight: 600;
    color: var(--i2d-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- ad cards (home "last ads", /ads, my ads) ---------- */
#Body .mbd-ads-list { min-height: 0; }
#Body .mbd-ads-list > .row { row-gap: 1rem; }
#Body .mbd-ads-list > .row > [class*="col-"] { width: 50%; flex: 0 0 50%; max-width: 50%; margin-bottom: 0 !important; }
@media (min-width: 768px) {
    #Body .mbd-ads-list > .row > [class*="col-"] { width: 33.3333%; flex-basis: 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 1100px) {
    #Body .mbd-ads-list > .row > [class*="col-"] { width: 25%; flex-basis: 25%; max-width: 25%; }
}
#Body .mbd-ads-list .ad-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    border-radius: var(--i2d-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
#Body .mbd-ads-list .ad-item:hover { box-shadow: var(--i2d-shadow); transform: translateY(-2px); }
#Body .mbd-ads-list .ad-item .img-box { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--i2d-surface-2); }
#Body .mbd-ads-list .ad-item .img-box img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
#Body .mbd-ads-list .ad-item .content-box { padding: .75rem .875rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1 1 auto; }
#Body .mbd-ads-list .ad-item .content-box .title {
    margin: 0 0 .25rem;
    font-size: 1.071rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--i2d-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#Body .mbd-ads-list .ad-item .tech-info { display: flex; align-items: center; gap: .375rem; color: var(--i2d-muted); font-size: .929rem; }
#Body .mbd-ads-list .ad-item .tech-info .icon svg { width: 1rem; height: 1rem; }
#Body .mbd-ads-list .ad-item .price { margin-top: auto; padding-top: .5rem; font-size: 1.071rem; font-weight: 800; color: var(--i2d-text); }
#Body .mbd-ads-list .ad-item .PriceAdjustment { margin-top: auto; }
#Body .mbd-ads-list .ad-item .PriceAdjustment .price { margin-top: 0; }
#Body .mbd-ads-list .ad-item .PriceAdjustment strike { color: var(--i2d-muted); font-weight: 400; }
#Body .mbd-ads-list .more-link-box { min-height: 12rem; background: var(--i2d-surface); border-radius: var(--i2d-radius); }

/* sold: no blur, red rubber-stamp text */
#Body .Soldout::before { display: none !important; backdrop-filter: none !important; }
#Body .Soldout::after {
    content: "فروخته شد" !important;
    position: absolute;
    top: 36% !important;
    right: 50% !important;
    transform: translate(50%, -50%) rotate(-14deg) !important;
    width: auto !important;
    padding: .2rem 1.1rem !important;
    background: rgba(255, 255, 255, .55) !important;
    border: .22rem double #D71920 !important;
    border-radius: .5rem !important;
    color: #D71920 !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: .04em;
    line-height: 1.6;
    white-space: nowrap;
    opacity: .9;
    pointer-events: none;
    z-index: 3;
}
html[data-theme="dark"] #Body .Soldout::after { background: rgba(0, 0, 0, .45) !important; }
/* ad details (ad.cshtml): same stamp on the gallery + a status line under the title */
#Body .mbd-ad-details .gallery-slider { position: relative; }
#Body .mbd-ad-details .i2d-sold-stamp {
    position: absolute;
    top: 40%;
    right: 50%;
    transform: translate(50%, -50%) rotate(-14deg);
    padding: .25rem 1.5rem;
    background: rgba(255, 255, 255, .55);
    border: .28rem double #D71920;
    border-radius: .6rem;
    color: #D71920;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
    opacity: .9;
    pointer-events: none;
    z-index: 5;
}
html[data-theme="dark"] #Body .mbd-ad-details .i2d-sold-stamp { background: rgba(0, 0, 0, .45); }
#Body .mbd-ad-details .i2d-sold-note {
    display: inline-flex;
    margin: .25rem 0 .5rem;
    padding: .25rem .75rem;
    border-radius: 2rem;
    background: rgba(215, 25, 32, .1);
    color: #D71920;
    font-weight: 700;
}

/* ---------- desktop header: full-width rounded bar, logo centred ---------- */
#Body .header-center-bg .header-container-box {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--i2d-accent);
    background: var(--i2d-overlay);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--i2d-shadow);
}
#Body .header-center-bg .header-container-box > .area-left { flex: 0 1 auto; min-width: 0; }
#Body .header-center-bg .header-container-box > .area-right { flex: 0 0 auto; width: auto !important; }
#Body .header-center-bg .header-container-box > .area-right .header-content-wrap { align-items: center; gap: .5rem; }
#Body .header-center-bg .header-container-box > .area-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto !important;
    justify-content: center;
}
#Body .header-center-bg .dng-megamenu .primary_structure > li > a { white-space: nowrap; padding-left: 1.1rem !important; }
/* keep the menu clear of the centred logo */
#Body .header-center-bg .header-container-box > .area-left { max-width: calc(50% - 4.5rem); }
@media (max-width: 1199px) {
    #Body .header-center-bg .dng-megamenu .primary_structure > li > a { padding-left: .9rem !important; font-size: .929rem !important; }
}
#Body .header-center-bg .header-container-box > .area-center .logo img { max-height: 2.6rem; width: auto; }
html[data-theme="dark"] #Body .dng-megamenu .primary_structure > li > a,
html[data-theme="dark"] #Body .dng-megamenu .primary_structure > li > a:link,
html[data-theme="dark"] #Body .dng-megamenu .primary_structure > li > a:visited { color: var(--i2d-text); }

/* mobile header: theme toggle sits in the middle column */
#Body .header-mobile .area-center .header-content-wrap { justify-content: center; width: 100%; }
#Body .header-mobile .i2d-theme-toggle { width: 2.25rem; height: 2.25rem; }

/* bottom app bar: logo in the middle instead of the home icon */
#Body .bottom-menu-wrapper .home-logo-item .home-logo { display: flex; align-items: center; justify-content: center; }
#Body .bottom-menu-wrapper .home-logo-item img { width: 2.5rem; height: 2.5rem; object-fit: contain; display: block; }

/* ---------- shared buttons ---------- */
#Body .i2d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .5rem 1.5rem;
    border-radius: .875rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
#Body .i2d-btn:hover { transform: translateY(-1px); }
#Body .i2d-btn-primary { background: var(--i2d-accent); color: #1C1C28; }
#Body .i2d-btn-primary:hover { background: #c39a37; color: #1C1C28; }
#Body .i2d-btn-outline { background: transparent; color: var(--i2d-text); border-color: var(--i2d-border); }
#Body .i2d-btn-outline:hover { border-color: var(--i2d-accent); color: var(--i2d-accent); }

/* ---------- home hero: slider + call-to-action panel ---------- */
@media (min-width: 992px) {
    #Body #dnn_BannerPane:has(.i2d-hero-cta) {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 1.5rem;
        align-items: stretch;
        width: min(1196px, 100% - 2rem);
        margin: 0 auto;
        padding-top: 6.5rem;
    }
    #Body #dnn_BannerPane:has(.i2d-hero-cta) > .DnnModule { min-width: 0; }
    #Body #dnn_BannerPane:has(.i2d-hero-cta) > .DnnModule:first-child { border-radius: 1.25rem; overflow: hidden; }
    /* the CTA panel is as tall as the slider: every DNN wrapper between the grid cell and the panel stretches */
    #Body #dnn_BannerPane > .DnnModule:has(.i2d-hero-cta),
    #Body #dnn_BannerPane > .DnnModule:has(.i2d-hero-cta) div:has(.i2d-hero-cta) { display: flex; flex-direction: column; flex: 1 1 auto; }
    #Body .i2d-hero-cta { flex: 1 1 auto; justify-content: flex-start; }
}
#Body .i2d-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin: auto 0 0;
    padding: 1rem 0 0;
    list-style: none;
    border-top: 1px solid var(--i2d-border);
    color: var(--i2d-text-2);
    font-size: .929rem;
}
#Body .i2d-hero-points li { display: inline-flex; align-items: center; gap: .4rem; list-style: none; }
#Body .i2d-hero-points li::before {
    content: "";
    width: .5rem;
    height: .9rem;
    margin-top: -.2rem;
    border-right: 2px solid var(--i2d-accent);
    border-bottom: 2px solid var(--i2d-accent);
    transform: rotate(45deg);
}
#Body .i2d-hero-cta {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    box-shadow: var(--i2d-shadow);
}
#Body .i2d-hero-kicker { color: var(--i2d-accent-dark); font-weight: 700; font-size: .929rem; }
html[data-theme="dark"] #Body .i2d-hero-kicker { color: var(--i2d-accent); }
#Body .i2d-hero-title { margin: 0; font-size: 1.714rem; line-height: 1.6; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-hero-text { margin: 0; color: var(--i2d-text-2); line-height: 2; }
#Body .i2d-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
#Body .i2d-hero-actions .i2d-btn { flex: 1 1 10rem; }
#Body .i2d-hero-call { display: inline-flex; align-items: center; gap: .625rem; color: var(--i2d-text); font-weight: 600; }
#Body .i2d-hero-call strong { font-weight: 800; letter-spacing: .02em; }
#Body .i2d-hero-call-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--i2d-surface-2); color: var(--i2d-accent-dark); }
html[data-theme="dark"] #Body .i2d-hero-call-icon { color: var(--i2d-accent); }
#Body .i2d-hero-call-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 991px) {
    #Body .i2d-hero-cta { margin: 1rem; padding: 1.25rem; }
    #Body .i2d-hero-title { font-size: 1.286rem; }
}

/* ---------- photo banners (EasyDNN "middle-banner"): readable white text on colour photos ---------- */
#Body .middle-banner { position: relative; border-radius: 1.25rem; overflow: hidden; }
#Body .middle-banner picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
#Body .middle-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(15, 15, 20, .78) 0%, rgba(15, 15, 20, .45) 40%, rgba(15, 15, 20, 0) 75%);
    pointer-events: none;
    z-index: 1;
}
#Body .middle-banner .text-holder { z-index: 2; }
#Body .middle-banner .text-holder .title { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

/* ---------- home Instagram section ---------- */
#Body .i2d-ig { padding: 2.5rem 0; }
#Body .i2d-ig-inner {
    width: min(1196px, 100% - 2rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(253, 29, 29, .12) 0%, transparent 55%),
        radial-gradient(120% 140% at 0% 100%, rgba(131, 58, 180, .14) 0%, transparent 55%),
        var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    box-shadow: var(--i2d-shadow);
}
#Body .i2d-ig-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #C13584; }
#Body .i2d-ig-badge svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
#Body .i2d-ig-title { margin: .75rem 0 .5rem; font-size: 1.571rem; line-height: 1.6; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-ig-desc { margin: 0; color: var(--i2d-text-2); line-height: 2; }
#Body .i2d-ig-stats { display: flex; gap: 1rem; list-style: none; margin: 1.25rem 0; padding: 0; }
#Body .i2d-ig-stats li { flex: 1 1 0; text-align: center; padding: .875rem .5rem; border-radius: 1rem; background: var(--i2d-surface-2); }
#Body .i2d-ig-stats strong { display: block; font-size: 1.428rem; font-weight: 900; color: var(--i2d-text); line-height: 1.4; }
#Body .i2d-ig-stats span { font-size: .857rem; color: var(--i2d-muted); }
#Body .i2d-btn-ig { color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
#Body .i2d-btn-ig:hover { color: #fff; filter: brightness(1.05); }
#Body .i2d-ig-visual { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; aspect-ratio: 4 / 3; }
#Body .i2d-ig-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 1rem; display: block; }
#Body .i2d-ig-visual img:first-child { grid-row: 1 / 3; }
@media (max-width: 767px) {
    #Body .i2d-ig-inner { grid-template-columns: 1fr; padding: 1.25rem; }
    #Body .i2d-ig-title { font-size: 1.214rem; }
    #Body .i2d-ig-stats { gap: .5rem; }
}

/* megamenu.rtl.css is printed at the end of <body>: until it arrives the «خودروها» submenus showed open and unstyled.
   Same rules as megamenu.rtl.css (the menu script opens them with inline styles on hover). */
.dng-megamenu .dnngo_menuslide { display: none; position: absolute; top: 100%; right: 0; z-index: 907; }
.dng-megamenu .dnngo_slide_menu .dnngo_submenu { display: none; position: absolute; right: 100%; top: 0; z-index: 904; }

/* «خودروها» megamenu (desktop): one wide panel under the header bar with every brand and its models in columns,
   instead of a narrow brand list with a second fly-out per brand */
@media (min-width: 992px) {
    #Body .dng-megamenu .primary_structure:has(> li > a[title="خودروها"]),
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) { position: static; }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) > .dnngo_menuslide {
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        width: auto !important;
        padding-top: .625rem;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu {
        display: block;
        width: 100% !important;
        columns: 7 8.5rem;
        column-gap: 1.25rem;
        padding: 1.25rem 1.5rem .5rem;
        background: var(--i2d-surface);
        border: 1px solid var(--i2d-border);
        border-radius: 1.25rem;
        box-shadow: 0 18px 40px rgba(28, 28, 40, .14) !important;
        scrollbar-width: thin;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li {
        display: block;
        float: none;
        width: auto;
        break-inside: avoid;
        padding: 0 0 .875rem;
        border: 0;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li > a {
        display: block;
        padding: .25rem 0 .375rem !important;
        border-bottom: 1px solid var(--i2d-border);
        background: none !important;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li > a > span {
        padding: 0 !important;
        color: var(--i2d-text) !important;
        font-size: 1rem;
        font-weight: 800;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li::before,
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li > a::after,
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu > li > a > span::after { display: none !important; }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_submenu > ul {
        padding: 0 !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu .dnngo_submenu {
        display: block !important;
        position: static !important;
        width: auto !important;
        padding: .25rem 0 0;
        background: none !important;
        box-shadow: none !important;
        border: 0;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_submenu li { display: block; float: none; width: auto; border: 0; }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_submenu li a { display: block; padding: .125rem 0 !important; background: none !important; }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_submenu li a > span {
        padding: 0 !important;
        color: var(--i2d-muted) !important;
        font-size: .875rem;
        line-height: 1.7;
        font-weight: 400;
        transition: color .15s;
    }
    #Body .dng-megamenu .primary_structure > li:has(> a[title="خودروها"]) .dnngo_slide_menu a:hover > span { color: var(--i2d-accent-text) !important; }
}

/* sticky desktop header: only the rounded bar floats (no full-width white strip, no shadow strip under it) */
#Body .floating-active #headerrow-349356 { background-color: transparent !important; box-shadow: none !important; }
#Body .floating-active #headerrow-349356::after { content: none !important; box-shadow: none !important; }
#Body .floating-active #headerrow-349356 .header-container-box { box-shadow: none !important; }

/* the fixed bottom app bar (desktop header row) is a mobile/tablet thing */
@media (min-width: 992px) {
    #Body .header-bottom-bg { display: none !important; }
    #Body footer .footer-row { padding-bottom: 0 !important; }
}
#Body .floating-active #headerrow-349356 .header-container-box { margin-top: .5rem; }

/* footer */
#Body footer .footer-row { border-radius: 1.5rem 1.5rem 0 0; }
#Body footer .footer-column-title { font-size: 1.143rem; font-weight: 800; }
#Body footer .footer-about-txt,
#Body footer .dngTextBox li,
#Body footer .dngTextBox li a,
#Body footer .dngTextBox p { font-size: 1rem; line-height: 2; }
#Body footer .copyright { font-size: .929rem; }
/* fixed-position divider crossed the footer map; the copyright row already draws its own line */
#Body footer .footer-row::after { content: none !important; }

/* footer (Footer Builder: brand | quick links | contact + map | copyright) — dark band with the brand gold */
#Body footer .footer-row {
    background: #15151C !important;
    color: #B9B9C6;
    border-top: 3px solid var(--i2d-accent);
    border-radius: 1.75rem 1.75rem 0 0;
    padding: 2.75rem 1.75rem 0;
    row-gap: 2rem;
}
#Body footer .footer-row a { color: inherit; transition: color .2s; }
#Body footer .footer-row a:hover { color: var(--i2d-accent); }
#Body footer .footer-column-title {
    position: relative;
    display: block;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    color: #fff;
    font-size: 1.143rem;
    font-weight: 800;
}
#Body footer .footer-column-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.25rem;
    height: 3px;
    border-radius: 2px;
    background: var(--i2d-accent);
}
#Body footer .i2d-foot-logo { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: #fff !important; }
#Body footer .i2d-foot-logo img { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; padding: .25rem; border-radius: .625rem; background: #fff; }
#Body footer .footer-about-txt::before { content: none !important; display: none !important; }
#Body footer .footer-contact svg:has(use[href="#clock"]),
#Body footer .footer-contact svg:has(use[*|href="#clock"]) { fill: var(--i2d-accent); stroke: none; }
#Body footer .i2d-foot-logo span { display: flex; flex-direction: column; font-size: 1.214rem; font-weight: 900; line-height: 1.5; }
#Body footer .i2d-foot-logo small { font-size: .857rem; font-weight: 400; color: #9A9AA8; }
#Body footer .footer-about-txt { margin: 0 0 1.25rem; color: #A3A3B1; font-size: .929rem; line-height: 2.1; text-align: justify; }
#Body footer .i2d-foot-social { display: flex; gap: .625rem; }
#Body footer .i2d-foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
}
#Body footer .i2d-foot-social a:hover { background: var(--i2d-accent); border-color: var(--i2d-accent); color: #15151C; }
#Body footer .i2d-foot-social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
#Body footer .i2d-foot-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
#Body footer .i2d-foot-links li { list-style: none; }
#Body footer .i2d-foot-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: 1rem; color: #C9C9D4; }
#Body footer .i2d-foot-links a::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-left: 2px solid var(--i2d-accent);
    border-bottom: 2px solid var(--i2d-accent);
    transform: rotate(45deg);
    transition: transform .2s;
}
#Body footer .i2d-foot-links a:hover::before { transform: rotate(45deg) translate(-2px, 2px); }
#Body footer .i2d-foot-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
#Body footer .footer-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: .875rem; }
#Body footer .footer-contact li { display: flex; align-items: flex-start; gap: .625rem; list-style: none; font-size: .929rem; line-height: 1.9; color: #C9C9D4; }
#Body footer .footer-contact li a { font-size: 1.071rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
#Body footer .footer-contact svg { width: 1.25rem; height: 1.25rem; margin-top: .25rem; flex: 0 0 auto; fill: none; stroke: var(--i2d-accent); color: var(--i2d-accent); }
#Body footer .footer-map { position: relative; display: block; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
#Body footer .footer-map img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85); transition: transform .4s; }
#Body footer .footer-map:hover img { transform: scale(1.04); }
#Body footer .i2d-foot-route {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    padding: .35rem 1rem;
    border-radius: 2rem;
    background: var(--i2d-accent);
    color: #15151C;
    font-size: .857rem;
    font-weight: 800;
}
#Body footer .copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-top: .5rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8D8D9B;
    font-size: .857rem;
}
#Body footer .copyright::after { content: none !important; }
#Body footer .i2d-foot-credit { display: inline-flex; align-items: center; gap: .5rem; }
#Body footer .copyright svg { fill: #C9C9D4; color: #C9C9D4; }
@media (max-width: 991px) {
    /* room for the fixed bottom app bar */
    #Body footer .footer-row { padding: 2.25rem 1.25rem 8.5rem; border-radius: 1.25rem 1.25rem 0 0; }
}
@media (max-width: 575px) {
    #Body footer .i2d-foot-contact { grid-template-columns: minmax(0, 1fr); }
    #Body footer .copyright { justify-content: center; text-align: center; }
}

/* long-form text (EasyDNN car pages / articles): Iran2d.css pins it to 12px light */
#Body .car-details-page .desc,
#Body .car-details-page .desc p,
#Body .car-details-page .desc li,
#Body .seo-content,
#Body .seo-content :is(p, li, span) { font-size: 1rem; font-weight: 400; line-height: 2.1; }
#Body .seo-content strong { font-size: inherit; font-weight: 700; }
#Body .seo-content li > p { display: inline; margin: 0; }
#Body .seo-content ul, #Body .seo-content ol { margin: .25rem 0 1rem; }
#Body .article-heading a,
#Body .car-details-page .article-heading li { font-size: 1rem; }

/* table of contents (EasyDNN articles + car pages): light card, numbered, two columns on wide screens */
#Body .article-heading-holder {
    padding: 1.25rem 1.5rem !important;
    background: var(--i2d-surface) !important;
    border: 1px solid var(--i2d-border);
    border-right: 4px solid var(--i2d-accent);
    border-radius: var(--i2d-radius) !important;
}
#Body .article-heading-holder::before { content: none !important; }
#Body .article-heading-holder > :not(ul) { display: block; margin-bottom: .75rem; color: var(--i2d-text); font-size: 1.071rem; font-weight: 800; }
#Body .article-heading { display: block !important; counter-reset: i2d-toc; columns: 2 18rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
#Body .article-heading li {
    counter-increment: i2d-toc;
    display: flex;
    align-items: baseline;
    gap: .625rem;
    margin: 0;
    padding: .375rem 0;
    break-inside: avoid;
    list-style: none;
    border-bottom: 1px dashed var(--i2d-border);
}
#Body .article-heading li::before {
    content: counter(i2d-toc, persian) !important;
    flex: 0 0 1.75rem;
    width: 1.75rem !important;
    height: 1.75rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: rgba(211, 169, 69, .16) !important;
    color: var(--i2d-accent-text);
    font-size: .857rem;
    font-weight: 800;
    position: static !important;
    transform: none !important;
}
#Body .article-heading li a { color: var(--i2d-text) !important; font-weight: 500; line-height: 1.8; transition: color .15s; }
#Body .article-heading li a:hover { color: var(--i2d-accent-text) !important; }
/* sections without a heading leave an empty entry */
#Body .article-heading li:has(> a:empty) { display: none; }

/* tables inside text content: articles, car pages, HTML modules (brand pages, about …) */
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table {
    width: 100%;
    margin: 1.25rem 0 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--i2d-border) !important;
    border-radius: var(--i2d-radius);
    overflow: hidden;
    background: var(--i2d-surface);
    font-size: .929rem;
}
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table :is(th, td) {
    padding: .75rem 1rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--i2d-border) !important;
    text-align: right;
    vertical-align: top;
    line-height: 1.9;
    color: var(--i2d-text-2);
}
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table :is(th, thead td) {
    background: #1C1C28 !important;
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
}
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table tbody tr:nth-child(even) :is(td, th) { background: var(--i2d-surface-2); }
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table tbody tr:last-child :is(td, th) { border-bottom: 0 !important; }
#Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table tbody td:first-child { color: var(--i2d-text); font-weight: 600; }
html[data-theme="dark"] #Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table :is(th, thead td) { background: #2A2A36 !important; }
@media (max-width: 767px) {
    /* wide tables scroll sideways inside themselves, not the page */
    #Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table { display: block; overflow-x: auto; white-space: nowrap; }
    #Body :is(.seo-content, .desc, .DnnModule-DNN_HTML .Normal, .edn_article) table :is(td, th) { white-space: normal; min-width: 9rem; }
}
#Body [class*="eds_news_"] .content-box .desc { font-size: .929rem; }
html[data-theme="dark"] #Body .module-more-link { color: var(--i2d-accent) !important; }
/* dark mode: logo with light lettering (generated from the portal logo) */
html[data-theme="dark"] #Body header .logo img.header-logo,
html[data-theme="dark"] #Body header .logo img.floating-header-logo { content: url("/Portals/0/iran2d-logo-dark.png"); }

/* ---------- ad details: spec icons, readable values, call-the-expert button ---------- */
#Body .mbd-ad-details .i2d-ic {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--i2d-accent-dark);
}
html[data-theme="dark"] #Body .mbd-ad-details .i2d-ic { color: var(--i2d-accent); }
#Body .mbd-ad-details .ad-content-wrapper .caption { display: inline-flex; align-items: center; gap: .5rem; color: var(--i2d-text); }
#Body .mbd-ad-details .ad-content-wrapper .info-cols .item .caption { color: var(--i2d-muted); font-weight: 400; }
#Body .mbd-ad-details .ad-content-wrapper .info-row .caption { font-size: 1rem; font-weight: 600; }
#Body .mbd-ad-details .ad-content-wrapper .info-row .val { color: var(--i2d-text); font-weight: 700; }
#Body .mbd-ad-details .ad-content-wrapper .info-cols .item { border-left-color: var(--i2d-border); }
#Body .mbd-ad-details .ad-content-wrapper .divider { border-top-color: var(--i2d-border); }
#Body .mbd-ad-details .ad-content-wrapper .ad-desc .desc { font-size: 1rem; font-weight: 400; line-height: 2; }

#Body .i2d-expert-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    margin: 1.25rem 0 0;
    padding: .875rem 1.25rem;
    border-radius: .875rem;
    background: var(--i2d-accent);
    color: #1C1C28;
    font-weight: 700;
    font-size: 1.071rem;
    box-shadow: 0 6px 18px rgba(211, 169, 69, .35);
    transition: transform .2s, background-color .2s;
}
#Body .i2d-expert-call:hover { background: #c39a37; color: #1C1C28; transform: translateY(-1px); }
#Body .i2d-expert-call .i2d-ic { width: 1.3rem; height: 1.3rem; color: #1C1C28; }
#Body .i2d-expert-call strong { font-weight: 800; letter-spacing: .02em; }

/* ---------- /ads: divar-style horizontal filter chips (MBD Search field 95 template) ---------- */
#Body .i2d-filterbar { display: flex; align-items: center; gap: .75rem; width: 100%; }
#Body .i2d-chips {
    display: flex;
    gap: .5rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    padding: .25rem .125rem .5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#Body .i2d-chips::-webkit-scrollbar { display: none; }
#Body .i2d-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 2rem;
    border: 1px solid var(--i2d-border);
    background: var(--i2d-surface);
    color: var(--i2d-text);
    font: inherit;
    font-size: .929rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
#Body .i2d-chip:hover { border-color: var(--i2d-accent); }
#Body .i2d-chip.is-active { border-color: var(--i2d-accent); background: rgba(211, 169, 69, .14); color: var(--i2d-accent-dark); }
html[data-theme="dark"] #Body .i2d-chip.is-active { color: var(--i2d-accent); }
#Body .i2d-chip-main { background: var(--i2d-text); color: var(--i2d-surface); border-color: var(--i2d-text); }
#Body .i2d-chip-main:hover { background: var(--i2d-accent); border-color: var(--i2d-accent); color: #1C1C28; }
#Body .i2d-chip svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#Body .i2d-sort { flex: 0 0 auto; }
#Body .i2d-sort select {
    height: 2.5rem;
    padding: 0 .875rem 0 2rem;
    border-radius: 2rem;
    border: 1px solid var(--i2d-border);
    background-color: var(--i2d-surface);
    color: var(--i2d-text);
    font: inherit;
    font-size: .929rem;
}
@media (max-width: 767px) {
    #Body .i2d-filterbar { flex-direction: column; align-items: stretch; gap: .25rem; }
    #Body .i2d-sort { align-self: flex-start; }
}

/* ---------- /ads filter drawer (MBD Search panel): right-side sheet, consistent fields ---------- */
#Body .mbd-search-default .filter-wrapper { background: rgba(15, 15, 20, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
#Body .mbd-search-default .filter-wrapper > .ng-scope {
    right: 0;
    left: auto;
    width: min(24rem, 100%) !important;
    padding: 1.25rem 1.25rem 6rem;
    background: var(--i2d-surface);
    color: var(--i2d-text);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
}
#Body .mbd-search-default .filter-wrapper .searchParrent { margin: 0 !important; row-gap: .75rem; }
#Body .mbd-search-default .filter-wrapper .sd-field { margin: 0 !important; padding-left: 0; padding-right: 0; }
#Body .mbd-search-default .filter-wrapper .sd-field.col-6 { padding-left: .375rem; padding-right: .375rem; }
#Body .mbd-search-default .filter-wrapper .filters-head { border-bottom-color: var(--i2d-border); padding-bottom: 1rem; }
#Body .mbd-search-default .filter-wrapper .filters-head strong { font-size: 1.143rem; font-weight: 800; color: var(--i2d-text); }
#Body .mbd-search-default .filter-wrapper .clear-filter-btn { background: transparent; border-color: var(--i2d-border); color: #D71920; font-size: .857rem; }
#Body .mbd-search-default .filter-wrapper .filter-sec-title { color: var(--i2d-text); font-weight: 700; margin-top: 1rem; }
#Body .mbd-search-default .filter-wrapper .chosen-container,
#Body .mbd-search-default .filter-wrapper .mbd-chosen-clear-wrap,
#Body .mbd-search-default .filter-wrapper .mbd-chosen-inner-wrap,
#Body .mbd-search-default .filter-wrapper select { width: 100% !important; }
#Body .mbd-search-default .filter-wrapper .chosen-container-single .chosen-single,
#Body .mbd-search-default .filter-wrapper .ui.input input,
#Body .mbd-search-default .filter-wrapper .ui.fluid.input input {
    height: 2.875rem;
    min-height: 2.875rem;
    padding: 0 .875rem !important;
    border: 1px solid var(--i2d-border) !important;
    border-radius: .75rem !important;
    background: var(--i2d-surface) !important;
    color: var(--i2d-text) !important;
    box-shadow: none !important;
    line-height: 2.875rem;
    font-size: .929rem;
}
#Body .mbd-search-default .filter-wrapper .ui.fluid.input { border-bottom: 0; }
/* phones get the native select (no chosen): same field look */
#Body .mbd-search-default .filter-wrapper select:not([style*="display: none"]) {
    height: 2.875rem;
    padding: 0 .875rem;
    border: 1px solid var(--i2d-border);
    border-radius: .75rem;
    background-color: var(--i2d-surface);
    color: var(--i2d-text);
    font: inherit;
    font-size: .929rem;
}
#Body .mbd-search-default .filter-wrapper .ui.input input::placeholder { color: var(--i2d-muted); }
#Body .mbd-search-default .filter-wrapper .ui.input input:focus,
#Body .mbd-search-default .filter-wrapper .chosen-container-active .chosen-single { border-color: var(--i2d-accent) !important; }
#Body .mbd-search-default .filter-wrapper .NumRange .ui.input { display: block; width: 100%; margin-bottom: .5rem; }
#Body .mbd-search-default .filter-wrapper .ui.primary.button {
    height: 3rem;
    border-radius: .875rem !important;
    background: var(--i2d-accent) !important;
    color: #1C1C28 !important;
    font-weight: 800;
    font-size: 1rem;
}
#Body .mbd-search-default .filter-wrapper .NumRange .mbd-field-number,
#Body .mbd-search-default .filter-wrapper .NumRange .ui.input,
#Body .mbd-search-default .filter-wrapper .NumRange .ui.input input { width: 100% !important; max-width: none !important; }
#Body .mbd-search-default .filter-wrapper .NumRange .mbd-field-number { display: block; }

/* modules placed in the full-width panes (FullScreenPaneA/B/D …) stay inside the site container,
   except sections built to run edge to edge (home Instagram band) */
#Body [id^="dnn_FullScreenPane"] > .DnnModule:not(:has(.i2d-ig)) {
    width: 100%;
    max-width: 1196px;
    margin-inline: auto;
    padding-inline: .5rem;
}
@media (max-width: 1211px) {
    #Body [id^="dnn_FullScreenPane"] > .DnnModule:not(:has(.i2d-ig)) { padding-inline: 1rem; }
}

/* stories: no story → no story strip at all (whole module, so its title/spacing go too).
   622 = home story module: its title is printed by the server before Angular renders the strip, so it starts hidden */
#Body .DnnModule:has(.story-wrapper):not(:has(.story-wrapper .swiper-slide)),
#Body .DnnModule-622:not(:has(.story-wrapper .swiper-slide)) { display: none; }

/* brand pickers (MBD Search, ListSelectiveImage): skeleton cards until the real brands are rendered
   445 /ads, 459 home, 757 آگهی‌نامه (slider, 105px cards) — 490 dashboard (tile grid) */
#Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757, .DnnModule-490) .form-loading { display: none !important; }
#Body .DnnModule-459 .mbd-search { min-height: 189px; }
#Body .DnnModule-757 .mbd-search { min-height: 210px; }
#Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757, .DnnModule-490) .mbd-search {
    --i2d-sk-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='123' height='105'%3E%3Crect x='9' width='105' height='105' rx='12' fill='%23ECECEF'/%3E%3Crect x='33' y='12' width='57' height='57' rx='6' fill='%23E1E1E6'/%3E%3Crect x='36' y='80' width='51' height='9' rx='4.5' fill='%23E1E1E6'/%3E%3C/svg%3E");
    --i2d-sk-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='137'%3E%3Crect x='11' width='79' height='79' rx='12' fill='%23ECECEF'/%3E%3Crect x='21' y='90' width='59' height='10' rx='5' fill='%23ECECEF'/%3E%3C/svg%3E");
    --i2d-sk-shine: rgba(255, 255, 255, .6);
    --i2d-sk-x: 3.5rem;
    position: relative;
}
html[data-theme="dark"] #Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757, .DnnModule-490) .mbd-search {
    --i2d-sk-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='123' height='105'%3E%3Crect x='9' width='105' height='105' rx='12' fill='%2324242E'/%3E%3Crect x='33' y='12' width='57' height='57' rx='6' fill='%232E2E3A'/%3E%3Crect x='36' y='80' width='51' height='9' rx='4.5' fill='%232E2E3A'/%3E%3C/svg%3E");
    --i2d-sk-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='137'%3E%3Crect x='11' width='79' height='79' rx='12' fill='%2324242E'/%3E%3Crect x='21' y='90' width='59' height='10' rx='5' fill='%2324242E'/%3E%3C/svg%3E");
    --i2d-sk-shine: rgba(255, 255, 255, .06);
}
@media (max-width: 767px) {
    #Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757) .mbd-search { --i2d-sk-x: 1rem; }
}
/* loading = no real brand rendered yet */
#Body :is(.DnnModule-445, .DnnModule-459) .mbd-search:not(:has(.list-selective-slider-wrapper .swiper-slide)) {
    background: var(--i2d-sk-card) right var(--i2d-sk-x) top 14px / 123px 105px repeat-x;
}
#Body .DnnModule-757 .mbd-search:not(:has(.list-selective-slider-wrapper .swiper-slide)) {
    background: var(--i2d-sk-card) right var(--i2d-sk-x) top 35px / 123px 105px repeat-x;
}
#Body .DnnModule-490 .mbd-search:not(:has(.mbd-field-list-selective-image img)) {
    min-height: 34rem;
    background: var(--i2d-sk-tile) right top 14px / 101px 137px repeat;
}
#Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757) .mbd-search:not(:has(.list-selective-slider-wrapper .swiper-slide))::after,
#Body .DnnModule-490 .mbd-search:not(:has(.mbd-field-list-selective-image img))::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0, var(--i2d-sk-shine) 50%, transparent 100%) no-repeat;
    background-size: 35% 100%;
    animation: i2d-sk-shine 1.4s ease-in-out infinite;
}
@keyframes i2d-sk-shine { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) {
    #Body :is(.DnnModule-445, .DnnModule-459, .DnnModule-757, .DnnModule-490) .mbd-search::after { animation: none !important; }
}

/* home «مقالات» (EasyDNN latest articles, Swiper with auto-width slides): on desktop the 5 cards share the full width */
@media (min-width: 992px) {
    #Body .DnnModule-434 .edn__articleListWrapper .swiper-slide { width: calc((100% - 70px) / 5) !important; }
    #Body .DnnModule-434 .edn__articleListWrapper .swiper-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* MBD list paging: "load more" button (PagingType 1) and the infinite-scroll sentinel on /ads (PagingType 2) */
#Body .ld-paging { display: flex; justify-content: center; width: 100%; margin: 1.5rem 0 .5rem; }
#Body .mbd-load-more-wrapper { display: flex; justify-content: center; width: 100%; }
#Body .mbd-load-more-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 13rem;
    height: 3rem;
    padding: 0 1.75rem;
    border: 1px solid var(--i2d-accent) !important;
    border-radius: 2rem !important;
    background: var(--i2d-surface) !important;
    color: var(--i2d-text) !important;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: none !important;
    transition: background-color .2s, color .2s, transform .2s;
}
#Body .mbd-load-more-wrapper .btn::after {
    content: "";
    width: .55rem;
    height: .55rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translate(1px, -2px);
}
#Body .mbd-load-more-wrapper .btn:hover:not([disabled]) { background: var(--i2d-accent) !important; color: #1C1C28 !important; transform: translateY(-1px); }
#Body .mbd-load-more-wrapper .btn[disabled] { opacity: .75; cursor: progress; }
#Body .mbd-load-more-wrapper .btn[disabled]::after {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    transform: none;
    animation: i2d-spin .8s linear infinite;
}
#Body .mbd-scroll-paging-sentinel { height: 1px; }
@keyframes i2d-spin { to { transform: rotate(360deg); } }

/* car pages: the model's ads right after the page text, with a link to the same brand/model on /ads */
#Body .i2d-car-ads-module { margin-top: 2.5rem; }
#Body .i2d-car-ads-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--i2d-border);
}
#Body .i2d-car-ads-title { position: relative; margin: 0; padding-right: .875rem; font-size: 1.286rem; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-car-ads-title::before { content: ""; position: absolute; right: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 2px; background: var(--i2d-accent); }
#Body .i2d-car-ads-more { min-width: 12rem; }
#Body .i2d-car-ads .ad-item .title { font-size: 1.071rem; }

/* «گزارش آگهی» dialog (ad-letter details) */
#Body .i2d-report-open { cursor: pointer; font: inherit; background: transparent; }
#Body .i2d-report {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1rem 1rem;
    background: rgba(15, 15, 20, .55);
}
#Body .i2d-report[hidden] { display: none; }
#Body .i2d-report-box {
    width: min(32rem, 100%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 1.25rem 1.25rem;
    border-radius: 1.25rem;
    background: var(--i2d-surface);
    color: var(--i2d-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
#Body .i2d-report-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 .75rem;
    margin-bottom: .5rem;
    background: var(--i2d-surface);
    border-bottom: 1px solid var(--i2d-border);
}
#Body .i2d-report-head strong { font-size: 1.143rem; font-weight: 800; }
#Body .i2d-report-close { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--i2d-surface-2); color: var(--i2d-text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
#Body .i2d-report-hint { margin: 0 0 .75rem; color: var(--i2d-text-2); font-size: .929rem; line-height: 1.9; }
#Body .i2d-report-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    padding: .7rem .25rem;
    border-bottom: 1px solid var(--i2d-border);
    cursor: pointer;
}
#Body .i2d-report-option input { margin-top: .35rem; accent-color: var(--i2d-accent); flex: 0 0 auto; }
#Body .i2d-report-option span { display: flex; flex-direction: column; gap: .125rem; }
#Body .i2d-report-option strong { font-weight: 700; color: var(--i2d-text); }
#Body .i2d-report-option small { color: var(--i2d-muted); font-size: .857rem; }
#Body .i2d-report-option:has(input:checked) strong { color: var(--i2d-accent-text); }
#Body .i2d-report-form textarea {
    width: 100%;
    margin-top: .875rem;
    padding: .75rem;
    border: 1px solid var(--i2d-border);
    border-radius: .75rem;
    background: var(--i2d-surface);
    color: var(--i2d-text);
    font: inherit;
    resize: vertical;
}
#Body .i2d-report-msg { min-height: 1.5rem; margin: .5rem 0; color: #D71920; font-size: .929rem; font-weight: 600; }
#Body .i2d-report-msg.is-ok { color: #04975A; }
#Body .i2d-report-send { width: 100%; height: 3rem; }
@media (max-width: 767px) {
    #Body .i2d-report { align-items: flex-end; padding: 0; }
    #Body .i2d-report-box { width: 100%; max-height: 88vh; border-radius: 1.25rem 1.25rem 0 0; }
}

/* ad lists with no result (filters on /ads, car pages without ads) */
#Body .mbd-ads-list > .row > .i2d-empty {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin: .5rem .75rem 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--i2d-surface);
    border: 1px dashed var(--i2d-border);
    border-radius: var(--i2d-radius);
}
#Body .i2d-empty-icon { width: 3.25rem !important; height: 3.25rem !important; padding: .75rem; border-radius: 50%; background: rgba(211, 169, 69, .14); fill: none; stroke: var(--i2d-accent-text); stroke-width: 2; stroke-linecap: round; }
#Body .i2d-empty-title { font-size: 1.143rem; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-empty-text { max-width: 32rem; margin: 0; color: var(--i2d-text-2); line-height: 2; }
#Body .i2d-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
#Body .i2d-empty-actions .i2d-btn { min-width: 11rem; }

/* MBD list skeleton (PreloaderType 1): same card box as the real ads, shimmer while loading */
#Body .i2d-sk {
    background: linear-gradient(90deg, var(--i2d-surface-2) 25%, var(--i2d-border) 37%, var(--i2d-surface-2) 63%);
    background-size: 400% 100%;
    animation: i2d-shimmer 1.4s ease infinite;
}
#Body .i2d-skeleton .ad-item { pointer-events: none; }
#Body .i2d-skeleton .ad-item:hover { box-shadow: none; transform: none; }
#Body .i2d-skeleton .content-box { gap: .5rem; padding-top: 1rem; }
#Body .i2d-sk-line { display: block; height: .9rem; border-radius: .45rem; }
#Body .i2d-sk-line.i2d-sk-price { height: 1.1rem; margin-top: auto; }
#Body .i2d-skeleton-rows { display: flex; flex-direction: column; gap: .5rem; }
#Body .i2d-sk-row { height: 3rem; border-radius: .75rem; }
@keyframes i2d-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { #Body .i2d-sk { animation: none; } }
/* /ads: keep room for the parts that render after their data arrives, so the page does not jump */
/* 445 = brand slider (search), 447 = filter chips (search): their final height is reserved before the data arrives */
#Body .DnnModule-445 .mbd-search { min-height: 189px; }
#Body .DnnModule-447 .mbd-search { min-height: 49px; }
#Body .DnnModule-447 .form-loading { display: none !important; }
#Body .list-selective-slider-wrapper { min-height: 9.5rem; }

/* chips: active value + remove (×) */
#Body .i2d-chip .i2d-chip-val { font-weight: 700; }
#Body .i2d-chip .i2d-chip-x {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-inline-start: .125rem;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
}
#Body .i2d-chip.is-active .i2d-chip-x { display: inline-flex; }
#Body .i2d-chip .i2d-chip-x:hover { background: rgba(215, 25, 32, .12); color: #D71920; }

/* single-filter sheet (one chip = one filter): dialog on desktop, bottom sheet on phones */
#Body .mbd-search-default .filter-wrapper .i2d-sheet-head,
#Body .mbd-search-default .filter-wrapper .i2d-sheet-extra,
#Body .mbd-search-default .filter-wrapper .i2d-sheet-foot { display: none; }
#Body .mbd-search-default .filter-wrapper.i2d-single .sd-field:not(.i2d-show) { display: none !important; }
/* anchored to the top (not centred): an opening dropdown must not move the dialog under the pointer */
#Body .mbd-search-default .filter-wrapper.i2d-single > .ng-scope {
    top: 14vh;
    bottom: auto;
    right: 50%;
    left: auto;
    transform: translateX(50%);
    width: min(30rem, 92vw) !important;
    max-height: 85vh;
    padding: 0 1.25rem;
    border-radius: 1.25rem;
    display: flex !important;
    flex-direction: column;
}
#Body .mbd-search-default .filter-wrapper.i2d-single .searchParrent { flex: 1 1 auto; padding: .25rem 0 1rem; }
#Body .mbd-search-default .filter-wrapper.i2d-single .i2d-sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 .875rem;
    margin-bottom: .75rem;
    background: var(--i2d-surface);
    border-bottom: 1px solid var(--i2d-border);
}
#Body .i2d-sheet-title { font-size: 1.143rem; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-sheet-close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: var(--i2d-surface-2);
    color: var(--i2d-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
#Body .i2d-sheet-grip { display: none; }
#Body .mbd-search-default .filter-wrapper.i2d-single .i2d-sheet-extra { display: block; width: 100%; padding: 0; }
#Body .i2d-range-hint { min-height: 1.5rem; margin: .25rem 0 .5rem; color: var(--i2d-accent-text); font-weight: 700; font-size: .929rem; }
#Body .i2d-range-hint:empty { min-height: 0; margin: 0; }
#Body .i2d-range-error { width: 100%; margin: .25rem 0 0; color: #D71920; font-size: .929rem; font-weight: 700; }
#Body .filter-wrapper .i2d-invalid input,
#Body .filter-wrapper .i2d-invalid .chosen-single { border-color: #D71920 !important; }
#Body .i2d-apply[disabled] { opacity: .5; cursor: not-allowed; }
#Body .i2d-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
#Body .i2d-presets:empty { display: none; }
#Body .i2d-preset {
    padding: .5rem .875rem;
    border: 1px solid var(--i2d-border);
    border-radius: 2rem;
    background: var(--i2d-surface-2);
    color: var(--i2d-text);
    font: inherit;
    font-size: .929rem;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
#Body .i2d-preset:hover { border-color: var(--i2d-accent); }
#Body .i2d-preset.is-active { border-color: var(--i2d-accent); background: rgba(211, 169, 69, .16); color: var(--i2d-accent-text); font-weight: 700; }
#Body .mbd-search-default .filter-wrapper.i2d-single .i2d-sheet-foot {
    position: sticky;
    bottom: 0;
    display: block;
    padding: .875rem 0 1.125rem;
    background: var(--i2d-surface);
    border-top: 1px solid var(--i2d-border);
}
#Body .i2d-apply {
    width: 100%;
    height: 3rem;
    border: 0;
    border-radius: .875rem;
    background: var(--i2d-accent);
    color: #1C1C28;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}
#Body .i2d-apply:hover { background: #c39a37; }
/* the sheet keeps chosen dropdown lists inside it */
#Body .mbd-search-default .filter-wrapper.i2d-single .chosen-container .chosen-drop { position: relative; }
@media (max-width: 767px) {
    #Body .mbd-search-default .filter-wrapper.i2d-single > .ng-scope {
        top: auto;
        bottom: 0;
        right: 0;
        transform: none;
        width: 100% !important;
        max-height: 88vh;
        border-radius: 1.25rem 1.25rem 0 0;
        animation: i2d-sheet-up .2s ease-out;
    }
    #Body .i2d-sheet-grip {
        display: block;
        position: absolute;
        top: .375rem;
        right: 50%;
        transform: translateX(50%);
        width: 2.5rem;
        height: .25rem;
        border-radius: 1rem;
        background: var(--i2d-border);
    }
    #Body .mbd-search-default .filter-wrapper.i2d-single .i2d-sheet-head { padding-top: 1.25rem; }
}
@keyframes i2d-sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- MBD submit forms with floating labels (/submit, /new-ad …) ---------- */
#Body .mbd-submit-default .sd-fields .sd-field.tarazsazanform,
#Body .mbd-submit-default .sd-fields .sd-field:has(> .field-wrapper > .sd-field-text.p-absolute) { margin-top: 1.6rem; }
#Body .mbd-submit-default .sd-fields .sd-field .sd-field-text.p-absolute {
    z-index: 2;
    top: -.85rem;
    padding: 0 .4rem !important;
    background: var(--i2d-bg);
    color: var(--i2d-text);
    font-size: .929rem;
    line-height: 1.6;
    border-radius: .25rem;
}
#Body .mbd-submit-default .chosen-container-single .chosen-single,
#Body .mbd-submit-default .ui.input input,
#Body .mbd-submit-default textarea {
    background: var(--i2d-surface) !important;
    border-color: var(--i2d-border) !important;
    color: var(--i2d-text) !important;
}

/* ---------- MBD form wizard steps: one horizontal row ---------- */
#Body .wizard-steps .wz-steps { display: flex !important; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
#Body .wizard-steps .wz-steps::-webkit-scrollbar { display: none; }
#Body .wizard-steps .wz-steps > .wz-step:not(.disabled) { flex: 1 1 0; min-width: 8rem; width: auto !important; }

/* ---------- readable text on the light theme (found with a contrast scan) ---------- */
:root { --i2d-accent-text: #8A6510; }
html[data-theme="dark"] { --i2d-accent-text: #D3A945; }
/* EasyDNN article lists / cards (template Iran2d) */
#Body [class*="eds_news_"] .title,
#Body [class*="eds_news_"] h2.title,
#Body .title-box h2.title { color: var(--i2d-text); }
#Body [class*="eds_news_"] .desc,
#Body .content-box .desc { color: var(--i2d-text-2); }
#Body .EDNcategorycolor-default,
#Body .cat-label a { color: var(--i2d-accent-text) !important; }
/* breadcrumbs */
#Body .Lsilver,
#Body .pagetitle.Lsilver span { color: var(--i2d-muted) !important; }
/* contact page: map/navigation app buttons */
#Body .d-flex.gap-4 .label.color-text-light-4 { color: var(--i2d-text) !important; }
/* gold text links/buttons on light backgrounds */
#Body .custom-btn-outline { color: var(--i2d-accent-text); border-color: var(--i2d-accent); }
#Body .mbd-ad-details .share-text,
#Body .d-flex.align-items-center > div:has(> svg use[href*="share"]),
#Body .mbd-ad-details .ad-content-wrapper .ad-id { color: var(--i2d-accent-text); }
#Body .mbd-ad-details .ad-content-wrapper .ad-id { color: #04975A; }

/* dark theme: re-point the Theme Options text colours (global-0.css) to the dark tokens */
html[data-theme="dark"] #Body,
html[data-theme="dark"] #Body .Normal,
html[data-theme="dark"] #Body .Head,
html[data-theme="dark"] #Body .SubTitle,
html[data-theme="dark"] #Body .SubSubTitle,
html[data-theme="dark"] #Body .default-color,
html[data-theme="dark"] #Body div.is-inherit-root-text,
html[data-theme="dark"] #Body div.is-inherit-root-text :is(p, li, div, span, h1, h2, h3, h4, h5, h6),
html[data-theme="dark"] #Body .page-breadcrumbs .breadcrumbs,
html[data-theme="dark"] #Body .page-breadcrumbs .breadcrumbs :is(a, a:link, a:visited, span) { color: var(--i2d-text) !important; }
html[data-theme="dark"] #Body :is(h1, h2, h3, h4, h5, h6) { color: var(--i2d-text); }
/* sprite icons: the skin's symbols use fill="current"/stroke="current" (not a valid colour), so each icon took whatever
   fixed fill/stroke the skin set on its <svg> — white or black whatever the theme. Paint them with the text colour. */
#Body .inspection-scores-box .inspection-icon { fill: currentColor !important; color: var(--i2d-accent-dark); width: 1.5rem; height: 1.5rem; }
html[data-theme="dark"] #Body .inspection-scores-box .inspection-icon { color: var(--i2d-accent); }
#Body .mbd-ads-list .tech-info .icon svg { fill: currentColor !important; color: var(--i2d-muted); }
#Body :is(.share, .addToWish, .home-link) svg { fill: none; stroke: currentColor !important; color: var(--i2d-text); }
#Body :is(.share, .addToWish) { color: var(--i2d-text); cursor: pointer; }
html[data-theme="dark"] #Body .i2d-expert-call .i2d-ic { color: #1C1C28; }

/* contact page (EasyDNN article): icons were white on the light theme; social links as clear round buttons */
#Body .DnnModule-EasyDNNnews .d-flex.gap-2 > svg { stroke: var(--i2d-accent-dark); color: var(--i2d-accent-dark); width: 1.4rem; height: 1.4rem; flex: 0 0 auto; }
html[data-theme="dark"] #Body .DnnModule-EasyDNNnews .d-flex.gap-2 > svg { stroke: var(--i2d-accent); color: var(--i2d-accent); }
#Body .social-wrapper { display: flex; flex-wrap: wrap; gap: .75rem; }
#Body .social-wrapper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--i2d-accent);
    background: var(--i2d-surface);
    color: var(--i2d-accent-dark);
    transition: background-color .2s, color .2s, transform .2s;
}
#Body .social-wrapper a:hover { background: var(--i2d-accent); color: #1C1C28; transform: translateY(-2px); }
#Body .social-wrapper a svg { width: 1.6rem; height: 1.6rem; fill: currentColor; color: inherit; }
#Body .social-wrapper a[href*="instagram"] { border-color: transparent; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
#Body .social-wrapper a[href*="youtube"] { border-color: transparent; background: #FF0000; color: #fff; }
/* contact page layout: info cards on one side, map + routing apps on the other */
#Body .contact-page .detail-cover-image { margin-bottom: 2rem !important; border-radius: var(--i2d-radius); overflow: hidden; }
#Body .contact-page .detail-cover-image img { width: 100%; height: clamp(11rem, 24vw, 19rem); object-fit: cover; display: block; }
#Body .contact-page .info-items {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-auto-rows: auto;
    gap: .75rem 1.5rem;
    align-items: start;
}
#Body .contact-page .info-items > .item:not(.w-100) {
    grid-column: 1;
    margin: 0;
    padding: 1rem 1.125rem;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    border-radius: var(--i2d-radius);
}
#Body .contact-page .info-items > .item .caption { font-size: .929rem; font-weight: 600; color: var(--i2d-muted); }
#Body .contact-page .info-items > .item .txt { display: block; margin-top: .375rem; font-size: 1.071rem; font-weight: 700; line-height: 1.9; color: var(--i2d-text); }
#Body .contact-page .info-items > .item:has(+ .social-wrapper) { border-bottom: 0; border-radius: var(--i2d-radius) var(--i2d-radius) 0 0; padding-bottom: .25rem; }
#Body .contact-page .info-items > .item:has(+ .social-wrapper) .txt { display: none; }
#Body .contact-page .info-items > .social-wrapper {
    grid-column: 1;
    margin-top: -.75rem;
    padding: .5rem 1.125rem 1.125rem;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    border-top: 0;
    border-radius: 0 0 var(--i2d-radius) var(--i2d-radius);
}
#Body .contact-page .info-items > .item.w-100 {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin: 0 !important;
    padding: 1rem;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    border-radius: var(--i2d-radius);
}
#Body .contact-page .mapimg { display: block; border-radius: calc(var(--i2d-radius) - .25rem); overflow: hidden; }
#Body .contact-page .mapimg img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
#Body .contact-page .apps-link > a {
    flex: 1 1 0;
    gap: .75rem !important;
    border: 1px solid var(--i2d-border);
    border-radius: .875rem;
    background: var(--i2d-surface-2);
    transition: border-color .2s;
}
#Body .contact-page .apps-link > a:hover { border-color: var(--i2d-accent); }
#Body .contact-page .apps-link > a img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
#Body .contact-page .apps-link .label { letter-spacing: 0; font-size: .929rem; }
@media (max-width: 991px) {
    #Body .contact-page .info-items { grid-template-columns: minmax(0, 1fr); }
    #Body .contact-page .info-items > .item.w-100 { grid-column: 1; grid-row: auto; margin-top: .75rem !important; }
}
/* about-us (HTML module): intro + photo, four principles, story with a pull quote, call to action */
#Body .i2d-about { display: grid; gap: 2.5rem; padding: .5rem 0 1rem; color: var(--i2d-text); }
#Body .i2d-about-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
#Body .i2d-about-kicker { display: inline-block; margin-bottom: .5rem; color: var(--i2d-accent-text); font-weight: 700; font-size: .929rem; }
#Body .i2d-about h1 { margin: 0 0 1rem; font-size: 1.857rem; font-weight: 900; line-height: 1.6; color: var(--i2d-text); }
#Body .i2d-about-lead { margin: 0; font-size: 1.071rem; line-height: 2.1; color: var(--i2d-text-2); text-align: justify; }
#Body .i2d-about-photo { margin: 0; border-radius: var(--i2d-radius); overflow: hidden; background: var(--i2d-surface-2); }
/* the photos carry a printed caption at the bottom: crop it away */
#Body .i2d-about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
#Body .i2d-about-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
#Body .i2d-about-value { padding: 1.25rem; background: var(--i2d-surface); border: 1px solid var(--i2d-border); border-radius: var(--i2d-radius); }
#Body .i2d-about-num { display: block; margin-bottom: .5rem; color: var(--i2d-accent); font-size: 1.5rem; font-weight: 900; line-height: 1; }
#Body .i2d-about-value h2 { margin: 0 0 .375rem; font-size: 1.071rem; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-about-value p { margin: 0; font-size: .929rem; line-height: 1.9; color: var(--i2d-text-2); }
#Body .i2d-about-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }
#Body .i2d-about-story .i2d-about-photo { position: sticky; top: 7rem; }
#Body .i2d-about-text p { margin: 0 0 1rem; font-size: 1rem; line-height: 2.1; color: var(--i2d-text-2); text-align: justify; }
#Body .i2d-about-text blockquote {
    margin: 1.25rem 0;
    padding: .25rem 1.25rem .25rem 0;
    border-right: 3px solid var(--i2d-accent);
    font-size: 1.214rem;
    font-weight: 800;
    line-height: 1.9;
    color: var(--i2d-text);
}
#Body .i2d-about-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--i2d-surface);
    border: 1px solid var(--i2d-border);
    border-right: 4px solid var(--i2d-accent);
    border-radius: var(--i2d-radius);
}
#Body .i2d-about-cta h2 { margin: 0 0 .25rem; font-size: 1.286rem; font-weight: 800; color: var(--i2d-text); }
#Body .i2d-about-cta p { margin: 0; color: var(--i2d-text-2); }
#Body .i2d-about-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
#Body .i2d-about-cta-actions .i2d-btn { min-width: 9.5rem; }
#Body .i2d-about-call { color: var(--i2d-text); font-weight: 600; }
#Body .i2d-about-call strong { font-weight: 800; }
@media (max-width: 991px) {
    #Body .i2d-about-hero, #Body .i2d-about-story { grid-template-columns: minmax(0, 1fr); }
    #Body .i2d-about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #Body .i2d-about-story .i2d-about-photo { position: static; }
    #Body .i2d-about h1 { font-size: 1.429rem; }
}
@media (max-width: 575px) {
    #Body .i2d-about-values { grid-template-columns: minmax(0, 1fr); }
}
/* page title over the contact banner */
#Body .page-breadcrumbs.p-absolute .breadcrumbs,
#Body .page-breadcrumbs.p-absolute .breadcrumbs :is(a, span) { color: #fff !important; font-size: 1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
/* contact page: absolutely-positioned breadcrumb must not widen the page */
#Body .page-breadcrumbs.p-absolute { left: 0; right: 0; width: auto !important; max-width: 100%; }
/* inspection score rings: number follows the theme text colour */
#Body .mbd-ad-details .i2d-score-text { color: var(--i2d-text); fill: var(--i2d-text); }
/* no sideways page scroll from negative-margin rows inside modules (clip keeps position:sticky working) */
#Body #dng-wrapper { overflow-x: clip; }

/* MBD 6 components.css defines a utility .w-100 = 100px, which overrides Bootstrap's .w-100 (100%)
   and squeezes the new-ad form groups to 100px. Restore the Bootstrap meaning inside site forms. */
mbd-form .w-100 {
    width: 100% !important;
}

/* ---------- new-ad form (/new-ad, module 462) ---------- */
#Body .new-add-form { max-width: 56rem; margin: 0 auto; }
#Body .new-add-form .group-info-wrapper { margin-bottom: 1.25rem !important; font-size: 1.15rem; font-weight: 700; color: var(--i2d-text); }
/* progress: one segment per step, name from the title attribute */
#Body .new-add-form .wizard-steps.artin { display: flex; gap: .5rem; margin: 0 0 1.5rem; counter-reset: i2dstep; }
#Body .new-add-form .wizard-steps.artin > .wz-step {
    flex: 1 1 0; width: auto !important; height: auto !important; min-width: 0; padding: 0; margin: 0;
    background: none; border: 0; cursor: default; counter-increment: i2dstep;
    font-size: .857rem; color: var(--i2d-muted); text-align: right;
}
#Body .new-add-form .wizard-steps.artin > .wz-step::before {
    content: ""; display: block; height: .3rem; border-radius: 1rem; margin-bottom: .45rem;
    background: var(--i2d-border); transition: background .2s;
}
#Body .new-add-form .wizard-steps.artin > .wz-step::after {
    content: counter(i2dstep, persian) ". " attr(title);
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#Body .new-add-form .wizard-steps.artin > .wz-step:has(~ .active)::before { background: var(--i2d-accent); opacity: .55; }
#Body .new-add-form .wizard-steps.artin > .wz-step.active::before { background: var(--i2d-accent); }
#Body .new-add-form .wizard-steps.artin > .wz-step.active { color: var(--i2d-text); font-weight: 700; }
@media (max-width: 767.98px) {
    #Body .new-add-form .wizard-steps.artin > .wz-step:not(.active)::after { visibility: hidden; }
    #Body .new-add-form .wizard-steps.artin > .wz-step.active { flex-grow: 3; }
}
/* step buttons: only "back" at the top; each step moves on by its own button or by picking an option */
#Body .new-add-form .wz-btns { display: flex; justify-content: flex-start; margin: -.5rem 0 1rem; }
#Body .new-add-form .wz-btns .next-btn { display: none !important; }
#Body .new-add-form .wz-btns .prev-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; cursor: pointer;
    border: 1px solid var(--i2d-border); border-radius: 2rem; font-size: .857rem; color: var(--i2d-muted);
    background: var(--i2d-surface);
}
#Body .new-add-form .wz-btns .prev-btn:hover { color: var(--i2d-text); border-color: var(--i2d-accent); }
#Body .new-add-form .wz-btns svg path { stroke: currentColor; }
/* ad type: two large cards */
#Body .new-add-form .ad-type-selective .mbd-field-list-selective { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > .clearfix { display: none; }
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    min-height: 10rem; padding: 1.25rem 1rem; cursor: pointer; text-align: center;
    background: var(--i2d-surface); border: 1px solid var(--i2d-border); border-radius: var(--i2d-radius);
    font-weight: 700; color: var(--i2d-text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div:hover,
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div.is-selected {
    border-color: var(--i2d-accent); box-shadow: var(--i2d-shadow); transform: translateY(-2px);
}
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div::before {
    content: ""; width: 3.5rem; height: 3.5rem; background: var(--i2d-accent);
    -webkit-mask: var(--i2d-ico) center / contain no-repeat; mask: var(--i2d-ico) center / contain no-repeat;
}
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div:nth-child(1) {
    --i2d-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16v-4l2-5h9l4 5h2a1 1 0 0 1 1 1v3h-2'/%3E%3Cpath d='M9 16h6'/%3E%3Ccircle cx='6.5' cy='16.5' r='2'/%3E%3Ccircle cx='17' cy='16.5' r='2'/%3E%3Cpath d='M5 12h13'/%3E%3C/svg%3E");
}
#Body .new-add-form .ad-type-selective .mbd-field-list-selective > div:nth-child(2) {
    --i2d-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3C/svg%3E");
}
/* details, photos and price steps: two columns on wide screens */
@media (min-width: 768px) {
    #Body .new-add-form :is(#mbdGroup29, #mbdGroup30) > .ng-scope:has(> .sd-field) {
        display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin: 0; align-items: start;
    }
    #Body .new-add-form :is(#mbdGroup29, #mbdGroup30) .sd-field { width: auto; max-width: none; padding: 0; }
    #Body .new-add-form :is(#mbdGroup29, #mbdGroup30) .sd-field:has(textarea, .mbd-field-checkbox, .mbd-field-checkboxlist, .mbd-field-leafletmap, .mbd-field-button, button, #mbdText171) { grid-column: 1 / -1; }
}
#Body .new-add-form .sd-field { margin: 0 0 .85rem !important; }
#Body .new-add-form .chosen-container-single .chosen-single,
#Body .new-add-form .ui.input input { min-height: 2.75rem; border-radius: .6rem !important; display: flex; align-items: center; }
#Body .new-add-form textarea { width: 100% !important; min-height: 8rem; border-radius: .6rem !important; padding: .75rem; }
/* ---------- MBD form dropdowns (chosen): same look as the other inputs ---------- */
#Body mbd-form .mbd-field-dropdownlist { position: relative; display: flex; align-items: center; }
#Body mbd-form .chosen-container { width: 100% !important; font-size: .929rem; }
#Body mbd-form .chosen-container-single .chosen-single {
    display: flex !important; align-items: center; height: 2.75rem !important; min-height: 2.75rem; line-height: 1.4 !important;
    padding: 0 .9rem 0 3.6rem !important; border: 1px solid var(--i2d-border) !important; border-radius: .6rem !important;
    background: var(--i2d-surface) !important; box-shadow: none !important; color: var(--i2d-text) !important;
    transition: border-color .2s, box-shadow .2s;
}
#Body mbd-form .chosen-container-single .chosen-single > span { margin: 0 !important; padding: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#Body mbd-form .chosen-container-single .chosen-default > span { color: var(--i2d-muted) !important; }
#Body mbd-form .chosen-container-single .chosen-single:hover { border-color: color-mix(in srgb, var(--i2d-accent) 55%, var(--i2d-border)) !important; }
#Body mbd-form .chosen-container-active .chosen-single,
#Body mbd-form .chosen-container-active.chosen-with-drop .chosen-single {
    border-color: var(--i2d-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--i2d-accent) 22%, transparent) !important;
    border-radius: .6rem !important; background: var(--i2d-surface) !important;
}
/* chevron instead of the old sprite arrow */
#Body mbd-form .chosen-container-single .chosen-single div {
    position: absolute !important; top: 0 !important; bottom: 0; left: .9rem !important; right: auto !important; width: .7rem !important; height: auto !important;
    display: flex !important; align-items: center; justify-content: center; background: none !important;
}
#Body mbd-form .chosen-container-single .chosen-single div b {
    display: block !important; width: .5rem !important; height: .5rem !important; background: none !important;
    border: solid var(--i2d-muted); border-width: 0 0 2px 2px; transform: translateY(-25%) rotate(-45deg); transition: transform .2s, border-color .2s;
}
#Body mbd-form .chosen-with-drop .chosen-single div b { transform: translateY(25%) rotate(135deg); border-color: var(--i2d-accent); }
/* the "×" (clear) button: its own small round button between the chevron and the text */
#Body mbd-form .mbd-field-dropdownlist > .mbd-chosen-clear-btn {
    position: absolute !important; top: 50% !important; right: auto !important; left: 2.1rem !important; transform: translateY(-50%); z-index: 3;
    width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; line-height: 1;
    font-size: .8rem; color: var(--i2d-muted) !important; background: color-mix(in srgb, var(--i2d-muted) 14%, transparent);
    transition: background .2s, color .2s;
}
#Body mbd-form .mbd-field-dropdownlist > .mbd-chosen-clear-btn:hover { background: #D64545; color: #fff !important; }
#Body mbd-form .mbd-field-dropdownlist > .mbd-chosen-clear-btn i { font-size: .85rem; line-height: 1; }
/* the open list */
#Body mbd-form .chosen-container .chosen-drop {
    margin-top: .35rem; padding: .45rem; border: 1px solid var(--i2d-border) !important; border-radius: .75rem !important;
    background: var(--i2d-surface) !important; box-shadow: 0 12px 32px rgba(28, 28, 40, .14) !important; z-index: 1010;
}
#Body mbd-form .chosen-container .chosen-search { padding: 0 0 .4rem !important; }
#Body mbd-form .chosen-container .chosen-search input[type=text] {
    width: 100% !important; height: 2.4rem !important; padding: 0 .75rem 0 2.2rem !important; border: 1px solid var(--i2d-border) !important; border-radius: .5rem !important;
    background: var(--i2d-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C818B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat left .7rem center / 1rem !important;
    color: var(--i2d-text) !important; font: inherit; outline: none;
}
#Body mbd-form .chosen-container .chosen-search input[type=text]:focus { border-color: var(--i2d-accent) !important; }
#Body mbd-form .chosen-container .chosen-results {
    max-height: 15rem; margin: 0 !important; padding: 0 !important; scrollbar-width: thin; scrollbar-color: var(--i2d-border) transparent;
}
#Body mbd-form .chosen-container .chosen-results li {
    padding: .55rem .75rem !important; border-radius: .45rem; line-height: 1.5 !important; color: var(--i2d-text) !important;
}
#Body mbd-form .chosen-container .chosen-results li.highlighted {
    background: color-mix(in srgb, var(--i2d-accent) 16%, var(--i2d-surface)) !important; background-image: none !important; color: var(--i2d-text) !important;
}
#Body mbd-form .chosen-container .chosen-results li.result-selected { font-weight: 700; color: var(--i2d-accent-text) !important; }
#Body mbd-form .chosen-container .chosen-results li.no-results { background: none !important; color: var(--i2d-muted) !important; }
#Body mbd-form .chosen-container-single.chosen-disabled .chosen-single { opacity: .55; cursor: not-allowed; }
/* car trim: only models that have trims (MBD 6 ignores the field's "Options is filled" show condition) */
#Body mbd-form .sd-field:has(#drpField517_chosen.chosen-disabled) { display: none !important; }
/* buy/sell already chosen by the link (?t=) */
html.i2d-adtype-fixed #Body .new-add-form .sd-field:has(#drpField634) { display: none !important; }
#Body .new-add-form .sd-field-required { display: block; margin-top: .3rem; font-size: .8rem; color: #D64545; }
#Body .new-add-form .sd-field-required:empty { display: none; }
#Body .new-add-form .ui.input input { padding-inline: .9rem !important; }
#Body .new-add-form .mbd-price-words { margin-top: .4rem !important; font-size: .857rem !important; color: var(--i2d-accent-text) !important; }
@media (min-width: 768px) {
    #Body .new-add-form #mbdGroup29 .sd-field:has(#txtAutoNumeric166) { grid-column: 1 / -1; }
}
#Body .new-add-form .sd-field:has(.leaflet-container) .leaflet-container { border-radius: .75rem; border: 1px solid var(--i2d-border); }

/* photo & video uploader: drop zone + preview grid */
#Body .new-add-form #mbdGroup28 .sd-field { flex: 0 0 100%; max-width: 100%; }
#Body .new-add-form .mbd-field-uploadphoto {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem;
}
#Body .new-add-form .mbd-field-uploadphoto > .clearfix { display: none; }
#Body .new-add-form .mbd-field-uploadphoto :is(.box-upload, .box-image, .box-video) {
    position: relative; float: none !important; width: auto !important; height: auto !important; margin: 0 !important;
    aspect-ratio: 4 / 3; border-radius: .75rem; overflow: hidden;
}
#Body .new-add-form .mbd-field-uploadphoto .box-upload {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; cursor: pointer;
    border: 2px dashed var(--i2d-border) !important; background: var(--i2d-surface) !important; color: var(--i2d-muted);
    font-size: .857rem; text-align: center; transition: border-color .2s, background .2s, color .2s;
}
#Body .new-add-form .mbd-field-uploadphoto .box-upload > i { font-size: 1.9rem !important; color: var(--i2d-accent) !important; line-height: 1; }
#Body .new-add-form .mbd-field-uploadphoto .box-upload > :is(i, span) { position: static !important; width: auto !important; margin: 0 !important; }
#Body .new-add-form .mbd-field-uploadphoto .box-upload > span { font-size: .857rem !important; font-weight: 700 !important; color: var(--i2d-text) !important; }
#Body .new-add-form .mbd-field-uploadphoto .box-upload > span.mbd-upload-drop-hint { font-size: .75rem !important; font-weight: 400 !important; color: var(--i2d-muted) !important; }
#Body .new-add-form .mbd-field-uploadphoto .box-upload > span:empty { display: none; }
#Body .new-add-form .mbd-field-uploadphoto .box-upload:hover,
#Body .new-add-form .mbd-field-uploadphoto .box-upload.mbd-upload-dragover {
    border-color: var(--i2d-accent) !important; color: var(--i2d-text);
    background: color-mix(in srgb, var(--i2d-accent) 10%, var(--i2d-surface)) !important;
}
#Body .new-add-form .mbd-field-uploadphoto .box-upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
#Body .new-add-form .mbd-field-uploadphoto :is(.box-image, .box-video) {
    border: 1px solid var(--i2d-border); background: var(--i2d-bg); cursor: grab; box-shadow: var(--i2d-shadow);
}
#Body .new-add-form .mbd-field-uploadphoto :is(.box-image, .box-video) .bu-file {
    width: 100% !important; height: 100% !important; object-fit: cover; display: block; border: 0 !important; margin: 0 !important;
}
#Body .new-add-form .mbd-field-uploadphoto .mbd-upload-remove {
    position: absolute; top: .4rem; left: .4rem; right: auto; z-index: 5;
    width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%;
    background: rgba(20, 20, 28, .72); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer;
    transition: background .2s, transform .2s;
}
#Body .new-add-form .mbd-field-uploadphoto .mbd-upload-remove:hover { background: #D64545; transform: scale(1.08); }
#Body .new-add-form .mbd-field-uploadphoto .box-image .is-main {
    position: absolute; top: .4rem; right: .4rem; left: auto; z-index: 5; font-size: 0 !important;
    padding: .2rem .55rem; border-radius: 1rem; background: var(--i2d-accent); color: #1C1C28;
}
#Body .new-add-form .mbd-field-uploadphoto .box-image .is-main { font-family: inherit !important; opacity: 1 !important; }
#Body .new-add-form .mbd-field-uploadphoto .box-image .is-main::before { display: none; }
#Body .new-add-form .mbd-field-uploadphoto .box-image .is-main::after { content: "عکس اصلی"; font-size: .72rem; font-weight: 700; line-height: 1.4; }
#Body .new-add-form .mbd-field-uploadphoto .box-image:has(.is-main) { outline: 2px solid var(--i2d-accent); outline-offset: -2px; }
#Body .new-add-form .mbd-field-uploadphoto :is(.box-image, .box-video) .bu-progress {
    position: absolute; inset: auto .5rem .5rem; height: .45rem; border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, .7);
}
#Body .new-add-form .mbd-field-uploadphoto .bu-progress .progress-bar { display: block; height: 100%; font-size: 0; background: var(--i2d-accent); }
#Body .new-add-form .mbd-field-uploadphoto .video-processing-badge {
    position: absolute; inset: auto .4rem .4rem auto; padding: .15rem .5rem; border-radius: 1rem; font-size: .72rem; background: rgba(20, 20, 28, .72); color: #fff;
}
#Body .new-add-form #mbdGroup28 .group-info-wrapper::after {
    content: "روی هر عکس بزنید تا «عکس اصلی» شود؛ با کشیدن، ترتیب را عوض کنید.";
    display: block; margin-top: .35rem; font-size: .857rem; font-weight: 400; color: var(--i2d-muted);
}

/* dashboard grids: ad photo as a small thumbnail */
#Body .i2d-grid-thumb { display: block; width: 5.5rem; aspect-ratio: 4 / 3; border-radius: .5rem; overflow: hidden; background: var(--i2d-bg); }
#Body .i2d-grid-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
/* dashboard dialogs with an MBD form (change status, inspection): labels above the fields, full-width boxes */
#Body .remodal .mbd-submit-default .sd-field-text.p-absolute { position: static !important; display: block; padding: 0 !important; margin-bottom: .35rem; font-weight: 700; }
#Body .remodal .mbd-submit-default .sd-field { margin-bottom: .9rem; }
#Body .remodal .mbd-submit-default textarea { width: 100% !important; min-height: 6rem; }
/* the empty "choose…" row is not listed (clearing is done with the × button) */
#Body mbd-form .chosen-container .chosen-results li.i2d-ph { display: none !important; }
/* checkbox lists (equipment): selectable chips */
#Body mbd-form .sd-field > .sd-field-text:not(.p-absolute) { display: block; margin-bottom: .55rem; font-weight: 700; color: var(--i2d-text); }
#Body mbd-form .mbd-field-checkbox { display: flex; flex-wrap: wrap; gap: .5rem; }
#Body mbd-form .mbd-field-checkbox > .checkbox { margin: 0 !important; padding: 0 !important; }
#Body mbd-form .mbd-field-checkbox > .checkbox > label {
    position: relative; display: inline-flex !important; align-items: center; gap: .5rem; margin: 0 !important;
    padding: .5rem .95rem !important; border: 1px solid var(--i2d-border); border-radius: 2rem; cursor: pointer;
    background: var(--i2d-surface); color: var(--i2d-text); font-size: .929rem; line-height: 1.4; user-select: none;
    transition: border-color .2s, background .2s;
}
#Body mbd-form .mbd-field-checkbox > .checkbox > label:hover { border-color: color-mix(in srgb, var(--i2d-accent) 55%, var(--i2d-border)); }
#Body mbd-form .mbd-field-checkbox > .checkbox > label > input { position: absolute !important; inset: 0; width: 100%; height: 100%; margin: 0 !important; opacity: 0 !important; cursor: pointer; z-index: 1; }
#Body mbd-form .mbd-field-checkbox > .checkbox > label > .input-helper {
    position: relative !important; inset: auto !important; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: 0 !important;
    border: 1.5px solid var(--i2d-muted); border-radius: .3rem; background: var(--i2d-surface); transition: background .2s, border-color .2s;
}
#Body mbd-form .mbd-field-checkbox > .checkbox > label > .input-helper::before { display: none !important; }
#Body mbd-form .mbd-field-checkbox > .checkbox > label > .input-helper::after {
    content: "" !important; position: absolute; left: 50%; top: 45%; width: .3rem; height: .55rem; margin: 0;
    border: solid #1C1C28; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform .15s;
    background: none !important; opacity: 1 !important;
}
#Body mbd-form .mbd-field-checkbox > .checkbox > label:has(input:checked) { border-color: var(--i2d-accent); background: color-mix(in srgb, var(--i2d-accent) 14%, var(--i2d-surface)); }
#Body mbd-form .mbd-field-checkbox > .checkbox > label:has(input:checked) > .input-helper { background: var(--i2d-accent); border-color: var(--i2d-accent); }
#Body mbd-form .mbd-field-checkbox > .checkbox > label:has(input:checked) > .input-helper::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
#Body mbd-form .mbd-field-checkbox > .checkbox > label:has(input:focus-visible) { outline: 2px solid var(--i2d-accent); outline-offset: 2px; }
/* chosen copies the select's classes (form-control…) onto its container, which drew a second border around the box */
#Body mbd-form .chosen-container.form-control {
    height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
/* neighbourhood: only when the city has neighbourhoods in the database */
#Body mbd-form .sd-field:has(#drpField170_chosen.chosen-disabled) { display: none !important; }
/* map: the ad's location is the centre of the map, shown by a fixed pin; move the map under it */
#Body mbd-form .leaflet-container .leaflet-marker-icon.i2d-hidden-marker,
#Body mbd-form .leaflet-container .leaflet-marker-shadow { display: none; }
#Body mbd-form .i2d-map-pin {
    position: absolute; left: 50%; top: 50%; z-index: 500; width: 2.4rem; height: 2.4rem; margin: -2.3rem 0 0 -1.2rem; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D3A945' stroke='%231C1C28' stroke-width='1' d='M12 1.5a7.5 7.5 0 0 0-7.5 7.5c0 5.6 7.5 13.5 7.5 13.5s7.5-7.9 7.5-13.5A7.5 7.5 0 0 0 12 1.5z'/%3E%3Ccircle cx='12' cy='9' r='2.8' fill='%231C1C28'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); transition: transform .15s;
}
#Body mbd-form .leaflet-container.i2d-dragging .i2d-map-pin { transform: translateY(-.45rem); }
#Body mbd-form .i2d-map-pin::after {
    content: ""; position: absolute; left: 50%; bottom: -.3rem; width: .5rem; height: .2rem; margin-left: -.25rem; border-radius: 50%; background: rgba(0, 0, 0, .35);
}
#Body mbd-form .i2d-map-hint {
    position: absolute; z-index: 500; top: .6rem; right: .6rem; padding: .3rem .7rem; border-radius: 2rem; pointer-events: none;
    background: rgba(20, 20, 28, .72); color: #fff; font-size: .786rem;
}
