/* resources/css/homepage-optimized.css */



/* ===== CARD OPTIMIZATIONS ===== */

.single-grid {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
    background: #fff;
    position: relative;
}

.single-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Badge Optimizations */
.cross-badge-index,
.ville-badge-index,
.nombre-pic-badge-index {
    position: absolute;
    z-index: 2;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cross-badge-index {
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 50%;
}

.ville-badge-index {
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nombre-pic-badge-index {
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 16px;
}

/* Property Features */
.card-sup-info {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 158, 255, 0.1);
    color: #009eff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 2px;
    border: 1px solid rgba(0, 158, 255, 0.2);
}

.card-sup-info img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(99%) saturate(2592%) hue-rotate(195deg) brightness(101%) contrast(101%);
}


/* ===== PRICE STYLING ===== */

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.price span {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* ===== PERFORMANCE UTILITIES ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .single-grid {
        border: 2px solid #000;
    }
    
    .card-sup-info {
        background: #000;
        color: #fff;
        border: 1px solid #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .single-grid {
        background: #2d3748;
        color: #e2e8f0;
        border: 1px solid #4a5568;
    }
    
    .section-title h2 {
        color: #e2e8f0;
    }
    
    .categories-title {
        color: #e2e8f0;
    }
}

/* ===== LOADING STATES ===== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

