/* _CSS-fp-profile-realestate-2.css */

:root {
    --primary-accent: #C66B3D;     /* Desert Clay */
    --secondary-accent: #F4A259;   /* Sonoran Sunset Orange */
    --background-light: #FFF7ED;   /* Creamy Sandstone */
    --highlight: #88A096;          /* Sagebrush Green */
    --menu-bg: #FBEBDD;            /* Soft sandstone clay */
    --photo-bg: #EAD2C6;           /* Warm neutral behind images */
    --text-main: #2E1B0E;          /* Western Coffee */
    --link-hover: #5F7161;         /* Muted cactus */
    --bs-heading-color: var(--primary-accent);
}

/* Master Wrapper inside your <td> */
.master-wrapper {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-main);
    font-family: Arial, sans-serif;
}

/* Left Side (Main Content - approx 73%) */
.main-profile-content {
    width: 73%;
}

/* Right Side (Sidebar Contact Form - 25%) */
.sidebar-form-container {
    width: 25%;
    background-color: var(--menu-bg);
    border: 1px solid var(--photo-bg);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

/* Section Global Typography */
.master-wrapper h1 { color: var(--bs-heading-color); margin: 0 0 5px 0; font-size: 2.2rem; }
.master-wrapper h2 { color: var(--secondary-accent); margin: 0 0 10px 0; font-size: 1.5rem; }
.master-wrapper h3 { color: var(--primary-accent); margin: 0 0 10px 0; font-size: 1.2rem; }
.master-wrapper p { margin: 0 0 10px 0; line-height: 1.5; }
.blank-line { height: 15px; }

/* Section 1: Top Split Row */
.section-1 {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--photo-bg);
    box-sizing: border-box;
}
.sec1-left { width: 60%; }
.sec1-right { width: 35%; text-align: right; }
.realtor-photo {
    width: 100%;
    max-width: 220px;
    height: auto;
    background-color: var(--photo-bg);
    border-radius: 6px;
    padding: 5px;
}
.contact-link {
    color: var(--primary-accent);
    text-decoration: none;
}
.contact-link:hover { color: var(--link-hover); }
.social-icons { margin-top: 5px; }
.social-icons a {
    color: var(--primary-accent);
    font-size: 1.3rem;
    margin-right: 12px;
    text-decoration: none;
}
.social-icons a:hover { color: var(--link-hover); }

/* Section 2: 3-Column Stats Grid */
.section-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.sec2-box {
    background: #ffffff;
    border: 1px solid var(--photo-bg);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}
.sec2-box strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
}

/* Section 3 Grid Splits */
.split-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.grid-box {
    background: #ffffff;
    border: 1px solid var(--photo-bg);
    border-radius: 6px;
    padding: 20px;
}

/* Full Width Container Structure (Sections 4 & 5) */
.section-full-width {
    background: #ffffff;
    border: 1px solid var(--photo-bg);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Section 6: Sold Gallery */
.section-6-gallery {
    background: #ffffff;
    border: 1px solid var(--photo-bg);
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.gallery-item {
    background-color: var(--photo-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.gallery-label {
    background: rgba(46, 27, 14, 0.85);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    padding: 6px;
    font-weight: bold;
}

/* Sidebar Contact Form Elements */
.sidebar-form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-accent);
    padding-bottom: 5px;
}
.form-group { margin-bottom: 12px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--photo-bg);
    border-radius: 4px;
    box-sizing: border-box;
}
.submit-btn {
    width: 100%;
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.submit-btn:hover { background-color: var(--link-hover); }

/* Responsive Rules */
@media (max-width: 768px) {
    .master-wrapper { flex-direction: column; }
    .main-profile-content, .sidebar-form-container { width: 100%; }
    .sidebar-form-container { margin-top: 20px; position: static; }
    .section-1 { flex-direction: column-reverse; }
    .sec1-left, .sec1-right { width: 100%; text-align: left; }
    .sec1-right { margin-bottom: 15px; }
    .section-2, .split-grid-row, .gallery-grid { grid-template-columns: 1fr; }
}