.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 80px;
    justify-content: center;
}

/* Status icon before text - Hidden for available status */
.status-badge::before {
    content: '';
    width: 0;
    height: 0;
    display: none;
}

/* Shimmer effect on hover */
.status-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.7s ease;
}

.status-badge:hover::after {
    left: 100%;
}

/* AVAILABLE STATUS - Visible Golden Text with Background */
.status-available {
    background: rgba(0, 0, 0, 0.6);
    background-size: auto;
    color: #ffd700;
    text-shadow: 0 0 12px #ffd700, 0 0 18px #ffd700, 0 0 24px #ffd700;
    animation: strongGoldenGlow 2s ease-in-out infinite alternate;
    font-weight: 700;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    background-clip: initial;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-image: none;
    padding: 2px 8px;
    border-radius: 4px;
}

.status-available::before {
    display: none !important;
}

.status-available::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    animation: lightningStrike 2.5s ease-in-out infinite;
}

@keyframes goldenLightning {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes goldenPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes goldenShimmer {
    0% { 
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    25% { 
        filter: brightness(1.2) hue-rotate(10deg);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    50% { 
        filter: brightness(1.3) hue-rotate(0deg);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
    75% { 
        filter: brightness(1.2) hue-rotate(-10deg);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    }
    100% { 
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

@keyframes goldenTextShine {
    0% { 
        text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700, 0 0 40px #ffd700;
        filter: brightness(1.2);
    }
    100% { 
        text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
        filter: brightness(1);
    }
}

@keyframes lightningStrike {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes simpleGreenGlow {
    0% { 
        text-shadow: 0 0 6px #10b981, 0 0 8px #10b981;
        opacity: 0.9;
    }
    50% { 
        text-shadow: 0 0 10px #10b981, 0 0 15px #10b981, 0 0 20px #10b981;
        opacity: 1;
    }
    100% { 
        text-shadow: 0 0 6px #10b981, 0 0 8px #10b981;
        opacity: 0.9;
    }
}

@keyframes strongGreenGlow {
    0% { 
        text-shadow: 0 0 8px #10b981, 0 0 12px #10b981;
        opacity: 0.9;
    }
    50% { 
        text-shadow: 0 0 16px #10b981, 0 0 24px #10b981, 0 0 32px #10b981;
        opacity: 1;
    }
    100% { 
        text-shadow: 0 0 8px #10b981, 0 0 12px #10b981;
        opacity: 0.9;
    }
}

@keyframes simpleGoldenGlow {
    0% { 
        text-shadow: 0 0 6px #ffd700, 0 0 8px #ffd700;
        opacity: 0.9;
    }
    50% { 
        text-shadow: 0 0 10px #ffd700, 0 0 15px #ffd700, 0 0 20px #ffd700;
        opacity: 1;
    }
    100% { 
        text-shadow: 0 0 6px #ffd700, 0 0 8px #ffd700;
        opacity: 0.9;
    }
}

@keyframes strongGoldenGlow {
    0% { 
        text-shadow: 0 0 8px #ffd700, 0 0 12px #ffd700;
        opacity: 0.9;
    }
    50% { 
        text-shadow: 0 0 16px #ffd700, 0 0 24px #ffd700, 0 0 32px #ffd700;
        opacity: 1;
    }
    100% { 
        text-shadow: 0 0 8px #ffd700, 0 0 12px #ffd700;
        opacity: 0.9;
    }
}

/* SOLD STATUS - Elegant Red Theme */
.status-sold {
    background: linear-gradient(135deg, 
        #ef4444 0%, 
        #dc2626 50%, 
        #b91c1c 100%);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.3);
    position: relative;
}

.status-sold::before {
    background: #fca5a5;
    box-shadow: 0 0 6px #ef4444;
}

.status-sold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

/* PENDING STATUS - Vibrant Amber Theme */
.status-pending {
    background: linear-gradient(135deg, 
        #f59e0b 0%, 
        #d97706 50%, 
        #b45309 100%);
    color: white;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.status-pending::before {
    background: #fde68a;
    box-shadow: 0 0 6px #f59e0b;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Hover effects for all badges */
.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Admin table specific styles */
.status-badge.status-available,
.status-badge.status-sold,
.status-badge.status-pending {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 90px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Add checkmark for available, X for sold, clock for pending */
.status-available::after {
    content: '✓';
    margin-left: 4px;
    font-size: 12px;
}

.status-sold::after {
    content: '✕';
    margin-left: 4px;
    font-size: 12px;
}

.status-pending::after {
    content: '⏳';
    margin-left: 4px;
    font-size: 12px;
}

/* Remove icon for admin table to keep it clean */
.status-badge.status-available::after,
.status-badge.status-sold::after,
.status-badge.status-pending::after {
    content: '';
}

/* Focus state for accessibility */
.status-badge:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Active state */
.status-badge:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Continuous glow for small traffic-signal status chip next to property name */
.status-chip {
    position: relative;
    overflow: hidden;
    animation: statusChipPulse 2s ease-in-out infinite;
}

.status-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: statusChipShine 1.8s linear infinite;
}

@keyframes statusChipPulse {
    0%, 100% { box-shadow: 0 0 0px rgba(0, 0, 0, 0.08); transform: translateY(0); }
    50% { box-shadow: 0 0 8px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }
}

@keyframes statusChipShine {
    0% { left: -120%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

/* Add subtle text gradient for premium feel */
.status-available span,
.status-sold span,
.status-pending span {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* For dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .status-badge {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .status-available,
    .status-sold,
    .status-pending {
        border-width: 1.5px;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Property card styling */
.property-image-container {
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.property-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spec-item {
    transition: transform 0.2s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
}

.price-section {
    text-align: left;
}

@media (max-width: 1024px) {
    .property-card-modern {
        flex-direction: column;
    }
    .property-image-container {
        width: 100%;
        height: 220px;
    }
    .property-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rating stars: bigger and continuously shining */
.rating-stars {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
}

/* Base star styles */
.star {
    font-size: 1em;
    font-weight: bold;
    color: #ccc; /* empty color */
    position: relative;
    display: inline-block;
}

.star.full {
    color: #fbbf24; /* gold */
}

.star.half {
    color: #ccc;
}

.star.half::before {
    content: "★";
    color: #fbbf24; /* gold left half */
    position: absolute;
    width: 50%;
    overflow: hidden;
}

.star.empty {
    color: #ccc;
}

/* Glow animation only on gold parts */
.rating-stars .star.full,
.rating-stars .star.half::before {
    text-shadow: 0 0 4px rgba(250, 204, 21, 0.7), 0 0 8px rgba(250, 204, 21, 0.9);
    animation: ratingStarGlow 1.8s ease-in-out infinite;
}

@keyframes ratingStarGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(250, 204, 21, 0.6), 0 0 8px rgba(250, 204, 21, 0.8);
        transform: translateY(0);
    }
    50% {
        text-shadow: 0 0 10px rgba(250, 204, 21, 1), 0 0 18px rgba(250, 204, 21, 0.9);
        transform: translateY(-0.5px);
    }
}