/* ==========================================
   hero
   ========================================== */
.article-content p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 2.2;
  text-align: justify;
  text-align-last: left;
}
.archive-hero {
  position: relative;
  min-height: 550px;
  padding: 34px 48px 80px;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  direction: ltr;
  display: flex;
  align-items: flex-end;
}

.archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 25, 48, 0.459) 0%, rgba(3, 25, 48, 0.486) 42%, rgb(3 25 48) 100%), linear-gradient(180deg, rgba(40, 160, 164, 0.06) 0%, rgb(3 25 48) 100%);
}

.archive-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  color: #fff;
  text-align: left;
  padding-top: 120px;
}

.archive-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.archive-hero__separator {
  color: #d79c34;
  letter-spacing: 2px;
}

.archive-hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-right: auto;
  margin-bottom: 34px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(215, 156, 52, 0.22);
}

.archive-hero__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.4vw, 56px);
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  max-width: 980px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.archive-hero__excerpt {
  margin: 0;
  max-width: 980px;
  font-size: 20px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.archive-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.archive-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.archive-hero__meta-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.filter-icon{
    padding: 10px;
    margin-left: -11px;
    display: flex;
    border-right: 1px;
    border-color: #ffffff26;
    border-style: solid;
    border-radius: 12px;
}
.ornament-diamonds { display: flex; gap: 0.25rem; align-items: center; }
.diamond { width: 0.6rem; height: 0.6rem; transform: rotate(45deg); }
.diamond.large { width: 0.75rem; height: 0.75rem; }
.diamond {
  transform: rotate(45deg);
  display: inline-block;
}

.diamond.small {
  width: 0.625rem;
  height: 0.625rem;
  background-color: var(--secondary-color);
  opacity: 0.7;
}

.diamond.large {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--accent-color);
}
@media (max-width: 900px) {
  .archive-hero {
    min-height: 540px;
    padding: 65px 18px;
  }

  .archive-hero__content {
    padding-top: 90px;
  }

  .archive-hero__breadcrumb {
    font-size: 15px;
    gap: 8px;
    margin-bottom: 20px;
  }

  .archive-hero__tag {
    margin-bottom: 24px;
    padding: 10px 18px;
    font-size: 15px;
  }

  .archive-hero__title {
    font-size: clamp(26px, 7vw, 40px);
    margin-bottom: 14px;
  }

  .archive-hero__excerpt {
    font-size: 16px;
    line-height: 1.95;
  }

  .archive-hero__meta {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .archive-hero {
    min-height: 500px;
    padding: 50px 14px;
  }

  .archive-hero__content {
    padding-top: 78px;
  }

  .archive-hero__breadcrumb {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .archive-hero__tag {
    font-size: 14px;
    padding: 9px 14px;
  }

  .archive-hero__title {
    font-size: 24px;
    line-height: 1.5;
  }

  .archive-hero__excerpt {
    font-size: 15px;
    line-height: 2;
  }

  .archive-hero__meta-item {
    font-size: 13px;
    padding: 3px 12px;
  }
}



/* ==========================================
   section
   ========================================== */

/* بخش اصلی بعد از Hero */
.article-layout {
  position: relative;
  z-index: 10;
  margin-top: -40px; /* میزان هم‌پوشانی و بالا آمدن روی هیرو */
  padding: 0 32px 80px;
  direction: ltr;
}

/* کانتینر سفید اصلی وسط‌چین با گوشه‌های انحنادار */
.article-layout__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 32px;
  background-color: var(--bg-primary);
  border-radius: 16px;

  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}


/* ستون محتوای اصلی */
.article-main {
   box-shadow: 0 10px 40px rgba(3, 25, 48, 0.08);
   background-color: var(--bg-secondary);
   border-radius: 16px !important;
}

.article-main__inner {
  width: 100%;
}
.article-main,
.article-sidebar {
  min-width: 0;
}

.article-layout__container {
  position: relative;
  z-index: 2;
}
/* نام کلاس‌ها را با کلاس‌های واقعی HTML خودتان جایگزین کنید */
.article-layout__sidebar {
  order: 1;
}

.article-layout__content {
  order: 2;
}
/* ستون سایدبار سمت راست */
.article-sidebar {
  position: sticky;
  top: 24px; /* شناور ماندن هنگام اسکرول در دسکتاپ */
}

.article-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 24px; /* فاصله عمودی بین کارت‌های سایدبار */
}

