/*
Theme Name: Ryan Auto
Theme URI: http://ryanautomotive.net/
Author: Ryan Automotive
Description: A custom WordPress theme for Ryan Automotive - a used car dealership in Louisville, KY. Features vehicle inventory, contact info, store hours, and quick links to shop by vehicle type.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ryanauto
*/

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #222;
    background: #f6f7f9;
    line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c8102e; text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { margin: 0 0 .5em; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top Bar ---------- */
.topbar {
    background: #111;
    color: #fff;
    font-size: 14px;
}
.topbar .container {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.topbar a { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 3px solid #c8102e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}
.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
}
.site-logo .logo-mark {
    width: 44px; height: 44px;
    background: #c8102e;
    color: #fff;
    border-radius: 6px;
    display: grid; place-items: center;
    font-weight: 800;
}
.site-logo .brand-link { gap: 14px; }
.site-logo-img,
.site-logo .custom-logo {
    width: auto;
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
}
.site-logo .brand-name {
    color: #111;
    white-space: nowrap;
}
.main-nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: #222;
    font-weight: 600;
    border-radius: 4px;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
    background: #c8102e; color: #fff; text-decoration: none;
}

.main-nav .nav-menu > li { position: relative; }
.main-nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #dedede;
    border-top: 3px solid #c8102e;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a {
    display: block;
    border-radius: 0;
    padding: 10px 14px;
    white-space: nowrap;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 44px; margin-bottom: 12px; }
