/* ============================================================
   HMC Discovery — Main Stylesheet
   Theme: Navy Blue / Teal — HMC Group brand identity
   ============================================================ */

:root {
    --green:       #1a3a6b;
    --green-mid:   #2f6fe0;
    --green-light: #4a86e8;
    --green-accent:#17a897;
    --gold:        #38bdf8;
    --gold-light:  #7dd3fc;
    --dark:        #0a1420;
    --dark-mid:    #0f1f38;
    --charcoal:    #16273f;
    --grey-dark:   #2c3035;
    --grey-mid:    #4a4f57;
    --grey-light:  #888e95;
    --off-white:   #f5f3ee;
    --white:       #ffffff;
    --text:        #2a2a2a;
    --text-light:  #5a5a5a;
    --border:      #e0ddd8;
    --red:         #c0392b;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
    --radius:      6px;
    --radius-lg:   12px;
    --transition:  all 0.3s ease;
    --font-head:   'Raleway', sans-serif;
    --font-body:   'Lato', sans-serif;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

/* ---- Utility ---------------------------------------------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4 { color: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.section-green h1,.section-green h2,.section-green h3,.section-green h4 { color: var(--white); }
.section-grey { background: var(--off-white); }

.text-center { text-align: center; }
.text-green { color: var(--green-accent); }
.text-gold { color: var(--gold); }

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}
.section-heading .eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-accent);
    margin-bottom: 12px;
}
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}
.section-heading p {
    max-width: 600px;
    margin: 16px auto 0;
    color: var(--text-light);
    font-size: 17px;
}
.section-dark .section-heading p,
.section-green .section-heading p { color: rgba(255,255,255,0.7); }
.section-dark .section-heading .eyebrow { color: var(--gold); }

/* ---- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-dark:hover { background: var(--green); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---- Top Bar ---------------------------------------------- */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid var(--charcoal);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar i { color: var(--green-accent); font-size: 12px; }

/* ---- Header ----------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-mid);
    border-bottom: 2px solid var(--green);
    box-shadow: var(--shadow-lg);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
    display: block;
    height: 48px;
    width: auto;
}
.logo-icon {
    width: 44px; height: 44px;
    background: var(--green-mid);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}
.logo-sub {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

/* Nav */
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 14px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.main-nav > ul > li > a i { font-size: 10px; transition: var(--transition); }
.main-nav > ul > li:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--charcoal);
    border: 1px solid var(--grey-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
/* Anchor from the right instead of the left for dropdowns positioned further
   along the nav bar, so a wide menu (e.g. long guide titles) grows back toward
   the trigger instead of running off the right edge of the page. */
.dropdown-right { left: auto; right: 0; }
.dropdown li a {
    display: block;
    padding: 11px 18px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--white); background: rgba(255,255,255,0.06); padding-left: 24px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ---- Hero ------------------------------------------------- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(10,20,32,0.82) 0%, rgba(10,20,32,0.55) 60%, rgba(10,20,32,0.3) 100%),
        url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.015) 60px,
            rgba(255,255,255,0.015) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255,255,255,0.015) 60px,
            rgba(255,255,255,0.015) 61px
        );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.hero h1 {
    font-size: clamp(38px, 6vw, 70px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero h1 em { color: var(--green-accent); font-style: normal; }
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 550px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,20,32,0.9);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.hero-badges .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.hero-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.12);
}
.hero-badge:first-child { padding-left: 0; border-left: none; }
.hero-badge-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--green-accent);
    color: var(--green-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.hero-badge-icon-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; }
.hero-badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.hb-title {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--white);
}
.hb-sub { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }

.hero-ribbon {
    background: var(--green-accent);
    color: var(--dark);
    text-align: center;
    padding: 12px 20px;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---- Search Bar ------------------------------------------- */
/* ---- Search Section --------------------------------------- */
.search-section {
    position: relative;
    background: var(--dark);
    padding: 72px 0 64px;
    overflow: hidden;
}

.search-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.018) 60px, rgba(255,255,255,0.018) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.018) 60px, rgba(255,255,255,0.018) 61px);
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--green-mid));
}

