/* Prestige / Atlas single complex — scoped to plugin fields only */
.zg-core-directory.zg-atlas {
  --atlas-bg: #f6faff;
  --atlas-ink: #141d23;
  --atlas-muted: #44474c;
  --atlas-navy: #0f1c2c;
  --atlas-gold: #775a00;
  --atlas-gold-soft: #fece57;
  --atlas-line: rgba(116, 119, 125, 0.28);
  --atlas-card: #ffffff;
  --atlas-radius: 12px;
  --atlas-max: 1360px;
  background: var(--atlas-bg);
  color: var(--atlas-ink);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding-bottom: 48px;
}

.zg-core-directory.zg-atlas .zg-atlas-wrap {
  width: min(var(--atlas-max), calc(100% - 40px));
  margin-inline: auto;
}

.zg-core-directory.zg-atlas a {
  color: var(--atlas-gold);
}

.zg-core-directory .zg-atlas-breadcrumb {
  background: rgba(236, 245, 254, 0.85);
  border-bottom: 1px solid var(--atlas-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--atlas-muted);
}

.zg-core-directory .zg-atlas-breadcrumb a {
  color: var(--atlas-muted);
  text-decoration: none;
}

.zg-core-directory .zg-atlas-breadcrumb a:hover {
  color: var(--atlas-gold);
}

.zg-core-directory .zg-atlas-breadcrumb span[aria-hidden="true"] {
  margin: 0 8px;
  opacity: 0.5;
}

.zg-core-directory .zg-atlas-breadcrumb__current {
  color: var(--atlas-navy);
  font-weight: 600;
}

.zg-core-directory .zg-atlas-breadcrumb__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.zg-core-directory .zg-atlas-breadcrumb__verified {
  font-size: 11px;
  font-weight: 700;
  color: #0d6b4a;
  background: #e8f7f0;
  border: 1px solid #b8e6d0;
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Prestige hero (Stitch split layout) */
.zg-core-directory.zg-atlas--prestige .zg-atlas-prestige {
  padding: 20px 0 12px;
}

.zg-core-directory .zg-atlas-prestige__card {
  background: var(--atlas-card);
  border: 1px solid var(--atlas-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px -16px rgba(15, 28, 44, 0.14);
}

.zg-core-directory .zg-atlas-prestige__split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

@media (min-width: 1024px) {
  .zg-core-directory .zg-atlas-prestige__split {
    grid-template-columns: 5fr 7fr;
    min-height: 0;
    align-items: start;
  }
}

.zg-core-directory .zg-atlas-prestige__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--atlas-line);
  order: 2;
}

@media (min-width: 1024px) {
  .zg-core-directory .zg-atlas-prestige__info {
    border-top: none;
    border-left: 1px solid var(--atlas-line);
    padding: 28px 32px;
    order: 1;
  }
}

.zg-core-directory .zg-atlas-prestige__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: var(--atlas-navy);
  order: 1;
}

@media (min-width: 1024px) {
  .zg-core-directory.zg-atlas--prestige .zg-atlas-prestige__visual {
    align-self: start;
    order: 2;
  }
}

.zg-core-directory .zg-atlas-prestige__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.zg-core-directory .zg-atlas-prestige__visual:hover .zg-atlas-prestige__cover {
  transform: scale(1.04);
}

.zg-core-directory .zg-atlas-prestige__cover--empty {
  background: linear-gradient(135deg, #1b2d45, #0f1c2c);
}

.zg-core-directory .zg-atlas-prestige__visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 14, 22, 0.92) 0%, rgba(8, 14, 22, 0.25) 48%, rgba(8, 14, 22, 0.08) 100%);
  pointer-events: none;
}

.zg-core-directory .zg-atlas-prestige__visual-top {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.zg-core-directory .zg-atlas-prestige__cover-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

.zg-core-directory .zg-atlas-prestige__statuses {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zg-core-directory .zg-atlas-prestige__emblem-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  text-align: center;
  width: min(92%, 280px);
  pointer-events: none;
}

.zg-core-directory .zg-atlas-prestige__emblem-wrap--title-only {
  bottom: 8%;
}

.zg-core-directory .zg-atlas-prestige__emblem-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--atlas-gold-soft), #fff, var(--atlas-gold));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 0, 0, 0.22);
}

