/**
 * Single Property Page Styles
 * Version: 1.5 (Final Price Style)
 */

/* 1. FONT SETUP & BASE */
.single-property-page {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7f9fc;
}
.single-property-page .site-main {
    padding-top: 0 !important;
}

/* 2. MAIN CONTENT LAYOUT */
.property-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
@media (min-width: 992px) {
    .property-content-container {
        flex-direction: row;
        align-items: flex-start;
    }
}
.property-main-content {
    flex-grow: 1;
    min-width: 0;
}
.property-sidebar {
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .property-sidebar {
        width: 320px;
        position: sticky;
        top: 100px;
    }
}

/* 3. HEADER & INTEGRATED IMAGE */
.property-header {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e7ea;
    box-shadow: 0 4px 12px rgba(20,40,60,0.07);
    overflow: hidden;
    padding: 0; 
}

.property-featured-image {
    position: relative;
    line-height: 0;
}

.property-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.header-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 12px;
}
.gallery-btn {
    background: #fff;
    border: 1px solid #e4e7ea;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(20,40,60,0.05);
    color: #222e3a;
}
.gallery-btn:hover { background-color: #f7f9fc; }

.property-header-content {
    padding: 24px; 
}

.property-title {
    font-size: 28px;
    font-weight: 700;
    color: #222e3a;
    line-height: 1.2;
    margin: 0;
}
.property-location {
    font-size: 16px;
    color: #6a7686;
    margin: 4px 0 16px;
}
.property-price {
    font-size: 32px;
    font-weight: 700;
    color: #1640d6;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Updated style for the formatted price */
.property-price .price-secondary {
    font-size: 18px;
    font-weight: 500;
    color: #6a7686; /* Your requested color */
    margin-left: 8px; /* A little space after the hyphen */
}

.key-facts {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #e4e7ea;
}
.key-facts div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.key-facts strong {
    font-size: 20px;
    font-weight: 600;
    color: #222e3a;
}
.key-facts span {
    font-size: 14px;
    color: #6a7686;
}

/* 4. OTHER SECTIONS */
.property-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e4e7ea;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(20,40,60,0.07);
}
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222e3a;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e7ea;
}
.property-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #6a7686;
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.fact-item {
    display: flex;
    flex-direction: column;
}
.fact-item span {
    font-size: 14px;
    color: #8b98a9;
    margin-bottom: 4px;
}
.fact-item strong {
    font-size: 16px;
    font-weight: 600;
    color: #222e3a;
}

/* 5. SIDEBAR STYLING */
.contact-agent-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e4e7ea;
    box-shadow: 0 4px 12px rgba(20,40,60,0.07);
    text-align: center;
}
.contact-agent-card h3 {
    margin-top: 0;
    color: #222e3a;
}
.contact-agent-card p {
    color: #6a7686;
    font-size: 14px;
}
.cta-button {
    background: #1640d6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}
.cta-button:hover {
    background-color: #1877f2;
}

/* 6. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .property-header-content { padding: 16px; }
    .property-section { padding: 16px; }
    .property-title { font-size: 24px; }
    .property-price { font-size: 28px; }
}
