/* PlaneSales Public Website Styles */
/* [Requirement("FTR-PSG-2026-0112")] — prototype-v2 design system migration */
/* [Requirement("FTR-PSG-2026-0114")] — prototype-v2 full sync */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors */
    --ps-primary: #1B2E56;
    --ps-primary-hover: #113160;
    --ps-secondary: #2D93D1;
    --ps-secondary-hover: #2580B8;
    --ps-accent: #2D93D1;

    /* Background Colors */
    --ps-bg-primary: #f0f2f5;
    --ps-bg-secondary: #FFFFFF;
    --ps-bg-light: #e8eaed;
    --ps-bg-hover: #E8EEF5;

    /* Text Colors */
    --ps-text-primary: #202124;
    --ps-text-secondary: #3a3a3a;
    --ps-text-light: #616161;
    --ps-text-placeholder: #9aa0a6;

    /* Header/Footer */
    --ps-header-bg: #113160;
    --ps-header-text: #FFFFFF;
    --ps-footer-bg: #0E2247;
    --ps-footer-copyright-bg: #182130;
    --ps-footer-copyright-text: #FFFFFF;
    --ps-footer-link: #c0c6ce;

    /* Borders & Dividers */
    --ps-border-color: #dadce0;
    --ps-border-light: #e8eaed;
    --ps-divider: #bdc1c6;

    /* Shadows */
    --ps-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --ps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --ps-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.14);
    --ps-shadow-card: 0 2px 6px rgba(0, 0, 0, 0.07);

    /* Semantic Colors */
    --ps-success: #34a853;
    --ps-warning: #fbbc04;
    --ps-danger: #ea4335;
    --ps-info: #4285f4;

    /* Bootstrap Overrides */
    --bs-primary: #1B2E56;
    --bs-primary-rgb: 27, 46, 86;
    --bs-secondary: #2D93D1;
    --bs-secondary-rgb: 45, 147, 209;
    --bs-body-bg: #f0f2f5;
    --bs-body-color: #202124;
    --bs-link-color: #2D93D1;
    --bs-link-hover-color: #1B2E56;

    /* ===== Prototype-v2 Design Tokens ===== */

    /* Spacing scale (8px base) */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  24px;
    --sp-6:  32px;
    --sp-8:  48px;
    --sp-10: 64px;
    --sp-12: 80px;

    /* Border radius */
    --r-xs:   4px;
    --r-sm:   6px;
    --r-md:   8px;
    --r-lg:   10px;
    --r-xl:   14px;
    --r-pill: 100px;

    /* Transitions (carsales-derived: 0.218s standard) */
    --t-fast: 0.218s;
    --t-std:  0.25s;
    --t-slow: 0.3s;

    /* Layout */
    --container-max: 1280px;
    --nav-height:    96px;
    --sidebar-width: 265px;

    /* Ad colours */
    --ad-bg:     #f1f3f4;
    --ad-text:   #9aa0a6;
    --ad-border: #dadce0;

    /* Brand aliases (prototype-v2 names mapped) */
    --brand-navy:        #1B2E56;
    --brand-navy-dark:   #113160;
    --brand-navy-medium: #253F73;
    --brand-blue:        #2D93D1;
    --brand-blue-dark:   #2580B8;
    --brand-blue-light:  #5AAEE3;
    --page-bg:           #f0f2f5;
    --section-grey:      #e8eaed;
    --border:            #dadce0;
    --text-primary:      #202124;
    --text-secondary:    #3a3a3a;
    --text-muted:        #616161;
    --shadow-card:       0 2px 6px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 6px 18px rgba(0, 0, 0, 0.14);
}

html, body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--ps-bg-primary);
    color: var(--ps-text-secondary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 500; line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 500; }
h4 { font-size: 17px; font-weight: 500; }
h5 { font-size: 14px; font-weight: 500; }
h6 { font-size: 12px; font-weight: 500; color: var(--text-muted); }

@media (max-width: 767px) {
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
}

a, .btn-link {
    color: var(--ps-primary);
}

a:hover, .btn-link:hover {
    color: var(--ps-primary-hover);
}

/* Primary Button */
.btn-primary {
    color: #FFFFFF;
    background-color: var(--ps-primary);
    border-color: var(--ps-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #FFFFFF;
    background-color: var(--ps-primary-hover);
    border-color: var(--ps-primary-hover);
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--ps-primary-hover);
    border-color: var(--ps-primary-hover);
}

/* Secondary Button */
.btn-secondary {
    color: var(--ps-primary);
    background-color: var(--ps-secondary);
    border-color: var(--ps-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--ps-primary);
    background-color: var(--ps-secondary-hover);
    border-color: var(--ps-secondary-hover);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--ps-primary);
    border-color: var(--ps-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #FFFFFF;
    background-color: var(--ps-primary);
    border-color: var(--ps-primary);
}

.btn-outline-secondary {
    color: var(--ps-secondary);
    border-color: var(--ps-secondary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--ps-primary);
    background-color: var(--ps-secondary);
    border-color: var(--ps-secondary);
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(27, 46, 86, 0.5);
}

/* Text & Background Utilities */
.text-primary {
    color: var(--ps-primary) !important;
}

.text-secondary {
    color: var(--ps-text-secondary) !important;
}

.bg-primary {
    background-color: var(--ps-primary) !important;
}

.bg-secondary {
    background-color: var(--ps-secondary) !important;
}

.bg-light {
    background-color: var(--ps-bg-primary) !important;
}

/* ============================================================
   NAVIGATION — prototype-v2 ps-nav (light grey gradient)
   ============================================================ */

.ps-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: linear-gradient(180deg, #f7f8f9 0%, #eceef0 100%);
    border-bottom: 1px solid #d8dadc;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.ps-nav-inner {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 0;
}

.ps-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 36px;
    padding-top: 20px;
    padding-bottom: 14px;
}

.ps-nav-logo:hover {
    text-decoration: none;
    opacity: 0.88;
}

.ps-nav-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.ps-logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.ps-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.1;
}

.ps-logo-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.ps-nav-links {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
}

.ps-nav-links a {
    color: var(--brand-navy);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px 6px;
    border-radius: var(--r-xs) var(--r-xs) 0 0;
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
    display: block;
    text-decoration: none;
}

