/* ==========================================================================
   RS Motors — Global site styles
   Loaded after Bootstrap and the design tokens. Handles typography, shared
   components, site chrome (header/footer), cards and form styling.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--rs-header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 640px at 82% -12%, rgba(var(--rs-accent-rgb), 0.07), transparent 62%),
        radial-gradient(900px 520px at -10% 22%, rgba(var(--rs-gold-rgb), 0.07), transparent 60%),
        var(--rs-bg);
    color: var(--rs-ink);
    font-family: var(--rs-font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

[data-bs-theme="dark"] body {
    background:
        radial-gradient(1100px 640px at 82% -12%, rgba(var(--rs-accent-rgb), 0.14), transparent 62%),
        radial-gradient(900px 520px at -10% 22%, rgba(var(--rs-gold-rgb), 0.08), transparent 60%),
        var(--rs-bg);
}

::selection {
    background: rgba(var(--rs-accent-rgb), 0.9);
    color: var(--rs-inverse);
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--rs-accent);
    text-decoration: none;
    transition: color var(--rs-speed) var(--rs-ease);
}

a:hover {
    color: var(--rs-accent);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    color: var(--rs-ink);
    font-family: var(--rs-font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--rs-tracking-tight);
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.9rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

h4 {
    font-size: 1.15rem;
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.82em;
}

hr {
    border-color: var(--rs-line);
    opacity: 1;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 1.5rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--rs-container);
    }
}

main {
    display: block;
    min-height: 40vh;
}

:focus-visible {
    outline: 2px solid var(--rs-accent);
    outline-offset: 3px;
}

.visually-hidden-focusable:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 12px 18px;
    border-radius: var(--rs-radius-sm);
    background: var(--rs-surface);
    color: var(--rs-ink);
    box-shadow: var(--rs-shadow-md);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--rs-bg-soft);
}

::-webkit-scrollbar-thumb {
    border: 3px solid var(--rs-bg-soft);
    border-radius: var(--rs-radius-pill);
    background: var(--rs-line-strong);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rs-muted);
}

/* --------------------------------------------------------------------------
   2. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--rs-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: var(--rs-tracking-wide);
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--rs-accent);
}

.eyebrow.light {
    color: rgba(var(--rs-inverse-rgb), 0.82);
}

.eyebrow.light::before {
    background: rgba(var(--rs-inverse-rgb), 0.82);
}

.section {
    padding: var(--rs-section-y) 0;
}

.section-sm {
    padding: calc(var(--rs-section-y) * 0.55) 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading > div {
    max-width: 680px;
}

.section-heading h2 {
    margin-bottom: 0.35em;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--rs-muted);
    max-width: 58ch;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: clamp(22px, 3vw, 34px);
}

.section-heading.compact h2 {
    margin-bottom: 0;
}

.text-muted {
    color: var(--rs-muted) !important;
}

.text-accent {
    color: var(--rs-accent) !important;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rs-ink);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.text-link i {
    color: var(--rs-accent);
    transition: transform var(--rs-speed) var(--rs-ease);
}

.text-link:hover {
    color: var(--rs-accent);
}

.text-link:hover i {
    transform: translateX(4px);
}

.check-list {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--rs-ink-soft);
    font-size: 0.95rem;
}

.check-list li i {
    margin-top: 2px;
    color: var(--rs-success);
    font-size: 1rem;
}

.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rs-muted);
    font-size: 0.86rem;
}

.rating-summary .stars {
    color: var(--rs-gold);
    letter-spacing: 2px;
}

.rating-summary strong {
    color: var(--rs-ink);
}

.rich-content {
    color: var(--rs-ink-soft);
    font-size: 1.02rem;
    line-height: 1.85;
}

.rich-content > *:last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.5em;
    color: var(--rs-ink);
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.2rem;
}

.rich-content li {
    margin-bottom: 0.4rem;
}

.rich-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content blockquote {
    margin: 1.5rem 0;
    padding: 18px 24px;
    border-left: 3px solid var(--rs-accent);
    border-radius: 0 var(--rs-radius-sm) var(--rs-radius-sm) 0;
    background: var(--rs-surface-2);
    color: var(--rs-ink);
    font-family: var(--rs-font-display);
    font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   3. Surfaces
   -------------------------------------------------------------------------- */
