/**
 * Property Pricing and Featured Styles
 * 
 * @package Pro Estate Agents
 */

/* Featured Property Badge */
.featured-property-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.featured-property-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Property Status Badge */
.property-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    margin-left: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.property-status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.featured-property-badge svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.property-status-badge svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
}

/* Discounted Price Styles */
.original-price {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    margin-bottom: 5px;
    font-weight: 500;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.discount-badge {
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Enhanced Price Container for Discounted Properties */
.property-price-large.has-discount {
    background: linear-gradient(135deg, #791093 0%, #5a0a6b 100%);
    position: relative;
    overflow: visible;
}

.property-price-large.has-discount::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* Responsive Featured Badge */
@media (max-width: 768px) {
    .featured-property-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .featured-property-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .property-status-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .property-status-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .featured-property-badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    
    .featured-property-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .property-status-badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    
    .property-status-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Property Card Pricing Styles */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.original-price-small {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price-small {
    font-size: 16px;
    font-weight: 700;
    color: #791093;
}

.discount-badge-small {
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 2px;
    align-self: flex-start;
}

/* Featured Badge in Property Cards */
.property-image {
    position: relative;
}

.property-image .featured-property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 0;
    z-index: 2;
}

.property-image .featured-property-badge svg {
    width: 10px;
    height: 10px;
}

.property-image .property-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 0;
    z-index: 2;
}

.property-image .property-status-badge svg {
    width: 10px;
    height: 10px;
}

/* Responsive Property Card Pricing */
@media (max-width: 768px) {
    .current-price-small {
        font-size: 14px;
    }
    
    .original-price-small {
        font-size: 11px;
    }
    
    .discount-badge-small {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .property-image .featured-property-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }
    
    .property-image .featured-property-badge svg {
        width: 8px;
        height: 8px;
    }
    
    .property-image .property-status-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
    
    .property-image .property-status-badge svg {
        width: 8px;
        height: 8px;
    }
    
    /* Enhanced badges on detail pages - mobile */
    .featured-property-badge {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .property-status-badge {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 15px;
        margin-left: 10px;
    }
    
    .featured-property-badge svg,
    .property-status-badge svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .featured-property-badge {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }
    
    .property-status-badge {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 12px;
        margin-left: 8px;
        letter-spacing: 0.5px;
    }
    
    .featured-property-badge svg,
    .property-status-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .current-price-small {
        font-size: 13px;
    }
    
    .original-price-small {
        font-size: 10px;
    }
    
    .discount-badge-small {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .property-image .featured-property-badge {
        font-size: 8px;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
    }
    
    .property-image .featured-property-badge svg {
        width: 7px;
        height: 7px;
    }
    
    .property-image .property-status-badge {
        font-size: 8px;
        padding: 2px 5px;
        top: 6px;
        right: 6px;
    }
    
    .property-image .property-status-badge svg {
        width: 7px;
        height: 7px;
    }
}