.zg-core-directory .zg-atlas-prestige__emblem {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(254, 206, 87, 0.55);
  background: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-prestige__emblem-cap {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.zg-core-directory .zg-atlas-prestige__back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
  background: rgba(15, 28, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none;
}

@media (min-width: 640px) {
  .zg-core-directory .zg-atlas-prestige__back {
    display: none;
  }
}

.zg-core-directory .zg-atlas-prestige__usage {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--atlas-gold);
  background: rgba(119, 90, 0, 0.1);
  border: 1px solid rgba(119, 90, 0, 0.28);
}

.zg-core-directory .zg-atlas-prestige__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--atlas-navy);
  font-weight: 900;
}

.zg-core-directory .zg-atlas-prestige__en {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--atlas-muted);
}

.zg-core-directory .zg-atlas-prestige__address {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--atlas-muted);
  line-height: 1.6;
}

.zg-core-directory .zg-atlas-prestige__specs {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-prestige__specs-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--atlas-muted);
  letter-spacing: 0.02em;
}

.zg-core-directory .zg-atlas-prestige__specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .zg-core-directory .zg-atlas-prestige__specs-grid {
    grid-template-columns: 1fr;
  }
}

.zg-core-directory .zg-atlas-prestige__spec {
  padding: 10px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--atlas-line);
  text-align: center;
}

.zg-core-directory .zg-atlas-prestige__spec-k {
  display: block;
  font-size: 10px;
  color: var(--atlas-muted);
  margin-bottom: 4px;
}

.zg-core-directory .zg-atlas-prestige__spec-v {
  font-size: 12px;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-prestige__spec-v--gold {
  color: var(--atlas-gold);
}

.zg-core-directory .zg-atlas-prestige__intro {
  margin-top: 16px;
}

.zg-core-directory .zg-atlas-prestige__intro-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-prestige__intro-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--atlas-muted);
  text-align: justify;
}

.zg-core-directory .zg-atlas-prestige__contact {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-prestige__contact-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-prestige__phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .zg-core-directory .zg-atlas-prestige__phones {
    grid-template-columns: 1fr;
  }
}

.zg-core-directory .zg-atlas-prestige__phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fc;
  border: 1px solid var(--atlas-line);
  font-size: 12px;
  color: var(--atlas-muted);
  text-decoration: none;
}

.zg-core-directory .zg-atlas-prestige__phone strong {
  color: var(--atlas-navy);
  font-weight: 800;
}

.zg-core-directory .zg-atlas-prestige__social-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.zg-core-directory .zg-atlas-prestige__social-link {
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--atlas-line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 28, 44, 0.07);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zg-core-directory .zg-atlas-prestige__social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 28, 44, 0.1);
}

.zg-core-directory .zg-atlas-prestige__social-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.zg-core-directory .zg-atlas-prestige__social-glyph svg {
  display: block;
  width: 24px;
  height: 24px;
}

.zg-core-directory .zg-atlas-prestige__social-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-prestige__social-link--text {
  width: auto;
  min-width: 56px;
  max-width: 96px;
  flex: 0 0 auto;
  padding: 6px 8px;
}

.zg-core-directory .zg-atlas-prestige__social-link--instagram {
  background: #fdf2f8;
  border-color: #f9c4df;
}

.zg-core-directory .zg-atlas-prestige__social-link--telegram {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.zg-core-directory .zg-atlas-prestige__social-link--eitaa {
  background: #fffbeb;
  border-color: #fde68a;
}

.zg-core-directory .zg-atlas-prestige__social-link--bale {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.zg-core-directory .zg-atlas-prestige__social-link--website {
  background: #e8eef5;
  border-color: #c5d4e4;
}

.zg-core-directory .zg-atlas-prestige__gallery {
  border-top: 1px solid var(--atlas-line);
  background: #ffffff;
  padding: 16px 20px 20px;
}

.zg-core-directory .zg-atlas-prestige__gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.zg-core-directory .zg-atlas-prestige__gallery-head h2 {
  margin: 0;
  font-size: 14px;
  color: var(--atlas-navy);
}

.zg-core-directory.zg-atlas--prestige .zg-atlas-panel--full {
  width: 100%;
  margin-bottom: 20px;
}

.zg-core-directory .zg-atlas-prestige__dir-back {
  margin: 0 0 28px;
}

.zg-core-directory .zg-atlas-count-tag--on-dark {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.zg-core-directory .zg-atlas-gallery--prestige-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .zg-core-directory .zg-atlas-gallery--prestige-strip {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    overflow-x: visible;
  }
}

.zg-core-directory .zg-atlas-gallery--prestige-strip .zg-atlas-gal-tile {
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  min-width: 120px;
}

.zg-core-directory .zg-atlas-gallery--prestige-strip .zg-atlas-gal-tile__cap {
  display: none !important;
}

.zg-core-directory .zg-atlas-gallery--prestige-strip .zg-atlas-gal-tile__link::after {
  display: none;
}

.zg-core-directory .zg-atlas-gallery--prestige-strip .zg-atlas-gal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zg-core-directory .zg-atlas-hero {
  padding: 24px 0 8px;
}

.zg-core-directory .zg-atlas-hero__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--atlas-line);
  box-shadow: 0 16px 48px -8px rgba(15, 28, 44, 0.18);
  max-width: var(--atlas-max);
  margin-inline: auto;
  width: min(var(--atlas-max), calc(100% - 40px));
}

