/* Custom Styles for Property Deals */

:root {
  --primary-color: #0d6efd;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Cards */
.property-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-card img {
  transition: transform 0.3s ease;
}

.property-card:hover img {
  transform: scale(1.05);
}

.property-card .card-body {
  padding: 1.5rem;
}

.property-card .card-title {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.property-card .card-text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #157347;
  transform: translateY(-2px);
}

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

.btn-danger:hover {
  background-color: #bb2d3b;
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  color: #333;
  margin-bottom: 0.5rem;
}

/* Stats Section */
.bg-light {
  background-color: #f8f9fa !important;
}

.display-6 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  border: none;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

.alert-info {
  background-color: #cfe2ff;
  color: #084298;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #212529 !important;
  color: white;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Property Detail Page */
.img-fluid {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .property-card {
    margin-bottom: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .form-control,
  .form-select {
    padding: 0.6rem 0.8rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded {
  border-radius: 8px;
}

/* Loading Placeholder */
.placeholder-glow .placeholder {
  animation: placeholder-shimmer 2s infinite;
}

@keyframes placeholder-shimmer {
  0% {
    background-color: #e9ecef;
  }
  50% {
    background-color: #dee2e6;
  }
  100% {
    background-color: #e9ecef;
  }
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

/* Price Display */
.fs-5 {
  font-size: 1.5rem;
}

.fw-bold {
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

/* Filter Card */
.filter-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.375rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
