/**
 * Modular Houses — custom styles supplementing Tailwind CSS
 */

.house-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.house-card:hover {
    transform: translateY(-4px);
}

#house-modal-overlay {
    opacity: 0;
    transition: opacity 0.25s ease;
}
#house-modal-overlay.flex {
    opacity: 1;
}
#house-modal {
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
#house-modal-overlay.flex #house-modal {
    transform: translateY(0) scale(1);
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
#gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
#gallery-thumbs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 640px) {
    #house-modal {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }
    #house-modal-overlay {
        align-items: flex-end;
    }
}

.prose-gray {
    color: #4b5563;
}
