/* ============================================
   BEYENI — assets/css/pages/property.css
   Page détail d'un bien immobilier
   ============================================ */

/* ── GALERIE ────────────────────────────────── */
.byn-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 6px;
  max-height: 446px;
  overflow: hidden;
  border-radius: var(--byn-radius-lg);
}
.byn-gallery__main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--byn-radius-lg) 0 0 var(--byn-radius-lg);
}
.byn-gallery__main .byn-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--byn-transition-slow); }
.byn-gallery__main:hover .byn-gallery__img { transform: scale(1.04); }
.byn-gallery__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.byn-gallery__thumbs { display: contents; }
.byn-gallery__thumb {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--byn-dark);
}
.byn-gallery__thumb:first-child { border-radius: 0 var(--byn-radius-lg) 0 0; }
.byn-gallery__thumb:last-child  { border-radius: 0 0 var(--byn-radius-lg) 0; }
.byn-gallery__thumb .byn-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--byn-transition-slow); }
.byn-gallery__thumb:hover .byn-gallery__img { transform: scale(1.06); }
.byn-gallery__thumb--more {
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,19,33,.8); color: #fff;
  font-size: 15px; font-weight: 800;
  backdrop-filter: blur(6px);
  cursor: pointer; transition: var(--byn-transition);
}
.byn-gallery__thumb--more:hover { background: rgba(93,65,255,.7); }

/* ── LAYOUT PROPRIÉTÉ ───────────────────────── */
.byn-property-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
.byn-property-main { min-width: 0; }
.byn-property-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── HEADER PROPRIÉTÉ ───────────────────────── */
.byn-property-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--byn-gray-light);
  margin-bottom: 24px;
}

/* ── STATS RAPIDES ──────────────────────────── */
.byn-property-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.byn-property-stat {
  padding: 16px 10px;
  text-align: center;
  border-right: 1.5px solid var(--byn-gray-light);
}
.byn-property-stat:last-child { border-right: none; }
.byn-property-stat__icon { font-size: 20px; margin-bottom: 6px; }
.byn-property-stat__val  { font-size: 15px; font-weight: 800; color: var(--byn-dark); }
.byn-property-stat__lbl  { font-size: 10px; color: var(--byn-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* ── SECTIONS ───────────────────────────────── */
.byn-property-section { margin-bottom: 32px; }
.byn-property-section__title {
  font-size: 18px; font-weight: 800;
  letter-spacing: -.3px; margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--byn-gray-light);
}
.byn-property-description {
  font-size: 15px; line-height: 1.75; color: #374151;
  max-height: 180px; overflow: hidden;
  position: relative; transition: max-height .4s ease;
}
.byn-property-description.expanded { max-height: 2000px; }
.byn-property-description:not(.expanded)::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
}
#byn-desc-toggle { margin-top: 12px; }

/* ── ÉQUIPEMENTS ────────────────────────────── */
.byn-property-equips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.byn-property-equip {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--byn-soft);
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-sm);
  font-size: 13px; font-weight: 600; color: var(--byn-dark);
  transition: var(--byn-transition);
}
.byn-property-equip:hover { border-color: var(--byn-primary); background: var(--byn-primary-light); }

