﻿
/* Rotating House Loader */
.house-loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.rotating-house {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: houseRotate 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

    .rotating-house svg {
        filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
    }

/* Animate individual house parts */
.house-roof-svg {
    animation: roofBounce 2s ease-in-out infinite;
    transform-origin: center bottom;
}

.house-window-svg {
    animation: windowBlink 2s ease-in-out infinite;
}

.house-door-svg {
    animation: doorWiggle 2s ease-in-out infinite;
    transform-origin: center bottom;
}

.house-chimney {
    animation: smokePuff 2s ease-in-out infinite;
}

.loading-text {
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Main rotation animation */
@keyframes houseRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1);
    }

    75% {
        transform: translate(-50%, -50%) rotate(270deg) scale(0.9);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Roof animation */
@keyframes roofBounce {
    0%, 100% {
        fill: #FF6B6B;
    }

    50% {
        fill: #E74C3C;
    }
}

/* Window blinking */
@keyframes windowBlink {
    0%, 100% {
        fill: #FFF;
        opacity: 1;
    }

    50% {
        fill: #FFE066;
        opacity: 0.8;
    }
}

/* Door wiggle */
@keyframes doorWiggle {
    0%, 100% {
        fill: #2C3E50;
    }

    25% {
        fill: #34495E;
        transform: scaleX(0.95);
    }

    75% {
        fill: #2C3E50;
        transform: scaleX(1.05);
    }
}

/* Chimney smoke effect */
@keyframes smokePuff {
    0%, 100% {
        fill: #E74C3C;
        transform: scaleY(1);
    }

    50% {
        fill: #C0392B;
        transform: scaleY(1.2);
    }
}

/* Text fade animation */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Add a circular background */
.house-loader-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

/* Loading shimmer effect for property cards */
.property-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;
    }
}