.search-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.search-header {
    text-align: center;
    margin-bottom: 36px;
}

.search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.search-header h2 {
    color: var(--white);
    font-size: clamp(26px, 3.5vw, 38px);
    margin-bottom: 16px;
}

.search-stock-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23,168,151,0.12);
    border: 1px solid rgba(23,168,151,0.28);
    color: var(--green-accent);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 24px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background: var(--green-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Model tabs */
.model-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.model-tab {
    padding: 8px 22px;
    border: 1.5px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.model-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.model-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

/* Search form dark */
.search-form-dark {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 32px;
}

.sfd-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sfd-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.sfd-field label i { color: var(--gold); font-size: 10px; }

.sfd-field select {
    width: 100%;
    padding: 13px 36px 13px 14px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.sfd-field select option { background: #1a2e20; color: var(--white); }

.sfd-field select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(255,255,255,0.1);
}

.sfd-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    font-size: 14px;
    white-space: nowrap;
}

/* Trust signals */
.search-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.search-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
}

.search-trust span i { color: var(--green-accent); }

/* Inventory page still uses .search-form for its sidebar filters */
.search-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto; gap: 12px; align-items: end; }
.search-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.search-form label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-light); text-transform: uppercase; }
.search-form select, .search-form input { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--text); transition: var(--transition); width: 100%; }
.search-form select:focus, .search-form input:focus { outline: none; border-color: var(--green-mid); }

/* ---- Vehicle Cards ---------------------------------------- */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.featured-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.featured-grid .card-image { height: 160px; }
.featured-grid .card-title { font-size: 15px; }
.featured-grid .card-subtitle { font-size: 12px; margin-bottom: 10px; }
.featured-grid .card-specs { gap: 6px; }
.featured-grid .spec-item { font-size: 11.5px; }
.featured-grid .card-body { padding: 16px; }
.featured-grid .card-footer .btn { font-size: 12px; padding: 9px 12px; }

.vehicle-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--off-white);
}
.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.vehicle-card:hover .card-image img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-head);
}
.badge-available { background: var(--green-mid); color: var(--white); }
.badge-sold { background: var(--red); color: var(--white); }
.badge-reserved { background: var(--gold); color: var(--dark); }
.badge-featured { background: var(--dark); color: var(--gold); }

.card-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10,20,32,0.9);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.3;
}
.card-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--off-white);
    border-radius: var(--radius);
}
.spec-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); }
.spec-item i { color: var(--green-mid); font-size: 12px; width: 14px; text-align: center; }
.spec-item span { font-weight: 500; }

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
.card-footer .btn { flex: 1; justify-content: center; }

/* ---- Inventory Page --------------------------------------- */
.inventory-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.filter-header {
    background: var(--green);
    color: var(--white);
    padding: 18px 22px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-section { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section h5 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}
.filter-section select,
.filter-section input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--white);
    transition: var(--transition);
}
.filter-section select:focus,
.filter-section input:focus { outline: none; border-color: var(--green-mid); }
.filter-section .price-range { display: flex; gap: 8px; }
.filter-section .price-range input { width: 50%; }
.filter-actions { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.inventory-header h1 { font-size: 26px; }
.results-count { font-size: 14px; color: var(--text-light); }
.sort-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-bar select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; }

/* ---- Vehicle Detail --------------------------------------- */
.vehicle-detail { padding: 50px 0; }

.detail-gallery {
    position: relative;
}
.main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--off-white);
    margin-bottom: 12px;
}
.main-image img { width: 100%; height: auto; display: block; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
    width: 80px; height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumb:hover, .thumb.active { border-color: var(--green-mid); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.detail-info h1 { font-size: 32px; margin-bottom: 6px; }
.detail-price {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 24px;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}
.detail-spec { text-align: center; }
.detail-spec i { font-size: 20px; color: var(--green-mid); margin-bottom: 6px; }
.detail-spec .val { display: block; font-weight: 700; font-size: 15px; }
.detail-spec .lbl { font-size: 12px; color: var(--text-light); }

.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 12px;
    background: var(--off-white);
    border-radius: var(--radius);
}
.features-list li i { color: var(--green-accent); font-size: 12px; }

/* ---- Spec highlights & accordion -------------------------- */
.spec-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.spec-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: 0.2px;
}

