/**
 * Sold Properties Styling
 * Matches the design at https://thebrandrealestategroup.com/sold-properties/
 */

/* ===== GENERAL STYLING ===== */
.sold-properties-archive-page,
.single-sold-property-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== PAGE HEADER ===== */
.sold-properties-archive-page .page-header {
    background-color: #232323;
    color: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
}

.sold-properties-archive-page .page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #ffffff;
}

.sold-properties-archive-page .page-description {
    font-size: 18px;
    color: #cccccc;
    margin: 0;
}

/* ===== FILTERS ===== */
.sold-properties-filters {
    background: #f8f8f8;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-filters-form .filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.property-filters-form .filter-item {
    flex: 1;
    min-width: 150px;
}

.property-filters-form .filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.property-filters-form input[type="text"],
.property-filters-form input[type="number"],
.property-filters-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.property-filters-form input:focus,
.property-filters-form select:focus {
    outline: none;
    border-color: #232323;
}

.filter-btn {
    background-color: #232323;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #000000;
}

.reset-filters-btn {
    display: inline-block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.reset-filters-btn:hover {
    background-color: #f0f0f0;
    color: #232323;
}

/* ===== RESULTS HEADER ===== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #232323;
}

.results-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

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

/* ===== PROPERTY GRID ===== */
.sold-properties-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.sold-properties-grid.columns-1 {
    grid-template-columns: 1fr;
}

.sold-properties-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sold-properties-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sold-properties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== PROPERTY CARD ===== */
.sold-property-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.property-card-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.property-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sold-property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.sold-badge {
    position: absolute;
    top: -25px;
    right: -60px;
    padding: 50px 50px 10px 50px;
    margin: 0;
    background-color: #dc3545;
    color: #ffffff;
    z-index: 2;
    transform: rotate(45deg);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.property-card-content {
    padding: 25px;
}

.property-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 10px;
    font-family: 'Nexa';
}

.property-card-address {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.property-card-mls {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.property-card-details {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.property-card-details .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.property-card-details .detail-item i {
    color: #232323;
    font-size: 16px;
}

/* ===== NO RESULTS ===== */
.no-properties-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.no-properties-found p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ===== PAGINATION ===== */
.sold-properties-pagination {
    margin: 40px 0 40px 0;
    text-align: center;
}

.sold-properties-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sold-properties-pagination li {
    margin: 0;
}

.sold-properties-pagination a,
.sold-properties-pagination span {
    display: block;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sold-properties-pagination a:hover {
    background-color: #232323;
    color: #ffffff;
    border-color: #232323;
}

.sold-properties-pagination .current {
    background-color: #232323;
    color: #ffffff;
    border-color: #232323;
}

/* ===== SINGLE PROPERTY PAGE ===== */
.property-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.property-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sold-badge-large {
    position: absolute;
    top: -15px;
    right: -70px;
    left: auto;
    /* Ribbon-style sizing like the original */
    padding: 60px 70px 15px 70px;
    background-color: #dc3545;
    color: #ffffff;
    z-index: 2;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 24px;   
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}


.property-content-wrapper {
    padding: 60px 0;
}

.property-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #232323;
}

.property-title {
    font-size: 36px;
    font-weight: 700;
    color: #232323;
    margin: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.property-price-large {
    font-size: 42px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.property-mls {
    font-size: 16px;
    color: #666;
}

.property-quick-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 32px;
    color: #232323;
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-description,
.property-details-section,
.property-gallery-section {
    margin-bottom: 40px;
}

.property-description h2,
.property-details-section h2,
.property-gallery-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.property-details-table {
    width: 100%;
    border-collapse: collapse;
}

.property-details-table th,
.property-details-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.property-details-table th {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.property-details-table td {
    color: #666;
}

.property-details-table tr:last-child th,
.property-details-table tr:last-child td {
    border-bottom: none;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* ===== SIDEBAR ===== */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #232323;
    margin: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
}

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

.property-contact-form input,
.property-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.property-contact-form input:focus,
.property-contact-form textarea:focus {
    outline: none;
    border-color: #232323;
}

.property-contact-form button,
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #232323;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
}

.property-contact-form button:hover,
.btn:hover {
    background-color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: #232323;
    border: 2px solid #232323;
}

.btn-outline:hover {
    background-color: #232323;
    color: #ffffff;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn.facebook {
    background-color: #3b5998;
    color: #ffffff;
}

.social-btn.twitter {
    background-color: #1da1f2;
    color: #ffffff;
}

.social-btn.email {
    background-color: #666;
    color: #ffffff;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== RELATED PROPERTIES ===== */
.related-properties-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.related-properties-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sold-properties-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sold-properties-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-quick-stats {
        gap: 20px;
    }

    .property-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .property-filters-form .filters-row {
        flex-direction: column;
    }

    .property-filters-form .filter-item {
        width: 100%;
    }

    .sold-properties-grid.columns-2,
    .sold-properties-grid.columns-3,
    .sold-properties-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .property-quick-stats {
        flex-direction: column;
        gap: 20px;
    }

    .sold-properties-archive-page .page-title {
        font-size: 32px;
    }

    .property-title {
        font-size: 28px;
    }

    .property-price-large {
        font-size: 32px;
    }

    .property-hero {
        height: 300px;
    }

    .sold-badge-large {
        top: 20px;
        left: 20px;
        padding: 10px 25px;
        font-size: 18px;
    }

    .property-card-details {
        flex-wrap: wrap;
    }
}
