:root {
    --ink: #12232f;
    --muted: #5d6b76;
    --line: #d8e3ea;
    --blue: #0873b9;
    --deep: #03406d;
    --teal: #00a0a8;
    --gold: #f7b731;
    --green: #159947;
    --red: #d33d3d;
    --soft: #f3f8fb;
    --white: #fff;
    --shadow: 0 18px 45px rgba(8, 52, 82, .16);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky; top: 0; z-index: 50; min-height: 78px; padding: 10px clamp(16px, 4vw, 56px);
    display: flex; align-items: center; gap: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216,227,234,.8);
}
.brand img { width: 178px; height: 58px; object-fit: contain; object-position: left center; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; color: var(--deep); }
.nav a { padding: 10px 0; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; background: var(--deep); border-radius: 8px; box-shadow: none; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: white; border-radius: 999px; }
.quick-actions { display: flex; gap: 10px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: white; }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.whatsapp { background: #16a34a; }
.facebook { background: #1877f2; }

.flash { margin: 14px auto; max-width: 1180px; padding: 14px 18px; border-radius: 8px; background: #e7f8ef; color: #116033; border: 1px solid #b9ebcf; }
.hero { min-height: 650px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--deep); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,31,54,.88), rgba(3,52,86,.52) 48%, rgba(3,52,86,.12)); }
.hero-content { position: relative; z-index: 2; width: min(820px, calc(100% - 32px)); margin-left: clamp(16px, 6vw, 84px); color: white; padding-top: 160px; }
.slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 96px; display: flex; gap: 9px; transform: translateX(-50%); }
.slider-dot { width: 34px; height: 7px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.42); box-shadow: none; }
.slider-dot.is-active { background: var(--gold); }
.slider-arrow {
    position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; padding: 0; transform: translateY(-50%);
    display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
    background: rgba(3,64,109,.58); color: white; box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.slider-arrow span { display: block; margin-top: -3px; font-size: 42px; line-height: 1; }
.slider-prev { left: clamp(14px, 2.8vw, 38px); }
.slider-next { right: clamp(14px, 2.8vw, 38px); }
.slider-arrow:hover { background: rgba(3,64,109,.82); }
.eyebrow { margin: 0 0 10px; color: var(--teal); text-transform: uppercase; font-size: 12px; letter-spacing: 0; font-weight: 800; }
.hero .eyebrow { color: #a4f5ff; }
.hero h1, .page-hero h1 {
    margin: 0; font-size: clamp(34px, 4.8vw, 66px); line-height: 1.08; letter-spacing: 0; max-width: 900px;
    text-wrap: balance; overflow-wrap: normal; word-break: normal;
}
.hero p:not(.eyebrow) { font-size: 19px; line-height: 1.6; max-width: 640px; color: #e8f4fa; }
.hero-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn, button {
    border: 0; border-radius: 8px; padding: 13px 18px; font-weight: 800; cursor: pointer; font-size: 15px;
}
.btn.primary, button[type="submit"] { background: linear-gradient(135deg, var(--gold), #ffdf78); color: #142430; box-shadow: 0 10px 22px rgba(247,183,49,.25); }
.btn.ghost { color: white; border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.08); }

.booking-band { position: relative; z-index: 3; margin: -64px auto 0; width: min(1180px, calc(100% - 32px)); }
.search-box {
    display: grid; grid-template-columns: 1fr 1fr 180px auto; gap: 14px; align-items: end;
    padding: 20px; background: white; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; font-size: 13px; }
input, textarea, select {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; font: inherit; background: white; color: var(--ink);
}
.location-label { position: relative; }
.location-input-wrap { position: relative; display: block; }
.location-input { padding-right: 116px; }
.use-current-location {
    position: absolute; right: 6px; top: 6px; bottom: 6px; width: 38px; padding: 0; border-radius: 6px;
    display: grid; place-items: center; background: #e8f6fb; color: var(--deep); box-shadow: none;
}
.use-current-location svg { width: 19px; height: 19px; fill: currentColor; }
.use-current-location[data-status]:not([data-status=""])::after {
    content: attr(data-status); position: absolute; right: 0; top: calc(100% + 7px); z-index: 35; width: max-content;
    max-width: 190px; padding: 7px 9px; border-radius: 6px; background: var(--deep); color: white; font-size: 12px;
}
.location-suggestions {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 4px;
    max-height: 260px; overflow: auto; background: white; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 14px 28px rgba(8, 52, 82, .15); padding: 6px;
}
.location-suggestions:empty { display: none; }
.location-suggestion {
    width: 100%; padding: 10px 11px; border-radius: 6px; background: white; color: var(--ink); text-align: left;
    font-size: 14px; font-weight: 700; box-shadow: none;
}
.location-suggestion:hover { background: #edf8fb; }
.map-attribution {
    grid-column: 1 / -1; margin: -2px 0 0; color: #6c7b86; font-size: 12px; font-weight: 700;
}

.section { width: min(1180px, calc(100% - 32px)); margin: 74px auto; }
.section-head { margin-bottom: 24px; }
.section h2, .page-hero h1 { color: var(--deep); }
.section h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.offer-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.offer-controls { display: flex; gap: 8px; }
.offer-arrow {
    width: 42px; height: 42px; padding: 0; display: grid; place-items: center;
    border-radius: 50%; background: var(--deep); color: white; box-shadow: none; font-size: 30px; line-height: 1;
}
.offer-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 38%);
    gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
    scrollbar-width: none; padding: 2px 2px 12px;
}
.offer-track::-webkit-scrollbar { display: none; }
.offer-card {
    position: relative; min-height: 245px; overflow: hidden; border-radius: 8px;
    background: var(--deep); scroll-snap-align: start; box-shadow: var(--shadow);
}
.offer-card img { width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
.offer-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,31,54,.08), rgba(3,31,54,.84)); }
.offer-copy { position: absolute; left: 18px; right: 18px; bottom: 18px; color: white; display: grid; gap: 8px; }
.offer-badge {
    position: absolute; left: -42px; top: 20px; z-index: 2; width: 160px; padding: 8px 12px;
    transform: rotate(-45deg); transform-origin: center; text-align: center;
    background: var(--gold); color: #142430; font-size: 11px; font-weight: 900;
    box-shadow: 0 10px 18px rgba(0,0,0,.18);
    overflow: hidden; animation: ribbonPulse 2.8s ease-in-out infinite;
}
.offer-badge::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation: ribbonShine 3.6s ease-in-out infinite;
}
@keyframes ribbonPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}
@keyframes ribbonShine {
    0%, 55% { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
    .offer-badge, .offer-badge::after { animation: none; }
}
.offer-copy h3 { margin: 0; font-size: 26px; line-height: 1.12; }
.offer-copy p { margin: 0; color: #e8f4fa; font-weight: 800; }
.offers-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.offer-page-card { min-height: 300px; }
.offer-page-card img { min-height: 300px; }
.offer-page-card .offer-copy h2 { margin: 0; color: white; font-size: 28px; line-height: 1.12; }
.offer-status {
    width: max-content; max-width: 100%; padding: 7px 10px; border-radius: 999px;
    background: rgba(255,255,255,.9); color: var(--deep); font-size: 12px; font-weight: 900;
}
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.car-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 28px rgba(11,51,82,.08); }
.car-media { position: relative; aspect-ratio: 16 / 10; background: #dcecf4; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; top: 12px; left: 12px; padding: 8px 11px; border-radius: 999px; color: white; font-weight: 900; font-size: 12px; }
.status.ok { background: var(--green); }
.status.no { background: var(--red); }
.car-body { padding: 18px; display: grid; gap: 14px; }
.car-body h3 { margin: 0; font-size: 22px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.meta span, .feature-list span { padding: 8px 10px; background: #eef6f9; border-radius: 999px; }
.price { display: flex; gap: 10px; align-items: baseline; }
.price del { color: #8a98a3; }
.price strong { font-size: 24px; color: var(--deep); }
.mini-booking { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-booking button { grid-column: 1 / -1; }
.mini-booking button:disabled { background: #c9d4da; color: #66747e; cursor: not-allowed; box-shadow: none; }

.split { display: grid; grid-template-columns: 1fr .9fr; gap: 34px; align-items: center; }
.split > img, .service-grid article img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.split p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-weight: 800; color: var(--deep); }
.page-hero { padding: 78px clamp(16px, 6vw, 84px); background: linear-gradient(135deg, #e8f6fb, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { width: min(920px, 100%); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-grid article, .contact-panel, .admin-panel, .stat-grid article, .location-card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 10px 24px rgba(11,51,82,.07); }
.service-grid h2 { font-size: 27px; margin: 20px 0 8px; }
.service-grid p, .contact-panel p { color: var(--muted); line-height: 1.7; }
.service-card-accent { display: flex; flex-direction: column; justify-content: center; min-height: 310px; background: linear-gradient(135deg, #ffffff, #edf8fb) !important; }
.service-icon-row { display: flex; gap: 12px; margin-bottom: 10px; }
.service-icon-row span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: #e8f6fb; color: var(--deep); font-size: 28px; font-weight: 900; }
.contact-panel { display: grid; grid-template-columns: .8fr 1fr; gap: 30px; }
.contact-panel form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-panel textarea, .contact-panel button { grid-column: 1 / -1; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.location-list { display: grid; gap: 12px; margin-top: 18px; }
.location-list.compact .location-card { padding: 16px; box-shadow: none; }
.location-card h3 { margin: 0 0 8px; color: var(--deep); font-size: 21px; }
.location-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.location-card a { color: var(--blue); font-weight: 800; }

.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 34px clamp(16px, 6vw, 84px); background: #082f49; color: #dff3fb; }
.footer img { width: 165px; height: 58px; object-fit: contain; object-position: left center; background: white; border-radius: 8px; padding: 5px; }
.footer p { line-height: 1.6; color: #cbe6f2; }

.admin-body { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #eef5f8; }
.admin-sidebar { background: #062f4f; color: white; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar img { width: 190px; height: 68px; object-fit: contain; object-position: left center; background: white; border-radius: 8px; padding: 5px; margin-bottom: 18px; }
.admin-sidebar a { padding: 12px 14px; border-radius: 8px; color: #e8f8ff; font-weight: 800; }
.admin-sidebar a:hover { background: rgba(255,255,255,.12); }
.admin-main { padding: 30px; overflow-x: auto; }
.admin-main h1 { margin-top: 0; color: var(--deep); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-grid strong { display: block; font-size: 38px; color: var(--blue); }
.stat-grid span { color: var(--muted); font-weight: 800; }
.admin-panel { margin-bottom: 24px; }
.admin-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.admin-form .wide { grid-column: span 2; }
.admin-form .check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.admin-form .check input { width: auto; }
.settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-form textarea, .settings-form button { grid-column: 1 / -1; }
.logo-upload-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.settings-logo-preview {
    width: 178px; height: 58px; object-fit: contain; object-position: left center;
    background: white; border: 1px solid var(--line); border-radius: 8px; padding: 5px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--deep); font-size: 13px; text-transform: uppercase; background: #f6fafc; }
.thumb { width: 86px; height: 58px; object-fit: cover; border-radius: 8px; }
.actions form { display: inline; }
.actions a, .actions button { background: #edf7fb; color: var(--deep); padding: 8px 10px; border-radius: 8px; font-weight: 800; box-shadow: none; }
.actions button { background: #ffe8e8; color: #a51f1f; }
.status-pill { display: inline-block; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-booked { background: #eaf4ff; color: #075994; }
.status-completed { background: #e7f8ef; color: #116033; }
.status-cancelled { background: #ffe8e8; color: #a51f1f; }
.admin-login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #063a60, #07a2ad); padding: 18px; }
.login-card { width: min(420px, 100%); background: white; border-radius: 8px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 15px; }
.login-card img { width: 180px; height: 62px; object-fit: contain; margin: 0 auto 8px; }
.login-card h1 { margin: 0; color: var(--deep); text-align: center; }
.login-card p { margin: 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
    .site-header { gap: 10px; }
    .menu-toggle { display: block; order: 3; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; width: 100%;
        padding: 10px 16px 16px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px rgba(8, 52, 82, .12);
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 4px; border-bottom: 1px solid #edf4f8; }
    .quick-actions { margin-left: auto; }
    .hero { min-height: 620px; }
    .hero-content { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding-top: 118px; }
    .hero h1, .page-hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.12; }
    .slider-dots { bottom: 82px; }
    .slider-arrow { width: 40px; height: 40px; }
    .slider-arrow span { font-size: 36px; }
    .offer-track { grid-auto-columns: minmax(280px, 72%); }
    .search-box, .split, .contact-panel, .footer, .admin-body { grid-template-columns: 1fr; }
    .car-grid, .service-grid, .offers-page-grid, .stat-grid, .admin-form, .settings-form, .location-grid { grid-template-columns: 1fr; }
    .admin-form .wide { grid-column: auto; }
    .contact-panel form { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sidebar img { grid-column: 1 / -1; max-width: 210px; }
    .admin-main { padding: 20px 16px; }
}

@media (max-width: 560px) {
    body { overflow-x: hidden; }
    .site-header { padding: 8px 12px; min-height: 66px; }
    .brand img { width: 146px; height: 50px; }
    .icon-link { width: 36px; height: 36px; }
    .hero h1, .page-hero h1 { font-size: clamp(28px, 8.8vw, 36px); line-height: 1.14; }
    .hero p:not(.eyebrow) { font-size: 16px; }
    .hero { min-height: 690px; align-items: flex-end; }
    .hero-img {
        top: 0; bottom: auto; height: 48%; padding: 10px 12px 0;
        object-fit: contain; object-position: center center; background: #dcecf4;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(3,31,54,.1) 0%, rgba(3,31,54,.35) 36%, rgba(3,31,54,.92) 58%, rgba(3,31,54,.98) 100%);
    }
    .hero-content {
        position: absolute; left: 14px; right: 14px; bottom: 90px;
        width: auto; margin: 0; padding-top: 0;
    }
    .slider-arrow { top: 28%; bottom: auto; transform: translateY(-50%); }
    .slider-dots { bottom: 42px; }
    .booking-band { margin-top: -42px; }
    .search-box { padding: 16px; gap: 12px; }
    .location-input { padding-right: 52px; }
    .use-current-location { width: 38px; }
    .section { margin: 54px auto; width: min(100% - 24px, 1180px); }
    .offer-head { align-items: start; }
    .offer-controls { display: none; }
    .offer-track { grid-auto-columns: 86%; gap: 14px; }
    .offer-card, .offer-card img { min-height: 220px; }
    .offer-copy h3 { font-size: 22px; }
    .car-body { padding: 15px; }
    .price { flex-wrap: wrap; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .mini-booking { grid-template-columns: 1fr; }
    .quick-actions { gap: 6px; }
    .admin-sidebar { grid-template-columns: 1fr; }
    .logo-upload-row { grid-template-columns: 1fr; }
    table { min-width: 680px; }
}
