/**
 * ===================================
 * PROPERTIES BENTO GRID STYLES
 * ===================================
 * Design moderne Bento Grid pour la page Gestion des Biens
 * Inspiré du dashboard-bento.css avec adaptations spécifiques
 */

/* =================================
   VARIABLES CSS
   ================================= */
:root {
  /* Couleurs principales Homup */
  --properties-lime: #A8E34F;
  --properties-lime-light: #E8FFB7;
  --properties-lime-dark: #7FC73E;
  --properties-green: #00D97A;
  --properties-green-dark: #00A85E;
  --properties-green-light: #B3FFD9;
  --properties-forest: #0A1A16;
  --properties-forest-dark: #061110;
  --properties-forest-medium: #0D2420;

  /* Gris */
  --properties-gray-50: #F9FAFB;
  --properties-gray-100: #F3F4F6;
  --properties-gray-200: #E5E7EB;
  --properties-gray-300: #D1D5DB;
  --properties-gray-400: #9CA3AF;
  --properties-gray-500: #6B7280;
  --properties-gray-600: #4B5563;
  --properties-gray-700: #374151;
  --properties-gray-800: #1F2937;
  --properties-gray-900: #111827;

  /* États */
  --properties-success: #10B981;
  --properties-warning: #F59E0B;
  --properties-danger: #EF4444;
  --properties-info: #3B82F6;
}

/* =================================
   CONTENEUR PRINCIPAL
   ================================= */
.properties-bento-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* =================================
   HEADER SECTION
   ================================= */
.properties-bento-header {
  margin-bottom: 2rem;
}

.properties-bento-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.properties-bento-title i {
  color: var(--properties-lime-dark);
  font-size: 1.75rem;
}

.properties-bento-subtitle {
  font-size: 1rem;
  color: var(--properties-gray-600);
}

/* =================================
   STATS CARDS (4 KPIs)
   ================================= */
.properties-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.properties-stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  transition: all 0.3s ease;
  animation: properties-fade-in 0.4s ease-out;
}

.properties-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--properties-gray-300);
}

.properties-stat-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.properties-stat-info {
  display: flex;
  flex-direction: column;
}

.properties-stat-label {
  font-size: 0.875rem;
  color: var(--properties-gray-600);
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.properties-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--properties-forest);
  line-height: 1;
  transition: all 0.3s ease;
}

.properties-stat-title {
  font-size: 0.75rem;
  color: var(--properties-gray-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.properties-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.properties-stat-icon.lime {
  background: rgba(168, 227, 79, 0.15);
  color: var(--properties-lime-dark);
}

.properties-stat-icon.green {
  background: rgba(0, 217, 122, 0.15);
  color: var(--properties-green-dark);
}

.properties-stat-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.properties-stat-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--properties-warning);
}

.properties-stat-badge {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.properties-stat-badge.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--properties-success);
}

.properties-stat-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--properties-warning);
}

.properties-stat-badge.neutral {
  background: var(--properties-gray-100);
  color: var(--properties-gray-600);
}

/* =================================
   FILTERS & ACTIONS
   ================================= */
.properties-actions-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  margin-bottom: 2rem;
  animation: properties-fade-in 0.4s ease-out 0.1s both;
}

.properties-actions-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.properties-actions-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.properties-actions-right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Boutons */
.properties-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.properties-btn-primary {
  background: var(--properties-lime);
  color: var(--properties-forest);
  box-shadow: 0 2px 8px rgba(168, 227, 79, 0.3);
}

.properties-btn-primary:hover {
  background: var(--properties-lime-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 227, 79, 0.4);
}

.properties-btn-secondary {
  background: white;
  color: var(--properties-gray-700);
  border: 1px solid var(--properties-gray-300);
}

.properties-btn-secondary:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
}

/* Inputs et Selects */
.properties-input,
.properties-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--properties-gray-700);
  transition: all 0.2s ease;
  background: white;
}

.properties-input:focus,
.properties-select:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.properties-input::placeholder {
  color: var(--properties-gray-400);
}

/* =================================
   PROPERTIES CONTAINER
   ================================= */
.properties-container {
  transition: opacity 0.3s ease;
}

.properties-container.refreshing {
  opacity: 0.5;
  pointer-events: none;
}

/* =================================
   PROPERTIES GRID (Cards)
   ================================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  animation: properties-fade-in 0.4s ease-out 0.2s both;
}

.property-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.15);
  border-color: var(--properties-lime-dark);
}

.property-card.inactive {
  opacity: 0.7;
  background: var(--properties-gray-50);
  border: 1px dashed var(--properties-gray-300);
  position: relative;
}

.property-card.inactive::before {
  content: 'INACTIF';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--properties-gray-500);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
}

.property-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--properties-gray-100);
}

.property-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card-header {
  margin-bottom: 1rem;
  min-height: 3.5rem; /* Hauteur minimale pour stabiliser */
}

.property-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Stabilisation du contenu */
  display: block;
  line-height: 1.5;
  min-height: 1.6875rem; /* 1.125rem * 1.5 */
  will-change: auto; /* Désactiver l'optimisation GPU qui peut causer du flickering */
  transform: translateZ(0); /* Force hardware acceleration mais stable */
  backface-visibility: hidden; /* Évite le flickering */
}

.property-card-reference {
  font-size: 0.75rem;
  color: var(--properties-gray-500);
  font-weight: 500;
}

.property-card-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.property-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.property-badge.type-apartment {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.property-badge.type-house {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.property-badge.type-commercial {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.property-badge.type-building {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.type-parking {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.property-badge.peb {
  font-weight: 700;
}

.property-badge.peb-A\\+\\+,
.property-badge.peb-A\\+ {
  background: #15803d;
  color: white;
}

.property-badge.peb-A {
  background: #16a34a;
  color: white;
}

.property-badge.peb-B {
  background: #84cc16;
  color: white;
}

.property-badge.peb-C {
  background: #facc15;
  color: #374151;
}

.property-badge.peb-D {
  background: #f59e0b;
  color: white;
}

.property-badge.peb-E {
  background: #f97316;
  color: white;
}

.property-badge.peb-F {
  background: #ef4444;
  color: white;
}

.property-badge.peb-G {
  background: #b91c1c;
  color: white;
}

.property-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--properties-success);
}

.property-badge.status-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: var(--properties-danger);
}

.property-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.property-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.property-info-item i {
  color: var(--properties-gray-400);
  width: 16px;
  text-align: center;
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--properties-gray-200);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--properties-forest);
}

.property-card-actions {
  display: flex;
  gap: 0.5rem;
}

.property-action-btn {
  padding: 0.5rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--properties-gray-600);
}

.property-action-btn:hover {
  background: var(--properties-gray-100);
  color: var(--properties-forest);
}

.property-action-btn.primary {
  color: var(--properties-lime-dark);
}