/* دیو‌های چسبیده به چپ و راست */
.article-layout__side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px; /* عرض بخش‌های کناری */
  background-color: var(--b);
  border-radius: 16px; /* گردی ۱۶ پیکسل */
  pointer-events: none;
  z-index: 1;
}
/* ----- ایجاد خمیدگی‌های معکوس (Inverse Corners) ----- */

.article-layout__side::before {
  content: "";
  position: absolute;
  /* قرارگیری دقیقا در بالای بال‌های کناری */
  top: calc(var(--corner-radius) * -1 + 1px); 
  width: var(--corner-radius);
  height: var(--corner-radius);
  /* یک پیکسل هم‌پوشانی برای جلوگیری از دیده شدن خطای رندر مرورگر (Anti-aliasing) */
}

/* انحنای متصل‌کننده بال راست به کانتینر */
.article-layout__side--left::before {
  right: 0; /* چسبیده به لبه چپِ بال راست */
  background: radial-gradient(
    circle at 0 0, 
    transparent calc(var(--corner-radius) - 1px), 
    var(--bg-card) var(--corner-radius)
  );
}

/* انحنای متصل‌کننده بال چپ به کانتینر */
.article-layout__side--right::before {
  left: 0; /* چسبیده به لبه راستِ بال چپ */
  background: radial-gradient(
    circle at 100% 0, 
    transparent calc(var(--corner-radius) - 1px), 
    var(--bg-card) var(--corner-radius)
  );
}


@media (max-width: 1024px) {
  .article-layout__container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
    border-radius: 28px;
  }

  /* محتوا بالا، سایدبار پایین */
  .article-layout__content {
    order: 1;
  }

  .article-layout__sidebar {
    order: 2;
  }
}

@media (max-width: 600px) {
  .article-layout__container {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .article-layout{
    padding: 0px;
  }
}



@media (max-width: 1024px) {
  .article-layout__container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
    border-radius: 28px;
  }

  /* فرزند اول: سایدبار → پایین */
  .article-layout__container > :first-child {
    order: 2;
  }

  /* فرزند دوم: محتوای مقاله → بالا */
  .article-layout__container > :last-child {
    order: 1;
  }
}

@media (max-width: 600px) {
  .article-layout__container {
    padding: 16px 14px;
    border-radius: 20px;
  }

}

/* ==========================================
   Place Gallery Slider — Theme Compliant
   ========================================== */

.place-gallery,
.place-gallery * {
  box-sizing: border-box;
}

.place-gallery {
  width: 100%;
  min-width: 0;
  padding-top: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: 16px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.place-gallery__frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  min-width: 0;
  margin-inline: auto;
  padding: 28px;
  border-radius: 16px;
}

/* ----------------------------
   اسلایدر تصویر اصلی
----------------------------- */
.place-gallery__main {
  width: 100%;
  min-width: 0;
  height: 355px;
  overflow: hidden;
  background: var(--primary-color);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.place-gallery__main .swiper-wrapper {
  height: 100%;
}

.place-gallery__main .swiper-slide {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.place-gallery__main .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------
   دکمه‌های قبلی / بعدی
----------------------------- */
.place-gallery__button {
  position: absolute;
  z-index: 30;
  top: 48%;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  color: var(--accent-color);
  cursor: pointer;
  pointer-events: auto;
  background-color: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  box-shadow: 0 5px 18px color-mix(in srgb, var(--primary-color) 14%, transparent);
  backdrop-filter: blur(10px);
  place-items: center;
  transform: translateY(-50%);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.place-gallery__button:hover {
  color: var(--hero-card-button-text);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-color) 35%, transparent);
  transform: translateY(-50%) scale(1.08);
}

.place-gallery__button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 40%, transparent);
  outline-offset: 3px;
}

.place-gallery__button svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.place-gallery__button--next {
  left: 0;
}

