/* Detail Page Styles */

.cursor-pointer {
    cursor: pointer;
}

.agent-avatar-md {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
}

.agent-avatar-sm {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 27px;
    border: 2px solid rgba(255,255,255,0.4);
}

/* Gallery styling */
.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Carousel preview images */
.carousel-previews {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 20px;
}

.carousel-preview {
    flex: 0 0 auto;
    width: 120px;
    height: 90px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-preview:hover,
.carousel-preview.active {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Price styling */
.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Property meta information */
.property-meta {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.meta-item i {
    color: #0d6efd;
}

/* Feature items */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: #0d6efd;
}

/* Agent contact section */
.agent-contact {
    background: white;
    padding: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Review styling */
.review-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
}

/* Map container */
.map-container {
    height: 400px;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Badge utilities */
.badge-outline-primary {
    background: transparent !important;
    border: 2px solid #0d6efd;
    color: #0d6efd !important;
}

.badge-outline-danger {
    background: transparent !important;
    border: 2px solid #dc3545;
    color: #dc3545 !important;
}

/* Font size utilities */
.fs-6 {
    font-size: 1rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

/* Price color utilities */
.price-rent-color {
    color: #6f42c1;
}

/* Line height utilities */
.line-height-18 {
    line-height: 1.8;
}

/* Avatar styling */
.avatar-large {
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-weight: bold;
}

/* Position utilities */
.position-absolute-top-end {
    position: absolute;
    top: 0;
    right: 0;
}

.margin-3 {
    margin: 1rem;
}

/* Text utilities */
.text-decoration-none {
    text-decoration: none;
}

/* Icon utilities */
.icon-large {
    font-size: 3rem;
}

.icon-medium {
    font-size: 2rem;
}

/* Print Styles */
@media print {
    /* Hide unnecessary elements */
    .breadcrumb,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-previews,
    .fullscreen-previews,
    .contact-form,
    .map-section,
    .similar-properties,
    .back-to-top,
    footer,
    nav,
    .listing-action-buttons,
    .badge-featured,
    .social-share {
        display: none !important;
    }
    
    /* Reset body and container */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Layout adjustments */
    .row {
        display: block;
        width: 100%;
    }
    
    .col-lg-8,
    .col-lg-4 {
        width: 100%;
        float: none;
        margin: 0;
        padding: 0;
    }
    
    /* Image gallery */
    .listing-gallery {
        page-break-inside: avoid;
        margin-bottom: 20pt;
    }
    
    .carousel,
    .carousel-inner,
    .carousel-item {
        position: static !important;
        height: auto !important;
    }
    
    .main-image {
        width: 100%;
        height: auto;
        max-height: 400pt;
        object-fit: contain;
        margin-bottom: 10pt;
    }
    
    /* Text styling */
    h1 {
        font-size: 18pt;
        margin-bottom: 10pt;
        color: black;
    }
    
    h2 {
        font-size: 16pt;
        margin-bottom: 8pt;
        page-break-after: avoid;
        color: black;
    }
    
    h3 {
        font-size: 14pt;
        margin-bottom: 6pt;
        page-break-after: avoid;
        color: black;
    }
    
    p {
        margin-bottom: 6pt;
        orphans: 3;
        widows: 3;
    }
    
    /* Property details */
    .property-price {
        font-size: 16pt;
        font-weight: bold;
        margin-bottom: 10pt;
    }
    
    .property-meta {
        margin-bottom: 15pt;
    }
    
    .property-meta span {
        display: inline-block;
        margin-right: 15pt;
        margin-bottom: 5pt;
    }
    
    /* Lists */
    ul, ol {
        margin-bottom: 10pt;
        padding-left: 20pt;
    }
    
    li {
        margin-bottom: 3pt;
    }
    
    /* Tables */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 10pt;
    }
    
    th, td {
        border: 1pt solid black;
        padding: 5pt;
        text-align: left;
    }
    
    th {
        background-color: #f0f0f0;
        font-weight: bold;
    }
    
    /* Agent information */
    .agent-card {
        border: 1pt solid #ccc;
        padding: 10pt;
        margin: 20pt 0;
        page-break-inside: avoid;
    }
    
    /* Ensure images don't break */
    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }
    
    /* Avoid breaking important sections */
    .property-details,
    .property-description,
    .agent-card {
        page-break-inside: avoid;
    }
    
    /* Print links as text */
    a {
        color: black;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    a[href^="#"]:after {
        content: "";
    }
    
    /* Availability badge */
    .badge {
        background: white !important;
        color: black !important;
        border: 1pt solid black !important;
        font-weight: normal !important;
    }
}