.property-action-btn.primary:hover {
  background: rgba(168, 227, 79, 0.1);
}

/* =================================
   TENANTS-STYLE ACTION BUTTONS (Harmonized)
   ================================= */
.tenants-btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--properties-gray-300);
  background: white;
  color: var(--properties-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenants-btn-action:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
}

.tenants-btn-action-primary {
  flex: 1;
  background: var(--properties-lime);
  color: var(--properties-forest);
  border-color: var(--properties-lime);
}

.tenants-btn-action-primary:hover {
  background: var(--properties-lime-dark);
  border-color: var(--properties-lime-dark);
}

/* Override pour vue liste */
.properties-container.properties-list .tenants-btn-action {
  padding: 0.5rem 0.75rem;
}

/* =================================
   MODAL
   ================================= */
.properties-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.properties-modal.hidden {
  display: none;
}

.properties-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.properties-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--properties-gray-200);
}

.properties-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--properties-forest);
}

.properties-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--properties-gray-400);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.properties-modal-close:hover {
  background: var(--properties-gray-100);
  color: var(--properties-gray-700);
}

.properties-modal-body {
  padding: 1.5rem;
}

.properties-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.properties-form-field {
  display: flex;
  flex-direction: column;
}

.properties-form-field.full-width {
  grid-column: span 2;
}

.properties-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--properties-gray-700);
  margin-bottom: 0.5rem;
}

.properties-form-label .required {
  color: var(--properties-danger);
}

.properties-form-input,
.properties-form-select,
.properties-form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--properties-gray-700);
  transition: all 0.2s ease;
}

.properties-form-input:focus,
.properties-form-select:focus,
.properties-form-textarea:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.properties-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.properties-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.properties-form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--properties-gray-300);
  cursor: pointer;
}

.properties-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--properties-gray-200);
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes properties-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   RESPONSIVE
   ================================= */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
  .properties-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-form-grid {
    grid-template-columns: 1fr;
  }

  .properties-form-field.full-width {
    grid-column: span 1;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .properties-bento-container {
    padding: 1rem;
  }

  .properties-bento-title {
    font-size: 1.5rem;
  }

  .properties-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .properties-stat-card {
    padding: 1rem;
  }

  .properties-stat-value {
    font-size: 1.5rem;
  }

  .properties-actions-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .properties-actions-left,
  .properties-actions-right {
    width: 100%;
    flex-direction: column;
  }

  .properties-input,
  .properties-select,
  .properties-btn {
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card-image {
    height: 180px;
  }

  .properties-modal-content {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
  .properties-bento-title {
    font-size: 1.25rem;
  }

  .properties-bento-title i {
    font-size: 1.25rem;
  }

  .properties-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .property-card-content {
    padding: 1rem;
  }
}

/* =================================
   VIEW MODE TOGGLE
   ================================= */
.properties-view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--properties-gray-100);
  border-radius: 8px;
  margin-left: auto;
}

.properties-view-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--properties-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.properties-view-btn:hover {
  background: white;
  color: var(--properties-forest);
}

.properties-view-btn.active {
  background: white;
  color: var(--properties-lime);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* =================================
   LIST VIEW MODE
   ================================= */
.properties-container.properties-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.property-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--properties-gray-200);
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.property-list-item:hover {
  box-shadow: 0 4px 12px rgba(10, 26, 22, 0.12);
  border-color: var(--properties-lime);
  transform: translateX(4px);
}

.property-list-item.inactive {
  opacity: 0.7;
  background: var(--properties-gray-50);
  border: 1px dashed var(--properties-gray-300);
  position: relative;
}

.property-list-item.inactive::before {
  content: 'INACTIF';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--properties-gray-500);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
}

.property-list-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--properties-gray-100);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.property-list-image:hover {
  transform: scale(1.05);
}

.property-list-main {
  flex: 1;
  min-width: 0;
}

.property-list-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.property-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-list-reference {
  font-size: 0.875rem;
  color: var(--properties-gray-500);
  font-weight: 500;
}

.property-list-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-list-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.property-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.property-list-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--properties-forest);
}

/* Grid mode - keep existing styles */
.properties-container.properties-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  animation: properties-fade-in 0.4s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .properties-container.properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-container.properties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive adjustments for list view */
@media (max-width: 1024px) {
  .property-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .property-list-image {
    width: 100%;
    height: 200px;
  }

  .property-list-actions {
    align-items: stretch;
  }

  .property-list-info {
    grid-template-columns: 1fr;
  }
}

/* =================================
   UTILITIES
   ================================= */
.properties-hidden {
  display: none !important;
}

.properties-text-center {
  text-align: center;
}

.properties-text-muted {
  color: var(--properties-gray-500);
}

.properties-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================================
   STYLES ADDITIONNELS POUR OWNERS
   =================================== */

/* Grille de statistiques */
.stats-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Section des filtres */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--properties-gray-400);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.filters-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--properties-gray-700);
}

.filter-label i {
  color: var(--properties-lime);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

/* Grille Bento pour les cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1279px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-group {
    grid-template-columns: 1fr;
  }
}

/* Avatar pour owners */
.property-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--properties-lime-light), var(--properties-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--properties-forest);
  flex-shrink: 0;
}

/* Section info pour owners */
.property-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--properties-gray-200);
  border-bottom: 1px solid var(--properties-gray-200);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.info-icon {
  color: var(--properties-lime);
  width: 16px;
  text-align: center;
}

.info-text {
  flex: 1;
  word-break: break-word;
}

/* Adresse pour owners */
.property-address {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--properties-gray-50);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.property-address i {
  color: var(--properties-lime);
  margin-top: 2px;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state i {
  font-size: 4rem;
  color: var(--properties-gray-300);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--properties-gray-900);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--properties-gray-600);
  margin-bottom: 1.5rem;
}

/* Badges pour types de propriétaires */
.property-badge.type-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.property-badge.type-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.property-badge.type-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.type-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.property-badge.type-gray {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

/* ===================================
   BADGES DE STATUT POUR LOCATAIRES
   =================================== */

.property-badge.status-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.property-badge.status-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.status-gray {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.property-badge.status-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ===================================
   AVATAR SMALL POUR VUE LISTE
   =================================== */

.property-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.property-avatar-small i {
  font-size: 1.5rem;
}

/* ===================================
   PROPERTY LIST ITEM (VUE LISTE) - STANDARD LOYR CONDENSÉ
   =================================== */

/* VUE LISTE : Container et comportement */
.properties-container.properties-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.properties-container.properties-list .property-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--properties-gray-200);
  box-shadow: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Alternance de couleurs pour meilleure lisibilité */
.properties-container.properties-list .property-card:nth-child(even) {
  background: #F9FAFB;
}

.properties-container.properties-list .property-card:nth-child(odd) {
  background: white;
}

/* Hover subtil avec translation */
.properties-container.properties-list .property-card:hover {
  background: #F0FDF4 !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Coins arrondis sur premier et dernier élément */
.properties-container.properties-list .property-card:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.properties-container.properties-list .property-card:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom: 1px solid var(--properties-gray-200);
}

/* LAYOUT EN MODE LISTE : Image + Contenu horizontaux */
.properties-container.properties-list .property-card .property-card-image {
  display: none; /* ✅ Masquer l'image en mode liste pour gagner de la place */
}

.properties-container.properties-list .property-card .property-card-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 200px 1fr 150px auto;
  gap: 1rem;
  align-items: center;
}

