/* RETS IDX Plugin Styles */

.rets-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rets-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rets-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rets-property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.property-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-details h3 a:hover {
    color: #0073aa;
}

.property-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 15px;
}

.property-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-specs span:before {
    content: "•";
    color: #0073aa;
}

.property-specs span:first-child:before {
    content: "🛏️";
}

.property-specs span:nth-child(2):before {
    content: "🚿";
}

.property-specs span:nth-child(3):before {
    content: "📐";
}

.property-address {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Search Form Styles */
.rets-search-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.search-field input,
.search-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.search-field button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-field button:hover {
    background: #005a87;
}

/* Search Results */
#rets-search-results {
    margin-top: 30px;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.search-loading:before {
    content: "⏳";
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-results:before {
    content: "🏠";
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Single Property Page */
.single-rets_property .property-gallery {
    margin-bottom: 30px;
}

.single-rets_property .property-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.single-rets_property .property-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.single-rets_property .meta-item {
    text-align: center;
}

.single-rets_property .meta-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.single-rets_property .meta-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.single-rets_property .property-description {
    line-height: 1.6;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rets-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .property-specs {
        flex-direction: column;
        gap: 8px;
    }
    
    .single-rets_property .property-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .property-details {
        padding: 15px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .single-rets_property .property-meta {
        grid-template-columns: 1fr;
    }
    
    .single-rets_property .property-main-image {
        height: 250px;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-placeholder {
    animation: pulse 1.5s infinite;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Utility classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }