/* ============================================
   MODERN PROPERTY VIEW DESIGN
   ============================================ */

/* Reset & Base */
.property-view-modern {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.property-view-modern * {
    box-sizing: border-box;
}

.property-view-modern .container {
    max-width: 1600px !important;
    width: 95% !important;
}

/* Hero Section Layout */
.property-hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

/* Image Gallery */
.property-image-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.property-main-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.property-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.property-thumbnail {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.property-thumbnail:hover,
.property-thumbnail.active {
    border-color: #0129BC;
    transform: scale(1.05);
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Info Card */
.property-info-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.property-title-section {
    margin-bottom: 20px;
}

.property-title-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
}

.property-location i {
    color: #0129BC;
    font-size: 16px;
}

/* Property Badges */
.property-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.property-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.property-badge.apartment {
    background: #e3f2fd;
    color: #1976d2;
}

.property-badge.price-type {
    background: #fff3e0;
    color: #f57c00;
}

.possession-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.possession-badge .rera-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Price Section */
.property-price-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.property-price-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.property-price-note {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Quick Stats Grid */
.property-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.quick-stat-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.quick-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Construction Progress */
.construction-progress {
    margin-bottom: 20px;
}

.construction-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.construction-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.construction-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Action Buttons */
.property-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.btn-property-action {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-contact-seller {
    background: #0129BC;
    color: white;
}

.btn-contact-seller:hover {
    background: #011F8C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1,41,188,0.3);
}

.btn-chat {
    background: white;
    color: #25d366;
    border: 2px solid #25d366;
}

.btn-chat:hover {
    background: #25d366;
    color: white;
    transform: translateY(-1px);
}

/* Content Sections */
.property-content-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #0129BC;
    display: inline-block;
}

/* Description */
.property-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.amenity-item:hover {
    border-color: #0129BC;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.amenity-item i {
    font-size: 28px;
    color: #0129BC;
    margin-bottom: 10px;
}

.amenity-item span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Property Overview Cards */
.property-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.overview-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.overview-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.overview-card-icon {
    width: 48px;
    height: 48px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.overview-card-icon i {
    font-size: 24px;
    color: #0129BC;
}

.overview-card-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.overview-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.overview-card-note {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Property Details Table */
.property-details-table {
    margin-top: 24px;
}

.property-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.property-details-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.property-details-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    width: 40%;
    background: #fafafa;
}

.property-details-table td {
    padding: 16px;
    color: #333;
    font-size: 14px;
}

.property-details-table .table-section-header th {
    background: #0129BC;
    color: white;
    font-size: 16px;
    padding: 14px 16px;
}

.property-details-table .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.property-details-table .badge-success {
    background: #d4edda;
    color: #155724;
}

.property-details-table .badge-warning {
    background: #fff3cd;
    color: #856404;
}

.property-details-table .badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Map Section */
.property-map-section {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    min-height: 500px;
}

.property-map-section iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Map Overlay Styles */
.map-location-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 280px;
    transition: all 0.3s ease;
}

.map-location-overlay:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.map-view-larger-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0129BC;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.map-view-larger-link:hover {
    background: #0129BC;
    color: white;
    transform: translateX(4px);
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0129BC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.map-directions-btn:hover {
    background: #011F8C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1,41,188,0.3);
}

/* Similar Properties */
.similar-properties-slider {
    margin-top: 24px;
}

.similar-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    max-width: 320px;
    margin: 0 auto;
}

.similar-property-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.similar-property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-property-content {
    padding: 16px;
}

.similar-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #0129BC;
    margin-bottom: 8px;
}

.similar-property-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.similar-property-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.similar-property-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-hero-section {
        grid-template-columns: 1fr;
    }
    
    .property-info-card {
        position: static;
    }
    
    .map-location-overlay {
        position: static;
        margin-bottom: 16px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .property-main-image {
        height: 400px;
    }
    
    .property-image-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .property-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-actions {
        grid-template-columns: 1fr;
    }
    
    .property-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .property-content-section {
        padding: 20px;
    }
    
    .map-location-overlay {
        position: static;
        margin-bottom: 12px;
    }
    
    .property-map-section {
        min-height: 350px;
    }
    
    .property-map-section iframe {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .property-main-image {
        height: 300px;
    }
    
    .property-info-card {
        padding: 20px;
    }
    
    .property-title-section h1 {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .property-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Utility Classes */
.text-primary { color: #0129BC; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-danger { color: #dc3545; }
.text-muted { color: #6c757d; }

.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: white; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
