/* بارگذاری فونت وزیر از CDN */
@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css");

:root {
  --bg: #071224;           /* خیلی تیره/آبی */
  --panel: #0c2230;        /* کارت */
  --accent: #caa95b;       /* طلایی */
  --muted: #9aa6b3;        /* متن کم‌رنگ */
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  --container: 1100px;
  --font: "Vazir", Tahoma, sans-serif; /* بدون !important ✅ */
}

/* اعمال فونت برای کل عناصر صفحه */
* {
  box-sizing: border-box;
  font-family: var(--font) !important; /* اینجا !important مجازه ✅ */
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

/* header */
.site-header{
  border-bottom:1px solid rgba(255,255,255,0.03);
  padding:12px 0;
}
.header-inner{display:flex;align-items:center;gap:12px;justify-content:unset}
.logo{height:54px}
.main-nav a{
  color:var(--muted);
  text-decoration:none;
  margin:0 10px;
  font-size:14px;
}
@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
    }
}
.auth .btn{margin-left:8px}

/* buttons */
.btn{
  display:inline-block;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
  border:0;
  font-weight:600;
}
.btn.primary{
      width: 140px;
  background:linear-gradient(180deg,var(--accent), #b7883f);
  color:#06111a;
  box-shadow: 0 6px 18px rgba(202,169,91,0.18);
}
.btn.outline{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.04)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.04);color:var(--muted)}
.btn.small{     background: rgba(202, 169, 91, 0.06);
    border: 1px solid rgba(202, 169, 91, 0.12);
    color: var(--accent);
    font-weight: 700;  padding:6px 8px;font-size:13px;border-radius:8px }

/* main layout */
.main-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:28px;
  padding:28px 20px;
}

/* left column */
.left-col{
  margin-top: 54px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* QR card */
.qr-card{
  text-align:center;
  padding: 12px 96px;
  height: 125px;
}


.qr-img{width:60px;height:60px;object-fit:cover;border-radius:6px;display:block;margin:0 auto 12px}

.img-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.img-modal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* meta card */
.meta-cards{display:flex;flex-direction:column;gap:12px;box-shadow: 0 13px 36px rgb(68 136 171 / 46%);}
.meta-card{
  background:var(--panel);
  padding:19px;border-radius:10px;
  display:flex;flex-direction:column;gap:6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}
.meta-icon{font-size:22px;opacity:0.9}
.meta-title{font-size:18px;font-weight:700}
.meta-sub{font-size:13px;color:var(--muted)}

/* quick actions */
.quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.action{
  background:transparent;border:1px dashed rgba(255,255,255,0.03);
  padding:12px;border-radius:10px;color:var(--muted);cursor:pointer;
  flex:1 1 calc(50% - 8px);text-align:center;
}
.action.active{background:linear-gradient(90deg, rgba(202,169,91,0.12), rgba(202,169,91,0.06));border:1px solid rgba(202,169,91,0.12);color:var(--accent)}

/* right column */
.right-col{display:flex;flex-direction:column;gap:18px}

/* project top */
.project-top{display:flex;gap:20px;align-items:flex-start}
.project-image img{width:300px;height:300px;object-fit:cover;border-radius:10px;box-shadow: 0 10px 40px rgba(0,0,0,0.6)}
.project-info{flex:1}
.project-title{
  padding-top: 30px;
  margin:0;font-size:22px;color:#fff}
.badges{display:flex;gap:10px;margin:10px 0;flex-wrap:wrap}
.badges span{background:rgba(255,255,255,0.03);padding:8px 10px;border-radius:8px;color:var(--muted);font-size:13px}

/* details list */
.details-list{list-style:none;padding:0;margin:10px 0;color:var(--muted)}
.details-list li{margin:6px 0;font-size:14px}

/* tabs */
.tabs-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  padding:18px;border-radius:14px;border:1px solid rgba(255,255,255,0.02);
}
.tabs-row{display:flex;gap:12px;margin-bottom:14px}
.tab-btn{
  padding:10px 14px;border-radius:10px;background:transparent;border:1px solid rgba(255,255,255,0.02);
  color:var(--muted);cursor:pointer;font-weight:600;
}
.tab-btn.active{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(202,169,91,0.12);
  color:var(--accent);
}

/* tab panes */
.tab-pane{display:none}
.tab-pane.active{display:block}

/* floorplan mock */
.floorplan{padding:12px;border-radius:10px;background:rgba(0,0,0,0.03);border:1px solid rgba(255,255,255,0.02)}
.floor{padding:12px;margin-bottom:12px;border-radius:10px;background:linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005))}
.floor-title{font-weight:700;margin-bottom:8px;color:#dfeaf6}
.floor-bar{display:flex;gap:10px;flex-wrap:wrap}
.chip{
  background:rgba(255,255,255,0.02);padding:8px 10px;border-radius:8px;color:var(--muted);
  font-size:13px;border:1px solid rgba(255,255,255,0.01);
}
.chip.unit{background:rgba(202,169,91,0.06);border:1px solid rgba(202,169,91,0.12);color:var(--accent);font-weight:700}

/* CTA box */
.cta-box{
  margin-top:10px;border-radius:12px;padding:18px;background:linear-gradient(90deg, rgba(6,17,26,0.7), rgba(11,28,40,0.6));
  border:1px solid rgba(255,255,255,0.02);
}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.cta-inner h3{margin:0;font-size:18px}
.cta-inner p{margin:0;color:var(--muted)}

/* footer */
.site-footer{margin-top:30px;padding:28px 20px;background:transparent;border-top:1px solid rgba(255,255,255,0.02)}
.footer-grid{display:flex;gap:20px;justify-content:space-between}
.footer-col h4{margin:0 0 6px 0}
.footer-col p{margin:4px 0;color:var(--muted)}
.copyright{text-align:center;color:var(--muted);margin-top:18px;font-size:13px}

/* small screens */
@media (max-width:980px){
  .main-grid{grid-template-columns:1fr; padding:12px}
  .project-top{flex-direction:column;align-items:center}
  .project-image img{width:100%;height:320px}
  .left-col{order:1}
  .right-col{order:2}
  .footer-grid{flex-direction:column;gap:12px}
}

/* Accordion */
.accordion {display: flex; flex-direction: column; gap: 10px;}
.acc-item {background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03); border-radius: 10px; overflow: hidden;}
.acc-header {
  width: 100%; background: transparent; border: none;
  padding: 14px 16px; text-align: right; font-size: 15px;
  cursor: pointer; color: #e6eef6; font-weight: 600;
  display: flex; justify-content: center; align-items: center;
}
.acc-header::after {
  content: "▾"; transition: 0.3s; opacity: .6;
}
.acc-item:not(.active) .acc-header::after {transform: rotate(0deg);}
.acc-content {
  display: none; padding: 16px; color: var(--muted);
  animation: slideDown .35s ease;
}
@keyframes slideDown {
  from {opacity: 0; transform: translateY(-8px);}
  to {opacity: 1; transform: translateY(0);}
}

