/* Properties Grid Layout */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Property Card */
.property-card {
  background: white;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

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

/* Property Card Image */
.property-card-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background: #f5f5f5;
}

.property-card-image-placeholder {
  height: 180px;
  background: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

/* Property Card Body */
.property-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary, #333);
}

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

.property-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-badge-form {
  background: var(--primary-color, #007bff);
  color: white;
}

.property-badge-status {
  background: #6c757d;
  color: white;
}

.property-card-description {
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.property-card-description.empty {
  font-style: italic;
}

/* Property Card Actions */
.property-card-actions {
  margin-top: auto;
}

.property-card-link {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--primary-color, #007bff);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.property-card-link:hover {
  background: var(--primary-hover, #0056b3);
  color: white;
  text-decoration: none;
}

.property-card-link-icon {
  margin-right: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Current Banner Preview in Form */
.property-form-banner-preview {
  margin-bottom: 0.5rem;
}

.property-form-banner-preview img {
  max-width: 200px;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
}

.property-form-banner-label {
  color: #6c757d;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.25rem;
}

.property-form-help-text {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}