:root {
    --bg: #0d0f13;
    --bg-soft: #141821;
    --card: #171c26;
    --text: #f4f5f7;
    --muted: #b5bcc9;
    --gold: #caa55a;
    --gold-deep: #a7833d;
    --border: #2a3140;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0a0d11, #101520);
    line-height: 1.6;
}

a {
    color: var(--gold);
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 13, 18, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #121722;
    color: var(--text);
    border-radius: 10px;
    width: 40px;
    height: 36px;
    cursor: pointer;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav .nav-book-btn {
    background: #AE8A43;
    color: #15130e;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(231, 198, 119, 0.22), 0 0 18px rgba(174, 138, 67, 0.34), 0 8px 22px rgba(174, 138, 67, 0.24);
}

.main-nav .nav-book-btn:hover {
    color: #15130e;
    filter: brightness(1.06);
    box-shadow: 0 0 0 1px rgba(245, 214, 143, 0.34), 0 0 24px rgba(202, 165, 90, 0.48), 0 10px 28px rgba(174, 138, 67, 0.32);
}

.btn-gold {
    color: #1b1a16 !important;
    background: var(--gold);
    border-radius: 8px;
    padding: 8px 12px;
}

.hero {
    padding: 90px 0 70px;
}

.trust-row {
    margin-top: 22px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(20, 27, 39, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.trust-item span {
    font-size: 20px;
    line-height: 1;
}

.trust-item p {
    margin: 0;
    font-weight: 600;
    color: #dfe4ee;
    font-size: 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    margin: 0 0 14px;
    line-height: 1.1;
}

.hero p {
    color: var(--muted);
    max-width: 680px;
}

.hero-card,
.detail-card,
.contact-card,
.stat-card,
.login-box,
.car-card,
.table-wrap,
.section-tight,
.form-grid,
.main-photo,
.thumb,
.image-admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.hero-card {
    padding: 24px;
}

.section {
    padding: 62px 0;
}

/* Keep anchored sections visible below the sticky header. */
#booking-strip,
#featured-cars,
#fleet,
#guide,
#about,
#contact {
    scroll-margin-top: 96px;
}

#booking-strip {
    scroll-margin-top: 112px;
}

#guide.section,
#about.section {
    padding-top: 84px;
    padding-bottom: 88px;
}

.quick-book-section {
    margin-top: -14px;
    padding-bottom: 16px;
}

.booking-strip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1.45fr 0.65fr 1.05fr 1.05fr auto;
    gap: 10px;
    align-items: end;
}

.booking-form label {
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
}

.booking-form .btn {
    width: 100%;
    min-height: 42px;
}

.booking-strip .muted {
    margin: 10px 2px 0;
    font-size: 13px;
}

.section-tight {
    padding: 24px;
    margin-top: 20px;
}

.alt-section {
    background: rgba(8, 11, 16, 0.5);
}

.section-head h2 {
    margin-bottom: 8px;
}

.section-head p,
.muted,
small,
.hint {
    color: var(--muted);
}

.rich-text p {
    margin: 0 0 10px;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    margin: 0;
    padding-left: 20px;
}

.rich-text li {
    margin: 4px 0;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.car-card {
    overflow: hidden;
}

.car-image-btn {
    border: 0;
    padding: 0;
    width: 100%;
    display: block;
    background: transparent;
    cursor: pointer;
}

.car-image {
    height: 190px;
    overflow: hidden;
    background: #0e141f;
}

.car-image.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #121928 25%, #1b2536 38%, #121928 52%);
    background-size: 240% 100%;
    animation: shimmer 1.1s linear infinite;
}

.car-image.is-loading {
    position: relative;
}

.car-image.is-loading img {
    opacity: 0;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
}

.car-image-btn:hover .car-image {
    filter: brightness(1.06);
}

.car-body {
    padding: 16px;
}

.car-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.car-head .status-pill {
    flex-shrink: 0;
}

.car-body h3 {
    margin: 0;
}

.car-body ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    gap: 8px;
}