.ps-nav-links a:hover,
.ps-nav-links a.active {
    color: var(--brand-blue);
    background: rgba(27, 46, 86, 0.06);
    text-decoration: none;
    border-bottom: 3px solid var(--brand-blue);
}

.ps-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 14px;
}

.btn-ghost-nav {
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: #fff;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.btn-ghost-nav:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background: #fff;
    text-decoration: none;
}

.ps-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    background: none;
    border: none;
}

.ps-nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--brand-navy);
    border-radius: 2px;
    display: block;
}

/* Mobile nav menu */
.ps-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    z-index: 1000;
    padding: 16px 0;
}

.ps-mobile-nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--brand-navy);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.ps-mobile-nav-link:last-child,
.ps-mobile-nav-link-child:last-child {
    border-bottom: none;
}

.ps-mobile-nav-link.active {
    background: rgba(27,46,86,0.06);
    color: var(--brand-blue);
}

.ps-mobile-nav-link:hover,
.ps-mobile-nav-link-child:hover {
    background: rgba(27,46,86,0.06);
    color: var(--brand-blue);
}

.ps-mobile-nav-group {
    border-bottom: 1px solid var(--border);
}

.ps-mobile-nav-submenu {
    background: rgba(27,46,86,0.02);
}

.ps-mobile-nav-link-child {
    display: block;
    padding: 10px 24px 10px 40px;
    color: var(--brand-navy);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

/* Nav dropdowns */
.ps-nav-dropdown {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.ps-nav-dropdown > a {
    display: block;
}

.ps-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #d8dadc;
    border-top: none;
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    z-index: 1001;
    padding: 4px 0;
}

.ps-nav-dropdown-menu a {
    display: block;
    padding: 9px 16px;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 400;
    border-bottom: none;
    border-radius: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
}

.ps-nav-dropdown-menu a:hover {
    background: rgba(27,46,86,0.06);
    color: var(--brand-blue);
    text-decoration: none;
}

.ps-nav-dropdown:hover .ps-nav-dropdown-menu,
.ps-nav-dropdown:focus-within .ps-nav-dropdown-menu {
    display: block;
}

@media (max-width: 767px) {
    .ps-nav-links { display: none; }
    .ps-nav-hamburger { display: flex; }
}

/* ============================================================
   FOOTER — prototype-v2 ps-footer
   ============================================================ */

.ps-footer {
    background: #0E2247;
    color: #ffffff;
    padding: 52px 0 0;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-brand-logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand-logo-img {
    height: 72px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: #ffffff;
    font-size: 18px;
    transition: color var(--t-fast);
    text-decoration: none;
}

.footer-social a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #c0c6ce;
    font-size: 13px;
    transition: color var(--t-fast);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #7DC8EF;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #c0c6ce;
    font-size: 12px;
    transition: color var(--t-fast);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* Responsive footer */
@media (max-width: 1199px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .ps-footer { margin-top: 32px; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background-color: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: 8px;
    box-shadow: var(--ps-shadow-card);
}

/* ============================================================
   LISTING CARD
   ============================================================ */
.listing-card {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.listing-card:hover {
    box-shadow: var(--ps-shadow-md);
    transform: translateY(-2px);
}

.listing-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--section-grey);
    position: relative;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-featured {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    border-radius: var(--r-xs);
    font-weight: 600;
}

.badge-sold {
    background-color: var(--ps-danger);
    color: #FFFFFF;
    border-radius: 12px;
    font-weight: 600;
}

.badge-condition-excellent {
    background-color: var(--ps-success);
    color: #FFFFFF;
}

.badge-condition-good {
    background-color: var(--ps-info);
    color: #FFFFFF;
}

.badge-condition-fair {
    background-color: var(--ps-warning);
    color: #000000;
}

.badge-condition-poor {
    background-color: var(--ps-danger);
    color: #FFFFFF;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control,
.form-select {
    border-color: var(--ps-border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 0.25rem rgba(27, 46, 86, 0.25);
}

.form-control::placeholder {
    color: var(--ps-text-placeholder);
}

.form-label {
    font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background-size: cover;
    background-position: center;
}

.hero-section-bg {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-hover) 100%);
}

/* ============================================================
   CARD HOVER EFFECT
   ============================================================ */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-md);
}

/* ============================================================
   LISTING DETAIL
   ============================================================ */
.listing-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ps-primary);
    margin-bottom: 1rem;
}

.listing-specs-table table {
    border-collapse: collapse;
    width: 100%;
}

.listing-specs-table table tr:nth-child(even) {
    background-color: var(--ps-bg-light);
}

.listing-specs-table table td,
.listing-specs-table table th {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ps-border-color);
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--brand-navy);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   ARTICLE PAGE LAYOUT
   ============================================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

/* Hero image */
.article-hero {
    margin: 0 0 1.5rem;
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Metadata row */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light, #eee);
    padding-bottom: 1rem;
}

.article-meta-author {
    font-weight: 600;
    color: var(--text-primary);
}

.article-meta-sep {
    color: var(--border);
}

.article-meta-share {
    display: flex;
    gap: 6px;
}

/* Tags */
.article-tags-label {
    margin-right: 8px;
    font-size: 14px;
}

/* Author bio avatar */
.article-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-navy, #1a2744);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Related articles */
.article-related-title {
    font-size: 1.15rem;
    border-bottom: 2px solid var(--brand-navy, #1a2744);
    padding-bottom: 0.5rem;
}

.article-related-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* Sidebar */
.article-sidebar-widget .card-header {
    background: var(--brand-navy, #1a2744);
    color: #fff;
    border-radius: 0;
}

.article-sidebar-widget .card-header h5 {
    color: #fff;
}

.article-sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-sidebar-news-list li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light, #eee);
}

.article-sidebar-news-list li:last-child {
    border-bottom: none;
}

.article-sidebar-news-list a {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    text-decoration: none;
}

.article-sidebar-news-list a:hover {
    color: var(--brand-navy, #1a2744);
    text-decoration: underline;
}

/* ============================================================
   FORM VALIDATION
   ============================================================ */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============================================================
   BLAZOR
   ============================================================ */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   RESPONSIVE IMAGES
   ============================================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   CATEGORY STRIP — prototype-v2 ps-cat-strip
   ============================================================ */
.ps-cat-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ps-cat-strip::-webkit-scrollbar {
    display: none;
}

.ps-cat-strip-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    white-space: nowrap;
}

.ps-cat-strip a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
}