.properties-container.properties-list .property-card .property-card-header {
  padding: 0;
  margin-bottom: 0;
}

.properties-container.properties-list .property-card .property-card-badges {
  display: none; /* On cache les badges en mode liste pour gagner de la place */
  grid-column: 2; /* Placeholder pour maintenir l'alignement */
}

.properties-container.properties-list .property-card .property-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  grid-column: 2; /* Colonne 2 (1fr) */
}

.properties-container.properties-list .property-card .property-card-footer {
  padding: 0;
  border-top: none;
  margin-top: 0;
  display: contents; /* ✅ Le footer devient transparent, ses enfants deviennent des grid items */
}

.properties-container.properties-list .property-card .property-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-forest);
  min-width: 100px;
  grid-column: 3; /* ✅ Colonne 3 (150px) */
}

.properties-container.properties-list .property-card .property-card-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  grid-column: 4; /* ✅ Colonne 4 (auto) */
}

/* En-têtes et titres plus compacts */
.properties-container.properties-list .property-card .property-card-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.properties-container.properties-list .property-card .property-card-reference {
  font-size: 0.875rem;
  color: var(--properties-gray-500);
}

/* Infos sur une seule ligne avec gap réduit */
.properties-container.properties-list .property-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.properties-container.properties-list .property-info-item i {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Actions plus petites et discrètes */
.properties-container.properties-list .property-card-actions button,
.properties-container.properties-list .property-action-btn {
  padding: 0.5rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* Cartes inactives en mode liste */
.properties-container.properties-list .property-card.inactive-card {
  opacity: 0.5;
  background: #F3F4F6 !important;
}

.properties-container.properties-list .property-card.inactive-card::before {
  display: none;
}

.properties-container.properties-list .property-card.inactive-card:nth-child(even) {
  background: #F3F4F6 !important;
}

/* Responsive Mobile : Liste passe en colonne */
@media (max-width: 767px) {
  .properties-container.properties-list .property-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .properties-container.properties-list .property-card .property-card-image {
    display: none; /* ✅ Rester caché même sur mobile */
  }

  .properties-container.properties-list .property-card .property-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-header {
    min-width: auto;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

===========================
 * PROPERTIES BENTO GRID STYLES
 * ===================================
 * Design moderne Bento Grid pour la page Gestion des Biens
 * Inspiré du dashboard-bento.css avec adaptations spécifiques
 */

/* =================================
   VARIABLES CSS
   ================================= */
:root {
  /* Couleurs principales Homup */
  --properties-lime: #A8E34F;
  --properties-lime-light: #E8FFB7;
  --properties-lime-dark: #7FC73E;
  --properties-green: #00D97A;
  --properties-green-dark: #00A85E;
  --properties-green-light: #B3FFD9;
  --properties-forest: #0A1A16;
  --properties-forest-dark: #061110;
  --properties-forest-medium: #0D2420;

  /* Gris */
  --properties-gray-50: #F9FAFB;
  --properties-gray-100: #F3F4F6;
  --properties-gray-200: #E5E7EB;
  --properties-gray-300: #D1D5DB;
  --properties-gray-400: #9CA3AF;
  --properties-gray-500: #6B7280;
  --properties-gray-600: #4B5563;
  --properties-gray-700: #374151;
  --properties-gray-800: #1F2937;
  --properties-gray-900: #111827;

  /* États */
  --properties-success: #10B981;
  --properties-warning: #F59E0B;
  --properties-danger: #EF4444;
  --properties-info: #3B82F6;
}

/* =================================
   CONTENEUR PRINCIPAL
   ================================= */
.properties-bento-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* =================================
   HEADER SECTION
   ================================= */
.properties-bento-header {
  margin-bottom: 2rem;
}

.properties-bento-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.properties-bento-title i {
  color: var(--properties-lime-dark);
  font-size: 1.75rem;
}

.properties-bento-subtitle {
  font-size: 1rem;
  color: var(--properties-gray-600);
}

/* =================================
   STATS CARDS (4 KPIs)
   ================================= */
.properties-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.properties-stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  transition: all 0.3s ease;
  animation: properties-fade-in 0.4s ease-out;
}

.properties-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--properties-gray-300);
}

.properties-stat-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.properties-stat-info {
  display: flex;
  flex-direction: column;
}

.properties-stat-label {
  font-size: 0.875rem;
  color: var(--properties-gray-600);
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.properties-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--properties-forest);
  line-height: 1;
  transition: all 0.3s ease;
}

.properties-stat-title {
  font-size: 0.75rem;
  color: var(--properties-gray-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.properties-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.properties-stat-icon.lime {
  background: rgba(168, 227, 79, 0.15);
  color: var(--properties-lime-dark);
}

.properties-stat-icon.green {
  background: rgba(0, 217, 122, 0.15);
  color: var(--properties-green-dark);
}

.properties-stat-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
}

.properties-stat-icon.orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--properties-warning);
}

.properties-stat-badge {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.properties-stat-badge.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--properties-success);
}

.properties-stat-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--properties-warning);
}

.properties-stat-badge.neutral {
  background: var(--properties-gray-100);
  color: var(--properties-gray-600);
}

/* =================================
   FILTERS & ACTIONS
   ================================= */
.properties-actions-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  margin-bottom: 2rem;
  animation: properties-fade-in 0.4s ease-out 0.1s both;
}

.properties-actions-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.properties-actions-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.properties-actions-right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Boutons */
.properties-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.properties-btn-primary {
  background: var(--properties-lime);
  color: var(--properties-forest);
  box-shadow: 0 2px 8px rgba(168, 227, 79, 0.3);
}

.properties-btn-primary:hover {
  background: var(--properties-lime-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 227, 79, 0.4);
}

.properties-btn-secondary {
  background: white;
  color: var(--properties-gray-700);
  border: 1px solid var(--properties-gray-300);
}

.properties-btn-secondary:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
}

/* Inputs et Selects */
.properties-input,
.properties-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--properties-gray-700);
  transition: all 0.2s ease;
  background: white;
}

.properties-input:focus,
.properties-select:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.properties-input::placeholder {
  color: var(--properties-gray-400);
}

/* =================================
   PROPERTIES CONTAINER
   ================================= */