.car-body li {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
    color: var(--muted);
    font-size: 13px;
}

.car-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.fleet-action-cell {
    text-align: center;
}

.btn-eye {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #141b29;
    color: #cfd7e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-eye:hover {
    background: #1b2538;
    color: #f0f4fb;
}

.fleet-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
}

.fleet-preview-modal.open {
    display: grid;
    place-items: center;
    padding: 18px;
}

.fleet-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 14, 0.68);
    backdrop-filter: blur(2px);
}

.fleet-preview-dialog {
    position: relative;
    width: min(1080px, 96%);
    margin: 0;
    background: #151c29;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    max-height: calc(100vh - 44px);
}

.fleet-preview-media {
    background: #0d1320;
    min-height: 360px;
    position: relative;
}

.fleet-preview-media img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 60px);
    object-fit: cover;
}

.fleet-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: rgba(10, 16, 24, 0.68);
    color: #edf2fa;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.fleet-preview-prev {
    left: 8px;
}

.fleet-preview-next {
    right: 8px;
}

.fleet-preview-thumbs {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px;
}

.fleet-preview-thumb {
    flex: 0 0 62px;
    height: 42px;
    border: 1px solid rgba(207, 217, 233, 0.38);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: rgba(14, 20, 31, 0.7);
    cursor: pointer;
    opacity: 0.82;
}

.fleet-preview-thumb.active {
    opacity: 1;
    border-color: rgba(202, 165, 90, 0.9);
    box-shadow: 0 0 0 1px rgba(202, 165, 90, 0.38);
}

.fleet-preview-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fleet-preview-close-btn {
    min-width: 92px;
}

.fleet-preview-body {
    padding: 18px;
    overflow-y: auto;
}

.fleet-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.fleet-preview-head h3 {
    margin: 0;
}

.fleet-preview-meta,
.fleet-preview-body .muted {
    margin-top: 8px;
}

.fleet-preview-specs {
    list-style: none;
    margin: 14px 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.fleet-preview-specs li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 7px;
}

.guide-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.guide-list li {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #131925;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    min-width: 720px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.split,
.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.contact-card,
.detail-card {
    padding: 22px;
}

.main-photo {
    min-height: 390px;
    overflow: hidden;
    background: #0e141f;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.thumb-grid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.thumb {
    min-height: 92px;
    overflow: hidden;
    background: #0e141f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.specs {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.specs li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-dark {
    background: #232b38;
    color: var(--text);
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #1c1914;
    box-shadow: 0 0 0 1px rgba(236, 205, 132, 0.18), 0 0 18px rgba(202, 165, 90, 0.28), 0 10px 24px rgba(167, 131, 61, 0.24);
}

.btn-gold:hover {
    box-shadow: 0 0 0 1px rgba(243, 215, 150, 0.3), 0 0 24px rgba(202, 165, 90, 0.42), 0 12px 30px rgba(167, 131, 61, 0.3);
    filter: brightness(1.04);
}

.btn-dark:hover {
    background: #2b3443;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 26px 0;
    margin-top: 30px;
}

.mobile-booking-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 85;
    display: none;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(51, 63, 85, 0.9);
    background: rgba(13, 18, 28, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.mobile-cta-btn {
    flex: 1;
    border: 0;
    border-radius: 10px;
    min-height: 42px;
    padding: 10px 12px;
    font-weight: 700;
    color: #f3f5fa;
    cursor: pointer;
}

.mobile-cta-primary {
    background: linear-gradient(180deg, #1faa64, #17874f);
}

.mobile-cta-secondary {
    background: #283247;
}

.mobile-actions-toggle {
    display: none;
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 125;
    border: 1px solid rgba(71, 87, 114, 0.95);
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 14px;
    font-weight: 700;
    color: #f0f3fa;
    background: linear-gradient(180deg, #1a2231, #121926);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.sticky-actions {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 30;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sticky-btn {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.sticky-icon-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: sticky-float 3.2s ease-in-out infinite;
}

.sticky-icon-btn svg {
    display: block;
}

.sticky-icon-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.08);
}

.sticky-whatsapp {
    background: radial-gradient(circle at 30% 30%, #28be71, #14824a);
    box-shadow: 0 0 0 0 rgba(40, 190, 113, 0.52), 0 12px 24px rgba(0, 0, 0, 0.25);
    animation: sticky-float 3.2s ease-in-out infinite, sticky-glow-whatsapp 2.2s ease-in-out infinite;
}

.sticky-instagram {
    background: radial-gradient(circle at 30% 30%, #ff8a00, #c13584 55%, #405de6);
    box-shadow: 0 0 0 0 rgba(239, 92, 153, 0.45), 0 12px 24px rgba(0, 0, 0, 0.25);
    animation: sticky-float 3.2s ease-in-out infinite 0.1s, sticky-glow-instagram 2.2s ease-in-out infinite;
}

.sticky-tiktok {
    background: radial-gradient(circle at 30% 30%, #1a1a1a, #050505);
    box-shadow: 0 0 0 0 rgba(82, 240, 230, 0.35), 0 12px 24px rgba(0, 0, 0, 0.28);
    animation: sticky-float 3.2s ease-in-out infinite 0.18s, sticky-glow-tiktok 2.2s ease-in-out infinite;
}

.sticky-call {
    background: radial-gradient(circle at 30% 30%, #3d4f70, #202b3e);
    box-shadow: 0 0 0 0 rgba(102, 138, 209, 0.45), 0 12px 24px rgba(0, 0, 0, 0.25);
    animation: sticky-float 3.2s ease-in-out infinite 0.25s, sticky-glow-call 2.2s ease-in-out infinite;
}

@keyframes sticky-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes sticky-glow-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 190, 113, 0.5), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 190, 113, 0.08), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 190, 113, 0.5), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
}

@keyframes sticky-glow-instagram {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 92, 153, 0.42), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 92, 153, 0.1), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 92, 153, 0.42), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
}