.ps-cat-strip a .cat-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-cat-strip a .cat-icon svg,
.ps-cat-strip a .cat-icon [data-lucide] {
    width: 18px;
    height: 18px;
}

.ps-cat-strip a:hover,
.ps-cat-strip a.active {
    color: var(--brand-navy);
    border-bottom-color: var(--brand-navy);
    text-decoration: none;
}

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
    padding-top: var(--nav-height);
}

/* ============================================================
   LAYOUT — ps-container
   ============================================================ */
.ps-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section     { padding: var(--sp-8) 0; }
.section-sm  { padding: var(--sp-6) 0; }
.section-lg  { padding: var(--sp-10) 0; }
.section-alt   { background: var(--section-grey); }
.section-white { background: var(--section-white); }
.section-navy  { background: var(--brand-navy); color: rgba(255,255,255,0.75); }
.section-navy h1, .section-navy h2 { color: var(--brand-blue); }
.section-navy h3 { color: #fff; }
.section-navy .section-subtitle { color: rgba(255,255,255,0.75); }

/* ============================================================
   BUTTONS — prototype-v2 full set
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', Arial, sans-serif;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    white-space: nowrap;
    line-height: 1;
}
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r-xs); }

.btn-blue  { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-blue:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; text-decoration: none; }

.btn-white { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; color: var(--brand-navy); text-decoration: none; }

.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: #fff; text-decoration: none; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* ============================================================
   STATS BAR — prototype-v2
   ============================================================ */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.stats-bar-inner {
    display: flex;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ============================================================
   LISTING CARD — full prototype-v2 set
   ============================================================ */
.listing-card {
    background: #fff;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
}

.listing-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #bdc1c6;
}

.listing-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.listing-card-link:hover { text-decoration: none; }

.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-std) ease;
}

.listing-card:hover .listing-card-img img { transform: scale(1.04); }

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 2;
}