.zg-core-directory .zg-atlas-hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zg-core-directory .zg-atlas-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 28, 44, 0.94) 0%, rgba(15, 28, 44, 0.5) 45%, rgba(15, 28, 44, 0.2) 100%);
}

.zg-core-directory .zg-atlas-hero__badges {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}

.zg-core-directory .zg-atlas-hero__badges-start {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zg-core-directory .zg-atlas-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.zg-core-directory .zg-atlas-badge--live {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.25);
}

.zg-core-directory .zg-atlas-badge--vip {
  color: var(--atlas-gold);
  background: rgba(254, 206, 87, 0.92);
  border-color: rgba(119, 90, 0, 0.25);
}

.zg-core-directory .zg-atlas-hero__back {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--atlas-navy) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.zg-core-directory .zg-atlas-hero__back--solo {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.zg-core-directory .zg-atlas-hero__compose {
  position: relative;
  max-width: var(--atlas-max);
  margin-inline: auto;
  width: min(var(--atlas-max), calc(100% - 40px));
}

.zg-core-directory .zg-atlas-hero__panel {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "emblem headline snapshot"
    "chips chips chips";
  align-items: end;
  gap: 12px 20px;
  pointer-events: none;
}

.zg-core-directory .zg-atlas-hero__panel > * {
  pointer-events: auto;
}

.zg-core-directory .zg-atlas-hero__headline {
  grid-area: headline;
  min-width: 0;
}

.zg-core-directory .zg-atlas-hero__panel .zg-atlas-hero__emblem {
  grid-area: emblem;
  width: 96px;
  height: 96px;
}

.zg-core-directory .zg-atlas-hero__panel .zg-atlas-hero__meta-chips {
  grid-area: chips;
}

.zg-core-directory .zg-atlas-hero__panel .zg-atlas-hero__snapshot {
  grid-area: snapshot;
  text-align: left;
}

.zg-core-directory .zg-atlas-hero__emblem {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--atlas-gold-soft);
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.zg-core-directory .zg-atlas-hero__emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.zg-core-directory .zg-atlas-hero__emblem--photo {
  padding: 0;
  overflow: hidden;
}

.zg-core-directory .zg-atlas-hero__emblem--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zg-core-directory .zg-atlas-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.zg-core-directory .zg-atlas-hero__en {
  margin: 0 0 10px;
  font-size: 14px;
  color: #dbe4ed;
  font-weight: 500;
}

.zg-core-directory .zg-atlas-hero__meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.zg-core-directory .zg-atlas-id {
  font-size: 12px;
  color: #ecf5fe;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.zg-core-directory .zg-atlas-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 28, 44, 0.45);
  color: #f6faff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.zg-core-directory .zg-atlas-hero__snapshot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 13px;
  color: #ecf5fe;
  font-weight: 600;
}

.zg-core-directory .zg-atlas-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--atlas-line);
  margin-top: 16px;
}

.zg-core-directory .zg-atlas-sticky-nav__inner {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.zg-core-directory .zg-atlas-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.zg-core-directory .zg-atlas-anchors a {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--atlas-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.zg-core-directory .zg-atlas-anchors a:hover {
  color: var(--atlas-gold);
  border-bottom-color: var(--atlas-gold-soft);
}

.zg-core-directory .zg-atlas-main {
  padding-top: 32px;
}

.zg-core-directory .zg-atlas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.zg-core-directory .zg-atlas-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zg-core-directory .zg-atlas-panel {
  background: var(--atlas-card);
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  padding: 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 28, 44, 0.05);
}

.zg-core-directory .zg-atlas-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.zg-core-directory .zg-atlas-panel__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--atlas-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.zg-core-directory .zg-atlas-mark {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--atlas-gold-soft);
}

.zg-core-directory .zg-atlas-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--atlas-ink);
  margin: 0 0 24px;
  text-align: justify;
}