.glass-card {
    border: 1px solid var(--rs-glass-border);
    border-radius: var(--rs-radius-lg);
    background: var(--rs-glass);
    box-shadow: var(--rs-shadow-sm);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

[data-bs-theme="dark"] .glass-card {
    background: var(--rs-glass);
    box-shadow: var(--rs-shadow-sm);
}

.surface-card {
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-md);
    background: var(--rs-surface);
}

.empty-panel {
    padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.empty-panel > i {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: rgba(var(--rs-accent-rgb), 0.1);
    color: var(--rs-accent);
    font-size: 1.7rem;
}

.empty-panel h1,
.empty-panel h2,
.empty-panel h3 {
    margin-bottom: 0.2em;
}

.empty-panel p {
    max-width: 52ch;
    margin-bottom: 1.2rem;
    color: var(--rs-muted);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--rs-font-body);
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--rs-radius-pill);
    --bs-btn-padding-x: 1.35rem;
    --bs-btn-padding-y: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    letter-spacing: 0.01em;
    transition: transform var(--rs-speed) var(--rs-ease), box-shadow var(--rs-speed) var(--rs-ease),
        background-color var(--rs-speed) var(--rs-ease), border-color var(--rs-speed) var(--rs-ease),
        color var(--rs-speed) var(--rs-ease);
}

.btn i {
    font-size: 1.02em;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    --bs-btn-padding-x: 1.7rem;
    --bs-btn-padding-y: 0.92rem;
    --bs-btn-font-size: 1rem;
}

.btn-sm {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.48rem;
    --bs-btn-font-size: 0.82rem;
}

.btn-accent {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--rs-accent-rgb), 0.22);
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
    filter: brightness(1.07);
    box-shadow: var(--rs-shadow-accent);
}

.btn-dark {
    border-color: var(--rs-ink);
    background: var(--rs-ink);
    color: var(--rs-inverse);
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    border-color: var(--rs-ink);
    background: var(--rs-ink);
    color: var(--rs-inverse);
    filter: brightness(1.14);
    box-shadow: var(--rs-shadow-md);
}