.hero p { font-size: 18px; max-width: 700px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #c8102e;
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    border: 2px solid #c8102e;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn:hover { background: #a30d25; border-color: #a30d25; text-decoration: none; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: #fff; color: #c8102e; }

/* ---------- Shop By Type ---------- */
.shop-types { padding: 50px 0; background: #fff; }
.shop-types h2 { text-align: center; margin-bottom: 30px; }
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.type-card {
    background: #f6f7f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
    color: #222;
    font-weight: 700;
}
.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #c8102e;
}
.type-card .icon { font-size: 36px; margin-bottom: 8px; display:block; }

/* ---------- Inventory ---------- */
.inventory { padding: 60px 0; }
.inventory h2 { text-align: center; margin-bottom: 30px; }
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.vehicle-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; flex-direction: column;
}
.vehicle-card img { aspect-ratio: 16/10; object-fit: cover; }
.vehicle-card .body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.vehicle-card h3 { font-size: 18px; margin-bottom: 4px; }
.vehicle-card .year { color: #666; font-size: 14px; }
.vehicle-card .price {
    color: #c8102e; font-size: 22px; font-weight: 800;
    margin: 10px 0;
}
.vehicle-card .btn { margin-top: auto; text-align: center; }

/* ---------- Contact / Hours ---------- */
.info-section {
    background: #111;
    color: #fff;
    padding: 60px 0;
}
.info-section a { color: #fff; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.info-grid h3 {
    color: #c8102e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    border-bottom: 2px solid #c8102e;
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #333;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #000;
    color: #aaa;
    padding: 24px 0;
    font-size: 14px;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer a { color: #ccc; margin: 0 6px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .hero h1 { font-size: 32px; }
    .main-nav ul { width: 100%; }
    .topbar .container { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Dealership Workflow UI ---------- */
.utility-bar {
    background: #0d0d0d;
    border-bottom: 1px solid #2a2a2a;
}
.utility-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
}
.utility-inner a { color: #fff; font-weight: 700; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.shop-tabs {
    background: #1b1b1b;
    border-top: 1px solid #2f2f2f;
}
.shop-tabs-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
}
.shop-tabs a {
    display: block;
    padding: 14px 12px;
    color: #fff;
    text-align: center;
    font-weight: 800;
    background: #242424;
}
.shop-tabs a:hover { background: #c8102e; text-decoration: none; }

.home-hero {
    background: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)), url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
    min-height: 390px;
    display: flex;
    align-items: center;
}
.hero-content { padding-top: 78px; padding-bottom: 78px; }
.hero-content h1 { font-size: 48px; margin-bottom: 8px; }
.hero-content p { max-width: 600px; font-size: 19px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-shop-section { background: #fff; border-bottom: 1px solid #ddd; }
.quick-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.quick-shop-card {
    background: #111;
    color: #fff;
    border-left: 5px solid #c8102e;
    padding: 18px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 800;
}
.quick-shop-card:hover { color: #fff; background: #c8102e; text-decoration: none; }

.btn-light {
    background: #fff;
    color: #c8102e;
    border-color: #dedede;
}
.btn-light:hover {
    background: #f3f3f3;
    color: #a30d25;
    border-color: #cfcfcf;
}
.section-heading-row,
.inventory-toolbar,
.compare-bar,
.pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.inventory-section,
.content-section,
.inventory-archive,
.vehicle-detail-page { padding: 42px 0; }
.page-card,
.empty-inventory {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 28px;
}
.empty-inventory { text-align: center; }

.inventory-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.inventory-sidebar { position: sticky; top: 12px; }
.inventory-filter {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 18px;
    display: grid;
    gap: 12px;
}
.filter-heading {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 3px solid #c8102e;
}
.inventory-filter label,
.lead-form label,
.payment-calculator label,
.vehicle-admin-form label,
.vehicle-email-form label {
    display: grid;
    gap: 5px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}
.inventory-filter input,
.inventory-filter select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.payment-calculator input,
.vehicle-admin-form input,
.vehicle-admin-form select,
.vehicle-admin-form textarea,
.vehicle-email-form input,
.vehicle-email-form select,
.vehicle-email-form textarea {
    width: 100%;
    border: 1px solid #cfd4da;
    border-radius: 4px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
}
.filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-actions .btn { text-align: center; padding-left: 10px; padding-right: 10px; }

.btn-danger {
    background: #111;
    border-color: #111;
}
.btn-danger:hover {
    background: #c8102e;
    border-color: #c8102e;
}
.vehicles-stack { display: grid; gap: 18px; }
.compact-stack {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}
.vehicle-listing-card {
    position: relative;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.compact-stack .vehicle-listing-card { grid-template-columns: 1fr; }
.vehicle-photo-link {
    display: block;
    line-height: 0;
    background: #e8e8e8;
}
.compare-check {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,.95);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
}
.vehicle-photo-link img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    background: #e8e8e8;
}
.compact-stack .vehicle-photo-link img { height: 220px; min-height: 220px; }
.vehicle-listing-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
}
.vehicle-price-block {
    order: 0;
    margin: 0 0 8px;
}
.vehicle-price-label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 12px;
    font-weight: 800;
}
.vehicle-card-price,
.vehicle-detail-price {
    color: #c8102e;
    font-weight: 900;
    font-size: 28px;
    margin-bottom: 0;
}
.vehicle-detail-price { margin-bottom: 6px; }
.vehicle-listing-card h3 { font-size: 21px; margin-bottom: 12px; }
.vehicle-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0 0 14px;
}
.vehicle-spec-grid div { min-width: 0; }
.vehicle-spec-grid dt {
    color: #666;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.vehicle-spec-grid dd {
    margin: 0;
    color: #222;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.mpg-row,
.mpg-banner {
    color: #555;
    background: #f4f4f4;
    border-left: 4px solid #c8102e;
    padding: 9px 12px;
    margin: 12px 0;
    font-size: 14px;
}
.vehicle-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-actions .btn { padding: 8px 12px; font-size: 12px; }
.return-link { font-weight: 800; }

.vehicle-detail-grid {
.vehicle-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
    gap: 24px;
    align-items: start;
}
.vehicle-media,
.vehicle-summary-panel,
.accordion-group,
.share-box,
.dealer-panel,
.map-frame {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
}
.vehicle-media { overflow: hidden; }
.main-vehicle-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e8e8e8; }
.photo-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-weight: 800;
    color: #555;
}
.thumb-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ececec;
}
.thumb-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.thumb-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.vehicle-summary-panel { padding: 22px; }
.vehicle-summary-panel h1 { font-size: 30px; }
.summary-specs { grid-template-columns: 1fr 1fr; }
.dealer-box {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e4e4e4;
    border-left: 4px solid #c8102e;
    border-radius: 4px;
    background: #fafafa;
}
.vehicle-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}
.accordion-group { overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid #dedede; }
.accordion-toggle {
    width: 100%;
    border: 0;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}
.accordion-item.is-open .accordion-toggle,
.accordion-toggle:hover { background: #c8102e; }
.accordion-panel { padding: 20px; }
.options-list,
.sitemap-list ul {
    columns: 2;
    padding-left: 20px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.share-box { margin-top: 24px; padding: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.share-box h3 { margin: 0 12px 0 0; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.consent {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    line-height: 1.45;
    font-weight: 600 !important;
}
.consent input { width: auto; margin-top: 4px; }
.notice-success {
    background: #eaf7ed;
    color: #126426;
    border: 1px solid #b7e4c1;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
}
.notice-error {
    background: #fff2f2;
    color: #8a2424;
    border: 1px solid #f0b8b8;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
}
.notice-warning {
    background: #fff8e8;
    color: #7b4d00;
    border: 1px solid #f0d18a;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
}
.payment-result { margin-top: 14px; font-size: 20px; }
.structured-form { display: grid; gap: 22px; }
.vehicle-admin-page {
    display: grid;
    gap: 28px;
}
.admin-intro {
    background: #111;
    color: #fff;
    border-left: 5px solid #c8102e;
    border-radius: 6px;
    padding: 22px;
}
.admin-intro p { margin: 0; color: #ddd; }
.admin-notice { margin-bottom: 0; }
.vehicle-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #dedede;
}
.vehicle-admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dedede;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #f5f6f6;
    color: #111;
    font-weight: 900;
}
.vehicle-admin-tabs a.is-active {
    background: #fff;
    color: #c8102e;
}
.vehicle-admin-form {
    display: grid;
    gap: 18px;
}
.vehicle-admin-form input[type="file"] {
    background: #fafafa;
    padding: 12px;
}
.admin-help-text {
    margin: -4px 0 16px;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.admin-gallery-item {
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
}
.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.admin-gallery-item span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
}
.admin-gallery-item input { width: auto; }
.vehicle-admin-actions,
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-row-actions form { margin: 0; }
.vehicle-admin-list {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 22px;
}
.admin-vehicle-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.admin-vehicle-table th,
.admin-vehicle-table td {
    border-bottom: 1px solid #e4e4e4;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}
.admin-vehicle-table th {
    background: #f4f5f6;
    color: #111;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}
.admin-table-thumb {
    width: 76px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    background: #e8e8e8;
}
.vehicle-admin-login {
    width: min(100%, 560px);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(23, 33, 43, .12);
}
.vehicle-admin-login-wrap {
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 48px 16px;
    background: #f7f9f7;
}
.admin-login-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    background: #111;
    color: #fff;
    border-left: 5px solid #c8102e;
    padding: 24px;
}
.admin-login-header h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 28px;
}
.admin-login-header p:not(.eyebrow) {
    margin: 0;
    color: #dde3e1;
}
.admin-login-logo {
    display: grid;
    place-items: center;
    width: 88px;
    height: 64px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: #fff;
    padding: 8px;
}
.admin-login-logo img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}
.admin-login-form {
    padding: 24px;
}
#ryanauto-admin-login-form {
    display: grid;
    gap: 16px;
}
#ryanauto-admin-login-form p { margin: 0; }
#ryanauto-admin-login-form label {
    display: grid;
    gap: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 800;
}
#ryanauto-admin-login-form input[type="text"],
#ryanauto-admin-login-form input[type="password"] {
    width: 100%;
    border: 1px solid #cfd4da;
    border-radius: 4px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}
