/* Global Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


/*
:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}
*/

/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('/css/AdobeStock_274849679.jpeg') !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Montserrat' !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    -webkit-font-smoothing: antialiased !important;
}
*/

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FFDFBF 0%, #bfffbf 100%) fixed;
    background-size: cover;
}


/*main {
    flex: 1;
}*/

/* Hero Section */
/*.hero-section {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}*/

/* Property Cards */
/*.property-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    }

    .property-card img {
        transition: transform 0.3s;
    }

    .property-card:hover img {
        transform: scale(1.05);
    }

    .property-card .card-body {
        position: relative;
    }*/

/* Feature Boxes */
/*.feature-box {
    transition: all 0.3s;
}

    .feature-box:hover {
        background-color: var(--light-bg);
        border-radius: 8px;
    }*/

/* Forms */
/*.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}*/

/* Buttons */
/*.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0052a3;
        border-color: #0052a3;
    }*/

/* Cards */
/*.card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid #dee2e6;
}*/

/* Navbar */
/*.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}*/

/* Footer */
/*footer {
    margin-top: auto;
}

    footer a {
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }*/

/* Image Gallery */
/*.carousel-item img {
    border-radius: 8px;
}*/

/* Alerts */
/*.alert {
    border-radius: 8px;
}*/

/* Badges */
/*.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}*/

/* List Group */
/*.list-group-item-action {
    transition: background-color 0.2s;
}

    .list-group-item-action:hover {
        background-color: var(--light-bg);
    }*/

/* Dashboard Stats Cards */
/*.card.shadow-sm {
    border-radius: 10px;
}*/

/* Image Management */
/*#imageGallery .card {
    transition: all 0.2s;
}

    #imageGallery .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }*/

/* Inquiry Items */
/*.list-group-item.border-success {
    border-left: 4px solid var(--success-color) !important;
}*/

/* Sticky Sidebar */
/*@media (min-width: 992px) {
    .sticky-top {
        top: 20px !important;
    }
}*/

/* Responsive Images */
/*img {
    max-width: 100%;
    height: auto;
}*/

/* Loading Spinner */
/*.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}*/

/* Custom Scrollbar */
/*::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }*/

/* Print Styles */
/*@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
}*/

/* Utility Classes */
/*.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}*/

/* Animations */
/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}*/

/* Mobile Responsiveness */
/*@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .property-card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            width: 100%;
            margin-bottom: 0.25rem;
        }

    .card-body {
        padding: 1rem;
    }
}*/

/* Dark Mode Support (Optional) */
/*@media (prefers-color-scheme: dark) {*/
    /* Add dark mode styles here if desired */
/*}*/



/* wwwroot/css/site.css - Custom styles for SB AZ Rentals */

/* Global Styles */

main {
    flex: 1;
    background: white;
    margin: 12px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Use more of the screen than Bootstrap's stepped widths (540/720/960/1140/1320px),
   which leave wide empty side margins on laptops and monitors. Still capped so lines
   don't get too long on very wide screens. Overrides every breakpoint because this
   file loads after Bootstrap. */
.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    max-width: 1600px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Navbar */
/* Background color comes from _Layout.cshtml (admin-configurable, matches the home page hero gradient) */
.navbar {
    padding: 0.35rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.25rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    color: white !important;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
    padding: 8px 16px !important;
    margin: 0 4px;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.navbar .btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .navbar .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

/* Hero Section */
.hero-section {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }

/* Property Cards */
.property-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #FFDFBF !important;
}

    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.property-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.0s;
}

.property-card:hover .property-card-img {
    transform: scale(1.00);
}

.property-card .card-body {
    position: relative;
    padding: 1rem;
}

.property-card .card-title {
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
}

.property-card .row.g-0 {
    min-height: 250px;
}

@media (max-width: 767px) {
    .property-card .row.g-0 {
        min-height: auto;
    }

    .property-card-img {
        height: 200px;
    }
}
/* Feature Boxes */
.feature-box {
    transition: all 0.3s;
    padding: 2rem;
    border-radius: 12px;
}

    .feature-box:hover {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        transform: translateY(-4px);
        box-shadow: var(--card-shadow);
    }

    .feature-box i {
        color: var(--primary-color);
    }

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
    background: white;
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

    .card-header h5, .card-header h6 {
        color: var(--primary-dark);
        margin-bottom: 0;
    }

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

    footer a {
        text-decoration: none;
        transition: color 0.3s;
    }

        footer a:hover {
            color: var(--accent-color) !important;
            text-decoration: none;
        }

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

    .badge.bg-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    }

    .badge.bg-danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    }

    .badge.bg-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    }

    .badge.bg-info {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    }

/* List Group */
.list-group-item-action {
    transition: all 0.3s;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

    .list-group-item-action:hover {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        transform: translateX(4px);
        box-shadow: var(--card-shadow);
    }

/* Dashboard Stats Cards */
.card.shadow-sm {
    border-radius: 12px;
    transition: all 0.3s;
}

    .card.shadow-sm:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

/* Progress bars */
.progress {
    border-radius: 10px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 10px;
}

    .progress-bar.bg-warning {
        background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%) !important;
    }

/* Stars */
.text-warning {
    color: #f59e0b !important;
}

.fa-star.text-warning {
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-dark);
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

    .nav-tabs .nav-link {
        border: none;
        color: var(--secondary-color);
        font-weight: 500;
        border-radius: 8px 8px 0 0;
        transition: all 0.3s;
    }

        .nav-tabs .nav-link:hover {
            color: var(--primary-color);
            background: rgba(37, 99, 235, 0.05);
        }

        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            background: white;
            border-bottom: 3px solid var(--primary-color);
            font-weight: 600;
        }