.btn-outline-accent {
    border: 1px solid var(--rs-accent);
    background: transparent;
    color: var(--rs-accent);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus,
.btn-outline-accent:active {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(var(--rs-accent-rgb), 0.2);
}

.btn-outline-secondary {
    --bs-btn-color: var(--rs-ink);
    --bs-btn-border-color: var(--rs-line-strong);
    --bs-btn-hover-color: var(--rs-ink);
    --bs-btn-hover-bg: var(--rs-surface-2);
    --bs-btn-hover-border-color: var(--rs-ink);
    --bs-btn-active-color: var(--rs-ink);
    --bs-btn-active-bg: var(--rs-surface-3);
    --bs-btn-active-border-color: var(--rs-ink);
    --bs-btn-disabled-color: var(--rs-muted);
    --bs-btn-disabled-border-color: var(--rs-line);
    background: transparent;
}

.btn-glass {
    border: 1px solid var(--rs-line-light);
    background: rgba(var(--rs-inverse-rgb), 0.1);
    color: var(--rs-ink);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.btn-glass:hover,
.btn-glass:focus {
    border-color: rgba(var(--rs-inverse-rgb), 0.35);
    background: rgba(var(--rs-inverse-rgb), 0.16);
    color: var(--rs-ink);
}

.btn-whatsapp {
    border-color: var(--rs-whatsapp);
    background: var(--rs-whatsapp);
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    border-color: var(--rs-whatsapp);
    background: var(--rs-whatsapp);
    color: #fff;
    filter: brightness(1.08);
}

.btn-light {
    --bs-btn-bg: var(--rs-inverse);
    --bs-btn-border-color: var(--rs-inverse);
    --bs-btn-color: var(--rs-primary);
    --bs-btn-hover-bg: var(--rs-inverse);
    --bs-btn-hover-border-color: var(--rs-inverse);
    --bs-btn-hover-color: var(--rs-primary);
    --bs-btn-active-bg: var(--rs-inverse);
    --bs-btn-active-color: var(--rs-primary);
}

.btn.disabled,
.btn:disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
.form-label {
    margin-bottom: 7px;
    color: var(--rs-ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-label .required {
    color: var(--rs-accent);
}

.form-control,
.form-select {
    min-height: 48px;
    padding: 0.68rem 0.95rem;
    border: 1px solid var(--rs-line-strong);
    border-radius: var(--rs-radius-sm);
    background-color: var(--rs-surface);
    color: var(--rs-ink);
    font-size: 0.94rem;
    transition: border-color var(--rs-speed) var(--rs-ease), box-shadow var(--rs-speed) var(--rs-ease),
        background-color var(--rs-speed) var(--rs-ease);
}

.form-control::placeholder {
    color: var(--rs-muted);
    opacity: 0.8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rs-accent);
    background-color: var(--rs-surface);
    color: var(--rs-ink);
    box-shadow: 0 0 0 4px rgba(var(--rs-accent-rgb), 0.12);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6b75' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239c9ca7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-control[type="file"] {
    padding: 0.5rem 0.75rem;
    line-height: 1.6;
}

.form-control[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: var(--rs-radius-xs);
    background: var(--rs-surface-2);
    color: var(--rs-ink);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background-color var(--rs-speed) var(--rs-ease);
}

.form-control[type="file"]::file-selector-button:hover {
    background: var(--rs-surface-3);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--rs-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.form-hint i {
    margin-right: 3px;
    color: var(--rs-success);
}

.char-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.char-count.is-near-limit {
    color: var(--rs-warning);
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.22em;
    border: 1.5px solid var(--rs-line-strong);
    background-color: var(--rs-surface);
}

.form-check-input:checked {
    border-color: var(--rs-accent);
    background-color: var(--rs-accent);
}

.form-check-input:focus {
    border-color: var(--rs-accent);
    box-shadow: 0 0 0 4px rgba(var(--rs-accent-rgb), 0.12);
}

.form-check-label {
    color: var(--rs-ink-soft);
    font-size: 0.9rem;
}

.form-check.form-switch .form-check-input {
    width: 2.6em;
    height: 1.4em;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
}

.form-consent .form-check-input {
    flex: 0 0 auto;
}

.rs-form .form-control,
.rs-form .form-select {
    background-color: var(--rs-surface-2);
}

.rs-form .form-control:focus,
.rs-form .form-select:focus {
    background-color: var(--rs-surface);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-input label {
    position: relative;
    margin: 0;
    color: var(--rs-line-strong);
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    transition: color var(--rs-speed) var(--rs-ease), transform var(--rs-speed) var(--rs-ease);
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--rs-gold);
}

.star-input label:hover {
    transform: scale(1.1);
}

.star-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.star-input input:focus-visible + i {
    outline: 2px solid var(--rs-accent);
    outline-offset: 2px;
}

.invalid-feedback,
.form-error {
    color: var(--rs-danger);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   6. Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.42em 0.72em;
    border-radius: var(--rs-radius-pill);
    font-family: var(--rs-font-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.badge-new {
    background: var(--rs-ink);
    color: var(--rs-inverse);
}

.badge-featured {
    background: var(--rs-gold);
    color: #fff;
}

.badge-status {
    background: var(--rs-accent);
    color: #fff;
}

.badge-status.badge-sold,
.badge-sold {
    background: var(--rs-muted);
    color: var(--rs-inverse);
}

.badge-status-available {
    background: var(--rs-success);
    color: #fff;
}

.badge-status-reserved {
    background: var(--rs-warning);
    color: #fff;
}

.badge-status-sold {
    background: var(--rs-muted);
    color: var(--rs-inverse);
}

.badge-status-draft {
    background: var(--rs-surface-3);
    color: var(--rs-ink-soft);
}

.inspection-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35em 0.65em;
    border: 1px solid rgba(var(--rs-success-rgb), 0.24);
    border-radius: var(--rs-radius-pill);
    background: rgba(var(--rs-success-rgb), 0.09);
    color: var(--rs-success);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

.inspection-pill.inspection-pending,
.inspection-pill.inspection-not_inspected {
    border-color: rgba(var(--rs-warning-rgb), 0.26);
    background: rgba(var(--rs-warning-rgb), 0.1);
    color: var(--rs-warning);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.notice-bar {
    position: relative;
    z-index: 1045;
    padding: 8px 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.notice-bar .container {
    position: relative;
    padding-right: 44px;
}

.notice-bar i {
    font-size: 0.9rem;
    opacity: 0.85;
}

.notice-info {
    background: var(--rs-info);
}

.notice-success {
    background: var(--rs-success);
}

.notice-warning {
    background: var(--rs-warning);
}

.notice-danger {
    background: var(--rs-danger);
}

.notice-close {
    position: absolute;
    right: 12px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.7rem;
    transform: translateY(-50%);
    transition: background-color var(--rs-speed) var(--rs-ease);
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-strip {
    border-bottom: 1px solid var(--rs-line);
    background: var(--rs-surface);
    color: var(--rs-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.top-strip .container {
    min-height: 40px;
}

.top-strip a,
.top-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rs-muted);
}

.top-strip a:hover {
    color: var(--rs-accent);
}

.top-strip i {
    color: var(--rs-accent);
    font-size: 0.8rem;
}

.top-strip .top-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.top-strip .top-icon span {
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--rs-radius-pill);
    background: var(--rs-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
}

.site-navbar {
    z-index: 1040;
    padding: 14px 0;
    border-bottom: 1px solid var(--rs-line);
    background: var(--rs-glass-strong);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    transition: padding var(--rs-speed) var(--rs-ease), box-shadow var(--rs-speed) var(--rs-ease),
        background-color var(--rs-speed) var(--rs-ease);
}

.site-navbar.is-scrolled {
    padding: 8px 0;
    background: var(--rs-glass-strong);
    box-shadow: var(--rs-shadow-sm);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
    padding: 0;
    color: var(--rs-ink);
    text-decoration: none;
}

.brand-lockup:hover {
    color: var(--rs-ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--rs-primary), var(--rs-dark));
    color: #fff;
    font-family: var(--rs-font-body);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(var(--rs-primary-rgb), 0.22);
}

.brand-logo {
    width: auto;
    max-height: 46px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    color: var(--rs-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--rs-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-navbar .navbar-toggler {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rs-line-strong);
    border-radius: var(--rs-radius-sm);
    color: var(--rs-ink);
    font-size: 1.3rem;
}

.site-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.site-navbar .navbar-nav {
    align-items: center;
}

.site-navbar .nav-link {
    position: relative;
    padding: 8px 14px !important;
    border-radius: var(--rs-radius-pill);
    color: var(--rs-ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color var(--rs-speed) var(--rs-ease), background-color var(--rs-speed) var(--rs-ease);
}

.site-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rs-accent);
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
    transition: opacity var(--rs-speed) var(--rs-ease), transform var(--rs-speed) var(--rs-ease);
}

.site-navbar .nav-link:hover {
    background: var(--rs-surface-2);
    color: var(--rs-ink);
}

.site-navbar .nav-link.active {
    color: var(--rs-ink);
}

.site-navbar .nav-link.active::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-actions {
    padding-left: 12px;
}

.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rs-line);
    border-radius: 50%;
    background: var(--rs-surface);
    color: var(--rs-ink);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color var(--rs-speed) var(--rs-ease), background-color var(--rs-speed) var(--rs-ease),
        color var(--rs-speed) var(--rs-ease), transform var(--rs-speed) var(--rs-ease);
}

.icon-btn:hover {
    border-color: var(--rs-accent);
    background: rgba(var(--rs-accent-rgb), 0.08);
    color: var(--rs-accent);
    transform: translateY(-1px);
}

.icon-btn span {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--rs-surface);
    border-radius: var(--rs-radius-pill);
    background: var(--rs-accent);
    color: #fff;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
}

.theme-toggle i {
    transition: transform var(--rs-speed-slow) var(--rs-ease);
}

.theme-toggle:hover i {
    transform: rotate(-18deg);
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 14px;
        border: 1px solid var(--rs-line);
        border-radius: var(--rs-radius-md);
        background: var(--rs-surface);
        box-shadow: var(--rs-shadow-md);
    }

    .site-navbar .navbar-nav {
        align-items: stretch;
    }

    .site-navbar .nav-link {
        padding: 11px 14px !important;
        border-radius: var(--rs-radius-sm);
    }

    .site-navbar .nav-link::after {
        left: 22px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) scale(0.4);
    }

    .site-navbar .nav-link.active::after {
        transform: translateY(-50%) scale(1);
    }

    .site-navbar .nav-link.active {
        background: var(--rs-surface-2);
    }

    .nav-actions {
        margin-top: 14px;
        padding: 14px 0 0;
        border-top: 1px solid var(--rs-line);
    }
}

/* --------------------------------------------------------------------------
   8. Page hero & breadcrumbs
   -------------------------------------------------------------------------- */
.rs-breadcrumbs {
    margin-bottom: 22px;
}

.rs-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
}

.rs-breadcrumbs .breadcrumb-item {
    color: var(--rs-muted);
}

.rs-breadcrumbs .breadcrumb-item a {
    color: var(--rs-muted);
}

.rs-breadcrumbs .breadcrumb-item a:hover {
    color: var(--rs-accent);
}

.rs-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.6rem;
    color: var(--rs-line-strong);
    vertical-align: 1px;
}

.rs-breadcrumbs .breadcrumb-item.active {
    color: var(--rs-ink);
}

.page-hero {
    position: relative;
    padding: clamp(54px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -38%;
    right: -12%;
    width: 46vw;
    height: 46vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-accent-rgb), 0.13), transparent 66%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: -14%;
    bottom: -46%;
    width: 38vw;
    height: 38vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rs-gold-rgb), 0.1), transparent 68%);
    pointer-events: none;
}

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