.zg-core-directory .zg-atlas-count-tag,
.zg-core-directory .zg-atlas-coords {
  font-size: 12px;
  font-weight: 600;
  color: var(--atlas-gold);
  border: 1px solid rgba(119, 90, 0, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.zg-core-directory .zg-atlas-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.zg-core-directory .zg-atlas-metric {
  background: #ecf5fe;
  border: 1px solid var(--atlas-line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
}

.zg-core-directory .zg-atlas-metric__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--atlas-gold);
  text-transform: uppercase;
}

.zg-core-directory .zg-atlas-metric__value {
  font-size: 1.35rem;
  color: var(--atlas-navy);
  line-height: 1.2;
}

.zg-core-directory .zg-atlas-metric--usage .zg-atlas-metric__value--icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-weight: normal;
}

.zg-core-directory .zg-atlas-metric--usage .zg-atlas-usage-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--atlas-line);
  color: var(--atlas-navy);
  box-shadow: 0 2px 8px rgba(15, 28, 44, 0.06);
}

.zg-core-directory .zg-atlas-metric__hint {
  font-size: 12px;
  color: var(--atlas-muted);
}

.zg-core-directory .zg-atlas-prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--atlas-ink);
}

.zg-core-directory .zg-atlas-gallery--showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  background: #f6faff;
  border-radius: 16px;
  border: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-gallery--showcase[data-count="1"] {
  grid-template-columns: 1fr;
}

.zg-core-directory .zg-atlas-gallery--showcase[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .zg-core-directory .zg-atlas-gallery--showcase[data-count="5"],
  .zg-core-directory .zg-atlas-gallery--showcase[data-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.zg-core-directory .zg-atlas-gal-tile {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 28, 44, 0.1);
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e6eff8;
  box-shadow: 0 8px 24px -6px rgba(15, 28, 44, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zg-core-directory .zg-atlas-gal-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(15, 28, 44, 0.16);
}

.zg-core-directory .zg-atlas-gal-tile__cap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 28px 12px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(0deg, rgba(15, 28, 44, 0.88), transparent);
  pointer-events: none;
}

.zg-core-directory .zg-atlas-gal-tile__link::after {
  content: "بزرگ‌نمایی";
  position: absolute;
  inset: auto 12px 12px auto;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 28, 44, 0.65);
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.zg-core-directory .zg-atlas-gal-tile:hover .zg-atlas-gal-tile__link::after {
  opacity: 1;
  transform: translateY(0);
}

.zg-core-directory .zg-atlas-gal-tile a,
.zg-core-directory .zg-atlas-gal-tile__link {
  display: block;
  height: 100%;
  position: relative;
}

.zg-core-directory .zg-atlas-gal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.zg-core-directory .zg-atlas-gal-tile:hover img {
  transform: scale(1.04);
}

.zg-core-directory .zg-atlas-address-box {
  background: #ecf5fe;
  border: 1px solid var(--atlas-line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.zg-core-directory .zg-atlas-address-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-address-box p {
  margin: 0;
  line-height: 1.7;
}

.zg-core-directory .zg-atlas-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  margin-bottom: 12px;
}

.zg-core-directory .zg-atlas-map {
  height: 320px !important;
  width: 100%;
}

.zg-core-directory .zg-atlas-aside {
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zg-core-directory .zg-atlas-panel--aside {
  padding: 22px;
}

.zg-core-directory .zg-atlas-aside-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-aside-head p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--atlas-muted);
}

.zg-core-directory .zg-atlas-contact-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zg-core-directory .zg-atlas-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #ecf5fe;
  border-radius: 10px;
  border: 1px solid var(--atlas-line);
  font-size: 14px;
}

.zg-core-directory .zg-atlas-contact-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--atlas-muted);
  margin-bottom: 4px;
}

.zg-core-directory .zg-atlas-contact-row a {
  color: var(--atlas-navy);
  text-decoration: none;
  font-weight: 700;
}

.zg-core-directory .zg-atlas-contact-action {
  padding: 6px 12px;
  background: var(--atlas-navy);
  color: #fff !important;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.zg-core-directory .zg-atlas-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-social {
  flex: 1 1 calc(50% - 4px);
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #e6eff8;
  border: 1px solid var(--atlas-line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.zg-core-directory .zg-atlas-verified {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--atlas-radius);
  background: var(--atlas-navy);
  color: #dbe4ed;
  border: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-verified__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(254, 206, 87, 0.15);
  color: var(--atlas-gold-soft);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.zg-core-directory .zg-atlas-verified__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--atlas-gold-soft);
  letter-spacing: 0.06em;
}

.zg-core-directory .zg-atlas-verified p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #eef4fb;
}

.zg-core-directory .zg-atlas-verified p strong {
  color: #fece57;
  font-weight: 800;
}

.zg-core-directory .zg-atlas-verified__date {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #dce8f5 !important;
}