/* ── CARD AGENT (SIDEBAR) ───────────────────── */
.byn-agent-card {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  padding: 22px;
  transition: var(--byn-transition);
}
.byn-agent-card:hover { border-color: rgba(93,65,255,.2); box-shadow: var(--byn-shadow-sm); }
.byn-agent-card__header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1.5px solid var(--byn-gray-light);
}
.byn-agent-card__av {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.byn-agent-card__name { font-size: 15px; font-weight: 800; color: var(--byn-dark); }
.byn-agent-card__role { margin-top: 3px; }

/* ── ACTIONS PROPRIÉTÉ ──────────────────────── */
.byn-property-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── BIENS SIMILAIRES ───────────────────────── */
.byn-similar-section { padding: 64px 0; background: var(--byn-soft); }

/* ── CARTE ──────────────────────────────────── */
#byn-property-map {
  height: 360px;
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--byn-gray-light);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .byn-property-layout { grid-template-columns: 1fr; }
  .byn-property-sidebar { position: static; }
  .byn-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 180px; }
  .byn-gallery__main { grid-column: 1 / 3; grid-row: 1; border-radius: var(--byn-radius-lg) var(--byn-radius-lg) 0 0; }
  .byn-gallery__thumb:first-child { border-radius: 0 0 0 var(--byn-radius-lg); }
  .byn-gallery__thumb:last-child  { border-radius: 0 0 var(--byn-radius-lg) 0; }
  .byn-property-stats { grid-template-columns: repeat(3, 1fr); }
  .byn-property-stat:nth-child(3) { border-right: none; }
  .byn-property-stat:nth-child(4) { border-top: 1.5px solid var(--byn-gray-light); }
}
@media (max-width: 768px) {
  .byn-gallery { grid-template-columns: 1fr; grid-template-rows: 260px; max-height: 260px; }
  .byn-gallery__main { grid-row: 1; border-radius: var(--byn-radius-lg); }
  .byn-gallery__thumbs { display: none; }
  .byn-property-header { flex-direction: column; }
  .byn-property-stats  { grid-template-columns: repeat(2, 1fr); }
  .byn-property-equips { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================
   BEYENI — assets/css/pages/listing.css
   Page listing des biens
   ============================================ */

/* ── LISTING HEADER ─────────────────────────── */
.byn-listing-page { padding-top: 100px; }
.byn-listing-hero {
  background: var(--byn-dark);
  padding: 48px 5% 100px;
  text-align: center;
}
.byn-listing-hero h1 { color: #fff; font-size: clamp(26px,4vw,40px); margin-bottom: 8px; }
.byn-listing-hero p  { color: #6B7280; font-size: 15px; }

/* ── FILTRES PANEL ──────────────────────────── */
.byn-filters-panel {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
  transition: var(--byn-transition);
}
.byn-filters-panel.open { box-shadow: var(--byn-shadow-lg); }
.byn-filter-group { padding: 16px 22px; border-bottom: 1px solid var(--byn-gray-light); }
.byn-filter-group:last-child { border-bottom: none; }
.byn-filter-group__label {
  font-size: 11px; font-weight: 800;
  color: var(--byn-gray); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 10px; display: block;
}

/* Range slider */
.byn-range-wrap { position: relative; height: 20px; margin: 8px 0; }
.byn-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--byn-gray-light);
  border-radius: 2px; outline: none;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.byn-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--byn-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(93,65,255,.3);
}
.byn-range-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--byn-gray);
  margin-top: 8px; font-weight: 600;
}

