/* ==========================================================================
   ZEYNALI CIVIL & LEGAL REAL ESTATE — GOLD-FRAMED EDITORIAL ARCHITECTURAL THEME
   Inspired by International Legal & Architectural Houses
   Palette: Matte Slate Obsidian (#1C222D) + Champagne Bronze Gold (#C8AA6F)
            + Architectural Stone Ivory (#EAEAE7) + Deep Teal (#1E6265)
   ========================================================================== */

:root {
  --navy-deep: #141922;
  --navy: #1C222D;
  --navy-mid: #273040;
  --slate-btn: #2F3643;
  --gold: #C8AA6F;
  --gold-dark: #9B7B3C;
  --gold-hover: #D4B87E;
  --gold-soft: #F5EFE2;
  --stone: #E9E9E6;

  --teal: #1E6265;
  --teal-light: #348789;
  --teal-tint: #E5EFEF;
  --cream: #EDEAE2;
  --cream-soft: #F6F4EE;
  --silver: #C8CECA;
  --charcoal: #222B35;
  --muted: #586469;
  --white: #FFFFFF;
  --danger: #9E3434;
  --warn-bg: #FCF7E8;
  --warn-border: #DFC684;

  --line: rgba(20, 25, 34, 0.095);
  --line-light: rgba(255, 255, 255, 0.13);
  --shadow-sm: 0 3px 12px rgba(10, 14, 22, 0.05);
  --shadow-md: 0 14px 34px -12px rgba(10, 14, 22, 0.14);
  --shadow-lg: 0 28px 60px -18px rgba(8, 12, 20, 0.36);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--cream-soft);
  color: var(--charcoal);
}

