/* 🔗 INTERNAL LINKING: Property Detail Modal Styles */

.property-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.property-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.property-detail-overlay {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.property-detail-content {
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 15px;
    position: relative;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.property-detail-modal.active .property-detail-content {
    transform: translateY(0);
}

.property-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-detail-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.property-detail-body {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Breadcrumb Navigation */
.property-breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-item a {
    color: #cc0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ff0000;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Property Header */
.property-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
}

.property-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
}

.property-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.property-type,
.property-sale-type {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-type {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.property-sale-type.for-sale {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.property-sale-type.for-rent {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

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

.property-location i {
    color: #cc0000;
}

.property-price-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #cc0000, #ff4444);
    border-radius: 15px;
    margin-top: 20px;
}

.property-price-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Property Images */
.property-images {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    margin-bottom: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 0;
    order: 1;
}

.property-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8f9fa;
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    order: 2;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 3px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #cc0000;
    transform: scale(1.05);
}

/* Property Details */
.property-details-section {
    margin-bottom: 40px;
}

.property-details-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 3px solid #cc0000;
    display: inline-block;
    padding-bottom: 5px;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #cc0000;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: #cc0000;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.feature-label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.feature-value {
    color: #666;
    font-weight: 500;
}

.property-description {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.property-description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.property-description p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

/* Related Properties */
.related-properties {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-properties h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.related-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-property-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-property-image {
    position: relative;
    overflow: hidden;
}

.related-property-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.related-property-card:hover .related-property-image img {
    transform: scale(1.05);
}

.related-property-info {
    padding: 20px;
}

.related-property-info h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.related-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-location::before {
    content: "📍";
    font-size: 12px;
}

.related-price {
    color: #cc0000;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* Contact Section */
.property-contact {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.property-contact h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.contact-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.call-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.message-btn {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-detail-overlay {
        padding: 10px;
    }
    
    .property-detail-content {
        margin: 20px 0;
        border-radius: 10px;
    }
    
    .property-detail-body {
        padding: 20px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-price-header .price {
        font-size: 2rem;
    }
    
    .property-main-image {
        height: 250px;
    }
    
    .property-features {
        grid-template-columns: 1fr;
    }
    
    .related-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .property-detail-overlay {
        padding: 5px;
    }
    
    .property-detail-body {
        padding: 15px;
    }
    
    .property-title {
        font-size: 1.6rem;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-price-header .price {
        font-size: 1.8rem;
    }
}

/* Animation for modal open */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.property-detail-modal.active .property-detail-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Internal link styling for SEO */
.property-link,
.property-title-link,
.property-detail-link,
.related-property-link {
    transition: all 0.3s ease;
}

.property-title-link {
    color: #333;
    text-decoration: none;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.property-title-link:hover {
    color: #cc0000;
}

.property-detail-link {
    background: linear-gradient(135deg, #cc0000, #ff4444);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.property-detail-link:hover {
    background: linear-gradient(135deg, #ff4444, #ff6666);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}