/* Filter chips */
.byn-active-filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 0 0 12px;
}
.byn-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--byn-primary-light);
  color: var(--byn-primary);
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--byn-radius-full);
  cursor: pointer; transition: var(--byn-transition);
}
.byn-filter-chip:hover { background: var(--byn-primary); color: #fff; }
.byn-filter-chip__remove { font-size: 10px; opacity: .7; }

/* ── SKELETON LOADER ────────────────────────── */
.byn-skeleton {
  background: linear-gradient(90deg, var(--byn-gray-light) 25%, #f0f0f8 50%, var(--byn-gray-light) 75%);
  background-size: 200% 100%;
  animation: byn-shimmer 1.5s infinite;
  border-radius: var(--byn-radius-sm);
}
@keyframes byn-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.byn-skeleton-card {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
}
.byn-skeleton-img  { height: 218px; }
.byn-skeleton-body { padding: 18px 20px; }
.byn-skeleton-line { height: 14px; margin-bottom: 10px; }
.byn-skeleton-line.short { width: 60%; }
.byn-skeleton-line.medium { width: 80%; }

/* ── MAP VIEW ───────────────────────────────── */
.byn-map-listing {
  height: calc(100vh - 140px);
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--byn-gray-light);
  position: sticky;
  top: 100px;
}
.byn-listing-split {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 20px;
  align-items: start;
}

/* ── NO RESULTS ─────────────────────────────── */
.byn-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
}
.byn-no-results__icon { font-size: 64px; margin-bottom: 16px; }
.byn-no-results h3    { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.byn-no-results p     { color: var(--byn-gray); margin-bottom: 20px; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .byn-listing-split { grid-template-columns: 1fr; }
  .byn-map-listing   { display: none; }
}


/* ============================================
   BEYENI — assets/css/pages/dashboard.css
   Styles spécifiques aux dashboards
   ============================================ */

/* ── TABS DASHBOARD ─────────────────────────── */
.byn-dash-tab {
  flex: 1; padding: 9px 12px;
  text-align: center; border-radius: 9px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--byn-gray);
  transition: var(--byn-transition);
  text-decoration: none; white-space: nowrap;
}
.byn-dash-tab.active,
.byn-dash-tab:hover { color: var(--byn-primary); }
.byn-dash-tab.active { background: #fff; box-shadow: 0 2px 8px rgba(93,65,255,.12); }

/* ── SCORE CARD ─────────────────────────────── */
.byn-score-card {
  background: linear-gradient(135deg, var(--byn-dark), #1a2035);
  border-radius: var(--byn-radius-xl);
  padding: 36px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.byn-score-card::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(93,65,255,.3), transparent 70%);
}
.byn-score-number {
  font-size: 72px; font-weight: 900;
  letter-spacing: -3px; line-height: 1;
  color: #fff; flex-shrink: 0;
}
.byn-score-label { font-size: 13px; color: #6B7280; margin-top: 6px; }
.byn-score-bars  { flex: 1; }
.byn-score-bar-row { margin-bottom: 14px; }
.byn-score-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 5px;
}
.byn-score-bar-label span:first-child { color: rgba(255,255,255,.7); }
.byn-score-bar-label span:last-child  { color: #fff; font-weight: 700; }
.byn-score-bar-track {
  height: 6px; background: rgba(255,255,255,.08);
  border-radius: 3px; overflow: hidden;
}
.byn-score-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 1s ease;
}

/* ── KPI MINI CARDS ─────────────────────────── */
.byn-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.byn-kpi-mini {
  background: var(--byn-soft);
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-md);
  padding: 18px;
  transition: var(--byn-transition);
}
.byn-kpi-mini:hover { border-color: rgba(93,65,255,.2); box-shadow: var(--byn-shadow-sm); }
.byn-kpi-mini__icon { font-size: 22px; margin-bottom: 10px; }
.byn-kpi-mini__num  { font-size: 24px; font-weight: 900; letter-spacing: -.5px; color: var(--byn-dark); }
.byn-kpi-mini__label { font-size: 11px; color: var(--byn-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.byn-kpi-mini__sub  { font-size: 11px; color: var(--byn-gray); margin-top: 6px; }

/* ── BON DE VISITE CARD ─────────────────────── */
.byn-bon-card {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
  transition: var(--byn-transition);
}
.byn-bon-card:hover { border-color: rgba(93,65,255,.2); box-shadow: var(--byn-shadow-md); }
.byn-bon-card__head {
  background: linear-gradient(135deg, var(--byn-dark), #1a2035);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.byn-bon-card__ref  { font-size: 13px; font-weight: 800; color: var(--byn-primary-3); }
.byn-bon-card__date { font-size: 11px; color: rgba(255,255,255,.4); }
.byn-bon-card__body { padding: 18px 20px; }
.byn-bon-card__qr   { width: 80px; height: 80px; float: right; margin-left: 12px; border: 4px solid #fff; border-radius: 6px; box-shadow: var(--byn-shadow-sm); }
.byn-bon-card__result {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--byn-radius-full);
  font-size: 12px; font-weight: 700; margin-top: 12px;
}
.byn-bon-card__result.interested     { background: #F0FDF4; color: #16a34a; }
.byn-bon-card__result.not_interested { background: #FEF2F2; color: #dc2626; }
.byn-bon-card__result.pending        { background: #FFFBEB; color: #d97706; }

/* ── PIPELINE CANDIDATURES ──────────────────── */
.byn-pipeline {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 8px;
}
.byn-pipeline-col {
  min-width: 240px; flex: 1;
  background: var(--byn-soft);
  border-radius: var(--byn-radius-md);
  padding: 14px;
}
.byn-pipeline-col__title {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--byn-gray); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.byn-pipeline-col__count {
  background: var(--byn-gray-light);
  color: var(--byn-dark); font-size: 11px;
  padding: 2px 7px; border-radius: var(--byn-radius-full);
}
.byn-pipeline-item {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-sm);
  padding: 12px; margin-bottom: 8px;
  cursor: pointer; transition: var(--byn-transition);
  font-size: 13px;
}
.byn-pipeline-item:hover { border-color: var(--byn-primary); box-shadow: var(--byn-shadow-sm); }
.byn-pipeline-item__name { font-weight: 700; margin-bottom: 4px; }
.byn-pipeline-item__meta { font-size: 11px; color: var(--byn-gray); }

/* ── CHART AREA ─────────────────────────────── */
.byn-chart-wrap {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  padding: 22px;
}
.byn-chart-title {
  font-size: 15px; font-weight: 800; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.byn-chart-canvas { width: 100% !important; }

/* ── MODERATION QUEUE ───────────────────────── */
.byn-mod-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: var(--byn-radius-full);
}
.byn-mod-approved { background: #F0FDF4; color: #16a34a; }
.byn-mod-pending  { background: #FFFBEB; color: #d97706; }
.byn-mod-rejected { background: #FEF2F2; color: #dc2626; }
.byn-mod-featured { background: #EEF2FF; color: var(--byn-primary); }

/* ── ABONNEMENT CARD ────────────────────────── */
.byn-plan-card {
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--byn-transition);
  background: #fff;
}
.byn-plan-card:hover { border-color: var(--byn-primary); transform: translateY(-4px); box-shadow: var(--byn-shadow-md); }
.byn-plan-card--featured {
  border-color: var(--byn-primary);
  box-shadow: 0 0 0 3px rgba(93,65,255,.1);
}
.byn-plan-card--featured::before {
  content: '⭐ ' attr(data-label);
  position: absolute; top: 0; right: 0;
  background: var(--byn-primary); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 14px;
  border-radius: 0 var(--byn-radius-lg) 0 var(--byn-radius-md);
}
.byn-plan-name  { font-size: 13px; font-weight: 800; color: var(--byn-gray); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.byn-plan-price { font-size: 36px; font-weight: 900; color: var(--byn-dark); letter-spacing: -1.5px; line-height: 1; }
.byn-plan-price span { font-size: 14px; font-weight: 500; color: var(--byn-gray); }
.byn-plan-features { list-style: none; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.byn-plan-feature  { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 8px; }
.byn-plan-feature::before { content: '✓'; color: var(--byn-primary); font-weight: 800; flex-shrink: 0; }
.byn-plan-feature.disabled { color: var(--byn-gray); opacity: .6; }
.byn-plan-feature.disabled::before { content: '✗'; color: var(--byn-gray); }

/* ── FRANCHISE CARD ─────────────────────────── */
.byn-franchise-listing-card {
  background: #fff;
  border: 1.5px solid var(--byn-gray-light);
  border-radius: var(--byn-radius-lg);
  overflow: hidden;
  transition: var(--byn-transition-slow);
  cursor: pointer;
}
.byn-franchise-listing-card:hover { transform: translateY(-6px); box-shadow: var(--byn-shadow-lg); border-color: rgba(93,65,255,.2); }
.byn-franchise-card__img { height: 160px; background: var(--byn-primary-light); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.byn-franchise-card__body { padding: 18px; }
.byn-franchise-card__name { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.byn-franchise-card__sector { margin-bottom: 10px; }
.byn-franchise-card__criteria { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.byn-franchise-card__crit { font-size: 12px; color: var(--byn-gray); display: flex; align-items: center; gap: 6px; }
.byn-franchise-card__score {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--byn-soft);
  border-radius: var(--byn-radius-sm);
  margin-bottom: 14px;
}
.byn-franchise-card__score-bar { flex: 1; height: 5px; background: var(--byn-gray-light); border-radius: 3px; overflow: hidden; }
.byn-franchise-card__score-fill { height: 100%; border-radius: 3px; }

/* ── RESPONSIVE DASHBOARD ───────────────────── */
@media (max-width: 1024px) {
  .byn-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .byn-score-card  { flex-direction: column; gap: 24px; }
  .byn-kpi-grid    { grid-template-columns: repeat(2, 1fr); }
  .byn-pipeline    { flex-direction: column; }
}