/* Image Management */
#imageGallery .card {
    transition: all 0.3s;
    border-radius: 12px;
}

    #imageGallery .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

/* Inquiry Items */
.list-group-item.border-success {
    border-left: 4px solid var(--success-color) !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sticky-top {
        top: 20px !important;
    }
}

/* Calendar customization */
.fc {
    border-radius: 12px;
    overflow: hidden;
}

.fc-button-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    border: none !important;
}

    .fc-button-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
    }

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    }

/* Dropdown menus */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    border-radius: 6px;
    margin: 4px 8px;
    transition: all 0.3s;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        color: var(--primary-color);
        transform: translateX(4px);
    }

/* Form labels */
.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
}

    .pagination .page-link:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main {
        margin: 10px;
        border-radius: 10px;
    }

    .hero-section {
        min-height: 300px;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .property-card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            width: 100%;
            margin-bottom: 0.25rem;
        }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if desired */
}

/* Admin list screens: a scrollable table area contained in the page, with a pinned header row.
   Height is fitted to the viewport by fitListScroll() in site.js; max-height is the fallback. */
.list-scroll {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: auto;
}
/* Browse Rentals filters: a slide-in panel on phones (offcanvas-md), plain inline card from md up */
@media (max-width: 767.98px) {
    .filters-panel { --bs-offcanvas-width: min(340px, 88vw); }
    .filters-panel .offcanvas-body .card { border: 0; box-shadow: none; margin-bottom: 0 !important; }
    .filters-panel .offcanvas-body .card-body { padding: 0; }
}
@media (min-width: 768px) {
    .filters-panel .offcanvas-body { display: block; }   /* Bootstrap makes it flex here; keep the card full width */
}

/* Touch screens: long-pressing a card opens the availability popup, so stop the phone's own
   link preview / "save image" menu and text selection from popping up over it */
@media (hover: none) {
    [data-avail-id] {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Right-click availability popup on rental cards (site.js): 12 compact month grids */
.avail-popup {
    position: fixed;
    z-index: 1080;
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    padding: 0.4rem 0.5rem 0.45rem;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
    font-size: 0.7rem;
    line-height: 1;
}
.avail-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}
.avail-head strong { max-width: 30rem; }
.avail-head .btn-close { margin-left: auto; font-size: 0.6rem; }
.avail-months {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.35rem 0.6rem;
}
@media (max-width: 575.98px) {
    .avail-months { grid-template-columns: repeat(3, auto); }
}
@media (max-width: 400px) {
    .avail-months { grid-template-columns: repeat(2, auto); }
}
.avail-mname { font-weight: 600; text-align: center; margin-bottom: 2px; }
.avail-grid {
    display: grid;
    grid-template-columns: repeat(7, 15px);
    grid-auto-rows: 14px;
    gap: 1px;
}
.avail-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    border-radius: 2px;
}
.avail-grid .dow { color: #6c757d; font-weight: 600; }
.avail-grid .open { background: #d1f2dc; color: #0f5132; }
.avail-grid .rented { background: #dc3545; color: #fff; }
.avail-grid .blocked { background: #adb5bd; color: #fff; }
.avail-grid .past { color: #c4c8cc; }
.avail-grid .today { outline: 1.5px solid #0d6efd; outline-offset: -1px; font-weight: 700; }
.avail-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}
.avail-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: -1px;
}
.avail-legend i.open { background: #d1f2dc; border: 1px solid #a3cfbb; }
.avail-legend i.rented { background: #dc3545; }
.avail-legend i.blocked { background: #adb5bd; }

/* "How to Create Your Listing" slide-in guide (Views/Owner/_ListingHelp.cshtml) */
.offcanvas.listing-help {
    --bs-offcanvas-width: min(520px, 100vw);
}
.listing-help .offcanvas-body {
    position: relative;   /* section offsets are measured from here */
    line-height: 1.55;
}
.listing-help .help-toc {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}
.listing-help .help-toc ol {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    columns: 2;
    column-gap: 1.5rem;
}
@media (max-width: 480px) {
    .listing-help .help-toc ol { columns: 1; }
}
.listing-help .help-toc li { break-inside: avoid; }
.listing-help section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.listing-help section:last-child { border-bottom: 0; }
.listing-help section h6 {
    font-weight: 700;
    color: var(--bs-info-text-emphasis, #055160);
    margin-bottom: 0.6rem;
}
.listing-help dt { margin-top: 0.5rem; }
.listing-help dd { margin-bottom: 0.25rem; }
.listing-help .help-req {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #842029;
    background: #f8d7da;
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
    vertical-align: middle;
}
.listing-help .help-checklist { list-style: none; padding-left: 0.25rem; }
.listing-help .help-checklist i { color: var(--bs-success, #198754); width: 1.25rem; }
.listing-help .help-back { display: inline-block; margin-top: 0.5rem; text-decoration: none; }

/* Card grids in a scroll box: room for the row's gutters and card shadows, no sideways scroll */
.list-scroll.cards-scroll {
    overflow-x: hidden;
    padding: 0.5rem 0.75rem 1rem;
}
/* On phones the whole page scrolls instead; a nested scroll box is awkward there */
@media (max-width: 767.98px) {
    .list-scroll.cards-scroll {
        max-height: none !important;
        overflow: visible;
    }
}
.list-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    box-shadow: inset 0 -1px 0 var(--bs-border-color, #dee2e6);
}