.spec-highlight-badge i { color: var(--gold); font-size: 10px; }

.spec-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-acc-section { border-bottom: 1px solid var(--border); }
.spec-acc-section:last-child { border-bottom: none; }

.spec-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    transition: background 0.2s;
}

.spec-acc-header:hover { background: var(--off-white); }
.spec-acc-section.open > .spec-acc-header { background: var(--off-white); color: var(--green); }

.spec-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    background: var(--green);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.spec-acc-section.open .spec-count { background: var(--green-mid); }

.spec-acc-icon {
    color: var(--text-light);
    font-size: 11px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.spec-acc-section.open .spec-acc-icon { transform: rotate(180deg); color: var(--green); }

.spec-acc-body {
    display: none;
    padding: 4px 18px 16px;
    background: var(--white);
}

.spec-acc-section.open .spec-acc-body { display: block; }

.spec-acc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-acc-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: var(--text);
    padding: 5px 0;
    border-bottom: 1px solid var(--off-white);
    line-height: 1.4;
}

.spec-acc-list li i {
    color: var(--green-mid);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
}

.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }

.enquiry-card {
    background: var(--green);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white);
}
.enquiry-card h3 { font-size: 20px; margin-bottom: 18px; color: var(--white); }
.enquiry-card .form-group { margin-bottom: 14px; }
.enquiry-card label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: rgba(255,255,255,0.8); }
.enquiry-card input,
.enquiry-card textarea,
.enquiry-card select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.enquiry-card input::placeholder { color: rgba(255,255,255,0.4); }
.enquiry-card input:focus,
.enquiry-card textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.15); }

.finance-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}
.finance-card h4 { margin-bottom: 12px; }
.monthly-estimate {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--green);
}
.monthly-estimate span { font-size: 14px; font-weight: 400; color: var(--text-light); }

/* ---- Blog Cards ------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.blog-image { height: 200px; overflow: hidden; background: var(--off-white); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green-accent);
    margin-bottom: 8px;
}
.blog-body h3 { font-size: 19px; margin-bottom: 10px; }
.blog-body p { font-size: 14px; color: var(--text-light); flex: 1; }
.blog-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; }

/* ---- Forms ------------------------------------------------ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47,111,224,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Page Header ------------------------------------------ */
.page-header {
    background-color: var(--dark);
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center 40%;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

/* dark gradient overlay so text is always legible */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,11,19,0.87) 0%, rgba(26,58,107,0.74) 100%);
    z-index: 0;
}

/* bottom accent bar */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-accent), var(--gold));
    z-index: 2;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 { color: var(--white); font-size: clamp(28px, 4vw, 48px); margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.page-header p { color: rgba(255,255,255,0.75); font-size: 17px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }

/* ---- Why Choose Us ---------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--charcoal);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--green-accent); }
.feature-icon {
    width: 64px; height: 64px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: var(--gold);
}
.feature-card h3 { font-size: 17px; color: var(--white); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: rgba(255,255,255,0.6); }

/* ---- Hero secondary link / trust line ---------------------- */
.hero-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.35);
}
.hero-link-secondary:hover { color: var(--gold); }
.hero-trust-line {
    margin-top: 18px !important;
    font-size: 12.5px !important;
    color: rgba(255,255,255,0.55) !important;
    max-width: 100% !important;
}
.hero-trust-line i { margin-right: 6px; }