#ryanauto-admin-login-form .login-remember label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
#ryanauto-admin-login-form input[type="checkbox"] {
    width: auto;
}
#ryanauto-admin-login-form .login-submit { padding-top: 4px; }
#ryanauto-admin-login-form .button-primary {
    width: 100%;
    border: 1px solid #c8102e;
    border-radius: 4px;
    background: #c8102e;
    color: #fff;
    padding: 11px 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
#ryanauto-admin-login-form .button-primary:hover,
#ryanauto-admin-login-form .button-primary:focus {
    background: #a30d25;
    border-color: #a30d25;
}
.admin-login-links {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #ecefed;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 800;
}
.form-section {
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 18px;
    background: #fff;
}
.form-section h3 {
    font-size: 18px;
    color: #111;
    padding-bottom: 8px;
    border-bottom: 3px solid #c8102e;
    margin-bottom: 16px;
}
.field-label {
    color: #333;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 14px;
}
.checkbox-grid label,
.checkbox-single {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-weight: 600 !important;
}
.checkbox-grid input,
.checkbox-single input { width: auto; }
.loan-calculator,
.testimonial-card,
.staff-card {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding: 22px;
}
.loan-calculator .payment-result {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
    border-radius: 4px;
}
.loan-calculator .payment-result strong { color: #fff; font-size: 28px; }
.testimonial-card,
.staff-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.placeholder-avatar {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-weight: 900;
    font-size: 28px;
}
.placeholder-avatar img {
    max-width: 82px;
    max-height: 64px;
    object-fit: contain;
}

.page-layout.two-column {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
}
.dealer-panel { padding: 20px; }
.dealer-panel h4 { color: #c8102e; text-transform: uppercase; }
.map-frame iframe { width: 100%; height: 470px; border: 0; display: block; }
.legal-copy { max-width: 900px; }
.table-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.compare-table th,
.compare-table td {
    border: 1px solid #dedede;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.compare-table th { background: #f2f2f2; }
.quick-links { display: grid; gap: 6px; }
.footer-label { color: #cfcfcf; font-weight: 800; margin-bottom: 0; }

/* ---------- Distinct Ryan Auto Palette ---------- */
:root {
    --ra-ink: #17212b;
    --ra-ink-soft: #21313b;
    --ra-teal: #007c89;
    --ra-teal-dark: #005f66;
    --ra-gold: #f2a900;
    --ra-paper: #f7f9f7;
    --ra-border: #d9e0dd;
}
body { background: var(--ra-paper); color: var(--ra-ink); }
a { color: var(--ra-teal); }
.site-header { border-bottom-color: var(--ra-gold); }
.utility-bar,
.site-footer { background: var(--ra-ink); }
.shop-tabs,
.info-section,
.placeholder-avatar { background: var(--ra-ink-soft); }
.shop-tabs a { background: #273a45; }
.shop-tabs a:hover,
.main-nav a:hover,
.main-nav .current-menu-item > a,
.accordion-item.is-open .accordion-toggle,
.accordion-toggle:hover { background: var(--ra-teal); }
.main-nav .sub-menu { border-top-color: var(--ra-gold); }
.btn {
    background: var(--ra-teal);
    border-color: var(--ra-teal);
    color: #fff;
    letter-spacing: 0;
}
.btn:hover { background: var(--ra-teal-dark); border-color: var(--ra-teal-dark); }
#ryanauto-admin-login-form .button-primary {
    background: var(--ra-teal);
    border-color: var(--ra-teal);
}
#ryanauto-admin-login-form .button-primary:hover,
#ryanauto-admin-login-form .button-primary:focus {
    background: var(--ra-teal-dark);
    border-color: var(--ra-teal-dark);
}
.btn-light {
    background: #fff;
    border-color: var(--ra-border);
    color: var(--ra-teal);
}
.btn-light:hover {
    background: #eef5f4;
    border-color: #c8dbd8;
    color: var(--ra-teal-dark);
}
.btn-outline {
    background: transparent;
    border-color: currentColor;
    color: var(--ra-teal);
}
.btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ra-teal);
}
.home-hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.78);
}
.home-hero .btn-outline:hover {
    color: var(--ra-teal);
}
.btn-danger { background: var(--ra-ink); border-color: var(--ra-ink); color: #fff; }
.btn-danger:hover { background: #a63d40; border-color: #a63d40; }
.quick-shop-card {
    background: var(--ra-ink);
    border-left-color: var(--ra-gold);
}
.quick-shop-card:hover { background: var(--ra-teal); }
.vehicle-card-price,
.vehicle-detail-price,
.vehicle-card .price { color: var(--ra-teal); }
.vehicle-admin-tabs a.is-active { color: var(--ra-teal); }
.filter-heading,
.form-section h3 { border-bottom-color: var(--ra-gold); }
.mpg-row,
.mpg-banner,
.dealer-box,
.admin-intro,
.admin-login-header { border-left-color: var(--ra-gold); }
.accordion-toggle,
.admin-intro,
.admin-login-header { background: var(--ra-ink); }
.info-grid h3,
.dealer-panel h4 { color: var(--ra-gold); border-bottom-color: var(--ra-gold); }
.inventory-filter,
.vehicle-listing-card,
.vehicle-media,
.vehicle-summary-panel,
.accordion-group,
.share-box,
.dealer-panel,
.map-frame,
.form-section,
.vehicle-admin-list,
.vehicle-admin-login,
.vehicle-import-panel,
.vehicle-import-summary,
.vehicle-email-panel,
.vehicle-admin-tabs,
.vehicle-admin-tabs a,
.page-card,
.empty-inventory { border-color: var(--ra-border); }

/* ---------- Vehicle Import Admin ---------- */
.vehicle-import-panel,
.vehicle-import-summary {
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 6px;
    padding: 22px;
}
.import-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.import-panel-heading h3 { margin-bottom: 6px; }
.import-panel-heading p { margin: 0; color: #56636a; max-width: 760px; }
.eyebrow {
    color: var(--ra-teal) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 4px !important;
}
.vehicle-import-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 16px;
    background: #eef5f4;
    border: 1px solid #c8dbd8;
    border-radius: 6px;
    margin-bottom: 18px;
}
.vehicle-import-form label {
    display: grid;
    gap: 6px;
    color: var(--ra-ink);
    font-size: 14px;
    font-weight: 800;
}
.vehicle-import-form input[type="file"] {
    width: 100%;
    border: 1px solid #c8d2d0;
    border-radius: 4px;
    padding: 10px 11px;
    background: #fff;
    font: inherit;
}
.import-spec-grid,
.import-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.import-spec-grid > div,
.import-summary-grid > div {
    background: #f8faf9;
    border: 1px solid var(--ra-border);
    border-radius: 6px;
    padding: 14px;
}
.import-spec-grid h4 { margin-bottom: 6px; }
.import-spec-grid p { margin: 0; color: #56636a; font-size: 14px; }
.vehicle-import-summary { margin-bottom: 20px; }
.import-summary-grid { margin-bottom: 14px; }
.import-summary-grid strong {
    display: block;
    color: var(--ra-teal);
    font-size: 28px;
    line-height: 1;
}
.import-summary-grid span {
    display: block;
    margin-top: 5px;
    color: #56636a;
    font-weight: 800;
}
.vehicle-import-summary details {
    border-top: 1px solid var(--ra-border);
    padding-top: 12px;
    margin-top: 12px;
}
.vehicle-import-summary summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--ra-ink);
}
.vehicle-import-summary ul { margin-bottom: 0; }
.import-errors summary { color: #a63d40; }

/* ---------- Email Admin ---------- */
.vehicle-email-panel {
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 6px;
    padding: 22px;
}
.vehicle-email-form {
    display: grid;
    gap: 18px;
}
.email-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #e7d2d2;
    border-radius: 999px;
    background: #fff7f7;
    color: #a63d40;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.email-status-pill.is-ready {
    border-color: #c8dbd8;
    background: #eef5f4;
    color: var(--ra-teal-dark);
}
.email-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.email-settings-block {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--ra-border);
    border-radius: 6px;
    background: #f8faf9;
}
.email-settings-block.full { grid-column: 1 / -1; }
.email-settings-block h4 { margin-bottom: 0; }
.email-help-text { margin: 0; }
.email-test-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--ra-border);
}
.email-test-form p {
    margin: 0;
    color: #56636a;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .inventory-layout,
    .vehicle-detail-grid,
    .page-layout.two-column { grid-template-columns: 1fr; }
    .inventory-sidebar { position: static; }
    .vehicle-listing-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .utility-inner,
    .header-inner,
    .section-heading-row,
    .inventory-toolbar,
    .compare-bar,
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .shop-tabs-inner,
    .quick-shop-grid,
    .form-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
    .vehicle-summary-panel h1 { font-size: 24px; }
    .vehicle-spec-grid,
    .summary-specs { grid-template-columns: 1fr; }
    .options-list,
    .sitemap-list ul { columns: 1; }
    .main-nav .nav-menu { flex-direction: column; width: 100%; }
    .main-nav .sub-menu { position: static; box-shadow: none; min-width: 0; width: 100%; }
    .testimonial-card,
    .staff-card { grid-template-columns: 1fr; }
    .import-panel-heading,
    .vehicle-import-form { grid-template-columns: 1fr; flex-direction: column; }
    .import-spec-grid,
    .import-summary-grid,
    .email-settings-grid { grid-template-columns: 1fr; }
    .email-settings-block.full { grid-column: auto; }
    .admin-login-header { grid-template-columns: 1fr; text-align: center; }
    .admin-login-logo { margin: 0 auto; }
}