body {
  font-family: var(--font);
  background: var(--cream-soft);
  color: var(--charcoal);
  line-height: 1.78;
  font-size: 15.2px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Signature Champagne-Gold Outer Frame on Desktop */
body.public-framed-body {
  background: linear-gradient(160deg, #D1B57C 0%, #C6A668 50%, #B89658 100%);
  padding: 24px 20px;
}

.site-canvas {
  max-width: 1240px;
  margin-inline: auto;
  background: var(--cream-soft);
  box-shadow: 0 30px 80px rgba(8, 12, 20, 0.42);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

img {
  display: block;
  max-width: 100%;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Title rule: (کارآموز) MUST keep identical font-size on the same line */
.fixed-legal-title {
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.6;
}

.title-intern {
  font-size: inherit;
  font-weight: 400;
  color: #DCE9E9;
}

.title-intern-dark {
  font-size: inherit;
  font-weight: 400;
  color: var(--teal);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(200, 170, 111, 0.25);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-gold-outline {
  background: rgba(200, 170, 111, 0.09);
  color: #F4E4C6;
  border: 1px solid rgba(200, 170, 111, 0.58);
}

.btn-gold-outline:hover {
  background: rgba(200, 170, 111, 0.22);
  border-color: var(--gold);
}

.btn-slate-action {
  background: var(--slate-btn);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-slate-action:hover {
  background: #3B4454;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-navy:hover {
  background: var(--navy-mid);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-light);
}

.btn-cream {
  background: var(--cream);
  color: var(--charcoal);
  border: 1px solid var(--silver);
}

.btn-cream:hover {
  background: #E2DFD5;
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--silver);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

/* ==========================================================================
   HEADER (Matte Slate-Navy Bar — Management Button Always Visible)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 74px;
  padding-block: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  padding: 2px;
  background: var(--cream);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.32;
}

.brand-domain {
  font-size: 11.6px;
  color: var(--gold);
  font-weight: 700;
  margin-inline-start: 4px;
}

.brand-sub {
  font-size: 12px;
  color: #D2DFDF;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-admin-btn {
  padding: 8px 14px;
  font-size: 12.8px;
}

.header-cta-btn {
  padding: 8px 16px;
  font-size: 13px;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  place-items: center;
}

.mobile-drawer {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-light);
  padding: 12px 22px 18px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 600;
  color: #E7EEF5;
}

/* ==========================================================================
   HERO STAGE + TRANSPARENT SUBBAR + EMBLEM + 3 OVERLAPPING STONE/GOLD CARDS
   ========================================================================== */
.hero-stage {
  position: relative;
  background: var(--navy);
  color: var(--white);
}

.hero-photo-backdrop {
  position: absolute;
  inset: 0 0 84px 0;
  background-image: url('/assets/hero-architecture.jpg?v=20261202v3');
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(38%) contrast(1.05);
  pointer-events: none;
}

.hero-matte-overlay {
  position: absolute;
  inset: 0 0 84px 0;
  background:
    linear-gradient(180deg, rgba(24, 30, 41, 0.90) 0%, rgba(25, 31, 42, 0.85) 55%, rgba(24, 30, 41, 0.96) 100%);
  pointer-events: none;
}

/* Transparent Sub-navigation bar inside Hero */
.hero-subbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.subbar-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 12.8px;
  font-weight: 600;
  color: #D6DFE8;
  padding-block: 4px;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hc-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.hc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(200, 170, 111, 0.65);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hc-label {
  display: block;
  font-size: 10.5px;
  color: #A6B2BF;
  line-height: 1.25;
}

.hc-val {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #F4F6F9;
}

/* Signature Gold Crosshair Ornament */
.gold-crosshair {
  position: relative;
  width: 34px;
  height: 26px;
  margin-bottom: 16px;
}

.gc-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(200, 170, 111, 0.72);
}

.gc-v {
  position: absolute;
  left: 34%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200, 170, 111, 0.72);
}

.gc-dot {
  position: absolute;
  left: calc(34% - 2px);
  top: calc(50% - 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200, 170, 111, 0.85);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding-block: 42px 34px;
}

.hero-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-fixed-role {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: #F1DFBE;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(200, 170, 111, 0.45);
}

.hero-subtitle {
  max-width: 510px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #C7D0DA;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn-primary {
  padding: 12px 24px;
}

.hero-btn-admin {
  padding: 12px 20px;
}

/* Integrated Dark Studio Emblem (Scales + Law Book + Architect Calipers + Blueprint + House Key) */
.hero-emblem-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-emblem-img {
  width: 100%;
  max-width: 470px;
  border-radius: 12px;
  object-fit: cover;
  mask-image: radial-gradient(ellipse 84% 82% at 50% 50%, #000 58%, transparent 98%);
  -webkit-mask-image: radial-gradient(ellipse 84% 82% at 50% 50%, #000 58%, transparent 98%);
  filter: contrast(1.06);
}

/* 3 Crisp Horizontal Pillar Cards Overlapping Hero Bottom */
.hero-pillars-wrap {
  position: relative;
  z-index: 4;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-pillar-card {
  position: relative;
  text-align: right;
  background: var(--stone);
  color: var(--navy-deep);
  padding: 24px 22px 22px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 158px;
  box-shadow: 0 14px 32px rgba(8, 12, 20, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(8, 12, 20, 0.36);
}

.hero-pillar-card.is-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.hpc-icon {
  color: var(--gold-dark);
  margin-bottom: 4px;
  display: inline-flex;
}

.hero-pillar-card.is-gold .hpc-icon {
  color: var(--navy-deep);
}

.hero-pillar-card h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy-deep);
}

.hero-pillar-card p {
  font-size: 12.8px;
  color: #46505A;
  line-height: 1.65;
  padding-inline-end: 22px;
}

.hero-pillar-card.is-gold p {
  color: #1F2630;
  font-weight: 600;
}

.hpc-arrow {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 16px;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy-deep);
}

/* ==========================================================================
   DARK EXECUTIVE INTRODUCTION BAND (Below 3 Pillar Cards — Inspired by HSL)
   ========================================================================== */
.dark-editorial-band {
  background: var(--navy);
  color: var(--white);
  padding-block: 56px 52px;
}

.dark-editorial-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: center;
}

.editorial-portrait-wrap {
  position: relative;
  border: 1px solid rgba(200, 170, 111, 0.38);
  background: #141922;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.editorial-portrait-img {
  width: 100%;
  height: 295px;
  object-fit: cover;
  object-position: center 20%;
}

.editorial-seal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(18, 24, 34, 0.96);
  border-top: 1px solid rgba(200, 170, 111, 0.32);
}

.editorial-seal-badge img {
  border-radius: 50%;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}

.editorial-seal-badge strong {
  display: block;
  font-size: 12.6px;
  font-weight: 800;
  color: var(--white);
}

.editorial-seal-badge span {
  display: block;
  font-size: 10.6px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.editorial-copy h2 {
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.42;
  color: var(--white);
  margin-bottom: 12px;
}

.editorial-copy p {
  font-size: 14.4px;
  color: #C4CDD7;
  line-height: 1.88;
  margin-bottom: 18px;
}

.editorial-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.editorial-read-more {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(200, 170, 111, 0.65);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.editorial-read-more.subtle {
  color: #D7E2EE;
  border-bottom-color: rgba(215, 226, 238, 0.45);
}

.editorial-read-more:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.exec-stats-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.exec-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 170, 111, 0.25);
  border-radius: 3px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exec-stat b {
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
}

.exec-stat span {
  font-size: 11.8px;
  color: #D7E4EC;
}

/* ==========================================================================
   DAILY HUB: TRIPLE CALENDAR + PHOTOREALISTIC MARKET RATES
   ========================================================================== */
.daily-hub-band {
  background: var(--cream);
  padding-block: 26px 22px;
  border-bottom: 1px solid var(--line);
}

.daily-hub-card {
  background: var(--white);
  border: 1px solid rgba(200, 170, 111, 0.45);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
}

.daily-hub-pane {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.daily-culture-pane {
  background: linear-gradient(155deg, #FFFFFF 0%, #FAF8F2 100%);
  border-inline-end: 1px solid var(--line);
}

.daily-market-pane {
  background: var(--white);
}

.hub-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #238A62;
  box-shadow: 0 0 0 3px rgba(35, 138, 98, 0.16);
}

.hub-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--teal);
}

.hub-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 700;
  border: 1px solid rgba(200, 170, 111, 0.42);
}

.hub-clock-pill strong {
  color: #F3DCB5;
  font-size: 12.6px;
}

.hub-date-box {
  background: var(--cream-soft);
  border: 1px solid rgba(200, 170, 111, 0.35);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 10px 13px;
}

.hub-date-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-date-main {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--navy);
}