.page-hero h1 {
    margin-bottom: 0.3em;
}

.page-hero p {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--rs-muted);
    font-size: clamp(0.98rem, 1.3vw, 1.1rem);
    line-height: 1.8;
}

.page-hero.compact-hero {
    padding-top: clamp(38px, 5vw, 64px);
    padding-bottom: clamp(30px, 4vw, 52px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   9. Car card
   -------------------------------------------------------------------------- */
.car-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--rs-radius-md);
    transition: transform var(--rs-speed) var(--rs-ease), box-shadow var(--rs-speed) var(--rs-ease),
        border-color var(--rs-speed) var(--rs-ease);
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--rs-accent-rgb), 0.25);
    box-shadow: var(--rs-shadow-md);
}

.car-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: linear-gradient(145deg, var(--rs-surface-2), var(--rs-surface-3));
}

.car-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.car-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--rs-ease);
}

.car-card:hover .car-media img {
    transform: scale(1.045);
}

.car-media-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 16px;
    background:
        radial-gradient(circle at 72% 22%, rgba(var(--rs-accent-rgb), 0.18), transparent 55%),
        linear-gradient(145deg, var(--rs-surface-2), var(--rs-surface-3));
    color: var(--rs-ink-soft);
    text-align: center;
}

.car-media-fallback i {
    color: var(--rs-accent);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    opacity: 0.85;
}

