/* ==========================================
   PLOTNEST PROPERTY DETAIL PAGE - ZOOPLA STYLE
   Professional Design Inspired by UK's Leading Property Portal
   ========================================== */

/* Enhanced Breadcrumb Styles */
.breadcrumb-container {
    padding: 1rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* Property Header Section */
.property-header {
    background: #ffffff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.property-title-section {
    margin-bottom: 1rem;
}

.property-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.property-address {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-address i {
    color: #6366f1;
}

/* Property Meta Info */
.property-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.property-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.price-frequency {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.property-type-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.property-stats-inline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
}

.stat-inline i {
    color: #6366f1;
    font-size: 1.125rem;
}

.stat-inline strong {
    font-weight: 700;
}

/* Image Gallery - Zoopla Style */
.zoopla-gallery {
    position: relative;
    height: 500px;
    background: #f3f4f6;
    margin-bottom: 2rem;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-btn i {
    font-size: 1rem;
}

.image-count {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 10;
}

.zoopla-gallery:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav-btn.prev {
    left: 1rem;
}

.gallery-nav-btn.next {
    right: 1rem;
}

/* Two Column Layout */
.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Main Content Area */
.property-main-content {
    min-width: 0;
}

/* Key Features Section - Zoopla Style */
.key-features {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
}

.feature-item i {
    color: #10b981;
    margin-top: 0.125rem;
    font-size: 0.875rem;
}

/* Property Description */
.property-description {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.description-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

.read-more-btn {
    color: #6366f1;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more-btn:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Property Details Grid */
.property-details-grid {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9375rem;
}

.detail-value {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

/* Map Section */
.map-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* Sidebar Styles */
.property-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

/* Agent Card */
.agent-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.agent-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.agent-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.agent-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.agent-phone i {
    color: #6366f1;
}

.contact-btn {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.contact-btn:hover {
    background: #4f46e5;
}

.contact-btn-secondary {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.contact-btn-secondary:hover {
    background: #f0f9ff;
}

/* Mortgage Calculator */
.mortgage-calculator {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.calculator-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.calculator-result {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e40af;
    margin: 0 0 0.25rem 0;
}

.calculator-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

.calculate-link {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.calculate-link:hover {
    text-decoration: underline;
}

/* Viewing Booking */
.booking-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.booking-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.time-slot {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #6366f1;
    background: #f0f9ff;
}

.time-slot input[type="radio"] {
    accent-color: #6366f1;
}

/* Share & Save Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.action-btn {
    flex: 1;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #6366f1;
    background: #f0f9ff;
    color: #6366f1;
}

/* Lightbox Modal - Zoopla Style */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    font-weight: 600;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-arrow:hover {
    background: white;
}

.lightbox-arrow.prev {
    left: 1rem;
}

.lightbox-arrow.next {
    right: 1rem;
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.lightbox-thumb.active {
    border-color: #6366f1;
    opacity: 1;
}

.lightbox-thumb:hover {
    opacity: 1;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: relative;
        top: 0;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.75rem;
    }
    
    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .property-stats-inline {
        flex-wrap: wrap;
    }
    
    .zoopla-gallery {
        height: 300px;
    }
    
    .gallery-controls {
        flex-direction: column;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .gallery-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-arrow.prev {
        left: 0.5rem;
    }
    
    .lightbox-arrow.next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8125rem;
    }
    
    .property-title {
        font-size: 1.25rem;
    }
    
    .property-address {
        font-size: 1rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .stat-inline {
        font-size: 0.875rem;
    }
    
    .zoopla-gallery {
        height: 250px;
    }
    
    .gallery-nav-btn {
        display: none;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}