/* گالری */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ۴ تصویر در هر ردیف */
  gap: 8px; /* فاصله کمتر بین تصاویر */
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4/3; /* تصاویر یکسان */
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-item:hover {
  transform: scale(1.05);
}
/* سایر تصاویر */
.other-images {
  text-align: center;
  margin-top: 20px;
}

.other-images h3 {
  font-size: 18px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 14px;
}

.other-images-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* کارت هر عکس */
.other-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px; /* عرض کارت */
}

.other-image-item {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.other-image-item:hover {
  transform: scale(1.05);
}

/* کپشن زیر عکس */

.img-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
/* Lightbox (نمایش بزرگ عکس) */
.lightbox {
  display: none; /* در حالت عادی مخفی */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox p {
  color: #ccc;
  margin-top: 10px;
  font-size: 14px;
}

/* دکمه بستن */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.close-btn:hover {
  color: var(--accent);
}

/* افکت ظاهر شدن */
.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* دکمه‌های قبلی و بعدی */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 100%;
  cursor: pointer;
  transition:  0.3s ease;
  user-select: none;
  z-index: 1000;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-btn.prev { right: 40px; }
.nav-btn.next { left: 40px; }


/* درباره پروژه */
.project-info-list {
  background: var(--panel);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  padding-right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 6px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.info-text {
  flex: 1;
}
/* بخش مجریان پروژه */
.contractors-section {
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.02));
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.03);
}

.section-title {
  font-family: var(--font);
  font-size: 18px;
  margin-bottom: 14px;
  color: #fff;
}

/* هر آیتم */
.contractor-item {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

/* عنوان هر بخش */
.contractor-header {
  width: 100%;
  background: transparent;
  color: #e6eef6;
  padding: 12px 14px;
  text-align: right;
  border: none;
  font-size: 15px;
  font-weight: 600;
  justify-content: flex-start;
  align-items: center;
  cursor: default; /* چون دیگه کلیک‌پذیر نیست */
}

/* حذف فلش */
.contractor-header::after {
  content: none !important;
}

/* محتوا همیشه نمایش داده شود */
.contractor-content {
  display: block !important;
  padding: 14px 18px;
  opacity: 1;
  transform: translateY(0);
}

/* ردیف اطلاعات */
.contractor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.contractor-field {
  font-size: 14px;
  color: var(--muted);
}


.contractor-company {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
}

/* ===== بخش فروش ===== */
.sales-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.sales-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px 16px;
  flex: 1 1 calc(50% - 15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.sales-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.sales-label {
  font-size: 13px;
  color: var(--muted);
}

.sales-value {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.sales-wide {
  flex: 1 1 100%;
}

.sales-features {
  margin: 0;
  padding: 0 16px;
  list-style: disc;
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
}

/* سایر تصاویر زیر عکس شاخص */
.thumbnail-gallery {
  margin-top: 15px;
  text-align: right;
}

.thumb-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* تصاویر رو وسط‌چین می‌کنیم */
}

.thumb-container {
  width: 60px;   /* سایز ثابت برای عرض کادر */
  height: 60px;  /* سایز ثابت برای ارتفاع کادر */
  border-radius: 8px;
  overflow: hidden; /* برای جلوگیری از بیرون زدن تصویر */
  position: relative; /* برای قرار دادن تصاویر در داخل */
}

.thumb-img {
  width: 100%;   /* تصاویر به اندازه عرض کادر */
  height: 100%;  /* تصاویر به اندازه ارتفاع کادر */
  object-fit: cover;  /* کراپ و نمایش تصویر در کادر ثابت */
  transition: all 0.3s ease;
}

.thumb-img:hover {
  transform: scale(1.05); /* کمی بزرگ‌تر شدن هنگام هاور */
  box-shadow: 0 0 10px rgba(0, 132, 255, 0.5);  /* اضافه شدن سایه جذاب هنگام هاور */
}

.thumb-img.active {
  box-shadow: 0 0 10px rgba(0, 132, 255, 0.8);  /* تغییر رنگ سایه برای عکس انتخاب شده */
  transform: scale(1.05);
}