/* ---- Journey Block ------------------------------------------ */
.journey-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.journey-card {
    /* min-width:0 lets grid items shrink below their content's natural width —
       without it, a nowrap button (e.g. "Upgrade Centre") can force this card,
       and therefore the whole 5-column row, wider than the viewport. */
    min-width: 0;
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    background: var(--off-white);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.journey-card .btn { white-space: normal; }
.journey-card:hover { transform: translateY(-4px); border-color: var(--green-mid); box-shadow: var(--shadow-md); }
.journey-icon {
    width: 56px; height: 56px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
}
.journey-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--dark); }
.journey-card p { font-size: 13px; color: var(--text-light); margin-bottom: 18px; flex: 1; }

/* ---- HMC Intro ------------------------------------------------ */
.hmc-intro-grid { max-width: 760px; margin: 0 auto; text-align: center; }
.hmc-intro-copy .eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 12px;
}
.hmc-intro-copy h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; }
.hmc-intro-copy > p { color: var(--text-light); font-size: 16px; margin-bottom: 28px; }
.hmc-intro-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    text-align: left;
    margin-bottom: 32px;
}
.hmc-intro-list li { font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.hmc-intro-list i { color: var(--green-mid); }

/* ---- Approved bullets ---------------------------------------- */
.approved-bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.approved-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
}
.approved-bullets i { color: var(--green-accent); }

/* ---- Why Buy From HMC --------------------------------------- */
.why-buy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.why-buy-card {
    text-align: center;
    padding: 30px 22px;
    border-radius: var(--radius-lg);
    background: var(--charcoal);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.why-buy-card:hover { transform: translateY(-4px); border-color: var(--green-accent); }
.why-buy-icon {
    width: 56px; height: 56px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 22px;
    color: var(--gold);
    flex-shrink: 0;
}
.why-buy-card h3 { font-size: 16.5px; color: var(--white); margin-bottom: 10px; }
.why-buy-card p { font-size: 13.5px; color: rgba(255,255,255,0.62); line-height: 1.6; }
.why-buy-fineprint { font-size: 11.5px !important; color: rgba(255,255,255,0.4) !important; margin-top: 8px; }

.why-buy-secondary { margin-bottom: 36px; }

.why-buy-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

.why-buy-terms {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Topic cards (buyer guides / common issues) --------------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.topic-grid-3 { grid-template-columns: repeat(3, 1fr); }
.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-decoration: none;
    transition: var(--transition);
}
.topic-card:hover { border-color: var(--green-mid); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.topic-icon {
    width: 52px; height: 52px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--gold);
}
.topic-card h3 { font-size: 15.5px; color: var(--dark); margin-bottom: 10px; }
.topic-link { font-size: 13px; font-weight: 700; color: var(--green-mid); }

/* ---- Sell CTA -------------------------------------------------- */
.sell-cta-section { background: var(--dark-mid); }
.sell-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.sell-cta-box h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.sell-cta-box p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 560px; margin: 0; }