.car-media-fallback .fallback-brand {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.car-media-fallback .fallback-label {
    color: var(--rs-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.car-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 70px);
}

.car-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity var(--rs-speed) var(--rs-ease), transform var(--rs-speed) var(--rs-ease);
}

.car-card:hover .car-actions,
.car-card:focus-within .car-actions {
    opacity: 1;
    transform: translateX(0);
}

.car-action {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(var(--rs-surface-rgb), 0.55);
    border-radius: 50%;
    background: rgba(var(--rs-surface-rgb), 0.88);
    color: var(--rs-ink);
    font-size: 0.85rem;
    box-shadow: var(--rs-shadow-xs);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color var(--rs-speed) var(--rs-ease), color var(--rs-speed) var(--rs-ease),
        transform var(--rs-speed) var(--rs-ease);
}

.car-action:hover,
.car-action.is-active {
    background: var(--rs-accent);
    color: #fff;
    transform: scale(1.06);
}

.car-action.is-active i::before {
    content: "\F415";
}

.car-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px;
}

.car-brand {
    color: var(--rs-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.car-title {
    margin: 0 0 10px;
    font-family: var(--rs-font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.car-title a {
    color: var(--rs-ink);
}

.car-title a:hover {
    color: var(--rs-accent);
}

.car-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.car-price {
    color: var(--rs-ink);
    font-family: var(--rs-font-body);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.car-old-price {
    color: var(--rs-muted);
    font-size: 0.78rem;
    text-decoration: line-through;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin-bottom: 14px;
    color: var(--rs-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.car-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-specs i {
    color: var(--rs-accent);
    font-size: 0.78rem;
}

.car-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--rs-line);
    font-size: 0.75rem;
}

.car-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rs-muted);
    font-weight: 600;
}

.car-location i {
    color: var(--rs-accent);
}

.car-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rs-ink);
    font-weight: 800;
}

.car-view:hover {
    color: var(--rs-accent);
}

.car-view i {
    transition: transform var(--rs-speed) var(--rs-ease);
}

.car-view:hover i {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   10. Review card
   -------------------------------------------------------------------------- */
.review-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--rs-radius-md);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--rs-primary), var(--rs-dark));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.review-name {
    margin: 0;
    font-family: var(--rs-font-body);
    font-size: 0.9rem;
    font-weight: 800;
}