.properties-container {
  transition: opacity 0.3s ease;
}

.properties-container.refreshing {
  opacity: 0.5;
  pointer-events: none;
}

/* =================================
   PROPERTIES GRID (Cards)
   ================================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  animation: properties-fade-in 0.4s ease-out 0.2s both;
}

.property-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.15);
  border-color: var(--properties-lime-dark);
}

.property-card.inactive {
  opacity: 0.7;
  background: var(--properties-gray-50);
  border: 1px dashed var(--properties-gray-300);
  position: relative;
}

.property-card.inactive::before {
  content: 'INACTIF';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--properties-gray-500);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
}

.property-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--properties-gray-100);
}

.property-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card-header {
  margin-bottom: 1rem;
  min-height: 3.5rem; /* Hauteur minimale pour stabiliser */
}

.property-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Stabilisation du contenu */
  display: block;
  line-height: 1.5;
  min-height: 1.6875rem; /* 1.125rem * 1.5 */
  will-change: auto; /* Désactiver l'optimisation GPU qui peut causer du flickering */
  transform: translateZ(0); /* Force hardware acceleration mais stable */
  backface-visibility: hidden; /* Évite le flickering */
}

.property-card-reference {
  font-size: 0.75rem;
  color: var(--properties-gray-500);
  font-weight: 500;
}

.property-card-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.property-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.property-badge.type-apartment {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.property-badge.type-house {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.property-badge.type-commercial {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.property-badge.type-building {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.type-parking {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.property-badge.peb {
  font-weight: 700;
}

.property-badge.peb-A\\+\\+,
.property-badge.peb-A\\+ {
  background: #15803d;
  color: white;
}

.property-badge.peb-A {
  background: #16a34a;
  color: white;
}

.property-badge.peb-B {
  background: #84cc16;
  color: white;
}

.property-badge.peb-C {
  background: #facc15;
  color: #374151;
}

.property-badge.peb-D {
  background: #f59e0b;
  color: white;
}

.property-badge.peb-E {
  background: #f97316;
  color: white;
}

.property-badge.peb-F {
  background: #ef4444;
  color: white;
}

.property-badge.peb-G {
  background: #b91c1c;
  color: white;
}

.property-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--properties-success);
}

.property-badge.status-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: var(--properties-danger);
}

.property-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.property-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.property-info-item i {
  color: var(--properties-gray-400);
  width: 16px;
  text-align: center;
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--properties-gray-200);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--properties-forest);
}

.property-card-actions {
  display: flex;
  gap: 0.5rem;
}

.property-action-btn {
  padding: 0.5rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--properties-gray-600);
}

.property-action-btn:hover {
  background: var(--properties-gray-100);
  color: var(--properties-forest);
}

.property-action-btn.primary {
  color: var(--properties-lime-dark);
}

.property-action-btn.primary:hover {
  background: rgba(168, 227, 79, 0.1);
}

/* =================================
   TENANTS-STYLE ACTION BUTTONS (Harmonized)
   ================================= */
.tenants-btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--properties-gray-300);
  background: white;
  color: var(--properties-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenants-btn-action:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
}

.tenants-btn-action-primary {
  flex: 1;
  background: var(--properties-lime);
  color: var(--properties-forest);
  border-color: var(--properties-lime);
}

.tenants-btn-action-primary:hover {
  background: var(--properties-lime-dark);
  border-color: var(--properties-lime-dark);
}

/* Override pour vue liste */
.properties-container.properties-list .tenants-btn-action {
  padding: 0.5rem 0.75rem;
}

/* =================================
   MODAL
   ================================= */
.properties-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.properties-modal.hidden {
  display: none;
}

.properties-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.properties-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--properties-gray-200);
}

.properties-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--properties-forest);
}

.properties-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--properties-gray-400);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.properties-modal-close:hover {
  background: var(--properties-gray-100);
  color: var(--properties-gray-700);
}

.properties-modal-body {
  padding: 1.5rem;
}

.properties-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.properties-form-field {
  display: flex;
  flex-direction: column;
}

.properties-form-field.full-width {
  grid-column: span 2;
}

.properties-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--properties-gray-700);
  margin-bottom: 0.5rem;
}

.properties-form-label .required {
  color: var(--properties-danger);
}

.properties-form-input,
.properties-form-select,
.properties-form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--properties-gray-700);
  transition: all 0.2s ease;
}

.properties-form-input:focus,
.properties-form-select:focus,
.properties-form-textarea:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.properties-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.properties-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.properties-form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--properties-gray-300);
  cursor: pointer;
}

.properties-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--properties-gray-200);
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes properties-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   RESPONSIVE
   ================================= */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
  .properties-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-form-grid {
    grid-template-columns: 1fr;
  }

  .properties-form-field.full-width {
    grid-column: span 1;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .properties-bento-container {
    padding: 1rem;
  }

  .properties-bento-title {
    font-size: 1.5rem;
  }

  .properties-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .properties-stat-card {
    padding: 1rem;
  }

  .properties-stat-value {
    font-size: 1.5rem;
  }

  .properties-actions-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .properties-actions-left,
  .properties-actions-right {
    width: 100%;
    flex-direction: column;
  }

  .properties-input,
  .properties-select,
  .properties-btn {
    width: 100%;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card-image {
    height: 180px;
  }

  .properties-modal-content {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
  .properties-bento-title {
    font-size: 1.25rem;
  }

  .properties-bento-title i {
    font-size: 1.25rem;
  }

  .properties-stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .property-card-content {
    padding: 1rem;
  }
}

/* =================================
   VIEW MODE TOGGLE
   ================================= */
.properties-view-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--properties-gray-100);
  border-radius: 8px;
  margin-left: auto;
}

.properties-view-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--properties-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.properties-view-btn:hover {
  background: white;
  color: var(--properties-forest);
}

.properties-view-btn.active {
  background: white;
  color: var(--properties-lime);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* =================================
   LIST VIEW MODE
   ================================= */
.properties-container.properties-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.property-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--properties-gray-200);
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.property-list-item:hover {
  box-shadow: 0 4px 12px rgba(10, 26, 22, 0.12);
  border-color: var(--properties-lime);
  transform: translateX(4px);
}

.property-list-item.inactive {
  opacity: 0.7;
  background: var(--properties-gray-50);
  border: 1px dashed var(--properties-gray-300);
  position: relative;
}

.property-list-item.inactive::before {
  content: 'INACTIF';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--properties-gray-500);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 10;
}

.property-list-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--properties-gray-100);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.property-list-image:hover {
  transform: scale(1.05);
}

.property-list-main {
  flex: 1;
  min-width: 0;
}

.property-list-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
}

.property-list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-list-reference {
  font-size: 0.875rem;
  color: var(--properties-gray-500);
  font-weight: 500;
}

.property-list-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.property-list-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.property-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.property-list-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--properties-forest);
}