/* ---- Testimonials ----------------------------------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonials-grid.reviews-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reviews-grid-4 .testimonial { padding: 22px; }
.reviews-grid-4 .testimonial p { font-size: 13.5px; }
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
}
.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 20px;
    font-size: 60px;
    color: var(--green-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}
.stars { color: var(--gold); font-size: 14px; margin-bottom: 12px; }
.testimonial p { font-size: 15px; color: var(--text); margin-bottom: 16px; font-style: italic; }
.reviewer { font-weight: 700; font-size: 14px; }
.reviewer span { color: var(--text-light); font-weight: 400; }

/* ---- Finance Calculator ----------------------------------- */
.finance-calculator {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.calc-result {
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}
.calc-monthly {
    font-family: var(--font-head);
    font-size: 54px;
    font-weight: 900;
    color: var(--gold);
}
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.calc-item { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 12px; text-align: center; }
.calc-item .val { font-weight: 700; font-size: 17px; }
.calc-item .lbl { font-size: 12px; opacity: 0.7; }

/* ---- CTA Banner ------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--green) 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(23,168,151,0.1) 0%, transparent 60%);
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 44px); color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Admin Panel ------------------------------------------ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    border-right: 1px solid var(--charcoal);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.admin-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-brand i { font-size: 20px; color: var(--gold); }
.admin-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 14px; }
.admin-brand .admin-sub { font-size: 10px; color: rgba(255,255,255,0.4); display: block; }
.admin-logo-img { height: 40px; }

.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    font-size: 14px;
    font-family: var(--font-head);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-left-color: var(--green-accent);
}
.admin-nav a i { width: 18px; text-align: center; font-size: 15px; }
.admin-nav .nav-section {
    padding: 16px 22px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.admin-main { flex: 1; background: #f0f2f0; overflow-y: auto; }
.admin-topbar {
    background: var(--white);
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-topbar h1 { font-size: 20px; }
.admin-content { padding: 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-card-icon.green { background: rgba(47,111,224,0.1); color: var(--green-mid); }
.stat-card-icon.gold { background: rgba(56,189,248,0.1); color: var(--gold); }
.stat-card-icon.red { background: rgba(192,57,43,0.1); color: var(--red); }
.stat-card-icon.blue { background: rgba(52,152,219,0.1); color: #3498db; }
.stat-card-body .number { font-family: var(--font-head); font-size: 32px; font-weight: 900; color: var(--dark); line-height: 1; }
.stat-card-body .label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* Admin Table */
.admin-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.admin-table-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.admin-table-header h2 { font-size: 17px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--off-white);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,0.02); }
.admin-table img { width: 70px; height: 50px; object-fit: cover; border-radius: var(--radius); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-green { background: rgba(47,111,224,0.1); color: var(--green-mid); }
.badge-red { background: rgba(192,57,43,0.1); color: var(--red); }
.badge-orange { background: rgba(243,156,18,0.1); color: #e67e22; }

.action-btns { display: flex; gap: 6px; }
.btn-icon {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
}
.btn-icon:hover { transform: scale(1.1); }
.btn-icon.edit { color: #3498db; border-color: #3498db; }
.btn-icon.delete { color: var(--red); border-color: var(--red); }
.btn-icon.view { color: var(--green-mid); border-color: var(--green-mid); }

/* Admin Form */
.admin-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
}
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }
.admin-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; color: var(--text-light); }
.admin-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
}
.admin-input:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(47,111,224,0.1); }
textarea.admin-input { min-height: 120px; resize: vertical; }

