/*
Theme Name: 580 Property Sales
Theme URI: https://580rentals.com
Author: Michael Scroggins
Author URI: https://580rentals.com
Description: Simple, clean theme for displaying property listings from the 580 portfolio
Version: 1.0
License: GPL v2 or later
Text Domain: property-sales-580
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #007cba;
}

/* Property Filters */
.property-filters {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
}

.btn-filter {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: auto;
}

.btn-filter:hover {
    background: #005a8b;
}

.btn-reset {
    padding: 10px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: auto;
}

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

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.status-available {
    background: #28a745;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-sold {
    background: #dc3545;
    color: white;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.property-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
}

.property-details {
    padding: 20px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.property-address {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.property-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-category {
    display: inline-block;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
    margin-top: 10px;
}

.property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Single Property Page */
.single-property {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.property-carousel {
    position: relative;
    background: #f0f0f0;
    min-height: 400px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.carousel-btn {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.property-main {
    order: 1;
}

.property-sidebar {
    order: 2;
}

.property-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.property-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.property-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.property-description {
    margin: 30px 0;
    line-height: 1.8;
    color: #444;
}

.property-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.property-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.property-description li {
    margin-bottom: 8px;
}

/* Contact Box */
.contact-box {
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

.contact-box h3 {
    margin-bottom: 20px;
    color: #333;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 20px;
}

.contact-name {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.btn-contact {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-contact:hover {
    background: #005a8b;
}

/* Map */
.property-map {
    margin-top: 30px;
    height: 400px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-contact {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-content {
        grid-template-columns: 1fr;
    }

    .property-sidebar {
        order: -1;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results h2 {
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    color: #666;
}