.place-gallery__button--prev {
  right: 0;
}

/* ----------------------------
   اسلایدر بندانگشتی پایین
----------------------------- */
.place-gallery__thumbs {
  position: relative;
  z-index: 10;
  width: calc(100% - 68px);
  min-width: 0;
  margin: -51px auto 0;
  padding: 0 5px 8px !important;
  overflow: visible;
}

.place-gallery__thumbs .swiper-wrapper {
  align-items: stretch;
}

.place-gallery__thumbs .swiper-slide {
  height: 100px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 5px solid var(--bg-secondary);
  border-radius: 25px;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
  opacity: 0.68;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.place-gallery__thumbs .swiper-slide:hover {
  border-color: color-mix(in srgb, var(--accent-color) 45%, var(--bg-secondary));
  opacity: 0.95;
  transform: translateY(-3px);
}

.place-gallery__thumbs .swiper-slide-thumb-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color) 35%, transparent);
  opacity: 1;
  transform: translateY(-5px);
}

.place-gallery__thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------
   تبلت
----------------------------- */
@media (max-width: 768px) {
  .place-gallery {
    padding: 28px 10px 0px;
  }

  .place-gallery__frame {
    padding-inline: 18px;
    padding-bottom: 35px;
  }

  .place-gallery__main {
    height: clamp(220px, 55vw, 300px);
    border-radius: 22px;
  }

  .place-gallery__thumbs {
    width: calc(100% - 38px);
    margin-top: -42px;
  }

  .place-gallery__thumbs .swiper-slide {
    height: 82px;
    border-radius: 20px;
  }

  .place-gallery__button {
    width: 44px;
    height: 44px;
  }
}

/* ----------------------------
   موبایل
----------------------------- */
@media (max-width: 520px) {
  .place-gallery {
    padding: 22px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .place-gallery__frame {
    padding-inline: 12px;
    padding-bottom: 30px;
    padding: 0px 5px;
  }

  .place-gallery__main {
    height: clamp(190px, 62vw, 260px);
    border-radius: 18px;
  }

  .place-gallery__thumbs {
    width: calc(100% - 18px);
    margin-top: -34px;
    padding-inline: 2px;
  }

  .place-gallery__thumbs .swiper-slide {
    height: clamp(54px, 17vw, 68px);
    border-width: 3px;
    border-radius: 16px;
  }

  .place-gallery__button {
    width: 38px;
    height: 38px;
  }

  .place-gallery__button svg {
    width: 20px;
    height: 20px;
  }
}

/* کاهش حرکت برای کاربرانی که آن را ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  .place-gallery__button,
  .place-gallery__thumbs .swiper-slide {
    transition: none;
  }
}



/* ==========================================
   Article Content (Theme-Compliant)
   ========================================== */

.article-content {
  width: 100%;
  min-width: 0;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 35px;
  border-radius: 16px;
}

.article-content__inner {
  width: min(100%, 880px);
  margin-inline: auto;
  padding: 32px 32px 5px;
}

/* بلوک محتوایی */
.article-content__block {
  margin-bottom: 38px;
}

/* تیترهای اصلی مقاله (H2) */
.article-content__title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  color: var(--primary-color);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.8;
}

.article-content__title::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 72%;
  content: "";
  background: var(--accent-color);
  border-radius: 8px;
  transform: translateY(-50%);
}

/* زیرعنوان‌ها (H3) */
.article-content__subtitle {
  margin: 24px 0 16px;
  color: var(--primary-color);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1.7;
}

/* پاراگراف‌ها */
.article-content p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 2.2;
  text-align: justify;
  text-align-last: left;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ------------------------------------------
   استایل جذاب لیست‌های بولت‌دار (Unordered List)
------------------------------------------- */
.article-content__bullet-list {
  display: flex;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 12px;
}

.article-content__bullet-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 12px 18px 12px 14px;
  padding-left: 42px;
  font-size: 15px;
  line-height: 1.9;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-content__bullet-list li:hover {
  background: var(--bg-surface, var(--bg-primary));
  border-color: color-mix(in srgb, var(--accent-color) 40%, var(--border-color));
  transform: translateX(-3px);
}