/* Flash Messages */
.flash { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.flash-success { background: rgba(47,111,224,0.1); color: var(--green-mid); border-left: 3px solid var(--green-mid); }
.flash-error { background: rgba(192,57,43,0.1); color: var(--red); border-left: 3px solid var(--red); }

/* ---- Alerts & Notices ------------------------------------- */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; border-left: 4px solid; }
.alert-success { background: #f0faf4; border-color: var(--green-mid); color: var(--green); }
.alert-error { background: #fdf2f2; border-color: var(--red); color: var(--red); }
.alert-info { background: #f0f7ff; border-color: #3498db; color: #2980b9; }

/* ---- Pagination ------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}
.page-link:hover { border-color: var(--green-mid); color: var(--green-mid); }
.page-link.active { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }

/* ---- Contact ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info h2 { font-size: 28px; margin-bottom: 20px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-detail .icon {
    width: 44px; height: 44px;
    background: var(--green);
    color: var(--gold);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-detail h4 { font-size: 14px; margin-bottom: 2px; }
.contact-detail p { font-size: 14px; color: var(--text-light); }
.map-embed { width: 100%; height: 300px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ---- Content Pages (SEO) ---------------------------------- */
.content-page { padding: 60px 0; }
.content-page .lead { font-size: 19px; color: var(--text-light); margin-bottom: 36px; line-height: 1.8; }
.content-page h2 { font-size: 26px; margin: 36px 0 14px; color: var(--dark); }
.content-page h3 { font-size: 20px; margin: 28px 0 10px; }
.content-page p { margin-bottom: 16px; line-height: 1.8; }
.content-page ul { margin: 0 0 16px 20px; }
.content-page ul li { margin-bottom: 8px; line-height: 1.7; }
.content-page ul li::marker { color: var(--green-mid); }

.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th { background: var(--green); color: var(--white); padding: 14px 16px; text-align: left; font-family: var(--font-head); }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) td { background: var(--off-white); }
.comparison-table tr:hover td { background: rgba(47,111,224,0.05); }

/* Comparison tables don't shrink below their content's natural width — let them
   scroll horizontally on narrow screens instead of forcing the whole page wider. */
@media (max-width: 700px) {
    .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Shared marker for ad-hoc two-column page layouts (inline grid-template-columns)
   that need to stack on mobile. The inline style sets the desktop column ratio;
   !important is required here because it's overriding an inline style. */
@media (max-width: 700px) {
    .stack-mobile { grid-template-columns: 1fr !important; }
}

/* ---- Mobile Menu ------------------------------------------ */
@media (max-width: 1024px) {
    .hero-badges .container { grid-template-columns: repeat(3, 1fr); }
    .hero-badge:nth-child(3n+1) { padding-left: 0; border-left: none; }
    .hb-sub { display: none; }

    .main-nav { display: none; }
    .hamburger { display: flex; }
    
    .main-nav.open {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: var(--dark);
        z-index: 2000;
        flex-direction: column;
        overflow-y: auto;
    }
    .main-nav.open ul { flex-direction: column; align-items: stretch; padding: 80px 24px 24px; gap: 0; }
    .main-nav.open > ul > li > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; }
    .dropdown { position: static; min-width: 0; width: 100%; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; border: none; }
    .dropdown li a { padding: 10px 0 10px 20px; color: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(255,255,255,0.04); }
}

@media (max-width: 768px) {
    .inventory-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .detail-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 70vh; }
    .hero-badges .container { display: none; }
    .topbar-right { display: none; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .detail-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid.reviews-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .journey-grid { grid-template-columns: repeat(3, 1fr); }
    .hmc-intro-list { grid-template-columns: 1fr; }
    .sell-cta-box { text-align: center; justify-content: center; }
    .topic-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .why-buy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .search-form { grid-template-columns: 1fr; }
    .vehicles-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .testimonials-grid.reviews-grid-4 { grid-template-columns: 1fr; }
    .journey-grid { grid-template-columns: 1fr; }
    .topic-grid { grid-template-columns: 1fr 1fr; }
    .topic-grid-3 { grid-template-columns: 1fr; }
    .why-buy-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .section { padding: 50px 0; }
}

/* ---- WhatsApp Float --------------------------------------- */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Main button */
.wa-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

.wa-btn i {
    font-size: 28px;
    color: #fff;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
    font-size: 20px !important;
}

/* Pulse ring when popup is closed */
.wa-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.5);
    animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { opacity: 1; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* Open state */
.wa-float.is-open .wa-btn::before { animation: none; opacity: 0; }
.wa-float.is-open .wa-icon-open  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.wa-float.is-open .wa-icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Popup */
.wa-popup {
    /* Positioned out of normal flow so it never affects #wa-float's box size —
       previously it stayed in the flex layout even while invisible (opacity:0),
       leaving a large invisible area that intercepted taps meant for whatever
       was underneath it on the page. */
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 310px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    overflow: hidden;
    transform: translateY(16px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: bottom right;
}

.wa-float.is-open .wa-popup {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Popup header */
.wa-popup-head {
    background: #075E54;
    padding: 16px 16px 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-popup-avatar {
    width: 42px;
    height: 42px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-popup-avatar i { font-size: 22px; color: #fff; }

.wa-popup-info { flex: 1; min-width: 0; }

.wa-popup-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-popup-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.wa-online-dot {
    width: 7px;
    height: 7px;
    background: #25D366;
    border-radius: 50%;
    flex-shrink: 0;
    animation: wa-pulse-dot 2s ease-in-out infinite;
}

@keyframes wa-pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.wa-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.wa-close:hover { color: #fff; }

/* Popup body */
.wa-popup-body {
    padding: 18px 16px 12px;
    background: #ECE5DD;
}

.wa-bubble {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    max-width: 90%;
}

.wa-bubble::before {
    content: '';
    position: absolute;
    top: 0; left: -8px;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
}

.wa-bubble p {
    font-size: 13.5px;
    color: #303030;
    line-height: 1.55;
    margin: 0 0 4px;
}

.wa-bubble p:last-child { margin-bottom: 0; }

/* Popup footer */
.wa-popup-foot {
    padding: 14px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.wa-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wa-start-btn:hover {
    background: #20ba5a;
    color: #fff;
    transform: translateY(-1px);
}

.wa-start-btn i { font-size: 18px; }

@media (max-width: 480px) {
    .wa-float { bottom: 18px; right: 18px; }
    .wa-popup { width: calc(100vw - 36px); }
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    position: relative;
}

.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--green-mid));
}

.footer-main { padding: 64px 0 48px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 48px;
}

/* Brand column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Column headings */
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Nav link columns */
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }

.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 0;
    color: rgba(255,255,255,0.6);
    font-size: 13.5px;
    padding: 5px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 6px;
}

/* Contact column */
.footer-contact { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

.footer-contact p i {
    color: var(--gold);
    width: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--gold); }

/* Opening hours */
.footer-hours {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.footer-hours h5 {
    font-family: var(--font-head);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-hours p {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin: 0;
}

.footer-hours p:last-child { border-bottom: none; }
.footer-hours .hours-day { color: rgba(255,255,255,0.75); }
.footer-hours .hours-time { color: rgba(255,255,255,0.5); }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom > .container > p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-legal a {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--gold); }

/* ---- HMC Group trust bar ---------------------------------- */
.hmc-bar {
    background: var(--dark-mid);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 18px 0;
}

.hmc-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.hmc-group-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.hmc-group-link:hover { opacity: 0.8; }

.hmc-group-logo {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.3);
    border-radius: var(--radius);
    padding: 4px 12px;
    flex-shrink: 0;
}

.hmc-group-info { flex-shrink: 0; }

.hmc-group-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-head);
}

.hmc-group-desc {
    display: block;
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.hmc-trust-badges {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.hmc-trust-badge {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hmc-trust-badge i {
    font-size: 18px;
    flex-shrink: 0;
}

.hmc-trust-badge strong {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    line-height: 1.3;
}

.hmc-trust-badge span {
    display: block;
    font-size: 10.5px;
    color: rgba(255,255,255,0.35);
    line-height: 1.3;
}

/* ---- JLR non-affiliation disclaimer ----------------------- */
.jlr-disclaimer {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 14px 0;
}

.jlr-disclaimer p {
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    line-height: 1.6;
    margin: 0;
}

.jlr-disclaimer p i {
    margin-right: 4px;
    font-size: 10px;
}

.jlr-disclaimer strong { color: rgba(255,255,255,0.38); }

@media (max-width: 1024px) {
    .search-form-dark { grid-template-columns: 1fr 1fr; }
    .sfd-submit { grid-column: span 2; }
    .sfd-submit .btn { max-width: 260px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
    .search-form-dark { grid-template-columns: 1fr; }
    .sfd-submit { grid-column: span 1; }
    .sfd-submit .btn { max-width: 100%; }
    .search-trust { gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: span 1; }
    .footer-main { padding: 48px 0 36px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; gap: 16px; }
    .hmc-bar-inner { flex-direction: column; gap: 16px; }
    .hmc-trust-badges { gap: 16px; }
    .hmc-group-link { flex-wrap: wrap; }
}

/* ---- Blog inline figures ---------------------------------- */
.post-figure {
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.post-figure img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.post-figure figcaption {
    background: var(--off-white);
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    border-top: 1px solid var(--border);
}

/* ---- Print ------------------------------------------------ */
@media print { .site-header, .topbar, .site-footer, .enquiry-card, .cta-banner { display: none; } }

/* ============================================================
   NEW FEATURES
   ============================================================ */

/* ---- HPI Badge -------------------------------------------- */
.hpi-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--green);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.hpi-badge i { color: var(--gold); }

/* ---- Trust Badges (vehicle detail header) ----------------- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}
.trust-badge i { color: var(--gold); }

/* ---- Favourites button ------------------------------------ */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--grey-mid);
    transition: var(--transition);
    z-index: 3;
    box-shadow: var(--shadow-sm);
}
.fav-btn:hover, .fav-btn.fav-active { color: #e74c3c; }
.fav-btn.fav-active i { font-weight: 900; }
.fav-btn.fav-active i::before { content: '\f004'; font-family: 'Font Awesome 6 Free'; }

/* Fav nav button */
.fav-nav-btn { position: relative; }
.fav-nav-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--dark);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---- Compare checkbox on cards ---------------------------- */
.compare-check {
    position: absolute;
    bottom: 44px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
    user-select: none;
}
.compare-check input { cursor: pointer; }
.compare-check:has(input:checked) { background: var(--green); color: var(--white); }

/* ---- Compare floating bar --------------------------------- */
.compare-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-top: 2px solid var(--gold);
    padding: 14px 0;
    z-index: 900;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.compare-bar.visible { bottom: 0; }
.compare-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.compare-bar-label { color: var(--white); font-size: 14px; white-space: nowrap; }
.compare-bar-label strong { color: var(--gold); }
.compare-bar-items { display: flex; gap: 12px; flex: 1; }
.compare-bar-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 4px 12px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}
.compare-bar-actions { display: flex; gap: 8px; }

/* ---- Compare page ----------------------------------------- */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.compare-label-col { width: 160px; min-width: 140px; }
.compare-label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--off-white);
}
.compare-car-head { text-align: center; }
.compare-car-head img {
    width: 100%;
    max-width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.compare-car-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.compare-car-price { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--green); }
.compare-table th { background: var(--off-white); border-bottom: 2px solid var(--border); }
.compare-price-row td { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.compare-best { background: rgba(23,168,151,0.08) !important; }
.compare-best-label {
    display: inline-block;
    background: var(--green-mid);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius);
    margin-left: 6px;
    vertical-align: middle;
}
.compare-section-header td {
    background: var(--charcoal);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    colspan: 4;
}
.compare-section-header i { margin-right: 6px; color: var(--gold); }

/* ---- Lightbox --------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.lightbox-inner {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-inner img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10000;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    background: rgba(0,0,0,0.5);
    padding: 4px 14px;
    border-radius: 20px;
}

/* Gallery zoom hint & counter */
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.main-image:hover .gallery-zoom-hint { opacity: 1; }
.gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ---- Notify Me card (sold vehicles) ----------------------- */
.notify-me-card {
    display: flex;
    gap: 20px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
    margin-bottom: 24px;
}
.notify-me-icon {
    width: 48px;
    height: 48px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--gold);
}
.notify-me-content h3 { font-size: 16px; margin-bottom: 6px; }
.notify-me-content p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.notify-form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-form input[type=email] {
    flex: 1;
    min-width: 200px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}
.notify-success {
    color: var(--green-mid);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Testimonials upgrade --------------------------------- */
.reviews-section { background: var(--off-white); }
.aggregate-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.agg-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.agg-score { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark); }
.agg-count { font-size: 13px; color: var(--text-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.testimonial-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.testimonial-vehicle { font-size: 11px; color: var(--text-light); background: var(--off-white); padding: 3px 8px; border-radius: var(--radius); }
.testimonial .stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.testimonial p { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 16px; font-style: italic; }
.testimonial .reviewer { font-size: 13px; font-weight: 700; color: var(--dark); }
.testimonial .reviewer span { font-weight: 400; color: var(--text-light); }

/* ---- Stock Alert page form -------------------------------- */
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
}

/* ---- Responsive adjustments ------------------------------ */
@media (max-width: 768px) {
    .notify-me-card { flex-direction: column; }
    .compare-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .trust-badges { gap: 6px; }
    .trust-badge { font-size: 11px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .compare-table th, .compare-table td { padding: 10px 10px; }
    .aggregate-rating { flex-wrap: wrap; gap: 6px; }
}
