/* ==========================================
   MODERN MINIMALIST WEBSITE STYLING
   Clean, Professional, Elegant Design
   ========================================== */

/* ==========================================
   1. MODERN COLOR PALETTE
   ========================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ==========================================
   2. GLOBAL STYLES
   ========================================== */

* {
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   3. CLEAN CARD DESIGN
   ========================================== */

.card,
.property-card,
.listing-card,
.feature-card,
.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.card:hover,
.property-card:hover,
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

/* Property Card Text & Icons */
.property-card h3,
.property-card .card-title,
.listing-card h3,
.listing-card .card-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.property-card p,
.property-card .card-description,
.listing-card p,
.listing-card .card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.property-card .card-price,
.listing-card .card-price {
  color: #059669;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.property-card .card-location,
.listing-card .card-location {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card .card-location svg,
.listing-card .card-location svg,
.property-card .card-meta svg,
.listing-card .card-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.property-card .card-meta,
.listing-card .card-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.property-card .card-meta span,
.listing-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.property-card .card-badge,
.listing-card .card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-secondary);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card .card-badge.sale,
.listing-card .card-badge.sale {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.property-card .card-badge.rent,
.listing-card .card-badge.rent {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* Card Icons */
.property-card svg,
.listing-card svg {
  color: var(--accent);
  transition: color 0.2s ease;
}

.property-card:hover svg,
.listing-card:hover svg {
  color: var(--accent-dark);
}

/* ==========================================
   4. MODERN BUTTON STYLES
   ========================================== */

button,
.btn,
.action-btn,
.submit-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Secondary buttons */
.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================
   5. CLEAN FORM STYLES
   ========================================== */

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* ==========================================
   6. MODERN TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

p {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

/* Section titles */
.section-title {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==========================================
   7. LAYOUT & SPACING
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.pad {
  padding: 40px 20px;
}

section {
  padding: 60px 0;
}

/* ==========================================
   8. UTILITY CLASSES
   ========================================== */

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

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

.bg-light {
  background: var(--bg-secondary);
}

.mb-4 {
  margin-bottom: 24px;
}

.mt-4 {
  margin-top: 24px;
}

/* ==========================================
   9. SUBTLE ANIMATIONS
   ========================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations */
.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================
   10. LINKS & INTERACTIVE ELEMENTS
   ========================================== */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ==========================================
   11. SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
   12. MODERN HERO SECTION
   ========================================== */

.hero-enhanced {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248,250,252,0.85) 0%, rgba(255,255,255,0.9) 100%);
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/hero-property.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.hero-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.4) 0%, 
    rgba(255,255,255,0.2) 50%,
    rgba(248,250,252,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.hero-enhanced h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-enhanced .hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero search styles moved to hero-enhanced.css */

.hero-enhanced.hero-enhanced--compact .hero-search-container {
  display: none;
}

/* ==========================================
   13. RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 40px 0;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  button,
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* Hero responsive */
  .hero-enhanced {
    padding: 60px 0 40px;
  }
  
  .hero-enhanced h1 {
    font-size: 32px;
  }
  
  .hero-enhanced .hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-search-container {
    padding: 20px;
  }
  
  .hero-search-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-search-form .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-enhanced.hero-enhanced--compact {
    padding: 40px 0 30px;
  }
  
  .hero-enhanced.hero-enhanced--compact h1 {
    font-size: 28px;
  }
}