/* آیکون دایره/الماس ظریف برای بولت */
.article-content__bullet-list li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--accent-color);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

/* ------------------------------------------
   استایل جذاب لیست‌های عددی (Ordered List)
------------------------------------------- */
.article-content__ordered-list {
  display: flex;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: custom-counter;
  flex-direction: column;
  gap: 14px;
}

.article-content__ordered-list li {
  position: relative;
  display: flex;
  counter-increment: custom-counter;
  align-items: flex-start;
  padding: 14px 18px 14px 16px;
  padding-left: 58px;
  font-size: 15px;
  line-height: 1.9;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-content__ordered-list li:hover {
  border-color: color-mix(in srgb, var(--secondary-color) 40%, var(--border-color));
  transform: translateX(-3px);
}

/* نشانگر عددی کپسولی و شیک */
.article-content__ordered-list li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  content: counter(custom-counter, persian);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 10px;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--primary-color) 25%, transparent);
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------
   تصویر مقاله
------------------------------------------- */
.article-content__figure {
  margin: 32px 0 40px;
}

.article-content__figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.article-content__figure figcaption {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.8;
  text-align: center;
}

/* ------------------------------------------
   نقل‌قول (Quote Block)
------------------------------------------- */
.article-content__quote {
  position: relative;
  margin: 38px 0;
  padding: 30px 36px 26px;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 18px;
}

.article-content__quote::before {
  position: absolute;
  top: -30px;
  right: 20px;
  width: 130px;
  height: 130px;
  content: "";
  background: color-mix(in srgb, var(--accent-color) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.article-content__quote-icon {
  position: absolute;
  top: -8px;
  left: 20px;
  color: var(--accent-color);
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.35;
  user-select: none;
}

.article-content__quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(16px, 2vw, 18.5px);
  font-weight: 700;
  line-height: 2.1;
  text-align: left;
}

.article-content__quote footer {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.article-content__quote cite {
  font-style: normal;
}

/* ------------------------------------------
   جدول داده‌ها (Table)
------------------------------------------- */
.article-content__table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.article-content__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
}

.article-content__table th,
.article-content__table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14.5px;
  line-height: 1.8;
}

.article-content__table th {
  color: #ffffff;
  font-weight: 800;
  background: var(--primary-color);
}

.article-content__table th:first-child {
  width: 32%;
}

.article-content__table td:first-child {
  color: var(--primary-color);
  font-weight: 700;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-secondary));
}

.article-content__table td:last-child {
  color: var(--text-primary);
}

.article-content__table tbody tr:last-child td {
  border-bottom: 0;
}

.article-content__table tbody tr:hover td {
  background-color: var(--bg-primary);
}

.article-content__table tbody tr:hover td:first-child {
  background-color: color-mix(in srgb, var(--accent-color) 8%, var(--bg-primary));
}

/* ------------------------------------------
   ریسپانسیو (Responsive)
------------------------------------------- */
@media (max-width: 768px) {
  .article-content__inner {
    padding: 24px 20px 48px;
  }

  .article-content p {
    font-size: 14.5px;
    line-height: 2.15;
  }

  .article-content__figure img {
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .article-content__inner {
    padding: 20px 14px 40px;
  }

  .article-content__block {
    margin-bottom: 28px;
  }

  .article-content__title {
    margin-bottom: 14px;
    padding-left: 13px;
    font-size: 18px;
  }

  .article-content__bullet-list li,
  .article-content__ordered-list li {
    font-size: 13.5px;
    line-height: 1.85;
  }

  .article-content__quote {
    margin: 28px 0;
    padding: 22px 18px 18px;
    border-radius: 14px;
  }

  .article-content__quote-icon {
    left: 12px;
    font-size: 54px;
  }

  .article-content__table th,
  .article-content__table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

/* ==========================================
   map
   ========================================== */

/* کانتینر اصلی بخش نقشه */
.map-wrapper,
.map-wrapper * {
  box-sizing: border-box;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #f6f1e7;
}
.map-container{
  padding: 0px 20px;
}
/* نقشه گوگل */
.google-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* کارت شناور اطلاعات */
.info-card {
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  width: min(440px, 38%);
  max-width: 440px;
  padding: 16px 18px 34px;
  border-radius: 42px;
  background: var(--bg-secondary);
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.08);
  z-index: 3;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* واترمارک تزئینی */
.info-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -70px;
  width: 320px;
  height: 320px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23b28a50' stroke-width='0.8' opacity='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23b28a50' stroke-width='0.8' opacity='0.5'/%3E%3Cpath d='M50 10 L50 90 M10 50 L90 50' stroke='%23b28a50' stroke-width='0.8' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* عنوان */
.card-title {
  margin: 0 0 24px;
  color: var(--color-gold);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

/* لیست اطلاعات */
.info-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--accent-color);
}

.info-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
}