/* Grid mode - keep existing styles */
.properties-container.properties-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  animation: properties-fade-in 0.4s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .properties-container.properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-container.properties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive adjustments for list view */
@media (max-width: 1024px) {
  .property-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .property-list-image {
    width: 100%;
    height: 200px;
  }

  .property-list-actions {
    align-items: stretch;
  }

  .property-list-info {
    grid-template-columns: 1fr;
  }
}

/* =================================
   UTILITIES
   ================================= */
.properties-hidden {
  display: none !important;
}

.properties-text-center {
  text-align: center;
}

.properties-text-muted {
  color: var(--properties-gray-500);
}

.properties-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================================
   STYLES ADDITIONNELS POUR OWNERS
   =================================== */

/* Grille de statistiques */
.stats-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Section des filtres */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--properties-gray-400);
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

.filters-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--properties-gray-700);
}

.filter-label i {
  color: var(--properties-lime);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--properties-lime);
  box-shadow: 0 0 0 3px rgba(168, 227, 79, 0.1);
}

/* Grille Bento pour les cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1279px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-group {
    grid-template-columns: 1fr;
  }
}

/* Avatar pour owners */
.property-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--properties-lime-light), var(--properties-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--properties-forest);
  flex-shrink: 0;
}

/* Section info pour owners */
.property-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--properties-gray-200);
  border-bottom: 1px solid var(--properties-gray-200);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.info-icon {
  color: var(--properties-lime);
  width: 16px;
  text-align: center;
}

.info-text {
  flex: 1;
  word-break: break-word;
}

/* Adresse pour owners */
.property-address {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--properties-gray-50);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.property-address i {
  color: var(--properties-lime);
  margin-top: 2px;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state i {
  font-size: 4rem;
  color: var(--properties-gray-300);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--properties-gray-900);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--properties-gray-600);
  margin-bottom: 1.5rem;
}

/* Badges pour types de propriétaires */
.property-badge.type-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.property-badge.type-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.property-badge.type-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.type-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.property-badge.type-gray {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

/* ===================================
   BADGES DE STATUT POUR LOCATAIRES
   =================================== */

.property-badge.status-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.property-badge.status-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.property-badge.status-gray {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.property-badge.status-red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ===================================
   AVATAR SMALL POUR VUE LISTE
   =================================== */

.property-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.property-avatar-small i {
  font-size: 1.5rem;
}

/* ===================================
   PROPERTY LIST ITEM (VUE LISTE) - STANDARD LOYR CONDENSÉ
   =================================== */

/* VUE LISTE : Container et comportement */
.properties-container.properties-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.properties-container.properties-list .property-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--properties-gray-200);
  box-shadow: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Alternance de couleurs pour meilleure lisibilité */
.properties-container.properties-list .property-card:nth-child(even) {
  background: #F9FAFB;
}

.properties-container.properties-list .property-card:nth-child(odd) {
  background: white;
}

/* Hover subtil avec translation */
.properties-container.properties-list .property-card:hover {
  background: #F0FDF4 !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Coins arrondis sur premier et dernier élément */
.properties-container.properties-list .property-card:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.properties-container.properties-list .property-card:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom: 1px solid var(--properties-gray-200);
}

/* LAYOUT EN MODE LISTE : Image + Contenu horizontaux */
.properties-container.properties-list .property-card .property-card-image {
  display: none; /* ✅ Masquer l'image en mode liste pour gagner de la place */
}

.properties-container.properties-list .property-card .property-card-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 200px 1fr 150px auto;
  gap: 1rem;
  align-items: center;
}

.properties-container.properties-list .property-card .property-card-header {
  padding: 0;
  margin-bottom: 0;
}

.properties-container.properties-list .property-card .property-card-badges {
  display: none; /* On cache les badges en mode liste pour gagner de la place */
  grid-column: 2; /* Placeholder pour maintenir l'alignement */
}

.properties-container.properties-list .property-card .property-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  grid-column: 2; /* Colonne 2 (1fr) */
}

.properties-container.properties-list .property-card .property-card-footer {
  padding: 0;
  border-top: none;
  margin-top: 0;
  display: contents; /* ✅ Le footer devient transparent, ses enfants deviennent des grid items */
}

.properties-container.properties-list .property-card .property-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-forest);
  min-width: 100px;
  grid-column: 3; /* ✅ Colonne 3 (150px) */
}

.properties-container.properties-list .property-card .property-card-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  grid-column: 4; /* ✅ Colonne 4 (auto) */
}

/* En-têtes et titres plus compacts */
.properties-container.properties-list .property-card .property-card-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.properties-container.properties-list .property-card .property-card-reference {
  font-size: 0.875rem;
  color: var(--properties-gray-500);
}

/* Infos sur une seule ligne avec gap réduit */
.properties-container.properties-list .property-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.properties-container.properties-list .property-info-item i {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Actions plus petites et discrètes */
.properties-container.properties-list .property-card-actions button,
.properties-container.properties-list .property-action-btn {
  padding: 0.5rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* Cartes inactives en mode liste */
.properties-container.properties-list .property-card.inactive-card {
  opacity: 0.5;
  background: #F3F4F6 !important;
}

.properties-container.properties-list .property-card.inactive-card::before {
  display: none;
}

.properties-container.properties-list .property-card.inactive-card:nth-child(even) {
  background: #F3F4F6 !important;
}

/* Responsive Mobile : Liste passe en colonne */
@media (max-width: 767px) {
  .properties-container.properties-list .property-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .properties-container.properties-list .property-card .property-card-image {
    display: none; /* ✅ Rester caché même sur mobile */
  }

  .properties-container.properties-list .property-card .property-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-header {
    min-width: auto;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .properties-container.properties-list .property-card .property-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===================================
   LEASE DETAILS VIEW STYLES
   =================================== */

/* Bento card pour détails de bail */
.bento-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bento-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Timeline pour historique */
.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: -20px;
  width: 2px;
  background: var(--properties-gray-200);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--properties-gray-200);
}

/* Timeline dot colors */
.timeline-dot.bg-blue-500 {
  background: #3b82f6;
}

.timeline-dot.bg-green-500 {
  background: #10b981;
}

.timeline-dot.bg-purple-500 {
  background: #8b5cf6;
}

.timeline-dot.bg-yellow-500 {
  background: #f59e0b;
}

.timeline-dot.bg-red-500 {
  background: #ef4444;
}

/* Info row pour détails (déjà existant, mais ajout pour cohérence) */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--properties-gray-100);
}

.info-row:last-child {
  border-bottom: none;
}

