/* ==========================================
   MIDC Property - Beautification Styles
   Modern Glassmorphism & Enhanced Design
   ========================================== */

/* ------------------------------------------
   1. MODERN GLASSMORPHISM CARDS
   ------------------------------------------ */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(91,140,255,0.25),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: rgba(91,140,255,0.4);
}

/* Card image overlay effect */
.card .thumb {
  position: relative;
  overflow: hidden;
}

.card .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,15,26,0.8) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .thumb::before {
  opacity: 1;
}

.card .thumb img {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .thumb img {
  transform: scale(1.08);
}

/* ------------------------------------------
   2. ENHANCED BADGES
   ------------------------------------------ */
.card .thumb .badge-status {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  padding: 0.3rem 0.7rem;
}

.card .thumb .badge-status.sale {
  background: linear-gradient(135deg, rgba(16,185,129,0.95) 0%, rgba(5,150,105,0.95) 100%);
  color: #fff;
  border-color: rgba(16,185,129,0.5);
}

.card .thumb .badge-status.rent {
  background: linear-gradient(135deg, rgba(59,130,246,0.95) 0%, rgba(37,99,235,0.95) 100%);
  color: #fff;
  border-color: rgba(59,130,246,0.5);
}

/* Badge count with glass effect */
.card .thumb .badge-count {
  background: rgba(17,24,39,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-weight: 600;
}

/* ------------------------------------------
   3. MODERN BUTTONS
   ------------------------------------------ */
.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.875rem;
  box-shadow: 
    0 4px 15px rgba(91,140,255,0.3),
    0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(91,140,255,0.4),
    0 4px 8px rgba(0,0,0,0.15);
}

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

/* Secondary button style */
.btn:not(.btn-primary) {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.btn:not(.btn-primary):hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 100%);
  border-color: rgba(255,255,255,0.3);
}

/* ------------------------------------------
   4. ENHANCED HEADER
   ------------------------------------------ */
.site-header {
  background: linear-gradient(180deg, rgba(11,15,26,0.95) 0%, rgba(11,15,26,0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.logo {
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(91,140,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 12px;
}

.logo:hover::after {
  opacity: 1;
}

/* ------------------------------------------
   5. MODERN FOOTER
   ------------------------------------------ */
.site-footer {
  background: linear-gradient(180deg, rgba(15,22,41,0.98) 0%, rgba(11,15,26,0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,140,255,0.5), transparent);
}

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.footer-links a {
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary);
}

.footer-links a:hover {
  padding-left: 12px;
  color: var(--primary);
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* ------------------------------------------
   6. MODERN INPUTS & FORMS
   ------------------------------------------ */
input, select, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

input:focus, select:focus, textarea:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  box-shadow: 
    0 0 0 3px rgba(91,140,255,0.15),
    0 4px 20px rgba(91,140,255,0.1);
  outline: none;
}

/* ------------------------------------------
   7. PRICE DISPLAY ENHANCEMENT
   ------------------------------------------ */
.price {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #e6eaf2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* ------------------------------------------
   8. SMOOTH ANIMATIONS & EFFECTS
   ------------------------------------------ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Floating animation for CTAs */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.fab-cta {
  animation: float 3s ease-in-out infinite;
}

.fab-cta:nth-child(2) {
  animation-delay: 0.5s;
}

/* ------------------------------------------
   9. SECTION TITLES
   ------------------------------------------ */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* ------------------------------------------
   10. RESPONSIVE IMPROVEMENTS
   ------------------------------------------ */
@media (max-width: 768px) {
  .card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* ------------------------------------------
   11. SCROLLBAR STYLING
   ------------------------------------------ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 100%);
}

/* ------------------------------------------
   12. LOADING STATES
   ------------------------------------------ */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}

.loading-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ------------------------------------------
   13. HOVER GLOW EFFECTS
   ------------------------------------------ */
.glow-hover {
  position: relative;
}

.glow-hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.glow-hover:hover::before {
  opacity: 0.5;
}

/* ------------------------------------------
   14. PROPERTY META ENHANCEMENT
   ------------------------------------------ */
.card .meta {
  gap: 0.5rem;
}

.card .meta span {
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ------------------------------------------
   15. NAVIGATION LINKS
   ------------------------------------------ */
.nav a {
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav a:hover::after {
  width: 100%;
}
