/* 
 * Kingslighthouse Homes - Custom Stylesheet
 * A refined, professional real estate platform with elegant touches
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Primary Brand Colors */
  --primary: #1E3A8A;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #D97706;
  --secondary-dark: #b45309;
  --secondary-light: #f59e0b;
  
  /* Semantic Colors */
  --success: #059669;
  --error: #DC2626;
  --warning: #F59E0B;
  --info: #3b82f6;
  
  /* Neutrals */
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  
  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--neutral-800);
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: var(--spacing-lg);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--neutral-700);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--neutral-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background-color: var(--neutral-50);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 64, 175, 0.85) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-search {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  outline: none;
}

.hero-search button {
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-search button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  text-align: center;
  color: var(--neutral-600);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-light {
  background-color: var(--neutral-50);
}

.section-dark {
  background-color: var(--neutral-900);
  color: white;
}

.section-dark .section-title,
.section-dark h3,
.section-dark h4,
.section-dark p {
  color: white;
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 260px;
  background-color: var(--neutral-200);
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  z-index: 2;
}

.property-badge.featured {
  background-color: var(--secondary);
}

.property-badge.active {
  background-color: var(--success);
  animation: pulse 2s infinite;
}

.property-badge.sold {
  background-color: var(--neutral-600);
}

.save-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.save-btn:hover {
  background-color: white;
  transform: scale(1.1);
}

.save-btn i {
  color: var(--neutral-600);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.save-btn.saved i {
  color: var(--error);
}

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

.property-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--neutral-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  color: var(--neutral-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-location i {
  color: var(--primary);
}

.property-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.property-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.property-stat i {
  color: var(--primary);
  font-size: 1rem;
}

.property-price-section {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
}

.price-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 0.25rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.bid-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.bid-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bid-count i {
  color: var(--secondary);
}

.time-remaining {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.time-remaining i {
  color: var(--primary);
}

.property-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.property-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works-step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
}

.how-it-works-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.step-description {
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  padding: 2rem;
  text-align: center;
  background: white;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  height: 100%;
  border: 2px solid transparent;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.feature-description {
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ============================================
   POST/BLOG CARDS
   ============================================ */
.post-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-image {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date i,
.post-read-time i {
  color: var(--primary);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-base);
}

.read-more:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
  background-size: cover;
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--neutral-900);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer h5 {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
  color: var(--secondary);
  margin-top: 0.25rem;
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--neutral-200);
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: var(--neutral-900);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid var(--neutral-200);
  padding: 1.5rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--neutral-200);
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--neutral-600);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.auth-tab.active::after {
  transform: scaleX(1);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--neutral-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control.is-invalid {
  border-color: var(--error);
}

.form-control.is-valid {
  border-color: var(--success);
}

.invalid-feedback {
  display: block;
  margin-top: 0.5rem;
  color: var(--error);
  font-size: 0.875rem;
}

.valid-feedback {
  display: block;
  margin-top: 0.5rem;
  color: var(--success);
  font-size: 0.875rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  color: var(--neutral-700);
}

/* Password Toggle */
.password-toggle {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--neutral-600);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--primary);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.toast-error .toast-icon {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

.toast-warning .toast-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.toast-info .toast-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--neutral-900);
}

.toast-message {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.toast-close {
  background: none;
  border: none;
  color: var(--neutral-600);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--neutral-900);
}

/* ============================================
   FILTERS & SEARCH
   ============================================ */
.filters-sidebar {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

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

.filter-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.filter-clear {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-clear:hover {
  color: var(--primary-dark);
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

/* Price Range Slider */
.price-range {
  margin-top: 1rem;
}

.price-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.price-input {
  flex: 1;
}

.price-input label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 0.5rem;
  display: block;
}

.price-input input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item {
  display: flex;
}

.page-link {
  padding: 0.75rem 1rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  color: var(--neutral-700);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-width: 44px;
  text-align: center;
}

.page-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.results-summary {
  color: var(--neutral-600);
  font-size: 0.95rem;
}

/* ============================================
   BIDDING CARD
   ============================================ */
.bidding-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.bidding-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
}

.bidding-section:last-of-type {
  border-bottom: none;
}

.bidding-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 0.25rem;
}

.bidding-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.bidding-amount.starting {
  font-size: 1.25rem;
  color: var(--neutral-700);
}

.bidder-info {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.bid-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--neutral-700);
}

.bid-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bid-stat i {
  color: var(--secondary);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown i {
  color: var(--primary);
}

.countdown.urgent {
  color: var(--error);
  font-weight: 700;
  animation: pulse 1s infinite;
}

.bid-input-group {
  margin-bottom: 1.5rem;
}

.bid-input-wrapper {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--neutral-600);
}

.bid-input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.5rem;
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.bid-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.minimum-bid-text {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-top: 0.5rem;
}

.trust-indicators {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-indicators li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--neutral-700);
}

.trust-indicators i {
  color: var(--success);
  font-size: 1rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--neutral-200);
  padding: 2rem 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.user-profile-section {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--neutral-200);
  text-align: center;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.user-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--neutral-600);
}

.dashboard-nav {
  padding: 1.5rem 0;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: var(--neutral-700);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.dashboard-nav-item:hover {
  background-color: var(--neutral-50);
  color: var(--primary);
}

.dashboard-nav-item.active {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.dashboard-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary);
}

.dashboard-nav-item i {
  font-size: 1.125rem;
  width: 24px;
}

.nav-badge {
  margin-left: auto;
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--neutral-50);
  overflow-y: auto;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--neutral-600);
  font-size: 1rem;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.stat-title {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.primary {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.stat-icon.success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

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

.stat-icon.secondary {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--secondary);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
}

.stat-change.negative {
  color: var(--error);
}

.stat-change i {
  font-size: 0.75rem;
}

/* Activity Timeline */
.activity-timeline {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.timeline-icon.success {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.timeline-icon.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.timeline-icon.info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.timeline-content {
  flex: 1;
}

.timeline-text {
  color: var(--neutral-700);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.timeline-time {
  font-size: 0.875rem;
  color: var(--neutral-600);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .dashboard-wrapper {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }
  
  .filters-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-search {
    flex-direction: column;
  }
  
  .hero-search button {
    width: 100%;
  }
  
  .stat-cards {
    grid-template-columns: 1fr;
  }
  
  .property-actions {
    flex-direction: column;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
  }
  
  .toast {
    min-width: auto;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.text-warning { color: var(--warning) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-light { background-color: var(--neutral-50) !important; }
.bg-dark { background-color: var(--neutral-900) !important; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