.hub-day-ancient {
  font-size: 11.2px;
  font-weight: 800;
  color: #6B501D;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 170, 111, 0.46);
  padding: 2px 9px;
  border-radius: 999px;
}

.hub-tri-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.tri-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.7px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}

.tri-chip-k {
  font-weight: 700;
  color: var(--teal);
}

.tri-date-chip strong {
  font-weight: 800;
  color: var(--navy);
}

.hub-occasion-box {
  font-size: 12.2px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 9px 11px;
}

.hub-occasion-text {
  display: grid;
  gap: 6px;
}

.occ-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.55;
}

.occ-tag {
  flex-shrink: 0;
  font-size: 10.6px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.occ-tag-official {
  background: var(--teal-tint);
  color: var(--teal);
}

.occ-tag-ancient {
  background: var(--gold-soft);
  color: #6D501B;
}

.hub-quote-box {
  margin-top: auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xs);
  padding: 10px 13px;
  border-inline-start: 3px solid var(--gold);
}

.hub-quote-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hub-quote-text {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.72;
  color: #F6F4EF;
}

.hub-quote-author {
  font-size: 11px;
  color: #E7CE9B;
  font-weight: 700;
  margin-top: 4px;
}

.hub-mini-btn {
  flex-shrink: 0;
  font-size: 11.4px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(200, 170, 111, 0.45);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.16s ease;
}

