/* Property Icons Component Styles */

.property-icons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.property-icon-container {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.property-icon-outline {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: var(--property-icon-outline-opacity);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px var(--shadow-medium));
}

.property-icon-filled {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.property-icon-filled.half {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Property description overlay (not used in icons directly) */
.property-description-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    background: var(--property-overlay-bg);
    border-radius: inherit;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.property-description-text {
    max-width: 200px;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--property-overlay-text);
}

/* Different sizes */
.property-icons.mini .property-icon-container {
    width: 16px;
    height: 16px;
}

.property-icons.small .property-icon-container {
    width: 20px;
    height: 20px;
}

.property-icons.large .property-icon-container {
    width: 32px;
    height: 32px;
}

.property-icons.extra-large .property-icon-container {
    width: 40px;
    height: 40px;
}

/* Rating-based styling */
.property-icons.rating-1 .property-icon-filled {
    filter: drop-shadow(0 0 4px currentcolor);
}

.property-icons.rating-2 .property-icon-filled {
    filter: drop-shadow(0 0 6px currentcolor);
}

.property-icons.rating-3 .property-icon-filled {
    animation: subtle-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px currentcolor);
}

@keyframes subtle-glow {
    from {
        filter: drop-shadow(0 0 8px currentcolor);
    }

    to {
        filter: drop-shadow(0 0 12px currentcolor);
    }
}

/* Focus states for accessibility */
.property-icons:focus-within {
    outline: 2px solid var(--property-focus-outline);
    outline-offset: 2px;
}

/* Light theme specific adjustments */
[data-theme="light"] .property-description-overlay {
    border: 1px solid var(--border-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(139, 92, 246, 0.1) inset;
}

[data-theme="light"] .property-icons.rating-1 .property-icon-filled {
    filter: drop-shadow(0 0 3px currentcolor);
}

[data-theme="light"] .property-icons.rating-2 .property-icon-filled {
    filter: drop-shadow(0 0 4px currentcolor);
}

[data-theme="light"] .property-icons.rating-3 .property-icon-filled {
    filter: drop-shadow(0 0 6px currentcolor);
}

[data-theme="light"] @keyframes subtle-glow {
    from {
        filter: drop-shadow(0 0 6px currentcolor);
    }

    to {
        filter: drop-shadow(0 0 8px currentcolor);
    }
}

/* Improved hover states for light theme */
[data-theme="light"] .property-icon-container:hover .property-icon-filled {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Enhanced contrast for light theme accessibility */
[data-theme="light"] .property-icon-outline {
    opacity: 0.8;
}

[data-theme="light"] .property-icons:focus-within {
    outline-color: var(--accent-primary);
    outline-width: 2px;
}

/* Light theme reduced motion support */
@media (prefers-reduced-motion: reduce) {
    [data-theme="light"] .property-icon-container:hover .property-icon-filled {
        transform: none;
    }
    
    [data-theme="light"] .property-icons.rating-3 .property-icon-filled {
        animation: none;
        filter: drop-shadow(0 0 6px currentcolor);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-icon-container {
        width: 20px;
        height: 20px;
    }
    
    .property-icons {
        gap: 3px;
    }
    
    .property-tooltip {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .property-icon-container {
        width: 18px;
        height: 18px;
    }
    
    .property-icons {
        gap: 2px;
    }
}

/* Print styles */
@media print {
    .property-description-overlay {
        display: none;
    }
    
    .property-icon-filled {
        filter: none;
    }
}