.info-text {
  color: #6f757a;
  font-size: 13px;
  line-height: 1.9;
  text-align: left;
}

.en-text {
  direction: ltr;
  unicode-bidi: plaintext;
}

.card-desc {
  margin: 0;
  color: #5f666b;
  font-size: 13px;
  line-height: 2.2;
  text-align: justify;
  text-align-last: right;
}

/* کنترل‌های نقشه زیر کارت بمانند */
.google-map + .leaflet-container,
.leaflet-control-container {
  z-index: 2;
}

/* حالت تبلت */
@media (max-width: 1500px) {
  .map-wrapper {
    height: 620px;
  }

  .info-card {
    width: min(420px, 42%);
    left: 3%;
    padding: 38px 30px 30px;
    border-radius: 36px;
  }

  .card-title {
    font-size: 27px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .map-wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
  }

  .info-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    order: 1;
    border-radius: 0;
    padding: 28px 20px 24px;
    box-shadow:none;
  }

  .google-map {
    position: relative;
    order: 2;
    height: 300px;
    min-height: 300px;
  }

  .card-title {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .info-text,
  .card-desc {
    font-size: 12.5px;
  }
}


/* ==========================================
   information
   ========================================== */


/* =========================================
   بخش اطلاعات مناسب سایدبار
   ========================================= */

.place-info-section,
.place-info-section * {
  box-sizing: border-box;
}

.place-info-section {
  width: 100%;
  padding: 0;
  background: transparent;
}

.place-info-card {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(3, 25, 48, 0.05);
}

/* دکمه‌ی عنوان */
.place-info-toggle {
  display: flex;
  width: 100%;
  padding: 18px 18px 13px;
  color: var(--primary-color);
  background: transparent;
  border: 0;
  cursor: default;
  font: inherit;
  align-items: center;
  justify-content: space-between;
}

.place-info-toggle__title {
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  align-items: center;
  gap: 8px;
}

.place-info-title-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* فلش فقط در موبایل دیده می‌شود */
.place-info-toggle__arrow {
  display: none;
  width: 9px;
  height: 9px;
  border-bottom: 2px solid var(--accent-color);
  border-left: 2px solid var(--accent-color);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

/* پنل اطلاعات */
.place-info-panel {
  display: block;
}

.place-info-line {
  width: calc(100% - 36px);
  height: 2px;
  margin: 0 18px 12px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color) 18%,
    var(--accent-color) 82%,
    transparent
  );
}

/* جدول: بدون min-width تا داخل سایدبار جا شود */
.place-info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.place-info-table tr {
  border-top: 1px solid var(--border-color);
}

/* رنگ یکی‌درمیان ردیف‌ها */
.place-info-table tr:nth-child(odd) {
  background: var(--bg-secondary);
}

.place-info-table tr:nth-child(even) {
  background: var(--bg-surface);
}

/* ستون عنوان */
.place-info-table th {
  width: 20%;
  padding: 8px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

/* لوزی طلایی میان عنوان و آیکن */
.place-info-separator {
  width: 18px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.place-info-separator span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent-color);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ستون آیکن */
.place-info-icon-cell {
  width: 45px;
  padding: 8px 3px;
  text-align: center;
  vertical-align: middle;
}

.place-info-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  object-fit: contain;
}