/* Lease form modal: single scroll, no double scrollbar */
.lease-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.lease-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.lease-form-block {
  margin-bottom: 1.5rem;
}
.lease-form-block-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-gray-800);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--properties-gray-200);
}
.lease-select-with-filter {
  position: relative;
}
.lease-filter-input {
  display: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 2px;
  border: 1px solid var(--properties-gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  box-sizing: border-box;
}
.lease-filter-input:focus {
  outline: none;
  border-color: var(--properties-lime, #a8e34f);
}

/* Visibilité sections Colocation / Sélection locataire */
#leaseColocationWrap.lease-section-hidden,
#leaseSingleTenantWrap.lease-section-hidden {
  display: none !important;
}

/* Combo avec filtre intégré dans le menu déroulant */
.lease-combo {
  position: relative;
  width: 100%;
}
.lease-combo-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--properties-gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  min-height: 38px;
  box-sizing: border-box;
}
.lease-combo-trigger:hover {
  border-color: var(--properties-gray-400);
}
.lease-combo-trigger::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--properties-gray-500);
  margin-left: 0.5rem;
}
.lease-combo-trigger.lease-combo-open {
  border-color: var(--properties-lime, #a8e34f);
  outline: none;
}
.lease-combo-select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.lease-combo-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: #fff;
  border: 1px solid var(--properties-gray-300);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 220px;
  flex-direction: column;
}
.lease-combo-dropdown.lease-combo-open {
  display: flex;
}
.lease-combo-filter {
  padding: 0.5rem 0.75rem;
  border: none;
  border-bottom: 1px solid var(--properties-gray-200);
  border-radius: 6px 6px 0 0;
  font-size: 0.875rem;
  outline: none;
}
.lease-combo-filter:focus {
  outline: none;
}
.lease-combo-list {
  overflow-y: auto;
  max-height: 180px;
  padding: 0.25rem 0;
}
.lease-combo-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lease-combo-option:hover {
  background: rgba(168, 227, 79, 0.15);
}
.lease-combo-option.lease-combo-option-hidden {
  display: none;
}

/* Lease details container */
.lease-details-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* Badge warning pour alertes */
.property-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  font-weight: 600;
}

/* Alert badges avec icônes */
.property-badge i {
  margin-right: 0.25rem;
}

/* Responsive pour lease details */
@media (max-width: 768px) {
  .lease-details-container {
    padding: 1rem;
  }

  .bento-card {
    padding: 1rem !important;
  }

  .timeline-item {
    padding-left: 24px;
  }
}

/* =================================
   OWNERS LIST MODE (Format Condensé)
   ================================= */

/* Conteneur avec bordure et fond blanc */
.owners-list-container {
  background: white;
  border: 1px solid var(--properties-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.owners-list-item {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr auto;
  gap: 1rem;
  align-items: center;
  background: white;
  border: none;
  border-bottom: 1px solid var(--properties-gray-200);
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

/* Retirer la bordure sur le dernier élément */
.owners-list-item:last-child {
  border-bottom: none;
}

/* Alternance de couleurs pour améliorer la lisibilité */
.owners-list-item:nth-child(even) {
  background: var(--properties-gray-50);
}

.owners-list-item:hover {
  background: rgba(168, 227, 79, 0.1);
  border-bottom-color: var(--properties-lime);
}

.owners-list-item.owners-inactive {
  opacity: 0.6;
  background: var(--properties-gray-100);
}

.owners-list-item.owners-inactive:nth-child(even) {
  background: var(--properties-gray-150);
}

.owners-list-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owners-list-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-forest);
  margin-bottom: 0.25rem;
}

.owners-list-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.owners-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.owners-badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.owners-badge-inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6B7280;
}

.owners-badge-type-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.owners-badge-type-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #7C3AED;
}

.owners-badge-type-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.owners-badge-type-red {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.owners-list-contact,
.owners-list-phone,
.owners-list-address {
  display: flex;
  align-items: center;
}

.owners-list-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.owners-list-info i {
  color: var(--properties-gray-400);
  width: 16px;
  text-align: center;
}

.owners-list-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.owners-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--properties-gray-300);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--properties-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.owners-action-btn:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
  transform: translateY(-1px);
}

.owners-action-primary {
  background: var(--properties-lime);
  border-color: var(--properties-lime);
  color: var(--properties-forest);
}

.owners-action-primary:hover {
  background: var(--properties-lime-dark);
  border-color: var(--properties-lime-dark);
}

.owners-action-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #DC2626;
}

.owners-action-success:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: #059669;
}

/* Responsive pour mode liste Owners */
@media (max-width: 1024px) {
  .owners-list-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .owners-list-actions {
    justify-content: flex-start;
  }
}

/* ============================================
   HARMONISATION : STYLES .tenants-card
   (copié depuis tenants-bento.css pour assurer
   l'application sur toutes les pages)
   ============================================ */

/* Styles de base carte */
.tenants-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--properties-gray-200);
  box-shadow: 0 2px 8px rgba(10, 26, 22, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.tenants-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.15);
  border-color: var(--properties-lime);
}

.tenants-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--properties-gray-100);
}

.tenants-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--properties-gray-900);
  margin-bottom: 0.5rem;
}

.tenants-card-subtitle {
  font-size: 0.875rem;
  color: var(--properties-gray-600);
  margin: 0;
}

.tenants-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tenants-card-body {
  padding: 1.25rem;
}

.tenants-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tenants-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--properties-gray-600);
}

.tenants-info-row i {
  width: 1rem;
  color: var(--properties-gray-400);
  flex-shrink: 0;
}

.tenants-card-footer {
  padding: 1rem 1.25rem;
  background: var(--properties-gray-50);
  display: flex;
  gap: 0.5rem;
}

/* BADGES */
.tenants-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tenants-badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.tenants-badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.tenants-badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.tenants-badge-info {
  background: #DBEAFE;
  color: #1E40AF;
}

.tenants-badge-neutral {
  background: var(--properties-gray-100);
  color: var(--properties-gray-700);
}

/* Badges type bien : immeuble (parent) / lot */
.tenants-badge-parent {
  background: var(--properties-lime-light);
  color: var(--properties-forest);
}

.tenants-badge-lot {
  background: var(--properties-green-light);
  color: var(--properties-green-dark);
}

/* Carte : accent bordure gauche selon kind (simple / parent / lot) */
.tenants-card.property-card-parent {
  border-left: 4px solid var(--properties-lime-dark);
}

.tenants-card.property-card-lot {
  border-left: 4px solid var(--properties-green);
}

/* Bouton Voir Lots (carte parent) */
.properties-btn-lots {
  color: var(--properties-forest);
  border-color: var(--properties-lime-dark);
  background: var(--properties-lime-light);
}
.properties-btn-lots:hover {
  background: var(--properties-lime);
  border-color: var(--properties-lime);
}