#zg36500 .zg-core-directory.zg-atlas .zg-atlas-verified,
#zg36500 .zg-core-directory.zg-atlas .zg-atlas-verified p,
#zg36500 .zg-core-directory.zg-atlas .zg-atlas-verified time {
  color: #eef4fb;
}

.zg-core-directory .zg-atlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.zg-core-directory .zg-atlas-btn--outline {
  background: #fff;
  border-color: var(--atlas-line);
  color: var(--atlas-navy) !important;
}

.zg-core-directory .zg-atlas-btn--block {
  width: 100%;
  background: transparent;
  border-color: var(--atlas-line);
  color: var(--atlas-gold) !important;
}

.zg-core-directory .zg-atlas-related,
.zg-core-directory .zg-directory-related {
  margin-top: 40px;
}

.zg-core-directory .zg-atlas-related-panel {
  background: var(--atlas-card);
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  padding: 24px 22px 28px;
  box-shadow: 0 10px 36px -12px rgba(15, 28, 44, 0.1);
}

.zg-core-directory .zg-atlas-related-panel .zg-directory-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--atlas-line);
}

.zg-core-directory .zg-atlas-related-panel .zg-directory-related__head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--atlas-navy);
}

.zg-core-directory .zg-atlas-related-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--atlas-gold);
  text-decoration: none;
  white-space: nowrap;
}

.zg-core-directory .zg-atlas-related-all:hover {
  text-decoration: underline;
}

.zg-core-directory .zg-atlas-related-panel .zg-atlas-archive-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .zg-core-directory .zg-atlas-grid {
    grid-template-columns: 1fr;
  }
  .zg-core-directory .zg-atlas-aside {
    position: static;
  }
  .zg-core-directory .zg-atlas-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .zg-core-directory.zg-atlas {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .zg-core-directory .zg-atlas-wrap,
  .zg-core-directory .zg-atlas-hero__compose,
  .zg-core-directory .zg-atlas-hero__frame {
    width: min(var(--atlas-max), calc(100% - 24px));
  }

  .zg-core-directory .zg-atlas-hero {
    padding-top: 12px;
  }

  .zg-core-directory .zg-atlas-hero__compose {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .zg-core-directory .zg-atlas-hero__frame {
    min-height: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    width: 100%;
  }

  .zg-core-directory .zg-atlas-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(15, 28, 44, 0.15) 0%,
      rgba(15, 28, 44, 0.05) 55%,
      rgba(15, 28, 44, 0.35) 100%
    );
  }

  .zg-core-directory .zg-atlas-hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .zg-core-directory .zg-atlas-hero__back,
  .zg-core-directory .zg-atlas-hero__back--solo {
    display: none;
  }

  .zg-core-directory .zg-atlas-hero__panel {
    position: static;
    padding: 0 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    pointer-events: auto;
  }

  .zg-core-directory .zg-atlas-hero__panel .zg-atlas-hero__emblem {
    order: 0;
    width: 84px;
    height: 84px;
    margin: 0 auto 4px;
  }

  .zg-core-directory .zg-atlas-hero__headline {
    text-align: center;
  }

  .zg-core-directory .zg-atlas-hero__title {
    font-size: 1.35rem;
    color: var(--atlas-navy);
  }

  .zg-core-directory .zg-atlas-hero__en {
    color: var(--atlas-muted);
  }

  .zg-core-directory .zg-atlas-hero__meta-chips {
    gap: 8px;
    justify-content: center;
    order: 0;
  }

  .zg-core-directory .zg-atlas-id {
    color: var(--atlas-navy);
    background: #e8f0fa;
    border-color: var(--atlas-line);
  }

  .zg-core-directory .zg-atlas-chip {
    color: var(--atlas-navy);
    background: #fff;
    border-color: var(--atlas-line);
  }

  .zg-core-directory .zg-atlas-hero__snapshot {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    text-align: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--atlas-line);
    color: var(--atlas-navy);
    font-weight: 700;
    font-size: 14px;
  }

  .zg-core-directory .zg-atlas-sticky-nav {
    top: calc(var(--zg-header-h, 64px) + env(safe-area-inset-top, 0px));
    z-index: 40;
  }

  .zg-core-directory .zg-atlas-metrics {
    grid-template-columns: 1fr;
  }
  .zg-core-directory .zg-atlas-gallery--showcase,
  .zg-core-directory .zg-atlas-gallery--showcase[data-count="3"] {
    grid-template-columns: 1fr;
  }
  .zg-core-directory .zg-atlas-related-panel .zg-atlas-archive-grid--related {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}