/* nhouse.in - Custom Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Property card hover */
.property-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Favorite button */
.fav-btn {
    transition: all 0.2s;
}
.fav-btn:hover {
    transform: scale(1.15);
}
.fav-btn.active svg {
    fill: #ef4444;
    color: #ef4444;
}

/* City card */
.city-card {
    transition: all 0.3s ease;
}
.city-card:hover {
    transform: translateY(-2px);
}
.city-card:hover .city-overlay {
    background: rgba(79, 70, 229, 0.85);
}

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

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Category icon */
.category-icon {
    transition: all 0.3s ease;
}
.category-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(79, 70, 229, 0.3);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image gallery */
.gallery-thumb {
    transition: all 0.2s;
    cursor: pointer;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #4f46e5;
    opacity: 1;
}

/* Badge pulse */
.badge-new::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    transform: translateX(100%);
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Form inputs */
.form-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Page transition */
.page-enter {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats counter */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* WhatsApp button */
.whatsapp-btn {
    background: #25D366;
    transition: all 0.2s;
}
.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Phone button */
.phone-btn {
    background: #4f46e5;
    transition: all 0.2s;
}
.phone-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Featured badge */
.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

/* Panel sidebar */
.sidebar-link {
    transition: all 0.2s;
}
.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}
.sidebar-link.active {
    border-right: 3px solid #4f46e5;
}

/* Tab active state */
.tab-active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

/* Image upload drop zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    transition: all 0.2s;
}
.drop-zone:hover,
.drop-zone.dragover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.04);
}

/* Modal overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
