:root {
  --black: #121212;
  --slate: #1F2124;
  --white: #FFFFFF;
  --gray: #A0A5B0;
  --red: #D62222;
  --burgundy: #B01A1A;
  --border: #33363b;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--gray);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4 { color: var(--white); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
p { margin: 0 0 1em; }
a { color: var(--white); }
a[data-cfg-tel], a[href^="tel:"] { white-space: nowrap; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 56px 0; }
.accent { color: var(--red); }

/* Header */
.site-header { background: #0b0b0b; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
.brand { color: var(--white); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: .5px; }
.brand span { color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; transition: background .25s, color .25s; }
.nav a:hover { background: var(--slate); color: var(--red); }
.nav a.active { color: var(--red); }
.nav-button { color: var(--white); background: transparent; border: 0; padding: 8px 12px; border-radius: 8px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.nav-button:hover { background: var(--slate); color: var(--red); }
.nav-button:disabled { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 80px 0 64px; background: linear-gradient(180deg, #1a0a0a 0%, var(--black) 100%); border-bottom: 1px solid var(--border); }
.hero p { max-width: 620px; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: var(--white); border: 2px solid var(--red);
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: background .3s, border-color .3s, transform .15s; font-family: inherit;
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); transform: translateY(-2px); }
.btn:disabled, .btn[disabled] { background: #4a2a2a; border-color: #4a2a2a; color: #999; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; border-color: var(--white); }
.btn-outline:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn-block { width: 100%; }

/* Pricing grid */
.grid { display: grid; gap: 20px; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--slate); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.price-card { text-align: center; }
.price-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 10px 28px rgba(214, 34, 34, .2); }
.price-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.price { color: var(--red); font-size: 2.8rem; font-weight: 800; margin: 6px 0; }
.price-note { font-size: .9rem; }
.fine-print { font-size: .9rem; margin-top: 18px; }
.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Forms */
.form-card { background: var(--slate); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { margin-bottom: 16px; }
label { display: block; color: var(--white); font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; background: #17181a; color: var(--white); border: 2px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 1rem; font-family: inherit; transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 34, 34, .25); }
input[type="date"], input[type="time"] { color-scheme: dark; }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .85rem; margin-top: 4px; }
.hint-oneline { white-space: nowrap; }
@media (max-width: 520px) { .hint-oneline { white-space: normal; } }
.field-error { color: var(--red); font-weight: 700; font-size: .9rem; margin-top: 6px; }
#a-types { max-height: 220px; overflow-y: auto; margin-bottom: 16px; padding: 12px 12px 0; border: 2px solid var(--border); border-radius: 8px; background: rgba(0, 0, 0, .15); }

/* Alerts */
.alert { border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-weight: 600; }
.alert-error { background: rgba(214, 34, 34, .15); border: 2px solid var(--red); color: var(--white); }
.alert-error strong { color: var(--red); text-transform: uppercase; letter-spacing: .5px; }
.retry-distance { margin: 10px 0 0 14px; width: auto; }
.alert-ok { background: rgba(255, 255, 255, .06); border: 2px solid var(--border); color: var(--white); }
[hidden] { display: none !important; }

/* Estimate box */
.layout-2 { grid-template-columns: 1.4fr 1fr; align-items: start; }
.estimate { border-top: 4px solid var(--red); }
.estimate dl { margin: 0; }
.estimate .line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.estimate dt { color: var(--gray); }
.estimate dd { margin: 0; color: var(--white); font-weight: 600; }
.estimate .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; color: var(--white); font-weight: 700; }
.estimate .total span:last-child { color: var(--red); font-size: 2rem; font-weight: 800; }
.payment-breakdown { margin: 0 0 16px; }
.payment-breakdown .line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.payment-breakdown dt { color: var(--gray); }
.payment-breakdown dd { margin: 0; color: var(--white); font-weight: 600; }
.booking-map { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 14px; }
.booking-map-frame { width: 100%; overflow: hidden; border: 2px solid var(--border); border-radius: var(--radius); }
.route-map-view { position: relative; height: 320px; overflow: hidden; background: #1c1d20; }
.route-map-view .svc-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.route-line { fill: none; stroke: #1e6bff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-osm-link { display: block; padding: 10px 14px; font-size: .88rem; background: var(--slate); }
.pay-list { list-style: none; padding: 0; margin: 0 0 1em; }
.pay-list li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 8px; }
.pay-list b { color: var(--white); }

/* Accordion */
.accordion { max-width: 820px; }
.acc-item { background: var(--slate); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0; color: var(--white); font: inherit; font-weight: 700;
  padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color .25s, background .25s;
}
.acc-btn:hover { color: var(--red); }
.acc-btn::after { content: "+"; color: var(--red); font-size: 1.6rem; line-height: 1; transition: transform .25s; }
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel p { padding: 0 20px 18px; margin: 0; }

/* Contact + map */
.contact-grid { grid-template-columns: 1fr 1.3fr; }
.map-frame { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* Footer */
.site-footer { background: #0b0b0b; border-top: 3px solid var(--red); padding: 28px 0; text-align: center; font-size: .9rem; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer p { margin: 0; }
.admin-login-link { width: auto; padding: 7px 16px; font-size: .85rem; }

@media (max-width: 800px) {
  .layout-2, .contact-grid { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .hero { padding: 52px 0 40px; }
  .section { padding: 40px 0; }
  .nav a { padding: 7px 9px; font-size: .88rem; }
  .nav-button { padding: 7px 9px; font-size: .88rem; }
}
@media (max-width: 480px) {
  .btn { width: 100%; text-align: center; }
  .alert .retry-distance { width: auto; margin-left: 14px; }
  .form-card, .card { padding: 20px; }
}

/* Image placeholders */
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.img-slot { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 220px; aspect-ratio: 4 / 3; background: var(--slate); border: 2px dashed var(--border); border-radius: var(--radius); color: var(--gray); text-align: center; font-weight: 600; }
.img-slot small { display: block; margin-top: 4px; font-weight: 400; font-size: .8rem; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 800px) {
  .hero-split, .gallery-grid { grid-template-columns: 1fr; }
}

/* Availability calendar */
.calendar { background: #17181a; border: 2px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--white); }
.cal-nav { background: var(--red); color: var(--white); border: 0; border-radius: 8px; width: 36px; height: 36px; font-size: 1.3rem; cursor: pointer; transition: background .3s; }
.cal-nav:hover:not(:disabled) { background: var(--burgundy); }
.cal-nav:disabled { background: #333; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; padding: 4px 0; }
.cal-day { aspect-ratio: 1; min-height: 36px; padding: 0; background: var(--slate); color: var(--white); border: 1px solid var(--border); border-radius: 8px; font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.cal-day:hover:not(:disabled) { border-color: var(--red); background: #2a2c30; }
.cal-day.past { opacity: .3; cursor: not-allowed; }
.cal-day.full { background: rgba(214, 34, 34, .2); color: var(--red); border-color: var(--red); text-decoration: line-through; cursor: not-allowed; font-weight: 700; }
.cal-day.in-range { background: rgba(214, 34, 34, .3); }
.cal-day.sel { background: var(--red); border-color: var(--red); color: var(--white); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .85rem; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--border); }
.lg-ok { background: var(--slate); }
.lg-full { background: rgba(214, 34, 34, .3); border-color: var(--red) !important; }
.lg-sel { background: var(--red); }

.cal-summary { color: var(--white); font-weight: 600; margin: 12px 0 0; }

/* Service-area map */
.svc-wrap { display: flex; flex-direction: column; gap: 10px; }
.svc-map { position: relative; height: 440px; overflow: hidden; background: #1c1d20; cursor: grab; touch-action: none; user-select: none; border-radius: var(--radius); }
.svc-map:active { cursor: grabbing; }
.svc-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; filter: brightness(.98) contrast(.98); }
.svc-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.svc-ring { fill: rgba(214, 34, 34, .12); stroke: var(--red); stroke-width: 3; stroke-dasharray: 10 6; }
.svc-service-ring { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 5 6; }
.svc-markers { position: absolute; inset: 0; pointer-events: none; }
.svc-town { position: absolute; transform: translate(-50%, -100%); color: var(--white); font-size: .72rem; font-weight: 600; text-shadow: 0 0 3px #000, 0 0 3px #000; white-space: nowrap; padding-bottom: 8px; }
.svc-town::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px; margin-left: -3.5px; background: var(--white); border: 1px solid #000; border-radius: 50%; }
.svc-pin { position: absolute; transform: translate(-50%, -100%); background: var(--red); color: var(--white); font-weight: 800; font-size: .8rem; padding: 3px 9px; border-radius: 6px; white-space: nowrap; margin-top: -8px; }
.svc-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--red); }
.svc-ctrl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.svc-ctrl button, .svc-toggle { background: var(--red); color: var(--white); border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; transition: background .3s; }
.svc-ctrl button { width: 36px; height: 36px; font-size: 1.2rem; }
.svc-ctrl button:hover:not(:disabled), .svc-toggle:hover { background: var(--burgundy); }
.svc-ctrl button:disabled { background: #444; cursor: not-allowed; }
.svc-toggle { padding: 10px 16px; align-self: flex-start; }
.svc-credit { position: absolute; right: 0; bottom: 0; background: rgba(0, 0, 0, .55); color: #ddd; font-size: .6rem; padding: 2px 5px; }
.svc-legend { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--white); }
.svc-legend span:first-child { color: var(--red); font-weight: 700; }
.svc-legend span:last-child { color: #ddd; }
.svc-wrap iframe { width: 100%; height: 440px; border: 0; border-radius: var(--radius); }
.map-frame { border: 0; min-height: 0; }
@media (max-width: 800px) { .svc-map, .svc-wrap iframe { height: 340px; } }
