/**
 * Properties CSS - MonctonInvest
 * Navy/Gold branded styling for commercial real estate property pages
 */

/* Brand Colors */
:root {
    --navy: #0E2138;
    --gold: #C4A484;
    --navy-light: #1a3a5a;
    --navy-dark: #0a1522;
    --gold-light: #d4b494;
    --gold-dark: #b49464;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --text-dark: #333333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--gray-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-medium);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray-dark);
}

.breadcrumb-current {
    color: var(--gray-dark);
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 40px 0 30px;
    text-align: center;
}

.page-header h1 {
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Properties Layout */
.properties-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0 60px;
}

@media (max-width: 968px) {
    .properties-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        order: 2;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-sidebar h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(196, 164, 132, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.price-separator {
    color: var(--gray-dark);
}

.price-range-info {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-top: 5px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-button,
.filter-button-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.filter-button {
    background: var(--navy);
    color: var(--white);
}

.filter-button:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(14, 33, 56, 0.3);
}

.filter-button-secondary {
    background: var(--gray-light);
    color: var(--navy);
    border: 1px solid var(--gray-medium);
}

.filter-button-secondary:hover {
    background: var(--gray-medium);
}

.filter-results-count {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-medium);
    text-align: center;
    color: var(--navy);
}

.filter-results-count strong {
    color: var(--gold);
    font-size: 1.2rem;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-medium);
}

.view-toggle {
    background: var(--white);
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.view-toggle:hover,
.view-toggle.active {
    background: var(--navy);
    color: var(--white);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.properties-grid.list-view {
    grid-template-columns: 1fr;
}

.properties-grid.list-view .property-card {
    display: flex;
    flex-direction: row;
}

.properties-grid.list-view .property-card-image {
    width: 300px;
    min-width: 300px;
    height: 200px;
}

.properties-grid.list-view .property-card-content {
    flex: 1;
    padding: 20px;
}

/* Property Card */
.property-card {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(14, 33, 56, 0.1);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(14, 33, 56, 0.2);
    border-color: var(--gold);
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--gray-light);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    background: var(--gray-light);
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.investor {
    background: var(--navy);
}

.property-card-content {
    padding: 20px;
}

.property-card-price {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.property-card-title {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.property-card-location {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.property-card-type {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.property-card-feature {
    color: var(--gray-dark);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* No Properties */
.no-properties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-light);
    border: 2px dashed var(--gray-medium);
    border-radius: 4px;
}

.no-properties p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

/* Property Detail Page */
.property-detail-page {
    padding: 30px 0 60px;
}

.property-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--gold);
}

.property-title {
    color: var(--navy);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-price {
    color: var(--gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.property-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.property-type {
    font-weight: 600;
    color: var(--navy);
}

/* Property Photos */
.property-photos {
    margin-bottom: 40px;
}

.property-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 2px solid var(--navy);
    border-radius: 4px;
    margin-bottom: 20px;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.property-gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.property-gallery-thumb:hover {
    border-color: var(--gold);
}

.property-no-photo {
    background: var(--gray-light);
    border: 2px dashed var(--gray-medium);
    border-radius: 4px;
    padding: 60px;
    text-align: center;
    color: var(--gray-dark);
}

/* Property Content Grid */
.property-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Facts Table */
.property-facts {
    margin-bottom: 40px;
}

.property-facts h2 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.facts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 4px;
    overflow: hidden;
}

.facts-table tbody tr {
    border-bottom: 1px solid var(--gray-medium);
}

.facts-table tbody tr:last-child {
    border-bottom: none;
}

.fact-label {
    padding: 15px 20px;
    background: var(--gray-light);
    color: var(--navy);
    font-weight: 600;
    width: 40%;
    border-right: 1px solid var(--gray-medium);
}

.fact-value {
    padding: 15px 20px;
    color: var(--text-dark);
}

/* Property Description */
.property-description {
    margin-bottom: 40px;
}

.property-description h2 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.description-content {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Property Sidebar */
.property-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.property-location {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
}

.property-location h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.property-address p {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s;
}

.map-link:hover {
    color: var(--gold);
}

.property-map-embed {
    width: 100%;
    border-radius: 4px;
}

/* Property CTA */
.property-cta {
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
}

.property-cta h2 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.property-cta p {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cta-button-large,
.cta-button-secondary {
    display: block;
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.cta-button-large {
    background: var(--gold);
    color: var(--white);
}

.cta-button-large:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 164, 132, 0.3);
}

.cta-button-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

/* Map View */
.properties-map-view {
    margin-top: 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 33, 56, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid var(--gold);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    padding: 0 20px;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    background: rgba(14, 33, 56, 0.8);
    padding: 10px 20px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-hero-image {
        height: 300px;
    }
    
    .property-title {
        font-size: 1.6rem;
    }
    
    .property-price {
        font-size: 2rem;
    }
    
    .filters-sidebar {
        position: static;
    }
}

