@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    background: linear-gradient(87deg, #02060e, #484a4c);
}

/* Modal styles for better mobile experience */
#messageModal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#messageModal .relative {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #messageModal .relative {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #messageModal .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.glass-effect-full {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(155, 155, 155, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#hero {
    transition: background-image 1s ease-in-out;
}

.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Floor Filter Buttons */
.floor-filter-btn {
    position: relative;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transform: scale(1);
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.floor-filter-btn:hover {
    transform: scale(1.05);
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
    border-color: rgba(251, 191, 36, 0.3);
}

.floor-filter-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f7a519) !important;
    color: #1f2937 !important;
    border-color: #f59e0b;
    border-width: 1px;
    /* box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4); */
    transform: scale(1.05);
}

.floor-filter-btn:active {
    transform: scale(0.98);
}

/* Apartment Card Transitions */
.apartment-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.apartment-card.filtered-out {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
}

/* Enhanced animation states for floor filtering */
.apartment-card.filter-animating {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.apartment-card.filter-hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.apartment-card.filter-showing {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0, 0, 0.2, 1);
}

.apartment-card.filter-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition: all 0.4s cubic-bezier(0, 0, 0.2, 1);
}

/* Smooth hover effects that work with filtering */
.apartment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.apartment-card.filter-showing:hover,
.apartment-card.filter-hidden:hover {
    transform: none; /* Disable hover during animations */
}

/* Section transitions for category hiding/showing */
.mb-16 {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* More specific selector for apartment category sections */
.bg-gradient-to-br .mb-16 {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-accent {
    background-color: #ef4444; /* Red-500 */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-accent:hover {
    background-color: #dc2626; /* Red-600 */
}

.text-shadow-lg {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.max-w-8xl {
    max-width: 1440px;
}

/* Hero section responsive adjustments */
@media (max-width: 768px) {
    /* #hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    */
    
                /* #hero .glass-effect {
        padding: 1.5rem !important;
    */
    
    /* #hero .min-w-96 {
        min-width: auto;
    }
    
    #hero .flex-col.lg\:flex-row {
        gap: 2rem;
    */
}

/* Improved search input styling */
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Header background on scroll */
.header-scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12);
}

/* Smooth transitions for all glass elements */
.glass-effect,
.glass-effect-strong {
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Yellow accent color improvements */
.text-yellow-400 {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* User avatar enhancements */
.user-avatar {
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}