.daily-market-pane .hub-mini-btn {
  color: var(--navy);
  background: var(--cream-soft);
  border-color: var(--silver);
}

.hub-mini-btn:hover {
  background: rgba(200, 170, 111, 0.22);
}

.hub-market-title {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--navy);
}

.hub-market-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-source-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #70531D;
  border: 1px solid rgba(200, 170, 111, 0.42);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.market-tile:hover {
  border-color: rgba(200, 170, 111, 0.72);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.mk-photo {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(200, 170, 111, 0.45);
  flex-shrink: 0;
  background: #101A28;
  box-shadow: 0 3px 10px rgba(10, 18, 30, 0.14);
}

.mk-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.market-tile:hover .mk-photo img {
  transform: scale(1.07);
}

.mk-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mk-label {
  font-size: 11.4px;
  font-weight: 700;
  color: var(--muted);
}

.mk-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}

.mk-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.9px;
  color: var(--muted);
  flex-wrap: wrap;
}

.mk-chg-up {
  color: #16794C;
  font-weight: 800;
}

.mk-chg-down {
  color: #B42323;
  font-weight: 800;
}

.mk-chg-flat {
  color: var(--muted);
  font-weight: 700;
}

.market-tile-wide {
  grid-column: 1 / -1;
  justify-content: space-between;
  background: linear-gradient(135deg, #131924 0%, #1E2838 100%);
  border: 1px solid rgba(200, 170, 111, 0.48);
  color: var(--white);
  padding: 9px 13px;
}

.market-tile-wide .mk-photo-wide {
  width: 78px;
  height: 52px;
  border-color: rgba(200, 170, 111, 0.65);
}

.market-tile-wide .mk-label {
  color: #F4E3C3;
  font-weight: 800;
}

.mk-sub-note {
  display: block;
  font-size: 11.2px;
  color: #BFCEDB;
}

.mk-wide-val {
  text-align: left;
  flex-shrink: 0;
}

.market-tile-wide .mk-price {
  display: block;
  color: #F5DEC0;
  font-size: 16.5px;
}

.market-tile-wide .mk-meta {
  color: #C7D4DF;
  justify-content: flex-end;
}

.hub-market-foot {
  margin-top: auto;
  font-size: 11.4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3-CHANNEL EDITORIAL IMAGE SHOWCASE HUB
   ========================================================================== */
.channels-hub-band {
  background: var(--cream-soft);
  padding-block: 36px 44px;
  border-bottom: 1px solid var(--line);
}

.channels-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.channels-mode-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ch-status-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--silver);
  color: var(--navy);
}

.ch-all-btn {
  font-size: 12.2px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  transition: all 0.16s ease;
}

.ch-all-btn.active,
.ch-all-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.channel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ch-switch-card {
  text-align: right;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ch-switch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 170, 111, 0.72);
}

.ch-switch-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 170, 111, 0.35), var(--shadow-md);
}

.ch-cover-wrap {
  position: relative;
  width: 100%;
  height: 196px;
  overflow: hidden;
  background: #131924;
}

.ch-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ch-switch-card:hover .ch-cover-img {
  transform: scale(1.05);
}