@keyframes sticky-glow-tiktok {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 240, 230, 0.38), 0 12px 24px rgba(0, 0, 0, 0.28);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(82, 240, 230, 0.1), 0 12px 24px rgba(0, 0, 0, 0.28);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(82, 240, 230, 0.38), 0 12px 24px rgba(0, 0, 0, 0.28);
    }
}

@keyframes sticky-glow-call {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 138, 209, 0.44), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 138, 209, 0.08), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 138, 209, 0.44), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
}

.admin-body {
    background: #0d1118;
}

.admin-main {
    padding-bottom: 40px;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-box {
    width: min(460px, 92%);
    padding: 28px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

input,
textarea,
button,
select {
    font: inherit;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
input[type="file"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #121722;
    color: var(--text);
    padding: 10px 12px;
}

.form-grid select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: #121722;
    color: var(--text);
    padding: 10px 40px 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8c95a5 50%), linear-gradient(135deg, #8c95a5 50%, transparent 50%);
    background-position: calc(100% - 19px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-grid select:focus {
    outline: 0;
    border-color: rgba(202, 165, 90, 0.7);
    box-shadow: 0 0 0 2px rgba(202, 165, 90, 0.22);
}

.form-grid select option {
    background: #121722;
    color: var(--text);
}

.booking-form input[type="date"] {
    min-height: 42px;
    color-scheme: dark;
}

.booking-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: #121722;
    color: var(--text);
    padding: 10px 40px 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8c95a5 50%), linear-gradient(135deg, #8c95a5 50%, transparent 50%);
    background-position: calc(100% - 19px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.booking-form select:focus {
    outline: 0;
    border-color: rgba(202, 165, 90, 0.7);
    box-shadow: 0 0 0 2px rgba(202, 165, 90, 0.22);
}

.booking-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.9;
    filter: invert(77%) sepia(24%) saturate(530%) hue-rotate(354deg) brightness(96%) contrast(90%);
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.content-form,
.car-form {
    margin-top: 14px;
    padding: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.checkbox,
.radio-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0;
}

.stats-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card {
    padding: 18px;
}

.stat-card h3 {
    font-size: 32px;
    margin: 0;
}

.stat-card p {
    margin: 6px 0 0;
}

.stat-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0 18px;
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.panel-card h3 {
    margin: 0 0 10px;
}

.content-editor-page .content-sections {
    margin-top: 16px;
    gap: 14px;
}

.editor-help {
    margin-top: 8px;
    font-size: 13px;
}

.html-editor {
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.45;
    min-height: 66px;
}

.editor-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.panel-table {
    margin-top: 18px;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.insight-list li:last-child {
    border-bottom: 0;
}

.insight-list span {
    color: var(--muted);
}

.single-row {
    grid-template-columns: 1fr;
}

.chart-panel {
    min-height: 220px;
}

.full-span {
    grid-column: 1 / -1;
}

.ratio-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.ratio-donut {
    --featured: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--featured) * 1%), #283348 0);
    display: grid;
    place-items: center;
}

.ratio-center {
    width: 114px;
    height: 114px;
    border-radius: 50%;
    background: #121722;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    text-align: center;
}

.ratio-center strong {
    font-size: 22px;
    line-height: 1;
}

.ratio-center small {
    color: var(--muted);
    font-size: 12px;
}

.ratio-legend p {
    margin: 8px 0;
    color: var(--muted);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.featured {
    background: var(--gold);
}

.dot.normal {
    background: #283348;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 34px;
    gap: 10px;
    align-items: center;
}

.bar-label,
.bar-value {
    color: var(--muted);
    font-size: 13px;
}

.bar-track {
    height: 12px;
    background: #1c2333;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.bar-fill {
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), #e4c27f);
}

.quick-actions,
.form-actions,
.row-between {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0;
}

.alert.success {
    background: #193125;
    border: 1px solid #2c5a40;
}

.alert.error {
    background: #3b1d1d;
    border: 1px solid #6b3434;
}

.toast-notification {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    min-width: 260px;
    max-width: min(420px, calc(100vw - 24px));
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.32s ease, transform 0.32s ease;
    pointer-events: none;
}

.toast-notification.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-success {
    background: #163627;
    border: 1px solid #2f7050;
    color: #e6fff0;
}

.inline-form {
    display: inline;
}

.table-wrap td {
    vertical-align: middle;
}

.table-actions {
    text-align: center;
    white-space: nowrap;
}

.table-actions .inline-form {
    display: inline-block;
    vertical-align: middle;
}

.table-actions .table-action-btn {
    vertical-align: middle;
}

.table-actions .table-action-btn + .inline-form,
.table-actions .inline-form + .table-action-btn,
.table-actions .inline-form + .inline-form {
    margin-left: 6px;
}

.table-toggle-cell {
    text-align: center;
}

.table-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #141b29;
    color: #cfd7e6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.table-action-btn:hover {
    background: #1b2538;
    color: #f0f4fb;
}

.table-action-delete {
    color: #f1acac;
    border-color: rgba(223, 122, 122, 0.45);
    background: rgba(198, 84, 84, 0.12);
}

.table-action-delete:hover {
    color: #ffd7d7;
    background: rgba(198, 84, 84, 0.24);
}

.rental-mode-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rental-flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    width: 30px;
    height: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.rental-flag-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rental-flag-btn.is-on {
    border-color: rgba(104, 212, 148, 0.5);
    color: #b9f0d0;
    background: rgba(70, 184, 124, 0.15);
}

.rental-flag-btn.is-on .rental-flag-icon {
    color: #c9fadd;
}

.rental-flag-btn.is-off {
    border-color: rgba(223, 122, 122, 0.42);
    color: #f1b1b1;
    background: rgba(198, 84, 84, 0.14);
}

.rental-flag-btn.is-off .rental-flag-icon {
    color: #ffd8d8;
}

.rental-flag-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(202, 165, 90, 0.2);
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.status-available {
    background: rgba(70, 184, 124, 0.2);
    color: #9fe3bf;
    border: 1px solid rgba(104, 212, 148, 0.45);
}

.status-unavailable {
    background: rgba(198, 84, 84, 0.2);
    color: #f1acac;
    border: 1px solid rgba(223, 122, 122, 0.45);
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #273145;
    border: 1px solid #37425a;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d8deea;
    transition: transform 0.2s ease;
}

.toggle-switch.toggle-availability input:not(:checked) + .toggle-slider {
    background: rgba(70, 184, 124, 0.35);
    border-color: rgba(104, 212, 148, 0.55);
}

.toggle-switch.toggle-availability input:not(:checked) + .toggle-slider::before {
    background: #dcffea;
}

.toggle-switch.toggle-availability input:checked + .toggle-slider {
    background: rgba(198, 84, 84, 0.38);
    border-color: rgba(223, 122, 122, 0.65);
}

.toggle-switch.toggle-availability input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #ffd3d3;
}

.toggle-switch.toggle-featured input:checked + .toggle-slider {
    background: rgba(202, 165, 90, 0.45);
    border-color: rgba(225, 192, 122, 0.72);
}

.toggle-switch.toggle-featured input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff1cf;
}

.cars-toolbar {
    margin-top: 14px;
    margin-bottom: 14px;
}

.cars-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cars-sort-form label {
    font-weight: 600;
    color: var(--muted);
}

.cars-sort-form select,
.bulk-controls select {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #121722;
    color: var(--text);
    padding: 9px 12px;
}

.bulk-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bulk-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.bulk-select-all-label input,
.js-car-select {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

.bulk-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cars-count {
    margin: 0;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.danger-link {
    color: #f7a4a4 !important;
}

.image-admin-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.image-admin-card {
    padding: 12px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.image-admin-card .thumb {
    min-height: 140px;
    border-radius: 10px;
}

.image-admin-card:has(input[name="cover_image"]:checked) {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(202, 165, 90, 0.3);
}

.image-admin-card:has(input[name="cover_image"]:checked) .radio-line {
    color: var(--gold);
}

body.modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.gallery-modal.open {
    display: block;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 13, 0.62);
    backdrop-filter: blur(2px);
}

.gallery-dialog {
    position: relative;
    width: min(1280px, 98%);
    margin: 20px auto;
    background: transparent;
    border: 0;
    border-radius: 16px;
    padding: 14px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.gallery-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: rgba(8, 12, 18, 0.7);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.gallery-title {
    margin: 0;
    padding: 4px 42px 10px 6px;
    border-bottom: 0;
    text-align: center;
}

.gallery-stage {
    position: relative;
    min-height: min(62vh, 620px);
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    margin-top: 10px;
}

.gallery-main-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    image-rendering: auto;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(12, 17, 25, 0.52);
    color: var(--text);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    z-index: 2;
}

.gallery-nav:hover {
    background: rgba(17, 24, 35, 0.82);
}

.gallery-prev {
    left: max(8px, calc(50% - min(46vw, 490px) - 26px));
}

.gallery-next {
    right: max(8px, calc(50% - min(46vw, 490px) - 26px));
}

.gallery-thumbs {
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 2px;
    justify-content: center;
    scroll-behavior: smooth;
}

.gallery-thumb {
    flex: 0 0 74px;
    height: 46px;
    border-radius: 8px;
    border: 0;
    background-size: cover;
    background-position: center;
    background-color: rgba(17, 23, 34, 0.7);
    cursor: pointer;
    opacity: 0.74;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumb.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(202, 165, 90, 0.32);
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .detail-grid,
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 10px;
        font-size: 14px;
    }

    .bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bar-value {
        text-align: right;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .gallery-stage {
        min-height: 300px;
    }

    .trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: min(1120px, 94%);
    }

    .hero {
        padding: 58px 0 40px;
    }

    .section {
        padding: 44px 0;
    }

    #booking-strip,
    #featured-cars,
    #fleet,
    #guide,
    #about,
    #contact {
        scroll-margin-top: 78px;
    }

    #booking-strip {
        scroll-margin-top: 94px;
    }

    #guide.section,
    #about.section {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .site-header .nav-wrap {
        align-items: center;
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .site-header .nav-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
    }

    .site-header .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 4px;
        background: rgba(17, 23, 34, 0.8);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 8px;
    }

    .site-header .main-nav.open {
        display: flex;
    }

    .site-header .main-nav a {
        display: block;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .site-header .main-nav a:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .quick-book-section {
        margin-top: -6px;
        padding-bottom: 22px;
    }

    .mobile-actions-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 42px);
    }

    .stats-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-actions {
        right: 10px;
        bottom: 62px;
        display: none;
        z-index: 120;
        gap: 6px;
    }

    body.mobile-actions-open .sticky-actions {
        display: flex;
    }

    .sticky-icon-btn {
        width: 42px;
        height: 42px;
    }

    .sticky-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .sticky-btn {
        font-size: 13px;
        padding: 9px 12px;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow-x: visible;
    }

    .table-wrap .fleet-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .fleet-table,
    .fleet-table tbody,
    .fleet-table tr,
    .fleet-table td {
        display: block;
        width: 100%;
    }

    .fleet-table thead {
        display: none;
    }

    .fleet-table tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(13, 19, 31, 0.92);
    }

    .fleet-table tr:last-child {
        margin-bottom: 0;
    }

    .fleet-table td {
        border: 0;
        border-bottom: 1px dashed rgba(120, 138, 168, 0.22);
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: start;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .fleet-table td::before {
        content: attr(data-label);
        text-align: left;
        color: var(--muted);
        font-weight: 600;
    }

    .fleet-table td:first-child {
        display: block;
        text-align: left;
    }

    .fleet-table td:first-child::before {
        display: none;
    }

    .fleet-table td:last-child {
        border-bottom: 0;
    }

    .fleet-table .fleet-action-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .car-image {
        height: 210px;
    }

    .car-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .car-foot .btn {
        text-align: center;
        width: 100%;
    }

    .detail-card,
    .contact-card,
    .hero-card,
    .section-tight {
        padding: 16px;
    }

    .quick-actions,
    .form-actions,
    .row-between {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions-row {
        align-items: stretch;
    }

    .bulk-controls {
        width: 100%;
    }

    .bulk-controls select,
    .bulk-controls .btn {
        width: 100%;
    }

    .quick-actions .btn,
    .form-actions .btn,
    .row-between .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-dialog {
        width: 97%;
        margin: 10px auto;
        padding: 8px;
        max-height: calc(100vh - 20px);
    }

    .gallery-stage {
        min-height: 48vh;
    }

    .gallery-main-image {
        max-height: calc(100vh - 210px);
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .gallery-prev {
        left: 6px;
    }

    .gallery-next {
        right: 6px;
    }

    .gallery-thumbs {
        gap: 6px;
        padding-bottom: 2px;
        justify-content: center;
    }

    .gallery-thumb {
        flex-basis: 62px;
        height: 40px;
    }

    .fleet-preview-dialog {
        grid-template-columns: 1fr;
        width: 96%;
        margin: 0;
        max-height: calc(100vh - 24px);
    }

    .fleet-preview-media {
        min-height: 210px;
        max-height: 260px;
    }

    .fleet-preview-media img {
        max-height: 260px;
    }

    .fleet-preview-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .fleet-preview-thumb {
        flex-basis: 54px;
        height: 36px;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 16px;
    }

    .main-nav {
        font-size: 13px;
    }

    .booking-strip {
        padding: 12px;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .car-body {
        padding: 14px;
    }

    .car-body ul {
        gap: 6px;
    }

    .car-body li {
        font-size: 12px;
        padding: 4px 8px;
    }

    .section-head p,
    .muted {
        font-size: 14px;
    }

    th,
    td {
        padding: 10px;
        font-size: 13px;
    }

    .table-wrap table {
        min-width: 640px;
    }

    .gallery-title {
        font-size: 18px;
        padding-left: 2px;
    }

    .gallery-close {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -40% 0;
    }
}