.card-save {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.card-save:hover { background: #fff; transform: scale(1.1); }

.listing-card-body { padding: 12px 14px 14px; }

.listing-card-seller {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-dot {
    width: 5px;
    height: 5px;
    background: var(--ps-success);
    border-radius: 50%;
    display: inline-block;
}

.seller-dot-dealer   { background: var(--ps-success); }
.seller-dot-private  { background: var(--ps-info); }

.listing-card-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.listing-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.spec-pill {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.listing-card-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.listing-card-price       { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.listing-card-price-por   { font-size: 15px; color: var(--text-muted); font-style: italic; }
.listing-card-location    { font-size: 11px; color: var(--text-muted); text-align: right; }

.listing-card-cta {
    padding: 8px 14px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

/* ============================================================
   BADGE SET — prototype-v2
   ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--r-xs);
    letter-spacing: 0.25px;
    white-space: nowrap;
}

.badge-new     { background: var(--brand-navy); color: #fff; }
.badge-reduced { background: #e8710a; color: #fff; }
.badge-used    { background: #fff; color: var(--text-muted); border: 1px solid var(--border); font-weight: 400; }

/* ============================================================
   LISTINGS GRID
   ============================================================ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 991px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   DEALER FILTER BAR — prototype-v2 dealers.html FilterBar
   ============================================================ */
.dealer-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 20px;
}
.dealer-filter-bar .form-input { width: auto; }
.dealer-search-input { max-width: 340px; flex: 1 1 200px; }

/* ============================================================
   DEALER CARDS — prototype-v2 section 19
   ============================================================ */
.dealer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow var(--t-fast);
}

.dealer-card:hover { box-shadow: var(--shadow-card-hover); }

.dealer-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dealer-card-link:hover { text-decoration: none; }

.dealer-card-banner {
    height: 90px;
    overflow: hidden;
    background: var(--brand-navy);
    position: relative;
}

.dealer-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.dealer-card-logo-wrap {
    padding: 0 16px;
    margin-top: -26px;
    position: relative;
    z-index: 1;
}

.dealer-card-logo {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: var(--r-md);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    overflow: hidden;
}

.dealer-card-body    { padding: 10px 16px 16px; }
.dealer-card-name    { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.dealer-card-location { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.dealer-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ps-success);
    background: #e6f4ea;
    border-radius: var(--r-pill);
    padding: 2px 8px;
    margin-bottom: 8px;
}

.dealer-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.dealer-stat       { text-align: center; }
.dealer-stat-val   { font-size: 17px; font-weight: 700; color: var(--brand-navy); }
.dealer-stat-label { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   SECTION HEADER — prototype-v2 section 20
   ============================================================ */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 { margin-bottom: 0; }
.section-header a  { font-size: 13px; font-weight: 500; white-space: nowrap; }
.section-subtitle  { font-size: 14px; color: var(--text-muted); margin-top: -8px; margin-bottom: 20px; }

/* ============================================================
   FEATURE STRIP — prototype-v2 section 21
   ============================================================ */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-item {
    padding: 20px 22px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.feature-item:last-child { border-right: none; }

.feature-icon  { font-size: 26px; margin-bottom: 6px; }
.feature-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.feature-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 991px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   JUST LISTED LAYOUT
   ============================================================ */
.just-listed-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    align-items: start;
}

.just-listed-main    { min-width: 0; }
.just-listed-sidebar { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 991px) {
    .just-listed-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   QUICK LINKS CARD
   ============================================================ */
.quick-links-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
}

.quick-links-card h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quick-links-card a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: color var(--t-fast);
}

.quick-links-card a:last-child { border-bottom: none; }
.quick-links-card a:hover { color: var(--brand-blue); text-decoration: none; }

/* ============================================================
   UTILITIES — prototype-v2 section 26
   ============================================================ */
.w-100 { width: 100%; }
.text-navy { color: var(--brand-navy) !important; }
.text-blue { color: var(--brand-blue) !important; }
.text-sm   { font-size: 12px; }

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.listings-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 24px;
    align-items: start;
}

.filter-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

@media (max-width: 991px) {
    .listings-layout { grid-template-columns: 1fr; }
    .filter-sidebar  { position: static; max-height: none; }
}

/* ============================================================
   LISTING DETAIL LAYOUT
   ============================================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
    align-items: start;
}

.detail-sidebar {
    position: sticky;
    top: 12px;
}

@media (max-width: 991px) {
    .detail-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS BAR RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .stats-bar-inner { flex-wrap: wrap; }
    .stat-item { min-width: 50%; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .ps-nav, .ps-footer, .cookie-consent {
        display: none !important;
    }
}

/* ============================================================
   PROTOTYPE-V2 MIGRATION — BUG-PSG-2026-0113
   Sections 4–27: all missing classes ported from prototype-v2/_styles.css
   Organised by section number matching prototype source.
   Bootstrap 5.2 coexistence strategy: prototype cascade after Bootstrap.
   ============================================================ */

/* ------------------------------------------------------------
   § 4. TYPOGRAPHY
   ------------------------------------------------------------ */
.text-navy  { color: var(--brand-navy) !important; }
.text-blue  { color: var(--brand-blue) !important; }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.text-lg    { font-size: 16px; }
.text-right { text-align: right !important; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }

/* Price typography */
.price     { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.price-lg  { font-size: 30px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.price-sm  { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.price-poa { color: var(--text-muted); font-style: italic; }

/* ------------------------------------------------------------
   § 5. LAYOUT
   ------------------------------------------------------------ */
.ps-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.page-body { padding-top: var(--nav-height); }

.section    { padding: var(--sp-8) 0; }
.section-sm { padding: var(--sp-6) 0; }
.section-lg { padding: var(--sp-10) 0; }

.section-alt   { background: var(--section-grey); }
.section-white { background: var(--section-white, #ffffff); }
.section-navy  { background: var(--brand-navy); color: rgba(255,255,255,0.75); }
.section-navy h1, .section-navy h2 { color: var(--brand-blue); }
.section-navy h3 { color: #fff; }
.section-navy .section-subtitle { color: rgba(255,255,255,0.75); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.align-start  { align-items: flex-start; }

.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }

/* ------------------------------------------------------------
   § 6. NAVIGATION — prototype-v2 nav classes (light grey gradient)
   ------------------------------------------------------------ */
.ps-nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: linear-gradient(180deg, #f7f8f9 0%, #eceef0 100%);
    border-bottom: 1px solid #d8dadc;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.ps-nav-inner {
    display: flex; align-items: flex-end; height: 100%; padding-bottom: 0;
}
.ps-nav-logo {
    display: flex; align-items: center;
    text-decoration: none; flex-shrink: 0; margin-right: 36px;
    padding-top: 20px; padding-bottom: 14px;
}
.ps-nav-logo:hover { text-decoration: none; opacity: 0.88; }
.ps-nav-links { display: flex; align-items: flex-end; gap: 4px; flex: 1; }
.ps-nav-links a {
    color: var(--brand-navy); font-size: 15px; font-weight: 500;
    padding: 8px 16px 6px; border-radius: var(--r-xs) var(--r-xs) 0 0;
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}
.ps-nav-links a:hover, .ps-nav-links a.active {
    color: var(--brand-blue); background: rgba(27,46,86,0.06); text-decoration: none;
    border-bottom: 3px solid var(--brand-blue);
}
.ps-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-bottom: 14px; }

.btn-ghost-nav {
    color: var(--brand-navy); font-size: 14px; font-weight: 500;
    padding: 9px 20px;
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: #fff;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; text-decoration: none;
}
.btn-ghost-nav:hover {
    color: var(--brand-blue); border-color: var(--brand-blue);
    background: #fff; text-decoration: none;
}

.ps-nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; margin-left: auto;
    background: none; border: none;
}
.ps-nav-hamburger span { width: 22px; height: 2px; background: var(--brand-navy); border-radius: 2px; display: block; }

/* Category strip */
.ps-cat-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.ps-cat-strip-inner {
    display: flex; align-items: stretch; gap: 0;
    max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
    white-space: nowrap;
}
.ps-cat-strip a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 16px; font-size: 12px; font-weight: 400;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
    text-decoration: none;
}
.ps-cat-strip a .cat-icon { font-size: 18px; }
.ps-cat-strip a:hover, .ps-cat-strip a.active {
    color: var(--brand-navy); border-bottom-color: var(--brand-navy); text-decoration: none;
}

/* ------------------------------------------------------------
   § 7. BUTTONS — prototype-v2 variants (Bootstrap .btn base preserved)
   ------------------------------------------------------------ */
/* Override .btn base with prototype inline-flex spec */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; font-size: 14px; font-weight: 500;
    font-family: 'Roboto', Arial, sans-serif;
    border-radius: var(--r-md); border: 1px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    white-space: nowrap; line-height: 1;
}
/* Override Bootstrap btn-lg/btn-sm with prototype values */
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: var(--r-xs); }

/* PS-specific button variants */
.btn-blue { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-blue:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; text-decoration: none; }

.btn-white { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; color: var(--brand-navy); text-decoration: none; }

.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: #fff; text-decoration: none; }

.btn-outline-blue { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-outline-blue:hover { background: var(--brand-blue); color: #fff; text-decoration: none; }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--section-grey); text-decoration: none; }

.btn-block { display: flex; width: 100%; text-align: center; justify-content: center; }
.btn-icon  { padding: 9px; }

/* ------------------------------------------------------------
   § 8. BADGES — prototype-v2 variants (Bootstrap .badge base preserved)
   ------------------------------------------------------------ */
/* Extend Bootstrap .badge with prototype display/padding spec */
.badge {
    display: inline-block; padding: 3px 8px;
    font-size: 11px; font-weight: 600; border-radius: var(--r-xs);
    letter-spacing: 0.25px; white-space: nowrap;
}
.badge-new     { background: var(--brand-navy); color: #fff; }
.badge-reduced { background: #e8710a; color: #fff; }
.badge-used    { background: #fff; color: var(--text-muted); border: 1px solid var(--border); font-weight: 400; }
.badge-success { background: var(--success-light, #e6f4ea); color: var(--ps-success); }
.badge-info    { background: var(--info-light, #e8f0fe); color: var(--ps-info); }
.badge-dealer  { background: #e8f0fe; color: #1967d2; }

/* ------------------------------------------------------------
   § 9. GENERAL CARDS — override/complete Bootstrap card
   ------------------------------------------------------------ */
.card {
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.card:hover    { box-shadow: var(--shadow-card-hover); border-color: #bdc1c6; }
.card-body     { padding: 20px; }
.card-header   { padding: 15px 20px; border-bottom: 1px solid var(--ps-border-color); background: #fafafa; }
.card-header h3 { font-size: 14px; font-weight: 500; margin: 0; }
.card-footer   { padding: 13px 20px; background: #fafafa; border-top: 1px solid var(--ps-border-light); }

/* ------------------------------------------------------------
   § 10. LISTING CARDS
   ------------------------------------------------------------ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Full prototype listing-card definition (overrides partial existing) */
.listing-card {
    background: var(--ps-bg-secondary);
    border-radius: var(--r-md);
    border: 1px solid var(--ps-border-color);
    overflow: hidden;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
}
.listing-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: #bdc1c6;
}
.listing-card-link { display: block; text-decoration: none; color: inherit; }
.listing-card-link:hover { text-decoration: none; }

/* 3:2 aspect ratio (prototype spec, overrides existing 16/9) */
.listing-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden; background: var(--section-grey); position: relative;
}
.listing-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--t-std) ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.04); }

/* Card overlays */
.card-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; gap: 5px; flex-wrap: wrap; z-index: 2;
}
.card-save {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.9); border-radius: var(--r-pill);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.card-save:hover { background: #fff; transform: scale(1.1); }

/* Card body */
.listing-card-body { padding: 12px 14px 14px; }

.listing-card-seller {
    font-size: 11px; color: var(--text-muted); font-weight: 400;
    margin-bottom: 3px; display: flex; align-items: center; gap: 4px;
}
.seller-dot {
    width: 5px; height: 5px; background: var(--ps-success); border-radius: 50%;
    display: inline-block;
}
.listing-card-title {
    font-size: 15px; font-weight: 500; color: var(--text-primary);
    line-height: 1.35; margin-bottom: 8px;
}
.listing-card-specs {
    display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px;
}
.spec-pill {
    font-size: 12px; color: var(--text-muted);
    display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.listing-card-footer-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--ps-border-light);
}
.listing-card-price    { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.listing-card-location { font-size: 11px; color: var(--text-muted); text-align: right; }
.listing-card-cta {
    padding: 8px 14px; background: #f8f9fa; border-top: 1px solid var(--ps-border-light);
    display: flex; gap: 8px;
}

/* ------------------------------------------------------------
   § 11. DEALER CARDS
   ------------------------------------------------------------ */
.dealer-card {
    background: var(--ps-bg-secondary); border: 1px solid var(--ps-border-color);
    border-radius: var(--r-md); overflow: hidden;
    transition: box-shadow var(--t-fast);
}
.dealer-card:hover { box-shadow: var(--shadow-card-hover); }
.dealer-card-banner { height: 90px; overflow: hidden; background: var(--brand-navy); position: relative; }
.dealer-card-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.dealer-card-logo-wrap { padding: 0 16px; margin-top: -26px; position: relative; z-index: 1; }
.dealer-card-logo {
    width: 52px; height: 52px; background: #fff;
    border-radius: var(--r-md); border: 2px solid var(--ps-border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: var(--brand-navy); overflow: hidden;
}
.dealer-card-body     { padding: 10px 16px 16px; }
.dealer-card-name     { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.dealer-card-location { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.dealer-verified {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500; color: var(--ps-success);
    background: #e6f4ea; border-radius: var(--r-pill); padding: 2px 8px;
}
.dealer-stats     { display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ps-border-light); }
.dealer-stat      { text-align: center; }
.dealer-stat-val  { font-size: 17px; font-weight: 700; color: var(--brand-navy); }
.dealer-stat-label { font-size: 11px; color: var(--text-muted); }

/* ------------------------------------------------------------
   § 12. FORMS — extra helpers + filter sidebar
   ------------------------------------------------------------ */
.form-group    { margin-bottom: var(--sp-4); }
.form-required { color: var(--ps-danger); margin-left: 2px; }
.form-hint     { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error    { font-size: 12px; color: var(--ps-danger); margin-top: 4px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Listings layout: sidebar + main */
.listings-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 24px; align-items: start;
}

/* Filter sidebar */
.filter-sidebar {
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--r-md); overflow: hidden;
    position: sticky; top: calc(var(--nav-height) + 12px);
    max-height: calc(100vh - var(--nav-height) - 24px);
    overflow-y: auto;
}
.filter-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; border-bottom: 1px solid var(--ps-border-color);
    background: var(--brand-navy); position: sticky; top: 0; z-index: 1;
}
.filter-sidebar-head h3 { color: #fff; font-size: 13px; font-weight: 500; margin: 0; letter-spacing: 0.2px; }
.filter-clear-all { font-size: 12px; color: rgba(255,255,255,0.65); cursor: pointer; transition: color var(--t-fast); font-weight: 400; }
.filter-clear-all:hover { color: #fff; }

.filter-section { border-bottom: 1px solid var(--ps-border-light); }
.filter-section:last-child { border-bottom: none; }

.filter-sect-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    background: transparent; width: 100%; border: none;
    transition: background var(--t-fast); text-align: left; font-family: inherit;
}
.filter-sect-head:hover { background: #f8f9fa; }
.filter-chevron { font-size: 11px; color: var(--text-muted); }
.filter-sect-body { padding: 2px 16px 14px; }

.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; cursor: pointer; }
.filter-option input[type=checkbox] { accent-color: var(--brand-blue); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.filter-option label { font-size: 13px; color: var(--text-secondary); cursor: pointer; flex: 1; line-height: 1.3; }
.filter-opt-count { font-size: 11px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

.filter-range-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.filter-range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.filter-range-inputs input { padding: 6px 10px; font-size: 13px; border: 1px solid var(--ps-border-color); border-radius: var(--r-xs); outline: none; width: 100%; font-family: inherit; }
.filter-range-inputs input:focus { border-color: var(--brand-blue); }
.filter-range-sep { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); }

.filter-apply {
    display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px;
    padding: 12px 16px 16px;
    position: sticky; bottom: 0; background: #fff;
    border-top: 1px solid var(--ps-border-light);
}
.filter-clear-link { font-size: 12px; color: var(--brand-blue); cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; }
.filter-clear-link:hover { color: var(--brand-blue-dark); }

/* Active filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #e8f0fe; color: var(--brand-navy);
    border: 1px solid #c5d9f0; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 500; padding: 4px 10px 4px 12px;
}

/* ------------------------------------------------------------
   § 13. HERO — BILLBOARD AD SLOT
   ------------------------------------------------------------ */
.hero-billboard {
    background: var(--brand-navy);
}
.hero-billboard .ps-container { padding-top: 14px; padding-bottom: 0; }

.ad-unit-billboard-hero {
    position: relative; overflow: hidden;
    border-radius: var(--r-md) var(--r-md) 0 0;
    min-height: 170px;
    background: linear-gradient(135deg, #0c1a3a 0%, #1B2E56 45%, #2054a0 100%);
    display: flex; align-items: center; justify-content: space-between;
    padding: 32px 44px;
}
.billboard-label {
    position: absolute; top: 10px; right: 14px;
    font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.45);
    letter-spacing: 0.6px; text-transform: uppercase;
    background: rgba(255,255,255,0.08); border-radius: var(--r-pill);
    padding: 2px 9px;
}
.sponsor-content { position: relative; z-index: 1; }
.sponsor-eyebrow {
    display: inline-block;
    background: var(--brand-blue); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    padding: 3px 10px; border-radius: var(--r-xs); margin-bottom: 10px;
}
.sponsor-headline { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.sponsor-sub      { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.5; }
.sponsor-cta      { display: inline-flex; gap: 10px; }

.sponsor-visual {
    position: relative; z-index: 1;
    text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.sponsor-aircraft       { font-size: 13px; color: rgba(255,255,255,0.5); }
.sponsor-aircraft-name  { font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.85); }
.sponsor-aircraft-price { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Hero search */
.hero-search-wrap { background: #113160; padding: 0 0 16px; }
.hero-search-wrap .ps-container { padding-top: 14px; }
.hero-search-context { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 8px; font-weight: 300; }

.hero-search-bar {
    display: flex; align-items: stretch; gap: 0;
    background: #fff; border-radius: var(--r-md); overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    height: 52px;
}
.hero-search-type {
    padding: 0 12px 0 14px;
    font-size: 14px; font-weight: 500; color: var(--text-primary);
    border: none; border-right: 1px solid var(--ps-border-color);
    background: #f8f9fa; height: 100%; min-width: 145px; cursor: pointer; outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23616161'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
    font-family: inherit;
}
.hero-search-input {
    flex: 1; padding: 0 16px; font-size: 15px;
    border: none; outline: none; color: var(--text-primary); background: transparent;
    font-family: inherit;
}
.hero-search-input::placeholder { color: #9aa0a6; font-weight: 300; }
.hero-search-btn {
    background: var(--brand-blue); color: #fff;
    padding: 0 26px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; white-space: nowrap; font-family: inherit;
    transition: background var(--t-fast);
}
.hero-search-btn:hover { background: var(--brand-blue-dark); }

/* ------------------------------------------------------------
   § 14. STATS BAR
   ------------------------------------------------------------ */
.stats-bar { background: #fff; border-bottom: 1px solid var(--ps-border-color); }
.stats-bar-inner { display: flex; }
.stat-item {
    flex: 1; text-align: center; padding: 16px 12px;
    border-right: 1px solid var(--ps-border-color);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.4px; }

/* Results bar (listings page) */
.results-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; margin-bottom: 14px;
    border-bottom: 1px solid var(--ps-border-color);
}
.results-count { font-size: 14px; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); font-weight: 500; }
.results-sort  { display: flex; align-items: center; gap: 8px; }
.results-sort label { font-size: 13px; color: var(--text-muted); }
.results-sort select {
    font-size: 13px; border: 1px solid var(--ps-border-color); border-radius: var(--r-xs);
    padding: 5px 28px 5px 10px; color: var(--text-primary); outline: none; cursor: pointer;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23616161'/%3E%3C/svg%3E") no-repeat right 8px center;
    font-family: inherit;
}

/* ------------------------------------------------------------
   § 15. FEATURE STRIP
   ------------------------------------------------------------ */
.feature-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--ps-border-color); border-bottom: 1px solid var(--ps-border-color);
}
.feature-item {
    padding: 20px 22px; text-align: center;
    border-right: 1px solid var(--ps-border-color);
}
.feature-item:last-child { border-right: none; }
.feature-icon  { font-size: 26px; margin-bottom: 6px; }
.feature-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.feature-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ------------------------------------------------------------
   § 16. AD UNITS
   ------------------------------------------------------------ */
.ad-unit {
    background: var(--ad-bg);
    border: 1px solid var(--ad-border);
    border-radius: var(--r-md);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.ad-unit-label {
    position: absolute; top: 6px; left: 10px;
    font-size: 10px; font-weight: 400; color: var(--ad-text);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.ad-unit-content     { text-align: center; padding: 16px; }
.ad-unit-placeholder { font-size: 13px; color: #8d9399; font-weight: 400; }
.ad-unit-dims        { font-size: 11px; color: #bec4ca; margin-top: 3px; }

/* Ad slot sizes */
.ad-leaderboard    { width: 100%; height: 90px; }
.ad-leaderboard-lg { width: 100%; height: 90px; }
.ad-mrec           { width: 100%; max-width: 300px; height: 250px; }
.ad-mrec-full      { width: 100%; height: 250px; }

/* Native in-feed ad */
.native-ad-card {
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color); border-radius: var(--r-md);
    padding: 14px; position: relative;
    display: flex; gap: 14px; align-items: flex-start;
}
.native-ad-tag {
    position: absolute; top: 8px; right: 10px;
    font-size: 10px; font-weight: 400; color: var(--ad-text);
    background: var(--ad-bg); border: 1px solid var(--ad-border);
    border-radius: var(--r-xs); padding: 2px 6px;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.native-ad-img  { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
.native-ad-body h5 { font-size: 13px; margin-bottom: 3px; color: var(--text-primary); font-weight: 500; }
.native-ad-body p  { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* ------------------------------------------------------------
   § 17. SECTION HEADERS
   ------------------------------------------------------------ */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.section-header h2 { margin-bottom: 0; }
.section-header a  { font-size: 13px; font-weight: 500; white-space: nowrap; }
.section-subtitle  { font-size: 14px; color: var(--text-muted); margin-top: -8px; margin-bottom: 20px; }

/* ------------------------------------------------------------
   § 18. BREADCRUMBS
   ------------------------------------------------------------ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); padding: 12px 0; flex-wrap: wrap; list-style: none; margin-bottom: 0; }
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--brand-blue); text-decoration: none; }
.breadcrumb-sep     { color: #bdc1c6; }
.breadcrumb-current { color: var(--text-secondary); }

/* NavPageHeader component — dark navy breadcrumb strip */
.page-header-title    { font-size: 22px; font-weight: 700; margin: 0; color: var(--brand-blue); }
.page-header-subtitle { font-size: 13px; margin: 4px 0 0; color: rgba(255,255,255,0.75); }
.breadcrumb-nav { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.breadcrumb-nav .breadcrumb-link  { color: #c0c6ce; text-decoration: none; transition: color var(--t-fast); }
.breadcrumb-nav .breadcrumb-link:hover { color: #fff; text-decoration: none; }
.breadcrumb-nav .breadcrumb-sep   { color: rgba(255,255,255,0.35); }
.breadcrumb-nav .breadcrumb-current { color: #c0c6ce; }

.divider { border: none; border-top: 1px solid var(--ps-border-color); margin: 20px 0; }

/* ------------------------------------------------------------
   § 19. TRUST BADGES + ENQUIRY CARD
   ------------------------------------------------------------ */
.trust-row  { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--ps-border-light); }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.trust-item span { font-size: 16px; }

.enquiry-card { background: var(--ps-bg-secondary); border: 1px solid var(--ps-border-color); border-radius: var(--r-md); overflow: hidden; }
.enquiry-card-head {
    background: var(--brand-navy); padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
}
.enquiry-card-head h3 { color: #fff; font-size: 15px; font-weight: 500; margin: 0; }
.enquiry-card-body    { padding: 20px; }

/* ------------------------------------------------------------
   § 20–23. LISTING DETAIL
   ------------------------------------------------------------ */
.listing-gallery {
    display: grid; grid-template-columns: 1fr 190px; gap: 8px; margin-bottom: 24px;
}
.gallery-main {
    aspect-ratio: 3/2; overflow: hidden;
    border-radius: var(--r-md); background: var(--section-grey);
}
.gallery-main img  { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs    { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumb {
    aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r-sm);
    cursor: pointer; background: var(--section-grey);
    border: 2px solid transparent; transition: border-color var(--t-fast);
}
.gallery-thumb:hover { border-color: var(--brand-blue); }
.gallery-thumb img   { width: 100%; height: 100%; object-fit: cover; }
.gallery-more {
    aspect-ratio: 3/2; background: var(--brand-navy);
    border-radius: var(--r-sm); display: flex;
    align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
}

.detail-layout  { display: grid; grid-template-columns: 1fr 310px; gap: 28px; align-items: start; }
.detail-sidebar { position: sticky; top: calc(var(--nav-height) + 16px); }

.detail-card { background: var(--ps-bg-secondary); border: 1px solid var(--ps-border-color); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.detail-card-header { padding: 14px 18px; border-bottom: 1px solid var(--ps-border-color); background: #fafafa; }
.detail-card-header h3 { font-size: 14px; font-weight: 500; margin: 0; color: var(--text-primary); }
.detail-card-body   { padding: 18px; }

/* Audience cards — /content/advertise */
.audience-card { padding: 24px; text-align: center; }
.audience-icon { margin-bottom: 12px; color: var(--brand-blue); }
.audience-icon i { width: 32px; height: 32px; }
.audience-stat { font-size: 22px; font-weight: 700; color: var(--brand-navy); margin-bottom: 6px; }
.audience-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.audience-desc { font-size: 13px; color: var(--text-muted); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--ps-border-light); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 9px 0; font-size: 13px; vertical-align: top; }
.spec-table td:first-child { color: var(--text-muted); font-weight: 400; width: 48%; padding-right: 12px; }
.spec-table td:last-child  { color: var(--text-primary); font-weight: 500; }

/* ------------------------------------------------------------
   § 24. PAGINATION
   ------------------------------------------------------------ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 28px 0; list-style: none; margin-bottom: 0; }
.pg-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--r-xs);
    font-size: 14px; font-weight: 400; cursor: pointer;
    transition: all var(--t-fast); border: 1px solid transparent;
    color: var(--text-secondary); background: transparent;
    text-decoration: none;
}
.pg-btn:hover    { background: var(--section-grey); border-color: var(--ps-border-color); text-decoration: none; color: var(--text-primary); }
.pg-btn.active   { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.pg-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.pg-dots { color: var(--text-muted); width: 28px; text-align: center; font-size: 14px; }

/* ------------------------------------------------------------
   § 25. FOOTER — prototype-v2 footer layout classes
   ------------------------------------------------------------ */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.4); font-size: 18px; transition: color var(--t-fast); text-decoration: none; }
.footer-social a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 13px; transition: color var(--t-fast); }
.footer-col ul li a:hover { color: #7DC8EF; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 8px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); font-size: 12px; transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ------------------------------------------------------------
   § 26. UTILITIES
   ------------------------------------------------------------ */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--sp-1) !important; }
.mb-2 { margin-bottom: var(--sp-2) !important; }
.mb-3 { margin-bottom: var(--sp-3) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mb-5 { margin-bottom: var(--sp-5) !important; }
.mb-6 { margin-bottom: var(--sp-6) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.p-3  { padding: var(--sp-3); }
.p-4  { padding: var(--sp-4); }
.p-5  { padding: var(--sp-5); }
.text-center { text-align: center !important; }
.d-none      { display: none; }
.d-block     { display: block; }
.d-flex      { display: flex; }
.w-100       { width: 100%; }
.rounded     { border-radius: var(--r-md); }

/* ------------------------------------------------------------
   § 27. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */
@media (max-width: 1199px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
}

@media (max-width: 991px) {
    .listings-layout  { grid-template-columns: 1fr; }
    .filter-sidebar   { position: static; max-height: none; }
    .detail-layout    { grid-template-columns: 1fr; }
    .listing-gallery  { grid-template-columns: 1fr; }
    .gallery-thumbs   { flex-direction: row; overflow-x: auto; }
    .gallery-thumb, .gallery-more { aspect-ratio: auto; width: 100px; height: 70px; }
    .grid-3           { grid-template-columns: repeat(2, 1fr); }
    .grid-4           { grid-template-columns: repeat(2, 1fr); }
    .feature-strip    { grid-template-columns: repeat(2, 1fr); }
    .footer-grid      { grid-template-columns: 1fr 1fr; }
    .footer-brand     { grid-column: span 2; }
}

@media (max-width: 767px) {
    .ps-nav-links     { display: none; }
    .ps-nav-hamburger { display: flex; }
    .hero-search-bar  {
        flex-direction: column; border-radius: 0; height: auto;
        background: transparent; box-shadow: none; gap: 8px; overflow: visible;
    }
    .hero-search-type  { border-radius: var(--r-md) !important; height: 46px; background: #fff; border: 1px solid rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.3); width: 100%; }
    .hero-search-input { border-radius: var(--r-md) !important; height: 46px; background: #fff; border: 1px solid rgba(255,255,255,0.3); }
    .hero-search-btn   { border-radius: var(--r-md) !important; height: 46px; width: 100%; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid       { grid-template-columns: 1fr; }
    .footer-brand      { grid-column: span 1; }
    .feature-strip     { grid-template-columns: 1fr 1fr; }
    .stats-bar-inner   { flex-wrap: wrap; }
    .stat-item         { min-width: 50%; }
    .ad-leaderboard    { height: 60px; }
    .sponsor-visual    { display: none; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .ad-unit-billboard-hero  { padding: 24px 20px; }
    .sponsor-headline  { font-size: 20px; }
}

/* ============================================================
   § LISTING DETAIL — TITLE BAR
   ============================================================ */
.detail-title-bar {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.detail-title-left { flex: 1; min-width: 0; }
.detail-title-right { text-align: right; flex-shrink: 0; }
.detail-title { font-size: 26px; font-weight: 700; color: var(--text-primary); margin: 6px 0 0; line-height: 1.2; }
.detail-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.detail-main { min-width: 0; }

@media (max-width: 767px) {
    .detail-title-bar { flex-direction: column; }
    .detail-title-right { text-align: left; }
    .detail-actions { justify-content: flex-start; }
}

/* ============================================================
   § LISTING DETAIL — SPEC GRID (Highlights)
   ============================================================ */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.spec-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ps-border-light);
    border-right: 1px solid var(--ps-border-light);
}
.spec-item:nth-child(even) { border-right: none; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }
.spec-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); margin-bottom: 4px;
}
.spec-label .lucide, .spec-label i { width: 13px; height: 13px; }
.spec-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }

/* ============================================================
   § LISTING DETAIL — SELLER INFO CARD
   ============================================================ */
.seller-info-wrap {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.seller-logo-wrap {
    width: 48px; height: 48px; flex-shrink: 0;
}
.seller-logo { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-sm); }
.seller-logo-initials {
    width: 48px; height: 48px;
    background: var(--brand-navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
    border-radius: var(--r-md);
}
.seller-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.seller-name a { color: inherit; text-decoration: none; }
.seller-name a:hover { color: var(--brand-blue); }
.seller-location { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }

/* ============================================================
   § UTILITY — MUTED LINK BUTTON
   ============================================================ */
.btn-link-muted {
    background: none; border: none; padding: 0;
    font-size: 12px; color: var(--text-muted);
    cursor: pointer; text-decoration: underline;
    font-family: inherit;
}

/* ============================================================
   § LISTING DETAIL — HEADER NAVY (breadcrumb + title bar)
   ============================================================ */
.detail-header-navy {
    background: var(--brand-navy);
    margin-left: calc(-1 * var(--ps-container-padding, 16px));
    margin-right: calc(-1 * var(--ps-container-padding, 16px));
    padding: 16px var(--ps-container-padding, 16px) 20px;
    margin-bottom: 24px;
}
.detail-header-navy .breadcrumb a { color: #c0c6ce; }
.detail-header-navy .breadcrumb a:hover { color: #fff; }
.detail-header-navy .breadcrumb-sep { color: rgba(255,255,255,0.3); }
.detail-header-navy .breadcrumb-current { color: #c0c6ce; }
.detail-header-navy .detail-title { color: var(--brand-blue); }
.detail-header-navy .detail-title-bar { margin-bottom: 0; }
.detail-header-navy .price-lg { color: var(--brand-blue); }
.detail-header-navy .badge-used,
.detail-header-navy .badge-featured { opacity: 0.9; }
.detail-header-navy .btn-icon { color: rgba(255,255,255,0.7); }
.detail-header-navy .btn-icon:hover { color: var(--brand-blue); }

/* ============================================================
   § LISTING GALLERY — ARROW BUTTONS (Lucide icons)
   ============================================================ */
.main-image-container { position: relative; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.45); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,0.85);
    transition: background var(--t-fast), color var(--t-fast);
    z-index: 2;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.7); color: var(--brand-blue); }
.gallery-arrow i, .gallery-arrow .lucide { width: 20px; height: 20px; }
.gallery-arrow-prev { left: 10px; }
.gallery-arrow-next { right: 10px; }
.gallery-thumb-active { border-color: var(--brand-blue) !important; }
.gallery-thumb { padding: 0; background: none; border: 2px solid transparent; }

/* ============================================================
   § ENQUIRY FORM — dark background text + form-input styles
   ============================================================ */
.form-input {
    display: block; width: 100%;
    padding: 9px 12px;
    font-size: 14px; line-height: 1.5;
    color: var(--text-primary);
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(45,147,209,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 90px; }

.enquiry-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
.enquiry-price { font-size: 22px; font-weight: 700; color: var(--brand-blue); }
.enquiry-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); }
.enquiry-dealer { font-size: 12px; color: rgba(255,255,255,0.55); }
.enquiry-success {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 24px 0; text-align: center;
    color: var(--text-primary);
}
.enquiry-success i, .enquiry-success .lucide { width: 40px; height: 40px; color: #27ae60; }

/* ============================================================
   § SIMILAR AIRCRAFT — 3-across carousel
   ============================================================ */
.similar-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.similar-carousel::-webkit-scrollbar { height: 4px; }
.similar-carousel::-webkit-scrollbar-track { background: var(--section-grey); border-radius: 2px; }
.similar-carousel::-webkit-scrollbar-thumb { background: var(--ps-border-color); border-radius: 2px; }
.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-width: min-content;
}
.similar-grid > * {
    scroll-snap-align: start;
    min-width: 280px;
}
@media (max-width: 767px) {
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
    .similar-grid > * { min-width: 240px; }
}
.btn-link-muted:hover { color: var(--text-secondary); }
