/**
 * Properties Manager Frontend Styles
 * Brand Colors: #C2B5A3 (Light Beige) & #000000 (Black)
 */

/* ==== MAIN CONTAINER ==== */
.properties-listings-container {
    margin: 2rem 0;
    padding: 0;
}

.properties-grid {
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Grid Columns */
.properties-columns-1 .properties-grid { grid-template-columns: 1fr; }
.properties-columns-2 .properties-grid { grid-template-columns: repeat(2, 1fr); }
.properties-columns-3 .properties-grid { grid-template-columns: repeat(3, 1fr); }
.properties-columns-4 .properties-grid { grid-template-columns: repeat(4, 1fr); }

/* ==== PROPERTY CARD ==== */
.property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(194, 181, 163, 0.2);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #C2B5A3;
}

.property-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==== PROPERTY IMAGE ==== */
.property-image {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, #C2B5A3, #d4c7b5);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

/* Property Type Badge */
.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000000;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==== PROPERTY CONTENT ==== */
.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Location */
.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #666666;
    font-size: 0.9rem;
}

.property-location i {
    color: #C2B5A3;
    font-size: 0.8rem;
}

/* Title */
.property-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.property-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #C2B5A3;
}

/* Excerpt */
.property-excerpt {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ==== PROPERTY DETAILS ==== */
.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(194, 181, 163, 0.08);
    border-radius: 12px;
}

.property-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333333;
    font-weight: 500;
}

.property-detail-item i {
    color: #C2B5A3;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* ==== FACILITIES ==== */
.property-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(194, 181, 163, 0.12);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #333333;
    border: 1px solid rgba(194, 181, 163, 0.2);
}

.facility-item i {
    color: #C2B5A3;
    font-size: 0.8rem;
}

.facility-item.more-facilities {
    background: #C2B5A3;
    color: #ffffff;
    font-weight: 600;
}

/* ==== PROPERTY FOOTER ==== */
.property-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(194, 181, 163, 0.2);
}

/* Price */
.property-price {
    flex: 1;
}

.property-price .price-label {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-price .price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}

.property-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: #C2B5A3;
}

/* Button */
.property-button {
    flex-shrink: 0;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.btn-view-details:hover {
    background: #C2B5A3;
    border-color: #C2B5A3;
    color: #ffffff;
    transform: translateX(2px);
}

.btn-view-details i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(3px);
}

/* ==== NO RESULTS ==== */
.properties-no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(194, 181, 163, 0.08);
    border-radius: 16px;
    border: 2px dashed rgba(194, 181, 163, 0.3);
}

.properties-no-results p {
    margin: 0;
    font-size: 1.1rem;
    color: #666666;
}

/* ==== RESPONSIVE DESIGN ==== */

/* Tablet */
@media (max-width: 992px) {
    .properties-columns-4 .properties-grid { grid-template-columns: repeat(3, 1fr); }
    .properties-columns-3 .properties-grid { grid-template-columns: repeat(2, 1fr); }
    
    .property-image {
        height: 220px;
    }
    
    .property-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .property-button {
        width: 100%;
    }
    
    .btn-view-details {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .properties-columns-4 .properties-grid,
    .properties-columns-3 .properties-grid,
    .properties-columns-2 .properties-grid { 
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        gap: 1.5rem;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 1.25rem;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .property-detail-item {
        justify-content: flex-start;
    }
    
    .property-facilities {
        gap: 0.5rem;
    }
    
    .facility-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .property-price .price-amount {
        font-size: 1.3rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .properties-listings-container {
        margin: 1rem 0;
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-content {
        padding: 1rem;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ==== ADDITIONAL ENHANCEMENTS ==== */

/* Loading Animation */
.property-card.loading {
    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; }
}

/* Focus States for Accessibility */
.property-title a:focus,
.btn-view-details:focus {
    outline: 2px solid #C2B5A3;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-view-details {
        display: none;
    }
} 