/* ستون متن و مقدار */
.place-info-value {
  width: auto;
  padding: 12px 8px 12px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.85;
  text-align: left;
  vertical-align: middle;

  /* متن بلند به خط بعد می‌رود و اسکرول ایجاد نمی‌کند */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* =========================================
   موبایل: آکاردئون بسته
   ========================================= */

@media (max-width: 768px) {
  .place-info-toggle {
    padding: 15px 16px;
    cursor: pointer;
  }

  .place-info-toggle__title {
    font-size: 18px;
  }

  .place-info-toggle__arrow {
    display: block;
  }

  /* در ابتدا بسته است */
  .place-info-panel {
    display: none;
  }

  /* پس از کلیک کاربر باز می‌شود */
  .place-info-card.is-open .place-info-panel {
    display: block;
  }

  .place-info-card.is-open .place-info-toggle__arrow {
    transform: rotate(135deg);
  }

  .place-info-line {
    width: calc(100% - 30px);
    margin: 0 15px 9px;
  }

  .place-info-table th {
    width: 21%;
    padding: 8px;
    font-size: 12px;
  }

  .place-info-icon-cell {
    width: 42px;
  }

  .place-info-icon {
    width: 28px;
    height: 28px;
  }

  .place-info-value {
    padding: 10px 7px 10px 10px;
    font-size: 11.5px;
    line-height: 1.8;
  }
}


/* =========================================
 Table of contents
   ========================================= */


/* =========================================
   فهرست مطالب - مناسب سایدبار
   ========================================= */



.toc-card {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(3, 25, 48, 0.05);
   box-sizing: border-box;
   margin:  15px 0px;
}
@media (max-width: 768px) {
 .toc-card{
  margin:  9px;
  width: 95%;
 }
}
/* عنوان فهرست */
.toc-toggle {
  display: flex;
  width: 100%;
  padding: 22px 18px 9px;
  color: var(--primary-color);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  cursor: default;
  align-items: center;
  justify-content: space-between;
}

.toc-toggle__title {
  display: block;
}

/* فلش، فقط در موبایل دیده خواهد شد */
.toc-toggle__arrow {
  display: none;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-bottom: 2px solid var(--accent-color);
  border-left: 2px solid var(--accent-color);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

/* خط و نماد تزئینی زیر عنوان */
.toc-title-decoration {
  display: flex;
  width: 100%;
  padding: 0 18px 19px;
  direction: ltr;
  align-items: center;
justify-content: flex-end;
  gap: 10px;
}

.toc-title-decoration span {
  display: block;
  width: 68px;
  height: 2px;
  background: var(--accent-color);
  opacity: 0.85;
}

.toc-title-decoration i {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--primary-color);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* فهرست */
.toc-panel {
  display: block;
  padding: 0 18px 20px;
}

.toc-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 12px;
}

.toc-list li {
  width: 100%;
  min-width: 0;
}

/* هر آیتم فهرست */
.toc-list a {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 17px;
  color: var(--primary-color);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  align-items: center;
  justify-content: flex-start;
}

/* رنگ یکی در میان، هماهنگ با تم */
.toc-list li:nth-child(odd) a {
  background: var(--bg-surface);
}

.toc-list li:nth-child(even) a {
  background: color-mix(
    in srgb,
    var(--accent-color) 8%,
    var(--bg-secondary)
  );
}

/* حالت هاور و آیتم فعال */
.toc-list a:hover,
.toc-list a:focus-visible,
.toc-list a.is-active {
  color: var(--primary-color);
  background: color-mix(
    in srgb,
    var(--accent-color) 18%,
    var(--bg-secondary)
  );
  border-color: color-mix(
    in srgb,
    var(--accent-color) 45%,
    transparent
  );
  outline: none;
  transform: translateX(-3px);
}

/* =========================================
   موبایل: آکاردئون بسته
   ========================================= */

@media (max-width: 768px) {
  .toc-toggle {
    padding: 15px 16px 8px;
    font-size: 18px;
    cursor: pointer;
  }

  .toc-toggle__arrow {
    display: block;
  }

  .toc-title-decoration {
    padding: 0 16px 14px;
  }

  .toc-title-decoration span {
    width: 48px;
  }

  /* در موبایل ابتدا بسته است */
  .toc-panel {
    display: none;
    padding: 0 14px 15px;
  }

  /* با کلاس is-open باز می‌شود */
  .toc-card.is-open .toc-panel {
    display: block;
  }

  .toc-card.is-open .toc-toggle__arrow {
    transform: rotate(135deg);
  }

  .toc-list {
    gap: 9px;
  }

  .toc-list a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}


/* =========================================
  author
   ========================================= */

/* =========================================
   About Author / درباره نویسنده
   مناسب سایدبار و هماهنگ با تم سایت
   ========================================= */

.author-section,
.author-section * {
  box-sizing: border-box;
}

.author-section {
  width: 100%;
  padding: 0;
  background: transparent;
  margin: 15px 0px;
}

.author-card {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 24px 18px 26px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(3, 25, 48, 0.05);
  text-align: center;
  flex-direction: column;
  align-items: center;
}

/* عنوان */
.author-card__title {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.5;
}

/* محدوده لوگو */
.author-card__logo-wrap {
  display: flex;
  width: 100%;
  min-height: 120px;
  margin: 14px 0 15px;
  align-items: center;
  justify-content: center;
}
.author-card__logo-wrap img{
  background-color: #ffffffbb;
  border-radius: 16px;
}
/* لوگو */
.author-card__logo {
  display: block;
  width: min(100%, 145px);
  max-height: 125px;
  object-fit: contain;
}

/* نام نویسنده / سازمان */
.author-card__name {
  width: 100%;
  margin: 0;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
  text-align: center;

  /* جلوگیری از بیرون‌زدگی متن در سایدبار */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* کمی افکت ظریف در صورت لینک‌کردن کارت */
.author-card:hover {
  border-color: color-mix(
    in srgb,
    var(--accent-color) 30%,
    var(--card-border)
  );
}

/* =========================================
   موبایل
   ========================================= */

@media (max-width: 768px) {
  .author-card {
    padding: 20px 15px 22px;
    border-radius: 18px;
  }

  .author-card__title {
    font-size: 18px;
  }

  .author-card__logo-wrap {
    min-height: 102px;
    margin: 11px 0 12px;
  }

  .author-card__logo {
    width: min(100%, 125px);
    max-height: 105px;
  }

  .author-card__name {
    font-size: 13px;
    line-height: 1.9;
  }
}



/* ==========================================================================
   کارت‌های سایدبار 
   ========================================================================== */

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow:
    0 16px 36px -8px rgba(3, 25, 48, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.sidebar-card:hover {
  box-shadow:
    0 20px 44px -6px rgba(3, 25, 48, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.04);
}

/* هدر کارت‌ها */
.sidebar-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  background: transparent;
  border: none;
  cursor: default;
  text-align: left;
  box-sizing: border-box;
}

.sidebar-card__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card__ornament {
  color: var(--accent-color, #d79c34);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color, #031930);
}

/* چورن آکاردئون (در دسکتاپ مخفی است) */
.sidebar-accordion__chevron {
  display: none;
  color: #64748b;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* بدنه آکاردئون */
.sidebar-accordion__body {
  display: block;
}

.sidebar-accordion__content {
  padding: 0 16px 20px;
}

/* ==========================================================================
  نوشته های مرتبط
   ========================================================================== */

.sidebar-popular__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.sidebar-popular__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px;
  border-radius: 16px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.sidebar-popular__item:hover {
  background: rgba(3, 25, 48, 0.04);
  transform: translateY(-2px);
}

.sidebar-popular__thumb {
  width: 64px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.sidebar-popular__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-popular__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sidebar-popular__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--primary-color, #031930);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-popular__date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-color, #d79c34);
}

.sidebar-popular__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 5px var(--accent-color);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.sidebar-popular__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}


/* English LTR layout */
html, body { direction: ltr !important; }
body { text-align: left; }
.archive-hero,
.article-layout,
.place-info-section,
.author-section,
.place-gallery,
.article-content,
.site-footer { direction: ltr; }
.theme-option, .world-menu-accordion-trigger, .footer-logo-wrap, .footer-stat-item { text-align: left; }
