/* صفحات مشاريع بيان 1 و 2 — هيدر وفوتر بألوان المشروع + موبايل */

body.project-bayan-1 .site-header {
  background: linear-gradient(180deg, rgba(7, 22, 36, 0.98), rgba(10, 37, 64, 0.96)) !important;
  border-bottom: 1px solid rgba(217, 181, 109, 0.22) !important;
  box-shadow: 0 10px 28px rgba(4, 14, 26, 0.35) !important;
}

body.project-bayan-1 .site-header .site-nav a,
body.project-bayan-1 .site-header .brand {
  color: #f3f8ff !important;
}

body.project-bayan-1 .site-footer.site-footer--corp {
  background: linear-gradient(180deg, #0a2540 0%, #071624 100%) !important;
  border-top: 1px solid rgba(217, 181, 109, 0.22) !important;
}

body.project-bayan-1 .site-footer a,
body.project-bayan-1 .site-footer p,
body.project-bayan-1 .site-footer h3 {
  color: #e8f2ff !important;
}

body.project-bayan-1 .site-footer .footer-bottom {
  border-top: 1px solid rgba(217, 181, 109, 0.18) !important;
}

body.project-2 .site-header {
  position: sticky !important;
  top: 0 !important;
  background: linear-gradient(90deg, #1f1b19 0%, #2a2421 56%, #8a5a3a 100%) !important;
  border-bottom: 1px solid rgba(239, 231, 219, 0.18) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

body.project-2 .site-header .site-nav a,
body.project-2 .site-header .brand {
  color: #f5eee3 !important;
}

@media (max-width: 900px) {
  .estate-project-detail-page .b1p-hero,
  .estate-project-detail-page .b2p-hero {
    min-height: auto !important;
  }

  .estate-project-detail-page .b1p-hero-grid,
  .estate-project-detail-page .b2p-hero-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .estate-project-detail-page .b1p-media-col,
  .estate-project-detail-page .b2p-media-col {
    grid-template-rows: minmax(260px, 52vw) auto !important;
    min-height: 0 !important;
  }

  .estate-project-detail-page .b1p-media,
  .estate-project-detail-page .b2p-media {
    min-height: 260px !important;
  }

  .estate-inventory-lab .estate-detail-layout {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .estate-inventory-lab .estate-detail-sidebar {
    grid-template-rows: auto auto !important;
    gap: 0.65rem !important;
  }

  .estate-inventory-lab .estate-unit-table--inventory {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .estate-inventory-lab .estate-unit-row {
    min-width: 520px;
  }

  .estate-inventory-lab .estate-selected-unit__media img {
    max-height: 240px;
    object-fit: cover;
  }

  .estate-project-salon .estate-project-gallery-grid {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 520px) {
  .estate-project-detail-page .b1p-strip,
  .estate-project-detail-page .b1p-metrics,
  .estate-project-detail-page .b2p-strip,
  .estate-project-detail-page .b2p-metrics {
    grid-template-columns: 1fr !important;
  }

  .estate-project-detail-page .b1p-thumb,
  .estate-project-detail-page .b2p-thumb {
    width: 132px !important;
    height: 84px !important;
  }
}
