/* SCP Client Plugin Styles */

.scp-property-search {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Form Styles */
.scp-search-form {
    margin-bottom: 20px;
}

.scp-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-container {
    position: relative;
    flex: 1;
}

#scp-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.scp-search button {
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.scp-search button:hover {
    background: #005a87;
}

/* Filter Styles */
.scp-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form select,
.filter-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-form button {
    padding: 8px 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form button:hover {
    background: #555;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scp-featured-listings .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Listing Card */
.listing-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.listing-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

.listing-info {
    padding: 15px;
}

.listing-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.listing-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.listing-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.listing-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-details {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.view-details:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Property Details Page */
.scp-property-details {
    max-width: 1000px;
    margin: 0 auto;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.property-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.property-price {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
}

.property-images {
    margin-bottom: 30px;
}

.property-images img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.property-info {
    display: grid;
    gap: 30px;
}

.property-stats {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.property-details {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.property-details p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-info {
    background: #0073aa;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    margin: 0 0 10px 0;
    color: white;
}

.contact-button {
    padding: 12px 24px;
    background: white;
    color: #0073aa;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.contact-button:hover {
    background: #f0f0f0;
}

/* Results Header */
.results-header {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

.results-header p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .scp-featured-listings .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .scp-search {
        flex-direction: column;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select,
    .filter-form input,
    .filter-form button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .property-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .listing-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .scp-property-search,
    .scp-property-details {
        padding: 0 15px;
    }
    
    .property-header h1 {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .listing-info h3 {
        font-size: 14px;
    }
    
    .listing-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

