/*
 * PropertyPulse 2.0 - Custom Styles
 * Simplified: Uses Bootstrap 5 colors everywhere possible
 * Only custom values: navbar color, utility classes Bootstrap doesn't have
 */

:root {
    /* Only ONE custom color - our brand navbar */
    --navbar-color: #1e293b;
    /* Slate-800, modern dark blue */
}

body {
    background-color: #f8f9fa;
    /* Bootstrap's bg-light */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   UTILITIES (things Bootstrap doesn't have)
   ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.indicator-bar {
    width: 4px;
}

.gallery-placeholder {
    height: 300px;
}

.progress-sm {
    height: 6px;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.fs-8 {
    font-size: 0.65rem !important;
}

.max-w-200 {
    max-width: 200px;
}

.img-40 {
    width: 40px;
    height: 40px;
}

/* Primary accent border (used by ai-card, listing-highlight) */
.border-start-primary {
    border-left: 4px solid #0d6efd !important;
    /* Bootstrap primary */
}

/* ============================================
   NAVIGATION (custom navbar color)
   ============================================ */
.navbar {
    background-color: var(--navbar-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link.active {
    color: white !important;
    font-weight: 600;
}

/* ============================================
   CARDS (minor enhancements to Bootstrap)
   ============================================ */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* AI Content Cards - extends .border-start-primary */
.ai-card {
    background: linear-gradient(135deg, #cfe2ff 0%, #ffffff 100%);
    /* Bootstrap primary-subtle */
}

/* Compact Listing (Shared) */
.listing-compact {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.35rem;
    transition: all 0.2s;
}

.listing-compact:hover {
    border-color: #0d6efd;
    /* Bootstrap primary */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.listing-compact-img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #eee;
}

.listing-compact h6 {
    font-size: 0.9rem;
    line-height: 1.2;
}

.listing-compact .badge {
    padding: 0.35em 0.5em;
    font-size: 0.7rem;
}

/* ============================================
   MARKET PAGE
   ============================================ */
.leaderboard-table th {
    background-color: #f8f9fa;
    /* Bootstrap light */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.leaderboard-table td {
    vertical-align: middle;
}

/* Inventory (Browse) Page Specific */
.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-input {
    border: 2px solid #e9ecef;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.search-input:focus {
    border-color: #0d6efd;
    /* Bootstrap primary */
    box-shadow: none;
}

.pagination .page-link {
    color: var(--navbar-color);
}

.pagination .active .page-link {
    background-color: var(--navbar-color);
    border-color: var(--navbar-color);
}

/* Listing Detail Specific */
.gallery-placeholder-empty {
    height: 300px;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* ============================================
   MINI CARD VARIANT
   Responsive grid of small cards with tables.
   Used on: Market page (ROI Champions)
   ============================================ */
.mini-card-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0;
}

@media (min-width: 1200px) {
    .mini-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .mini-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mini-card-grid {
        grid-template-columns: 1fr;
    }
}

.mini-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-card-title {
    color: #fd7e14;
    /* Bootstrap orange */
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fd7e14;
    text-align: center;
}

.mini-card:hover .mini-card-title {
    color: #dc6a00;
    /* Darker orange on hover */
}

.property-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.property-row:hover {
    background-color: #cfe2ff !important;
    /* Bootstrap primary-subtle */
    transform: scale(1.01);
}

/* Print Styles */
@media print {

    .navbar,
    .btn {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .mini-card-grid {
        grid-template-columns: 1fr !important;
    }
}