.review-meta {
    display: block;
    color: var(--rs-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.review-quote {
    margin-left: auto;
    color: rgba(var(--rs-accent-rgb), 0.25);
    font-size: 1.9rem;
    line-height: 1;
}

.review-stars {
    margin-bottom: 10px;
    color: var(--rs-gold);
    font-size: 0.78rem;
    letter-spacing: 2px;
}

.review-stars .muted,
.stars .muted {
    color: var(--rs-line-strong);
}

.review-title {
    margin: 0 0 6px;
    font-family: var(--rs-font-body);
    font-size: 0.9rem;
    font-weight: 800;
}

.review-text {
    flex: 1 1 auto;
    margin-bottom: 14px;
    color: var(--rs-ink-soft);
    font-size: 0.88rem;
    line-height: 1.75;
}

.review-date {
    color: var(--rs-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   11. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
    display: grid;
    gap: 10px;
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-sm) !important;
    background: var(--rs-surface);
}

.faq-accordion .accordion-button {
    gap: 14px;
    padding: 18px 20px;
    background: transparent;
    color: var(--rs-ink);
    font-family: var(--rs-font-body);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--rs-accent);
}

.faq-accordion .accordion-button::after {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    background-size: 1rem;
    filter: none;
}

[data-bs-theme="dark"] .faq-accordion .accordion-button::after {
    filter: invert(1);
}

.faq-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.faq-accordion .accordion-body {
    padding: 0 20px 20px;
    color: var(--rs-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-accordion .accordion-body > *:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.pagination .page-link {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-sm) !important;
    background: var(--rs-surface);
    color: var(--rs-ink);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all var(--rs-speed) var(--rs-ease);
}

.pagination .page-link:hover {
    border-color: var(--rs-accent);
    background: rgba(var(--rs-accent-rgb), 0.08);
    color: var(--rs-accent);
}

.pagination .page-item.active .page-link {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.45;
}

/* --------------------------------------------------------------------------
   13. Toasts
   -------------------------------------------------------------------------- */
.toast-container {
    z-index: 2000;
}

.rs-toast {
    overflow: hidden;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-sm);
    background: var(--rs-surface);
    box-shadow: var(--rs-shadow-md);
}

.rs-toast .toast-header {
    border-bottom: 1px solid var(--rs-line);
    background: var(--rs-surface-2);
    color: var(--rs-ink);
}

.rs-toast .toast-body {
    color: var(--rs-ink-soft);
    font-size: 0.86rem;
}

.rs-toast.toast-success .toast-header i {
    color: var(--rs-success);
}

.rs-toast.toast-danger .toast-header i {
    color: var(--rs-danger);
}

.rs-toast.toast-warning .toast-header i {
    color: var(--rs-warning);
}

.rs-toast.toast-info .toast-header i {
    color: var(--rs-info);
}

/* --------------------------------------------------------------------------
   14. Quick view modal
   -------------------------------------------------------------------------- */
.quick-view-modal .modal-content {
    overflow: hidden;
    padding: 6px;
    border-radius: var(--rs-radius-lg);
}

.quick-view-modal .modal-header {
    padding: 18px 22px 8px;
}

.quick-view-modal .modal-body {
    padding: 12px 22px 26px;
}

.quick-view-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--rs-radius-md);
    background: var(--rs-surface-2);
}

.quick-view-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-price {
    color: var(--rs-accent);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quick-specs span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-xs);
    background: var(--rs-surface-2);
    color: var(--rs-ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
}

.quick-specs i {
    color: var(--rs-accent);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(48px, 6vw, 76px) 0 26px;
    overflow: hidden;
    border-top: 1px solid var(--rs-line);
    background:
        radial-gradient(720px 420px at 88% 0%, rgba(var(--rs-accent-rgb), 0.1), transparent 65%),
        var(--rs-surface);
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: var(--rs-radius-lg);
}

