/* Property Single Page Styles */
:root {
    --primary-color: #E31B23;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

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

.property-container {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Property Header Section */
.property-header-section {
    margin-bottom: 30px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    position: relative;
}

.property-type {
    display: inline-block;
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    max-width: 760px;
}

.property-title {
    max-width: 70%;
}

.property-title h1 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.property-address {
    font-size: 16px;
    color: #666;
}

.property-actions {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 20px;
    top: 50px;
}

.action-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.action-button:hover {
    background-color: var(--light-gray);
}

.action-button i {
    font-size: 16px;
}

/* Add responsive adjustments for the header */
@media (max-width: 1200px) {
    .property-header-section {
        max-width: 100%;
    }
    
    .property-header {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        gap: 20px;
    }

    .property-actions {
        position: static;
        width: 100%;
        justify-content: flex-end;
        margin-top: 20px;
    }

    .property-title {
        max-width: 100%;
    }

    .property-title h1 {
        font-size: 24px;
    }
}

/* Property Summary */
.property-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-item i {
    font-size: 20px;
    color: var(--primary-color);
}

/* Tabs Navigation */
.property-tabs {
    margin-top: 30px;
}

.tabs-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Agent Card */
.agent-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 30px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.agent-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Property Layout */
.property-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 350px;
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1140px;
}

.property-main-column {
    min-width: 0; /* Fix for text overflow in grid */
}

/* Main Content */
.property-main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 102, 168, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

/* Broker Card Styles */
.property-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.broker-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 102, 168, 0.08);
    padding: 20px;
}

.broker-info {
    text-align: center;
    margin-bottom: 20px;
}

.broker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.broker-name {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.broker-title {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.broker-designation {
    font-size: 14px;
    color: #666;
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
}

.contact-form h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #c31017;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        gap: 20px;
    }

    .property-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .property-main-content,
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }

    .property-sidebar {
        max-width: 500px;
        margin: 0 auto;
    }

    .additional-content-sidebar {
        display: none;
    }
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 102, 168, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-color);
}

.content-section .section-content {
    margin-top: 20px;
}

/* Map Section */
.map-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.property-map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 102, 168, 0.05);
    position: relative;
    z-index: 1; /* Keep map at a lower z-index */
}

/* Leaflet specific z-index adjustments */
.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 2 !important;
}

.leaflet-control {
    z-index: 3 !important;
}

.leaflet-popup {
    z-index: 4 !important;
}

/* Grayscale Map Style */
.map-tiles-grayscale {
    filter: grayscale(1) !important;
    -webkit-filter: grayscale(1) !important;
}

/* Custom Marker */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-color);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: white;
    position: absolute;
    border-radius: 50%;
}

/* Custom Popup */
.custom-popup-wrapper {
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 102, 168, 0.15) !important;
    z-index: 5 !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0, 102, 168, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 250px !important;
}

.custom-popup {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content {
    padding: 12px;
    background: white;
}

.popup-content strong {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.status-sold {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-top: 4px;
}

.popup-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    font-size: 14px;
    color: #666;
}

.leaflet-popup-tip-container {
    display: none !important;
}

/* Map Controls */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 102, 168, 0.1) !important;
}

.leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    background: white !important;
}

.leaflet-control-zoom a:hover {
    background: #f5f5f5 !important;
}

@media (max-width: 768px) {
    .property-main-column {
        padding: 20px;
    }
    
    .property-map {
        height: 300px;
    }
}

/* Calculator Section */
#mw-calculators {
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 20px;
    }
}

/* Collapsible Sections */
.collapsible-section {
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    margin: -15px -15px 0;
    border-radius: 8px;
    user-select: none;
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background-color: rgba(0, 102, 168, 0.05);
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.toggle-icon {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-top: 20px;
}

.section-header:hover .toggle-icon {
    color: var(--primary-color);
}

/* Summary Section */
.summary-section {
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.summary-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.summary-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.summary-value {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.4;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .summary-item {
        font-size: 14px;
    }

    .summary-item i {
        font-size: 18px;
    }
}

/* Add responsive layout */
@media (max-width: 1200px) {
    .property-content-grid {
        grid-template-columns: 1fr 350px;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .property-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-sidebar {
        position: static;
    }
} 