/* Accordéon des lots sous une carte parent */
.properties-lots-accordion {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  background: var(--properties-gray-50);
  border: 1px solid var(--properties-gray-200);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.properties-lots-accordion.properties-lots-accordion-open {
  max-height: 1200px;
  opacity: 1;
  overflow-y: auto;
}
.properties-lots-accordion-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--properties-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--properties-gray-200);
}
.properties-lots-accordion-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Carte détail lot (même structure que parent : badges, infos, actions) */
.properties-lot-detail-card {
  background: white;
  border: 1px solid var(--properties-gray-200);
  border-radius: 10px;
  overflow: hidden;
}
.properties-lot-detail-card .tenants-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.properties-lot-detail-card .tenants-card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--properties-gray-100);
}
.properties-lot-detail-card .tenants-card-title {
  font-size: 1rem;
}
.properties-lot-detail-card .tenants-card-subtitle {
  font-size: 0.8125rem;
}
.properties-lot-detail-card .tenants-card-body {
  padding: 0.75rem 1rem;
}
.properties-lot-detail-card .tenants-info-row {
  font-size: 0.8125rem;
}
.properties-lot-detail-card .tenants-card-footer {
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.properties-lot-detail-card .tenants-btn-action {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}
.properties-lot-detail-card .tenants-btn-action-primary {
  flex: 0 1 auto;
}

/* Grille : seule la carte dépliée s'agrandit, les autres restent à taille fixe */
.properties-container.properties-grid {
  align-items: start;
}

/* Wrapper par bien (carte + accordéon) en grille */
.properties-container.properties-grid .property-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Vue grille : gabarit uniforme des vignettes (même hauteur minimale pour tous les types) */
.properties-container.properties-grid .tenants-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  flex: 1 1 auto;
}
.properties-container.properties-grid .tenants-card-body {
  flex: 1;
  min-height: 0;
}
.properties-container.properties-grid .tenants-card-footer {
  flex-shrink: 0;
}

/* Vue grille : footer d'actions qui s'adapte à la carte (wrap, taille réduite) */
.properties-container.properties-grid .tenants-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
}
.properties-container.properties-grid .tenants-btn-action {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  min-width: 0;
}
.properties-container.properties-grid .tenants-btn-action .ml-2 {
  margin-left: 0.25rem;
}
.properties-container.properties-grid .tenants-btn-action-primary {
  flex: 0 1 auto;
}

/* Bouton Détails des lots : icône seule (grille et liste) */
.properties-btn-lots-icon-only {
  padding: 0.35rem 0.5rem !important;
  min-width: 2rem;
}
.properties-btn-lots-icon-only i {
  margin: 0;
}

/* BOUTONS D'ACTION */
.tenants-btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--properties-gray-300);
  background: white;
  color: var(--properties-gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tenants-btn-action:hover {
  background: var(--properties-gray-50);
  border-color: var(--properties-gray-400);
}

.tenants-btn-action-primary {
  flex: 1;
  background: var(--properties-lime);
  color: var(--properties-forest);
  border-color: var(--properties-lime);
}

.tenants-btn-action-primary:hover {
  background: var(--properties-lime-dark);
  border-color: var(--properties-lime-dark);
}

/* ============================================
   VUE LISTE : .properties-container.properties-list
   ============================================ */

.properties-container.properties-list .property-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.properties-container.properties-list .property-item > .tenants-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--properties-gray-200);
  box-shadow: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

/* Vue liste : proportions de colonnes identiques pour tous les types de biens */
.properties-container.properties-list .property-item > .tenants-card > .tenants-card-header {
  flex: 0 0 22%;
  min-width: 0;
}
.properties-container.properties-list .property-item > .tenants-card > .tenants-card-body {
  flex: 1 1 48%;
  min-width: 0;
}
.properties-container.properties-list .property-item > .tenants-card > .tenants-card-footer {
  flex: 0 0 30%;
  min-width: 0;
  justify-content: flex-end;
}

.properties-container.properties-list .property-item > .tenants-card[data-toggle-lots] {
  cursor: pointer;
}

/* Alternance de couleurs */
.properties-container.properties-list .property-item:nth-child(even) > .tenants-card {
  background: #F9FAFB;
}

.properties-container.properties-list .property-item:nth-child(odd) > .tenants-card {
  background: white;
}

.properties-container.properties-list .property-item > .tenants-card:hover {
  background: #F0FDF4;
  transform: translateY(0) translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Premier et dernier élément avec coins arrondis */
.properties-container.properties-list .property-item:first-child > .tenants-card {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.properties-container.properties-list .property-item:last-child > .tenants-card {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-bottom: 1px solid var(--properties-gray-200);
}

.properties-container.properties-list .properties-lots-accordion {
  margin-left: 1rem;
  border-radius: 0 0 8px 8px;
}

/* Layout horizontal pour vue liste (proportions fixées par les règles .tenants-card > *) */
.properties-container.properties-list .tenants-card-header {
  border-bottom: none;
  padding: 0;
  flex-wrap: wrap;
}
/* Étiquettes (Commerce, Actif, PEB...) : max 25% de la largeur de la ligne, passage à la ligne si besoin */
.properties-container.properties-list .tenants-card-badges {
  max-width: 25%;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.properties-container.properties-list .tenants-card-body {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.properties-container.properties-list .tenants-card-footer {
  padding: 0;
  border-top: none;
  flex-shrink: 0;
}

/* Override pour le bouton primaire en mode liste */
.properties-container.properties-list .tenants-btn-action-primary {
  flex: 0 0 auto;
}

.properties-container.properties-list .tenants-btn-action {
  padding: 0.5rem 0.75rem;
}

.properties-container.properties-list .tenants-card-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.properties-container.properties-list .tenants-card-badges {
  margin-top: 0.25rem;
}

.properties-container.properties-list .tenants-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.properties-container.properties-list .tenants-info-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
}

.properties-container.properties-list .tenants-info-row i {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Style pour les cartes inactives */
.tenants-card.inactive-card {
  opacity: 0.6;
  background: var(--properties-gray-100);
  position: relative;
}

.tenants-card.inactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.02) 10px,
    rgba(0, 0, 0, 0.02) 20px
  );
  pointer-events: none;
}

/* Responsive mode liste */
@media (max-width: 1024px) {
  .properties-container.properties-list .tenants-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  
  .properties-container.properties-list .tenants-card-header {
    min-width: auto;
  }
  
  .properties-container.properties-list .tenants-card-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Sections et accordéons formulaire biens (refonte) */
.properties-form-section {
  grid-column: span 2;
  padding: 1rem 0 1rem 1rem;
  border-left: 4px solid var(--properties-lime-dark);
  margin-bottom: 0.5rem;
  background: var(--properties-gray-50);
  border-radius: 0 10px 10px 0;
}

.properties-form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-forest);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.properties-form-section-title i {
  color: var(--properties-lime-dark);
}

.properties-form-accordion {
  grid-column: span 2;
}

.properties-form-accordion.full-width {
  width: 100%;
}

.properties-form-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--properties-gray-100);
  border: 1px solid var(--properties-gray-200);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--properties-gray-800);
  cursor: pointer;
  transition: background 0.2s ease;
}

