/* Enhanced Property Cards - Modern UI/UX */

/* Property Card Container */
.property-card {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 6px 18px rgba(11,18,32,0.06);
    transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    cursor: pointer;
} 
.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Property Image Container */
.property-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    z-index: 2; /* place above the gold accent */
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image {
    transform: scale(1.08);
}

/* Image Overlay */
.property-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-image-overlay {
    opacity: 1;
}

/* Status Badge */
.property-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-available {
    background: rgba(15,110,88,0.95); /* green */
    color: white;
}

.status-coming-soon {
    background: rgba(212,175,55,0.95); /* gold */
    color: white;
}

.status-sold-out {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* Property Type Badge */
.property-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    z-index: 3;
}

/* Wishlist Button */
.property-wishlist-btn {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.property-card:hover .property-wishlist-btn {
    opacity: 1;
}

.property-wishlist-btn:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateX(-50%) scale(1.1);
}

.property-wishlist-btn.active {
    background: var(--color-secondary);
    color: white;
}

/* Property Card Body */
.property-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 240px);
}

/* Property Title */
.property-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-description {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Property Location */
.property-location {
    display: flex;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.property-location i {
    color: var(--color-secondary);
    margin-right: 6px;
    font-size: 0.95rem;
}

/* Property Description */
.property-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Property Features */
.property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-feature i {
    color: #064E3B;
    font-size: 0.8rem;
}

/* Property Footer */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(15,23,42,0.04);
}

.property-price-label {
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.6px;
}

/* Property Price */
.property-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
}
.property-price-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Details Button */
.property-view-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0b5b49 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.property-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}

.property-view-btn:hover::before {
    left: 100%;
}

.property-view-btn:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, #b8941f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.18);
    color: white;
    text-decoration: none;
}

/* Quick Actions */
.property-quick-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.property-card:hover .property-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(6, 78, 59, 0.2);
    color: #064E3B;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    background: #064E3B;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Property Card Variants */
.property-card.featured {
    border: 2px solid #D4AF37;
    position: relative;
}

.property-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: -1px;
    left: 20px;
    background: #D4AF37;
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 4;
}

/* Loading State */
.property-card.loading {
    pointer-events: none;
}

.property-card.loading .property-image {
    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;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-card {
        margin-bottom: 20px;
    }
    
    .property-image-container {
        height: 200px;
    }
    
    .property-card-body {
        padding: 16px;
        height: calc(100% - 200px);
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .property-view-btn {
        width: 100%;
        text-align: center;
    }
    
    .property-quick-actions {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .property-features {
        display: none;
    }
    
    .property-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* Property Grid Enhancements */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Property Card Hover Effects */
.property-card-3d {
    perspective: 1000px;
}

.property-card-3d .property-card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.property-card-3d:hover .property-card {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Swiper Slider Enhancements for Homepage */
.featured-properties-swiper .swiper-slide {
    height: auto;
}

.featured-properties-swiper .swiper-button-next,
.featured-properties-swiper .swiper-button-prev {
    background: rgba(6, 78, 59, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.featured-properties-swiper .swiper-button-next:hover,
.featured-properties-swiper .swiper-button-prev:hover {
    background: #D4AF37;
    transform: scale(1.1);
}

.featured-properties-swiper .swiper-pagination-bullet {
    background: #064E3B;
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.featured-properties-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #D4AF37;
}

/* Property Card Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Property Card Skeleton Loading */
.property-card-skeleton {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
}

.property-card-skeleton .skeleton-image {
    height: 240px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.property-card-skeleton .skeleton-content {
    padding: 20px;
}

.property-card-skeleton .skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.property-card-skeleton .skeleton-line.short {
    width: 60%;
}

.property-card-skeleton .skeleton-line.medium {
    width: 80%;
}