/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    padding: 0px;
    /* Remove flex/center from body, center only product-container */
}

/* Main Container - Ensures the entire design looks like a card */
.product-container {
    display: flex;
    max-width: 1100px; /* Overall width control */
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #ddd;
    margin: 40px auto 0 auto;
}

/* --- LEFT SIDE: Main Content --- */
.main-content {
    flex-grow: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    border-right: 1px solid #eee; /* Subtle separator line */
}

/* Image Gallery */
.image-gallery {
    width: 100%;
}

.main-image-placeholder {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
    max-height: 450px; 
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Thumbnails */
.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #ff9900; /* Orange border for selection */
}

/* Why Invest Section */
.why-invest-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.reason {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.reason-highlight {
    font-weight: bold;
    color: #000;
}


/* --- RIGHT SIDE: Header Details --- */
.header-details {
    width: 300px; /* Fixed width for the sidebar, matches original design */
    padding-left: 20px;
    display: flex; /* Use flex to stack elements neatly */
    flex-direction: column;
}

.project-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.location {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.price-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.rating-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.stars .fas.fa-star.filled {
    color: #ffc107;
}

.status {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Original Info Boxes (Project Size, Properties for Sale) */
.project-info-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px; /* Maintains vertical spacing */
    background-color: #f9f9f9;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-icon {
    font-size: 1.4em;
    color: #999;
    margin-right: 15px;
}

.text-content .label {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 2px;
}

.text-content .value {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.short-details-card {
    /* Existing card appearance */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    
    /* Layout properties */
    width: 100%; /* Ensures it fills the fixed-width right sidebar (300px) */
    height: auto; /* Height adjusts dynamically based on content (Implicitly done by default, but set explicitly for clarity) */
    display: grid;
    /* Two equal columns for compact layout */
    grid-template-columns: 1fr 1fr; 
    gap: 10px; /* Spacing between rows/columns */
}

/* Ensure individual rows handle content wrapping if needed */
.short-detail-row {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    /* Allows row to wrap if content is too long for the column, though typically not necessary here */
    flex-wrap: wrap; 
}

.short-icon {
    font-size: 1.1em;
    color: #b8860b;
    margin-right: 8px;
}

.short-label {
    color: #888;
    margin-right: 5px;
    /* Ensure label doesn't shrink, or use flex-shrink: 0 if needed */
    flex-shrink: 0; 
}

.short-value {
    font-weight: bold;
    color: #333;
    /* Allow value to grow and wrap if necessary, though white-space: nowrap was used previously */
    /* For dynamic height, we allow wrapping if content increases */
    white-space: normal; 
}

/* Request Call Button (Placed last in the stack) */
.request-call-button {
    margin-top: auto; /* Pushes the button to the bottom if container has extra space */
    width: 100%;
    padding: 12px;
    background-color: #b8860b; /* Darker Gold/Brown */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-call-button:hover {
    background-color: #a0780a;
}

.request-call-button .fas {
    margin-right: 8px;
}