.ch-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.08) 0%, rgba(10, 15, 24, 0.24) 55%, rgba(10, 15, 24, 0.88) 100%);
  padding: 12px 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ch-num-badge {
  font-size: 11.4px;
  font-weight: 900;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(20, 25, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.ch-badge-gold {
  background: rgba(155, 123, 60, 0.94);
  border-color: rgba(244, 228, 198, 0.48);
  color: #FFFFFF;
}

.ch-code-ltr {
  font-size: 10.6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #F1DBB4;
}

.ch-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ch-card-body h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.ch-card-body p {
  font-size: 13.2px;
  color: var(--muted);
  line-height: 1.68;
}

.ch-cta-line {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12.8px;
  font-weight: 800;
  color: var(--teal);
}

.ch-switch-gold .ch-cta-line {
  color: var(--gold-dark);
}

/* ==========================================================================
   GENERAL SECTIONS & EDITORIAL SPLIT CHANNEL BANNERS
   ========================================================================== */
.section {
  padding-block: 58px;
}

.section-cream {
  background: var(--cream);
}

.section-properties {
  background: linear-gradient(180deg, #F3F0E7 0%, var(--cream-soft) 100%);
  border-top: 1px solid rgba(190, 180, 158, 0.45);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 5px;
}

.section-title {
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.section-desc {
  max-width: 680px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.82;
}

.channel-section[hidden] {
  display: none !important;
}

.channel-editorial-banner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.32fr 0.9fr;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.ch-banner-content {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-inline-start: 5px solid var(--teal);
}

.ch-banner-insp .ch-banner-content {
  border-inline-start-color: var(--gold);
}

.ch-banner-real .ch-banner-content {
  border-inline-start-color: var(--navy);
}

.ch-banner-media {
  position: relative;
  min-height: 225px;
  background: #131924;
}

.ch-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.4px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
  margin-bottom: 10px;
}

.ch-tag-gold {
  background: var(--gold-soft);
  color: #6B4F19;
}

/* Clean Architectural Numbered Index Grid */
.arch-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.arch-index-grid.arch-index-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arch-index-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 4px 12px;
  border-top: 2px solid rgba(200, 170, 111, 0.6);
}

.arch-index-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1;
  padding-top: 3px;
  flex-shrink: 0;
}

.arch-index-item h4 {
  font-size: 15.6px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 5px;
}

.arch-index-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.72;
}

.subsection-head {
  margin: 30px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.subsection-head h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.subsection-head span {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   PROPERTIES, PROJECTS, EDUCATION & FORMS
   ========================================================================== */
.filter-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--white);
  border: 1px solid var(--silver);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  align-items: center;
  justify-content: space-between;
}

.filter-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 14px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--silver);
  background: var(--white);
  font-size: 13.8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 98, 101, 0.12);
}

.field-label {
  display: block;
  font-size: 12.8px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 170, 111, 0.65);
}

.prop-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #242E3F 100%);
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid var(--gold);
}

.prop-code {
  font-size: 12.2px;
  font-weight: 800;
  color: var(--gold);
}

.prop-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.prop-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-loc {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
}

.prop-title {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.48;
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-chip {
  font-size: 12px;
  font-weight: 700;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.prop-summary {
  font-size: 13.4px;
  color: var(--muted);
  line-height: 1.7;
}

.prop-price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prop-price {
  font-size: 15.8px;
  font-weight: 900;
  color: var(--navy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.proj-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.progress-track {
  width: 100%;
  height: 7px;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
}

.empty-state-card {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 30px 22px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 12px;
  justify-items: center;
}

/* Education Section */
.tab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--silver);
  color: var(--charcoal);
  transition: all 0.16s ease;
}

.tab-pill:hover,
.tab-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.notice-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-inline-start: 4px solid var(--gold-dark);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #54411C;
}

.live-rules-strip {
  background: linear-gradient(135deg, #161C27 0%, #232C3C 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(200, 170, 111, 0.55);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.live-rules-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.8px;
  margin-bottom: 10px;
}

.live-rules-head strong {
  color: #F4DFB8;
}

.live-rules-date {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  color: #E2ECEE;
}

.live-rules-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-rules-badges span {
  font-size: 12.2px;
  background: rgba(30, 98, 101, 0.48);
  border: 1px solid rgba(147, 215, 216, 0.35);
  color: #F5F9F9;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 170, 111, 0.65);
}

.art-cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.4px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
}

.art-title {
  font-size: 15.8px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
}

.art-summary {
  font-size: 13.4px;
  color: var(--muted);
  line-height: 1.72;
}

.art-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.2px;
  font-weight: 800;
  color: var(--teal);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   CONSULTATION CARD & FOOTER
   ========================================================================== */
.consult-card {
  position: relative;
  background:
    linear-gradient(140deg, rgba(20, 25, 34, 0.96) 0%, rgba(28, 34, 45, 0.93) 68%, rgba(26, 54, 62, 0.94) 100%),
    url('/assets/hero-architecture.jpg?v=20261202v3') center / cover no-repeat;
  color: var(--white);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(200, 170, 111, 0.45);
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 0.95fr 1.08fr;
  gap: 28px;
  align-items: start;
  box-shadow: var(--shadow-lg);
}

.consult-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.consult-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  object-position: center 20%;
}

