/* =========================================================================
   Jahaniyan — ظاهر دیواری (Divar)
   این فایل آخرین استایل بارگذاری‌شده است و فقط ظاهر را عوض می‌کند؛ هیچ منطقی
   (ثبت آگهی، چت، پرداخت، المنتور، نشان‌کردن، ...) را تغییر نمی‌دهد.
   نوار کنار فقط در دسکتاپ (۱۰۲۵ پیکسل به بالا) نمایش داده می‌شود.
   ========================================================================= */
:root{
  --jh-red:#a62626; --jh-red-d:#8f1f1f; --jh-tx:#3a3a3a; --jh-head:#2b2b2b;
  --jh-mut:#8d8d8d; --jh-line:#e0e0e0; --jh-fill:#f2f2f2;
}
body.jh-divar{background:#fff;color:var(--jh-tx)}

/* ------------------------------ هدر ------------------------------ */
body.jh-divar .jhe-header{background:#fff!important;border-bottom:0!important;box-shadow:0 1px 6px rgba(0,0,0,.09)!important}
body.jh-divar .jhe-item-front{font-size:15px;border-radius:6px;color:var(--jh-tx)!important}
body.jh-divar .jhe-item-front:hover{background:var(--jh-fill)!important;color:var(--jh-tx)!important}
body.jh-divar .jhe-header button.jhe-city-trigger,
body.jh-divar .jhe-header button.jhe-cats-trigger{background:transparent!important}
body.jh-divar .jhe-header button.jhe-city-trigger:hover,
body.jh-divar .jhe-header button.jhe-cats-trigger:hover{background:var(--jh-fill)!important;color:var(--jh-tx)!important}
body.jh-divar .jhe-header .jhe-submit{background:var(--jh-red)!important;color:#fff!important;font-weight:700;padding-inline:24px;border-radius:6px}
body.jh-divar .jhe-header .jhe-submit:hover{background:var(--jh-red-d)!important;color:#fff!important}
body.jh-divar .jhe-header .jhe-search-form{background:var(--jh-fill)!important;border:0!important;border-radius:6px!important}
body.jh-divar .jhe-header .jhe-search-form input[type=search]{font-size:14px;padding-top:12px;padding-bottom:12px;box-shadow:none!important}
body.jh-divar .jhe-header .jhe-search-form button{color:var(--jh-mut)}
body.jh-divar .jhe-header .jhe-search{max-width:620px}
body.jh-divar .jhe-modal-box{border-radius:8px}
body.jh-divar .jhe-chip:hover{background:#fbeeee;border-color:var(--jh-red);color:var(--jh-red)!important}

/* ---------- ناحیهٔ بالای صفحه (hero) سفید و ساده؛ جستجوی بزرگ حذف می‌شود ---------- */
body.jh-divar .hero{background:#fff!important}
body.jh-divar .hero .hero-wrapper{padding-bottom:0}
body.jh-divar .hero .background{display:none}
body.jh-divar .hero .hero-form,
body.jh-divar .hero #collapseMainSearchForm{display:none!important}
body.jh-divar .hero .website_header_slogan{display:none}
body.jh-divar .hero .page-title{padding-top:0}
body.jh-divar.single-product .hero .page-title{padding:26px 0 6px}
body.jh-divar.single-product .hero .page-title h1{font-size:28px;font-weight:700;line-height:1.6;margin:0 0 6px;color:var(--jh-head)}
body.jh-divar.single-product .hero .page-title h1 a{color:inherit}
body.jh-divar.single-product .hero .page-title h4{opacity:1;color:var(--jh-tx);font-size:15px;font-weight:400}
body.jh-divar.single-product .hero .page-title .price .number{font-size:22px;font-weight:700;color:var(--jh-head)}
body.jh-divar.single-product .hero .page-title .price .id{font-size:13px;color:var(--jh-mut)}
body.jh-divar .block{padding-top:0}

/* ------------------- چیدمان صفحه با نوار کنار ------------------- */
body.jh-divar .jh-with-side{width:100%;max-width:1500px;padding-inline:14px;margin-inline:auto}
body.jh-divar .jh-with-side::before,
body.jh-divar .jh-with-side::after{display:none!important}
@media (min-width:1025px){
  body.jh-divar .jh-with-side{display:grid;grid-template-columns:300px minmax(0,1fr);column-gap:28px;row-gap:0;align-items:start;padding-top:22px}
  body.jh-divar .jh-with-side > .jh-side{grid-column:1;grid-row:1 / span 30;position:sticky;top:90px;align-self:start}
  body.jh-divar .jh-with-side > :not(.jh-side){grid-column:2;min-width:0}
  body.jh-divar .jh-with-side .cata-sub-nav{display:none}
}
/* موبایل و تبلت: نوار کنار اصلاً نیست */
@media (max-width:1024px){
  body.jh-divar .jh-side{display:none!important}
  body.jh-divar .jh-with-side{display:block;padding-top:8px}
}

/* ------------------------------ نوار کنار ------------------------------ */
.jh-side{font-size:15px;color:var(--jh-tx)}
.jh-side__title{font-size:13px;font-weight:500;margin:4px 0 12px;color:var(--jh-tx)}
.jh-side__title small{font-size:13px;color:var(--jh-mut);font-weight:400}
.jh-side__title--lg{font-size:16px;font-weight:700}
.jh-cats{list-style:none;margin:0;padding:0}
.jh-cats li a{display:flex;align-items:center;gap:12px;padding:10px 0;color:#4b4b4b;font-size:15px;text-decoration:none}
.jh-cats li a:hover,.jh-cats li.is-current > a{color:var(--jh-red)}
.jh-cats li.is-current > a{font-weight:700}
.jh-cats__ico{flex:none;width:24px;height:24px;font-size:20px;line-height:24px;text-align:center;color:#6b6b6b;object-fit:contain}
.jh-cats__back a{color:var(--jh-mut)!important;font-size:14px}
.jh-cats__head a{font-weight:700;color:var(--jh-head)!important}
.jh-cats__child a{padding-inline-start:18px}
.jh-side__sep{border:0;border-top:1px solid var(--jh-line);margin:18px 0 22px}
.jh-price{margin:0}
.jh-price__row{display:flex;align-items:center;gap:14px;margin:0 0 16px}
.jh-price__row span{width:20px;text-align:center;font-size:14px;color:#6b6b6b}
.jh-price__row input{flex:1;min-width:0;height:50px;border:1px solid #c9c9c9;border-radius:4px;padding:0 12px;font:inherit;font-size:14px;background:#fff;color:var(--jh-tx);outline:0;box-shadow:none}
.jh-price__row input:focus{border-color:var(--jh-red)}
.jh-price__submit{display:block;width:100%;height:42px;border:1px solid var(--jh-red);background:#fff;color:var(--jh-red);border-radius:4px;font:inherit;font-weight:700;cursor:pointer}
.jh-price__submit:hover{background:var(--jh-red);color:#fff}

/* ----------------- تیتر بالای لیست (صفحهٔ اول) ----------------- */
body.jh-divar .ad-list-block .section-title{border:0;background:none;padding:0;margin:6px 0 18px;text-align:start}
body.jh-divar .ad-list-block .section-title h2{font-size:13px;font-weight:400;color:var(--jh-mut);margin:0;padding:0}
body.jh-divar .ad-list-block .section-title h2::before,
body.jh-divar .ad-list-block .section-title h2::after{display:none}

/* ------------------------------ شبکهٔ آگهی‌ها ------------------------------ */
body.jh-divar .row.items:not(.owl-carousel){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
body.jh-divar .row.items:not(.owl-carousel)::before,
body.jh-divar .row.items:not(.owl-carousel)::after{display:none!important}
@media (min-width:1500px){body.jh-divar .row.items:not(.owl-carousel){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1024px){body.jh-divar .row.items:not(.owl-carousel){gap:14px}}
@media (max-width:760px){body.jh-divar .row.items:not(.owl-carousel){grid-template-columns:1fr;gap:0}}

/* ------------------------------ کارت آگهی ------------------------------ */
body.jh-divar .items > .jh-card{position:relative;float:none;width:auto;max-width:none;flex:none;margin:0;padding:0;background:#fff;border:1px solid var(--jh-line);border-radius:4px;box-shadow:none;transform:none;overflow:visible;transition:box-shadow .15s}
body.jh-divar .items > .jh-card:hover{box-shadow:0 2px 12px rgba(0,0,0,.1);transform:none}
body.jh-divar .jh-card .wrapper{position:relative;display:flex;align-items:stretch;gap:20px;height:100%;min-height:212px;margin:0;padding:20px;background:transparent;border:0;border-radius:0;box-shadow:none;transform:none;overflow:visible;box-sizing:border-box}
body.jh-divar .jh-card .wrapper:hover{transform:none;box-shadow:none}
body.jh-divar .jh-card .jh-card__text{order:1;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
body.jh-divar .jh-card .jh-card__text a.title{display:block;color:var(--jh-head);text-decoration:none}
body.jh-divar .jh-card .jh-card__text h2{margin:0;padding:0;border:0;background:none;text-align:start;font-size:16px;font-weight:700;line-height:1.9;color:var(--jh-head);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;position:static}
body.jh-divar .jh-card .jh-card__text h2::before,
body.jh-divar .jh-card .jh-card__text h2::after{display:none}
body.jh-divar .jh-card .jh-card__meta{display:flex;flex-direction:column;font-size:14px;line-height:2;color:var(--jh-mut)}
body.jh-divar .jh-card .price{position:static;inset:auto;display:block;transform:none;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0;font-size:14px;font-weight:500;color:var(--jh-tx);line-height:2}
body.jh-divar .jh-card .price::before,
body.jh-divar .jh-card .price::after{display:none}
body.jh-divar .jh-card .jh-card__time{display:block;color:var(--jh-mut)}
body.jh-divar .jh-card .image{order:2;position:relative;flex:0 0 170px;width:170px;height:170px;margin:0;padding:0;border-radius:4px;overflow:hidden;background:#eee}
body.jh-divar .jh-card .image::before,
body.jh-divar .jh-card .image::after{display:none}
body.jh-divar .jh-card .image a.title{display:block;width:100%;height:100%}
body.jh-divar .jh-card .image img{position:static;display:block;width:100%;height:100%;max-width:none;object-fit:cover;transform:none;border-radius:0}
body.jh-divar .jh-card .jh-card__count{position:absolute;top:8px;inset-inline-start:8px;display:inline-flex;align-items:center;gap:5px;background:rgba(0,0,0,.62);color:#fff;border-radius:4px;padding:0 8px;font-size:12px;line-height:22px;z-index:2}
body.jh-divar .jh-card .ad_visit{display:none}
body.jh-divar .jh-card .bookmark{position:absolute;top:28px;inset-inline-end:28px;z-index:3;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.93);box-shadow:0 1px 4px rgba(0,0,0,.2);font-size:0;line-height:0;color:transparent;cursor:pointer;display:grid;place-items:center;padding:0;margin:0}
body.jh-divar .jh-card .bookmark::before{content:"\f097";font-family:FontAwesome,'fontawesome';font-size:15px;line-height:1;color:#555}
body.jh-divar .jh-card .bookmark.favorited-ad::before{content:"\f02e";color:var(--jh-red)}
body.jh-divar .jh-card .ribbon-featured{z-index:4}
@media (max-width:1250px){
  body.jh-divar .jh-card .image{flex-basis:150px;width:150px;height:150px}
  body.jh-divar .jh-card .wrapper{min-height:190px;padding:16px;gap:16px}
  body.jh-divar .jh-card .bookmark{top:24px;inset-inline-end:24px}
}
@media (max-width:760px){
  body.jh-divar .items > .jh-card{border-width:0 0 1px;border-radius:0}
  body.jh-divar .items > .jh-card:hover{box-shadow:none}
  body.jh-divar .jh-card .wrapper{min-height:0;padding:14px 12px;gap:12px}
  body.jh-divar .jh-card .image{flex-basis:118px;width:118px;height:118px}
  body.jh-divar .jh-card .jh-card__text h2{font-size:15px}
  body.jh-divar .jh-card .jh-card__meta{font-size:13px;line-height:1.9}
  body.jh-divar .jh-card .bookmark{top:20px;inset-inline-end:20px;width:26px;height:26px}
}

/* دکمهٔ «جستجوی پیشرفته» و «آگهی‌های بیشتر» */
body.jh-divar .alternative-search-form > a.icon{display:inline-flex;align-items:center;gap:6px;border:1px solid #bdbdbd;border-radius:4px;padding:8px 16px;color:var(--jh-tx);background:#fff;text-decoration:none}
body.jh-divar .alternative-search-form > a.icon:hover{background:var(--jh-fill)}
body.jh-divar .ad-load-more .btn.loadmore{border-radius:4px;border-color:var(--jh-red);color:var(--jh-red);background:#fff}
body.jh-divar .ad-load-more .btn.loadmore:hover{background:var(--jh-red);color:#fff}

/* ------------------------------ صفحهٔ تک‌آگهی ------------------------------ */
@media (min-width:768px){
  body.jh-divar.single-product [id^="product-"].product > .row.flex-md-row{flex-wrap:nowrap;align-items:flex-start}
  /* اطلاعات و دکمه‌های تماس سمت راست، گالری سمت چپ (مثل دیوار) */
  body.jh-divar.single-product [id^="product-"].product > .row.flex-md-row > .col-md-4{order:1;flex:0 0 44%;max-width:44%}
  body.jh-divar.single-product [id^="product-"].product > .row.flex-md-row > .charsoogh-content{order:2;flex:0 0 56%;max-width:56%}
}
body.jh-divar.single-product .sidebar .box{background:transparent;border:0;box-shadow:none;padding:0}
body.jh-divar.single-product .sidebar .contact-box{margin:0 0 14px;display:flex;gap:12px;flex-wrap:nowrap}
body.jh-divar.single-product .sidebar .contact-box .btn{height:50px;border-radius:4px;font-weight:700;margin:0;flex:1 1 0;max-width:none;width:auto}
body.jh-divar.single-product .sidebar .contact-box .btn.contact_info{background:var(--jh-red);border-color:var(--jh-red);color:#fff}
body.jh-divar.single-product .sidebar .contact-box .btn.contact_info:hover{background:var(--jh-red-d);border-color:var(--jh-red-d)}
body.jh-divar.single-product .sidebar .contact-box .btn-framed{background:#fff;color:var(--jh-tx);border:1px solid #bdbdbd}
body.jh-divar.single-product .sidebar .contact-box .btn-framed:hover{background:var(--jh-fill)}
body.jh-divar.single-product .charsoogh-content .box,
body.jh-divar.single-product .sidebar .box.mapbox{border:0;box-shadow:none;border-radius:0;background:transparent}
body.jh-divar.single-product .charsoogh-content .box-title{font-size:16px;font-weight:700;color:var(--jh-head)}
body.jh-divar.single-product .charsoogh-content .highlight-main,
body.jh-divar.single-product .charsoogh-content .highlight-thumbs img{border-radius:6px}
body.jh-divar.single-product .sidebar .warning_ad{border-radius:4px}

/* ------------------------------ فوتر ------------------------------ */
body.jh-divar .footer{background:#f7f7f7;color:#555;border-top:1px solid var(--jh-line)}
body.jh-divar .footer .background{display:none}
body.jh-divar .footer h2{color:var(--jh-head)}
body.jh-divar .footer a{color:#555}
body.jh-divar .footer a:hover{color:var(--jh-red)}