.properties-form-accordion-header:hover {
  background: var(--properties-gray-200);
}

.properties-form-accordion-icon {
  transition: transform 0.2s ease;
}

.properties-form-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 0.25rem;
}

.properties-form-accordion-body.properties-form-accordion-open {
  max-height: 1200px;
  padding: 1rem 0.25rem 0.25rem;
}

/* Scoped to properties modal only so Tailwind "hidden lg:flex" / "hidden lg:block" in header are not overridden */
.properties-modal .hidden {
  display: none !important;
}

/* Lignes de lots : fond léger et PEB lisible */
.property-lot-row-bg {
  background: var(--properties-gray-50);
}

.property-lot-peb-cell {
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.property-lot-peb-cell .properties-form-label {
  margin-bottom: 0.35rem;
}

.property-lot-peb-select {
  min-width: 110px;
  padding: 0.5rem 0.75rem;
}

/* =================================
   FICHE BIEN DÉTAILLÉE (Voir le bien)
   ================================= */
.property-detail-page {
  padding-bottom: 2rem;
}

.property-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.property-detail-btn-back,
.property-detail-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  color: var(--properties-forest);
  background: var(--properties-gray-100);
  border: 1px solid var(--properties-gray-200);
  cursor: pointer;
  text-decoration: none;
}

.property-detail-btn-back:hover,
.property-detail-back-link:hover {
  background: var(--properties-lime-light);
  color: var(--properties-forest);
  border-color: var(--properties-lime-dark);
}

.property-detail-main-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--properties-forest);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.property-detail-main-title i {
  color: var(--properties-lime-dark);
}

.property-detail-section {
  background: var(--properties-gray-50);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--properties-gray-300);
  box-shadow: 0 1px 3px rgba(10, 26, 22, 0.06);
}

.property-detail-section-info {
  border-left-color: var(--properties-lime-dark);
}

.property-detail-section-owners {
  border-left-color: var(--properties-green);
}

.property-detail-section-lease {
  border-left-color: var(--properties-green-dark);
}

.property-detail-section-tenants {
  border-left-color: var(--properties-lime);
}

.property-detail-section-lot {
  border-left-color: var(--properties-forest-medium);
}

.property-detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--properties-forest);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.property-detail-section-title i {
  color: var(--properties-lime-dark);
  margin-right: 0.5rem;
}

.property-detail-edit-wrap {
  margin-bottom: 1rem;
}

.property-detail-btn-edit {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--properties-forest);
  background: var(--properties-lime-light);
  border: 1px solid var(--properties-lime-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.property-detail-btn-edit:hover {
  background: var(--properties-lime);
  border-color: var(--properties-lime-dark);
  color: var(--properties-forest);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
}

.property-detail-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.property-detail-row,
.property-detail-grid > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.property-detail-label {
  color: var(--properties-gray-600);
  font-weight: 500;
}

.property-detail-value {
  color: var(--properties-gray-800);
}

.property-detail-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--properties-gray-200);
  font-size: 0.875rem;
}

.property-detail-desc p {
  margin: 0.35rem 0 0;
  color: var(--properties-gray-700);
}

.property-detail-peb {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  background: rgba(0, 255, 135, 0.15);
  color: var(--properties-forest);
}

.property-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.property-detail-link-row,
.property-detail-link {
  color: var(--properties-green-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.property-detail-link-row:hover,
.property-detail-link:hover {
  color: var(--properties-lime-dark);
  text-decoration: underline;
}

.property-detail-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--properties-gray-200);
}

.property-detail-link-row:hover {
  border-color: var(--properties-lime);
  background: var(--properties-lime-light);
}

.property-detail-pct {
  font-size: 0.8125rem;
  color: var(--properties-gray-600);
}

.property-detail-lease-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.property-detail-clickable-block {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

.property-detail-clickable-block:hover {
  box-shadow: 0 4px 12px rgba(10, 26, 22, 0.1);
}

.property-detail-link-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--properties-gray-500);
}

.property-detail-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--properties-gray-500);
  font-style: italic;
}

.property-detail-lots-intro {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--properties-gray-50);
  border-radius: 12px;
  border-left: 4px solid var(--properties-forest-medium);
}

.property-detail-lots-intro .property-detail-section-title {
  margin-bottom: 0.5rem;
}

.property-detail-lots-intro .property-detail-empty {
  margin: 0;
}

/* Espace avant la section Accès à la plateforme (fiche propriétaire / locataire) */
.property-detail-platform-spacer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--properties-gray-200);
}

/* Biens détenus (fiche propriétaire) : bien simple vs parent avec lots */
.owner-property-row {
  margin-bottom: 0.5rem;
}
.owner-property-row:last-child {
  margin-bottom: 0;
}
.owner-property-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  border-radius: 8px;
  margin-right: 0.75rem;
  font-size: 0.875rem;
}
.owner-property-simple .owner-property-icon {
  background: rgba(0, 255, 135, 0.15);
  color: var(--properties-forest);
}
.owner-property-parent .owner-property-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
}
.owner-property-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.owner-property-parent-header {
  display: flex;
  align-items: center;
}
.owner-property-accordion {
  margin-top: 0.25rem;
  margin-left: 2.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--properties-gray-50, #f9fafb);
  border-radius: 8px;
  border: 1px solid var(--properties-gray-200);
}
.owner-property-accordion-summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--properties-gray-600);
  list-style: none;
}
.owner-property-accordion-summary::-webkit-details-marker {
  display: none;
}
.owner-property-accordion-summary::before {
  content: '▸ ';
  font-size: 0.75rem;
}
details[open] .owner-property-accordion-summary::before {
  content: '▾ ';
}
.owner-property-accordion-body {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--properties-gray-200);
}
.owner-property-lots-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--properties-gray-700);
}
.owner-property-lots-list li {
  margin-bottom: 0.35rem;
}
.owner-property-lots-list li:last-child {
  margin-bottom: 0;
}

/* Biens loués (fiche locataire) : nom, adresse, bien parent, propriétaire */
.tenant-rented-property-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}
.tenant-rented-property-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tenant-rented-parent {
  font-size: 0.8125rem;
  color: var(--properties-gray-600);
}
.tenant-rented-owner {
  font-size: 0.8125rem;
  color: var(--properties-gray-600);
  padding-top: 0.25rem;
  border-top: 1px dashed var(--properties-gray-200);
}

/* Formulaire lot : champs en lecture seule / grisés */
.properties-form-input-readonly,
.properties-form-input[readonly] {
  background-color: var(--properties-gray-100, #f3f4f6);
  color: var(--properties-gray-600, #4b5563);
  cursor: not-allowed;
}

.properties-form-field-readonly {
  padding: 0.25rem 0;
}