.consult-direct-list {
  display: grid;
  gap: 9px;
  font-size: 13.8px;
  color: #F2F6FA;
  margin-bottom: 22px;
}

.consult-form {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-xs);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.consult-form .full {
  grid-column: 1 / -1;
}

.form-privacy-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: var(--navy-deep);
  color: #B4C2CF;
  border-top: 2px solid var(--gold);
  padding: 28px 0;
  font-size: 13.5px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 24, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--gold);
}

.modal-body {
  padding: 24px;
}

.checklist-ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-block: 14px;
}

.checklist-ul li {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--teal);
  border-radius: var(--radius-xs);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 150;
  background: var(--navy-deep);
  color: var(--white);
  border: 1px solid var(--gold);
  padding: 11px 18px;
  border-radius: var(--radius-xs);
  font-size: 13.8px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  body.public-framed-body {
    padding: 0;
  }
  .hero-subbar {
    display: none;
  }
  .mobile-menu-btn {
    display: grid;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 28px 22px;
  }
  .hero-emblem-img {
    max-width: 340px;
  }
  .hero-photo-backdrop,
  .hero-matte-overlay {
    inset: 0 0 24px 0;
  }
  .hero-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 26px;
  }
  .hero-pillar-card {
    min-height: 0;
    padding: 18px 18px;
  }
  .dark-editorial-grid,
  .daily-hub-card,
  .channel-cards-grid,
  .channel-editorial-banner,
  .arch-index-grid,
  .arch-index-grid.arch-index-4,
  .projects-grid,
  .consult-card {
    grid-template-columns: 1fr;
  }
  .daily-culture-pane {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .ch-banner-media {
    order: -1;
    min-height: 195px;
  }
  .ch-banner-content {
    border-inline-start: 0;
    border-top: 4px solid var(--teal);
  }
  .ch-banner-insp .ch-banner-content {
    border-top-color: var(--gold);
  }
  .ch-banner-real .ch-banner-content {
    border-top-color: var(--navy);
  }
  .properties-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 14px;
  }
  .header-inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 13.2px;
  }
  .brand-domain {
    display: none;
  }
  .brand-sub.fixed-legal-title {
    font-size: 9.8px;
  }
  /* Keep Management button CLEARLY VISIBLE in header on mobile! */
  .public-header .header-actions .header-cta-btn {
    display: none;
  }
  .public-header .header-actions .header-admin-btn {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 11.4px;
    gap: 5px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
  }
  .filter-toggle-btn {
    display: flex;
  }
  .filter-panel {
    display: none;
    grid-template-columns: 1fr;
  }
  .filter-panel.open {
    display: grid;
  }
  .properties-grid,
  .articles-grid,
  .consult-form,
  .market-grid {
    grid-template-columns: 1fr;
  }
  .daily-hub-pane {
    padding: 14px;
  }
  .ch-cover-wrap {
    height: 185px;
  }
  .ch-banner-content {
    padding: 18px 16px;
  }
  .consult-card {
    padding: 20px 16px;
  }
  .section {
    padding-block: 40px;
  }
}

@media print {
  .site-header, .hero-actions, .filter-panel, .consult-form, .site-footer, .modal-backdrop, .toast {
    display: none !important;
  }
}
