/* Listing Detail Page Styles */

/* Card Components */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: white;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1rem;
}

.card-body-left-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.card-body-right-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-body-right-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-body-right-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-body-right-item i {
    font-size: 1.25rem;
    color: #6b7280;
}

.card-body-right-item:nth-child(1) i { color: #25d366; }
.card-body-right-item:nth-child(2) i { color: #ffffff; }
.card-body-right-item:nth-child(3) i { color: #ffffff; }
.card-body-right-item:nth-child(4) i { color: #6b7280; }

/* Avatar Styles */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.avatar-circle {
    border-radius: 50%;
}

/* Agent Card Styles */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

.mx-3 {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.me-3 {
    margin-right: 0.75rem;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.text-body {
    color: #6b7280;
}

.pt-1 {
    padding-top: 0.25rem;
}

.text-primary {
    color: #da2025 !important;
}

.text-dark {
    color: #374151 !important;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* Price and Location Card */
.portfolio-price-details {
    text-align: center;
    margin-bottom: 1rem;
}

.portfolio-price {
    font-size: 2rem;
    font-weight: 600;
    color: #3b82f6;
    display: block;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    background: #e5e7eb;
    color: #374151;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.portfolio-table th,
.portfolio-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 0.875rem;
}

.portfolio-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
    text-align: left;
    border-right: 1px solid #e5e7eb;
    width: 40%;
}

.portfolio-table td {
    color: #000000;
    font-weight: 600;
}

.portfolio-table tr:last-child th,
.portfolio-table tr:last-child td {
    border-bottom: none;
}

.portfolio-table tr:hover {
    background: #f9fafb;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: #06b6d4;
    color: white;
}

.btn-info:hover {
    background: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* Image Slider Styles */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    color: #374151;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Slider */
.listingThumbnailSlider .swiper-slide {
    width: auto;
    flex-shrink: 0;
}

.listingThumbnailSlider button {
    transition: all 0.3s ease;
}

.listingThumbnailSlider button:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body-right-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-body-right-item {
        width: 35px;
        height: 35px;
    }

    .card-body-right-item i {
        font-size: 1rem;
    }

    .avatar-xl {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .portfolio-price {
        font-size: 1.5rem;
    }

    .breadcrumb {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .mx-3 {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.75rem;
    }

    .card-body-right-row {
        justify-content: space-around;
        margin-top: 1rem;
    }

    .portfolio-table th,
    .portfolio-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    color: white;
}

.badge.bg-primary {
    background: #3b82f6;
}

.badge.bg-danger {
    background: #dc2626;
}

.badge.bg-warning {
    background: #f59e0b;
    color: #000;
}

.badge.bg-success {
    background: #10b981;
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .card {
        border-color: #374151;
        background: #1f2937;
        color: #f9fafb;
    }

    .card-body-left-text {
        color: #f9fafb;
    }

    .breadcrumb-item {
        background: #374151;
        color: #d1d5db;
    }

    .breadcrumb-item:hover {
        background: #4b5563;
        color: #f9fafb;
    }

    .portfolio-table th {
        background: #111827;
        color: #f9fafb;
        border-right-color: #374151;
    }

    .portfolio-table td {
        color: #d1d5db;
    }

    .portfolio-table tr:hover {
        background: #111827;
    }

    .badge {
        color: white;
    }
}
