/* 
 * Consolidated CSS File
 * Combines all styles from various CSS files into one
 * Last updated: April 6, 2025
 */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Poppins:400,600,700&display=swap");

/* Base Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Property Section Styles */
.property-section {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-section h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.property-address {
    font-size: 1.1em;
    color: #444;
    line-height: 1.4;
    margin-bottom: 10px;
}

.property-county {
    font-size: 1em;
    color: #666;
    font-style: italic;
}

/* Flex Row for Property Section and Sibling Listings */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.flex-row .property-section {
    flex: 2;
    min-width: 300px;
    margin-bottom: 0;
}

.sibling-listings-container {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sibling-listings {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.sibling-listings th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.sibling-listings a {
    color: var(--primary-color);
    text-decoration: none;
}

.sibling-listings a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for flex row */
@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
    }
    
    .flex-row .property-section,
    .sibling-listings-container {
        width: 100%;
    }
}

/* Map Styles */
.map-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    position: relative;
}

.map-hamburger {
    display: none;
}

.map-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-controls button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    width: 100%;
}

.map-controls button:hover {
    background: var(--primary-color);
    color: #fff;
}

.map-controls button.active {
    background: var(--primary-color);
    color: #fff;
}

#propertyMap {
    flex-grow: 1;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }
    
    .map-hamburger {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .map-controls {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .map-controls.show {
        display: flex;
    }
    
    #propertyMap {
        height: 350px;
    }
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    
    .property-section {
        padding: 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
} 