/* MLS Pro Public Styles - RealtyPress Clone */

:root {
    --mls-gold: #c5b358;
    --mls-dark-gold: #b09f48;
    --mls-grey: #f4f4f4;
    --mls-text: #333;
    --mls-dark-grey: #222;
    --mls-white: #ffffff;
    --primary-font: 'Open Sans', sans-serif;
    /* Fallback */
}

.mls-pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--primary-font);
    color: var(--mls-text);
}

/* --- Archive Layout --- */
.mls-pro-archive-layout {
    display: flex;
    gap: 30px;
}

.mls-pro-main-content {
    flex: 3;
}

.mls-pro-sidebar {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .mls-pro-archive-layout {
        flex-direction: column;
    }
}

.mls-pro-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* --- Grid & Cards --- */
.mls-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mls-pro-card {
    background: var(--mls-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
    border: 1px solid #eee;
}

.mls-pro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mls-pro-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mls-pro-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background: #ddd;
    overflow: hidden;
}

.mls-pro-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mls-pro-badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--mls-gold);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
}

.mls-pro-badge-price {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-weight: bold;
}

.mls-pro-card-details {
    padding: 15px;
}

.mls-pro-address {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #b09f48;
    /* Goldish for title */
}

.mls-pro-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.mls-pro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mls-feature {
    background: #e0e0e0;
    color: #555;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
}

/* --- Search Widget --- */
.mls-pro-search-widget {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.mls-pro-search-widget h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--mls-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.mls-pro-search-widget input[type="text"],
.mls-pro-search-widget input[type="number"],
.mls-pro-search-widget select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.price-inputs {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mls-pro-btn {
    background: var(--mls-gold);
    color: white;
    border: none;
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s;
}

.mls-pro-btn:hover {
    background: var(--mls-dark-gold);
}

/* --- Single Property Styles --- */
.mls-pro-single-wrapper {
    background: #fff;
}

.mls-pro-single-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.mls-pro-single-header h1 {
    margin: 0;
    color: #333;
}

.mls-pro-single-subtitle {
    color: #777;
    margin-top: 5px;
    font-size: 1.1rem;
}

.mls-pro-single-content-layout {
    display: flex;
    /* Sidebar Right */
    gap: 40px;
}

.mls-pro-single-main {
    flex: 2;
}

.mls-pro-single-sidebar {
    flex: 1;
}

.mls-pro-main-image {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.mls-pro-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mls-pro-badge-status-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--mls-gold);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.mls-pro-highlights {
    display: flex;
    gap: 20px;
    background: #f8f8f8;
    padding: 15px;
    border-left: 5px solid var(--mls-gold);
    margin-bottom: 20px;
}

.highlight-item {
    font-size: 1rem;
}

.mls-pro-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.mls-pro-description {
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

/* Tables */
.mls-pro-section {
    margin-bottom: 30px;
}

.mls-pro-section h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.mls-pro-table {
    width: 100%;
    border-collapse: collapse;
}

.mls-pro-table th,
.mls-pro-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.mls-pro-table th {
    width: 30%;
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

/* Contact Box */
.mls-pro-contact-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mls-pro-contact-form input,
.mls-pro-contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.mls-pro-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.mls-pro-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 3px;
    text-decoration: none;
    color: #333;
}

.mls-pro-pagination .page-numbers.current,
.mls-pro-pagination .page-numbers:hover {
    background: var(--mls-gold);
    color: #fff;
    border-color: var(--mls-gold);
}