.footer-newsletter h2 {
    margin-bottom: 0.25em;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.footer-newsletter p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 0.88rem;
}

.footer-newsletter .newsletter-form {
    flex: 0 0 min(430px, 100%);
}

.footer-newsletter .input-group {
    padding: 5px;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius-pill);
    background: var(--rs-surface);
}

.footer-newsletter .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.footer-newsletter .btn {
    border-radius: var(--rs-radius-pill) !important;
}

.footer-main {
    padding-bottom: 36px;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer-about {
    max-width: 36ch;
    color: var(--rs-muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rs-line);
    border-radius: 50%;
    background: var(--rs-surface-2);
    color: var(--rs-ink-soft);
    font-size: 0.9rem;
    transition: all var(--rs-speed) var(--rs-ease);
}

.footer-socials a:hover {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    margin-bottom: 16px;
    color: var(--rs-ink);
    font-family: var(--rs-font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--rs-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--rs-accent);
    padding-left: 3px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--rs-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-contact i {
    margin-top: 2px;
    color: var(--rs-accent);
    font-size: 0.86rem;
}

.footer-contact a {
    color: var(--rs-muted);
}

.footer-contact a:hover {
    color: var(--rs-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--rs-line);
}

.footer-bottom p {
    margin: 0;
    color: var(--rs-muted);
    font-size: 0.76rem;
}

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

.footer-legal a {
    color: var(--rs-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

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

/* Floating helpers */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1030;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rs-line);
    border-radius: 50%;
    background: var(--rs-surface);
    color: var(--rs-ink);
    font-size: 1rem;
    box-shadow: var(--rs-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--rs-speed) var(--rs-ease);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   16. Skeleton loader
   -------------------------------------------------------------------------- */
.page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 2500;
    overflow: hidden;
    background: var(--rs-bg);
    transition: opacity 0.4s var(--rs-ease), visibility 0.4s var(--rs-ease);
}

.page-skeleton.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.skeleton-bar,
.skeleton-line,
.skeleton-block,
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: var(--rs-surface-2);
}

.skeleton-bar::after,
.skeleton-line::after,
.skeleton-block::after,
.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(var(--rs-surface-rgb), 0.65) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: rs-shimmer 1.5s infinite;
}

[data-bs-theme="dark"] .skeleton-bar::after,
[data-bs-theme="dark"] .skeleton-line::after,
[data-bs-theme="dark"] .skeleton-block::after,
[data-bs-theme="dark"] .skeleton-card::after {
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 50%, transparent 80%);
}

@keyframes rs-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-nav {
    height: 78px;
    border-bottom: 1px solid var(--rs-line);
}

.skeleton-title {
    width: min(460px, 70%);
    height: 42px;
    margin-bottom: 14px;
    border-radius: var(--rs-radius-sm);
}

.skeleton-subtitle {
    width: min(320px, 52%);
    height: 18px;
    border-radius: var(--rs-radius-xs);
}

.skeleton-card {
    padding: 12px;
    border-radius: var(--rs-radius-md);
}

.skeleton-block {
    aspect-ratio: 16 / 11;
    margin-bottom: 12px;
    border-radius: var(--rs-radius-sm);
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: var(--rs-radius-pill);
}

.skeleton-line.short {
    width: 60%;
}

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   18. Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-heading .btn {
        width: 100%;
    }

    .footer-newsletter {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-newsletter .newsletter-form {
        flex: 1 1 auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .car-body {
        padding: 14px;
    }

    .car-title {
        font-size: 0.92rem;
    }

    .car-specs {
        grid-template-columns: 1fr;
    }

    .car-actions {
        opacity: 1;
        transform: none;
    }

    .car-action {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .car-badges {
        max-width: calc(100% - 54px);
    }

    .page-hero {
        padding-top: 38px;
    }

    .review-card {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        --bs-btn-padding-x: 1.25rem;
        --bs-btn-padding-y: 0.8rem;
        font-size: 0.92rem;
    }

    .brand-copy small {
        display: none;
    }

    .top-strip .container {
        justify-content: center !important;
    }

    .top-strip .container > div:last-child {
        display: none !important;
    }
}
