/**
 * RealSearch Property Listing Styles
 * All class names are prefixed with 'realsearch-property-' to avoid conflicts
 */

/* Main Wrapper */
.realsearch-property-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Not Found Message */
.realsearch-property-not-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.realsearch-property-not-found p {
    font-size: 18px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.realsearch-property-not-found code {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #e55a2b;
    border: 1px solid #e0e0e0;
}

.realsearch-property-not-found strong {
    color: #333333;
    font-weight: 600;
}

/* Container */
.realsearch-property-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Responsive Columns */
.realsearch-property-container.realsearch-property-columns-1 {
    grid-template-columns: 1fr;
}

.realsearch-property-container.realsearch-property-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.realsearch-property-container.realsearch-property-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.realsearch-property-container.realsearch-property-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Property Card */
.realsearch-property-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.realsearch-property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper */
.realsearch-property-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.realsearch-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.realsearch-property-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.realsearch-property-placeholder-text {
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

/* Price Badge */
.realsearch-property-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.realsearch-property-button-text {
    color: #fff;
}

.realsearch-property-price {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

/* Content Section */
.realsearch-property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* Address */
.realsearch-property-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.realsearch-property-address-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    flex: 1;
}

/* Features */
.realsearch-property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 5px 0;
}

.realsearch-property-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.realsearch-property-feature-text {
    font-size: 13px;
    color: #666666;
}

/* Icons */
.realsearch-property-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.realsearch-property-icon-location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    margin-top: 2px;
}

.realsearch-property-icon-bed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 14c1.66 0 3-1.34 3-3S8.66 8 7 8s-3 1.34-3 3 1.34 3 3 3zm12-7h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E");
}

.realsearch-property-icon-dimension {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm13-2h-4v2h4v-2zm0 4h-4v2h4v-2zm-4-6h4v2h-4v-2z'/%3E%3C/svg%3E");
}

.realsearch-property-icon-area {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M3 3v18h18V3H3zm16 16H5V5h14v14z'/%3E%3C/svg%3E");
}

/* Button */
.realsearch-property-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff6b35;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.realsearch-property-button:hover {
    background: #e55a2b;
    color: #ffffff;
    text-decoration: none;
}

.realsearch-property-button:active {
    background: #d44f22;
}

.realsearch-property-button-text {
    flex: 1;
}

.realsearch-property-button-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 7h10v3l4-4-4-4v3H5v2h2zm10 10H7v-3l-4 4 4 4v-3h12v-2h-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .realsearch-property-container.realsearch-property-columns-3,
    .realsearch-property-container.realsearch-property-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .realsearch-property-wrapper {
        padding: 15px;
    }
    
    .realsearch-property-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .realsearch-property-container.realsearch-property-columns-2,
    .realsearch-property-container.realsearch-property-columns-3,
    .realsearch-property-container.realsearch-property-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .realsearch-property-image-wrapper {
        height: 240px;
    }
    
    .realsearch-property-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .realsearch-property-wrapper {
        padding: 10px;
    }
    
    .realsearch-property-image-wrapper {
        height: 220px;
    }
    
    .realsearch-property-price-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .realsearch-property-price {
        font-size: 14px;
    }
    
    .realsearch-property-features {
        gap: 10px;
    }
    
    .realsearch-property-button {
        padding: 12px 18px;
        font-size: 13px;
        letter-spacing: 0.6px;
    }
}

