/* ===== PROPERTY FEATURES FIX ===== */
.property-features {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--color-light-gray, #e8ebed);
    border-bottom: 1px solid var(--color-light-gray, #e8ebed);
}

.property-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-base, #000000);
    font-size: 13px;
    white-space: nowrap;
}

/* Control icon size - Fixed */
.property-features .feature-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    color: var(--color-gold, #b4ab74);
    fill: currentColor;
    flex-shrink: 0;
}

/* Location inline fix */
.property-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-base, #000000);
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.property-location .dashicons {
    color: var(--color-red, #dc2626);
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== IMPROVED ACTION BUTTONS ===== */
/* Action buttons with inline icons */
.property-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.property-favorite, 
.property-report {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 0;
}

.property-favorite:hover, 
.property-report:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Action button icons - Controlled size */
.property-favorite .dashicons,
.property-report .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--btn-danger, #dc2626);
    transition: color 0.3s ease;
}

/* Hover states */
.property-favorite:hover .dashicons {
    color: #b91c1c;
}

.property-report:hover .dashicons {
    color: #b91c1c;
}

/* Active/favorited state */
.property-favorite.favorited {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.property-favorite.favorited .dashicons {
    color: var(--btn-danger, #dc2626);
}

/* Reported state */
.property-report.reported {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.4);
    cursor: not-allowed;
    opacity: 0.7;
}

.property-report.reported .dashicons {
    color: #9ca3af;
}

.property-report.reported:hover {
    transform: none;
    background: rgba(156, 163, 175, 0.2);
}

/* ===== INLINE HEADER ACTIONS (with Price) ===== */
.property-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.property-actions-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.property-favorite-inline,
.property-report-inline {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.property-favorite-inline:hover,
.property-report-inline:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

/* Inline action icons - Controlled size */
.property-favorite-inline .dashicons,
.property-report-inline .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #dc2626 !important;
}

/* Inline favorited state */
.property-favorite-inline.favorited {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.property-favorite-inline.favorited .dashicons {
    color: #dc2626 !important;
}

/* Inline reported state */
.property-report-inline.reported {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.property-report-inline.reported .dashicons {
    color: #9ca3af !important;
}

.property-report-inline.reported:hover {
    transform: none;
    background: rgba(156, 163, 175, 0.1);
}

/* ===== TOOLTIPS FOR ACTIONS ===== */
.property-favorite::after,
.property-report::after,
.property-favorite-inline::after,
.property-report-inline::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.property-favorite:hover::after,
.property-report:hover::after,
.property-favorite-inline:hover::after,
.property-report-inline:hover::after {
    opacity: 1;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Property features on mobile */
    .property-features {
        gap: 10px;
        margin: 10px 0;
        padding: 10px 0;
    }
    
    .property-feature {
        font-size: 12px;
    }
    
    .property-features .feature-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
    }
    
    /* Location on mobile */
    .property-location {
        font-size: 13px;
    }
    
    .property-location .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    /* Action buttons on mobile */
    .property-actions-overlay {
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .property-favorite,
    .property-report {
        width: 32px;
        height: 32px;
    }
    
    .property-favorite .dashicons,
    .property-report .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    /* Inline actions on mobile */
    .property-favorite-inline,
    .property-report-inline {
        width: 28px;
        height: 28px;
    }
    
    .property-favorite-inline .dashicons,
    .property-report-inline .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    /* Hide tooltips on touch devices */
    @media (hover: none) {
        .property-favorite::after,
        .property-report::after,
        .property-favorite-inline::after,
        .property-report-inline::after {
            display: none;
        }
    }
}

@media (max-width: 480px) {
    /* Compact features on small mobile */
    .property-features {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .property-feature {
        min-width: 45%;
        margin-bottom: 5px;
        justify-content: flex-start;
    }
    
    /* Even smaller action buttons */
    .property-favorite,
    .property-report {
        width: 30px;
        height: 30px;
    }
    
    .property-favorite .dashicons,
    .property-report .dashicons {
        font-size: 15px;
        width: 15px;
        height: 15px;
    }
    
    .property-favorite-inline,
    .property-report-inline {
        width: 26px;
        height: 26px;
    }
    
    .property-favorite-inline .dashicons,
    .property-report-inline .dashicons {
        font-size: 13px;
        width: 13px;
        height: 13px;
    }
}

/* ===== FAVORITE ANIMATION ===== */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.property-favorite.favorited .dashicons,
.property-favorite-inline.favorited .dashicons {
    animation: heartBeat 0.5s ease;
}

/* ===== ACCESSIBILITY ===== */
.property-favorite:focus,
.property-report:focus,
.property-favorite-inline:focus,
.property-report-inline:focus {
    outline: 2px solid var(--color-blue, #1e5277);
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}