/* Mobiti matkakas — näidisleht. Värvid tulevad auto enda välimusest:
   valge kere, Fordi hõbe, Roller Teami punane triip. Suvi = päike, kevad/sügis = meri. */

@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/overpass-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Overpass'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/overpass-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Overpass Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/overpass-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Overpass Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/overpass-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/atkinson-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/atkinson-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FBFBFA;
  --silver: #ECEEF1;
  --ink: #191B1F;
  --ink-2: #4A4F57;
  --line: #D5D9DF;
  --red: #B3262E;
  --red-dark: #8E1D24;
  --sun: #F3B63F;
  --sun-tint: #FCEFCF;
  --sea: #9CC3D5;
  --sea-tint: #E3EFF5;
  --booked: #C9CDD3;
  --pending: #EBC3C6;

  --display: 'Overpass', 'Arial Narrow', Arial, sans-serif;
  --body: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Consolas, monospace;

  --gutter: 16px;
  --radius: 10px;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Näidisriba */
.demo { background: var(--ink); color: #fff; font-size: .875rem; }
.demo__in { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.demo a { color: #fff; }

/* Päis */
.hdr { position: sticky; top: 0; z-index: 10; background: rgb(251 251 250 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font: 500 1.125rem/1 var(--display); text-decoration: none; margin: 0; }
.mark b { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
/* Märk: auto külje kaks punast diagonaaltriipu */
.mark i { width: 22px; height: 14px; background: linear-gradient(115deg, transparent 0 30%, var(--red) 30% 52%, transparent 52% 62%, var(--ink) 62% 78%, transparent 78%); }
.nav { display: none; gap: 24px; margin-left: auto; font-family: var(--display); font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--red); }
.hdr .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .hdr .btn { margin-left: 0; }
}

/* Nupud ja lingid */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  font: 700 1rem/1 var(--display); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.link:hover { color: var(--red); }

/* Avaplokk */
.hero { padding-top: 40px; }
.hero__top { display: grid; gap: 20px; align-items: end; padding-bottom: 28px; }
.hero h1 {
  font-weight: 900; letter-spacing: -.025em; line-height: .92;
  font-size: clamp(2.75rem, 9vw, 6.75rem);
  max-width: 11ch;
}
.hero__side p { color: var(--ink-2); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero__top { grid-template-columns: 1.35fr 1fr; gap: 48px; padding-bottom: 40px; }
}
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 760px) { .hero__photo img { aspect-ratio: 16 / 7; } }
.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0;
  padding-top: 18px; padding-bottom: 18px; margin-top: 0; margin-bottom: 0;
  font-family: var(--display); font-weight: 600; color: var(--ink-2);
}
.facts li { padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts b { color: var(--ink); font-weight: 900; }

/* Lõigud */
.sec { padding: 72px 0; }
.sec--tight { padding-top: 24px; }
.sec--band { background: var(--silver); }
.sec h2 { font-weight: 800; letter-spacing: -.015em; font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 20px; }
.lead { color: var(--ink-2); max-width: 60ch; }
.eyebrow { font: 600 .9375rem/1.4 var(--display); color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }

/* Numbrimärk: Eesti numbrimärgi moodi, auto päris number */
.plate {
  display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 4px;
  background: #fff; color: var(--ink); font: 700 .875rem/1 var(--mono); letter-spacing: .08em; overflow: hidden;
}
.plate i { background: #1D4FA0; color: #fff; font: 700 .5625rem/1 var(--display); font-style: normal; padding: 6px 3px 3px; display: flex; align-items: flex-end; letter-spacing: 0; }
.plate { padding-right: 8px; }
.plate i { margin-right: 8px; }
.plate { align-items: center; }
.plate i { align-self: stretch; }

/* Auto */
.auto { display: grid; gap: 32px; }
.auto__text p:not(.eyebrow) { max-width: 58ch; }
.auto__plan { margin: 0; }
.auto__plan img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.beds { display: grid; gap: 12px; margin: 16px 0 0; }
.beds div { border-left: 3px solid var(--red); padding-left: 12px; }
.beds dt { font: 800 1rem/1.3 var(--display); }
.beds dd { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 900px) {
  .auto { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
  .auto__plan { position: sticky; top: 84px; }
  .beds { grid-template-columns: repeat(3, 1fr); }
}
.specs { display: grid; gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.specs h3 { font-weight: 800; font-size: 1.125rem; margin-bottom: 10px; }
.specs ul { margin: 0; padding: 0; list-style: none; }
.specs li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .specs { grid-template-columns: repeat(4, 1fr); } }

/* Pildid */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gal a { display: block; overflow: hidden; border-radius: 6px; background: var(--silver); }
.gal img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.gal a:hover img { transform: scale(1.03); }
.gal__big { grid-column: span 2; }
@media (min-width: 760px) {
  .gal { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .gal__big { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) { .gal img { transition: none; } }

.lb { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 0; background: #000; color: #fff; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb::backdrop { background: #000; }
.lb img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lb p { margin: 0; padding: 10px 56px; font-size: .9375rem; text-align: center; }
.lb__btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); font: 700 1.5rem/1 var(--display); cursor: pointer; }
.lb__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 8px; top: 8px; }

/* Hinnad */
.prices { display: grid; gap: 32px; }
.prices > div:first-child p { max-width: 46ch; }
@media (min-width: 900px) { .prices { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.example { font-family: var(--mono); font-size: .9375rem; background: var(--silver); border-radius: 6px; padding: 10px 14px; display: inline-block; }
.ptable { width: 100%; border-collapse: collapse; font-family: var(--display); }
.ptable th, .ptable td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable thead th { font-weight: 800; font-size: 1rem; vertical-align: bottom; }
.ptable thead small { display: block; font: 400 .8125rem/1.3 var(--mono); color: var(--ink-2); margin-top: 2px; }
.ptable tbody th { font-weight: 600; }
.ptable td { font: 600 1.375rem/1 var(--mono); letter-spacing: -.02em; }
.ptable thead .sw { margin-right: 8px; }
.incl { margin: 20px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .9375rem; }
.incl li { margin-bottom: 6px; }

/* Värvinäidised (legend) */
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.sw--sun { background: var(--sun); }
.sw--sea { background: var(--sea); }
.sw--off { background: repeating-linear-gradient(135deg, #fff 0 3px, var(--line) 3px 5px); border: 1px solid var(--line); }
.sw--pending { background: var(--pending); }
.sw--booked { background: var(--booked); }

/* Broneerimine */
.book { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 1000px) {
  .book { grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
  .ticket { position: sticky; top: 84px; }
}

.cal { background: #fff; border-radius: var(--radius); padding: 16px; position: relative; }
.cal__nav { position: absolute; top: 10px; left: 8px; right: 8px; display: flex; justify-content: space-between; pointer-events: none; }
.cal__btn { pointer-events: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: 700 1.25rem/1 var(--display); cursor: pointer; }
.cal__btn:hover:not(:disabled) { border-color: var(--ink); }
.cal__btn:disabled { opacity: .35; cursor: default; }
.cal__months { display: grid; gap: 24px; }
.cal__months.two { grid-template-columns: 1fr 1fr; }
.month h3 { text-align: center; font-weight: 800; font-size: 1.0625rem; line-height: 40px; margin-bottom: 8px; text-transform: capitalize; }
.month table { width: 100%; border-collapse: separate; border-spacing: 0 3px; table-layout: fixed; }
.month th { font: 600 .75rem/2 var(--mono); color: var(--ink-2); }
.month td { padding: 0; }
.day {
  width: 100%; aspect-ratio: 1; max-height: 44px; border: 0; margin: 0; padding: 0;
  font: 600 .9375rem/1 var(--mono); color: var(--ink); cursor: pointer;
  position: relative; isolation: isolate; background: transparent;
}
.day.is-sun { background: var(--sun-tint); }
.day.is-sea { background: var(--sea-tint); }
.day.is-off { background: repeating-linear-gradient(135deg, #fff 0 4px, #EEF0F2 4px 7px); color: var(--ink-2); }
.day.is-booked { background: var(--booked); color: #6B7079; text-decoration: line-through; cursor: not-allowed; }
.day.is-pending { background: var(--pending); color: #6B4448; text-decoration: line-through; cursor: not-allowed; }
.day.is-past { background: transparent; color: #B4B8BF; cursor: default; text-decoration: none; }
/* Valik: algus ja lõpp on ümmargused punased täpid, vahepealsed päevad üks pidev riba,
   mis rea või kuu servas lõpeb ümara otsaga. Hiirega näeb eelvaadet heledama ribana. */
.cal__months { --band: var(--ink); --band-soft: #5A606A; }
.day:hover:not(:disabled)::before, .day.is-start::before, .day.is-end::before, .day.is-preview-end::before {
  content: ''; position: absolute; top: 2px; bottom: 2px; left: 50%; transform: translateX(-50%);
  aspect-ratio: 1; border-radius: 50%; z-index: -1; box-shadow: inset 0 0 0 2px var(--ink);
}
.day.is-in { background: var(--band); color: #fff; }
.day.is-preview { background: var(--band-soft); color: #fff; }
.day.is-start, .day.is-end { background: transparent; color: #fff; }
.day.is-start::before, .day.is-end::before { background: var(--red); box-shadow: none; }
.day.is-preview-end::before { box-shadow: inset 0 0 0 2px var(--red); }
.has-end .day.is-start { background: linear-gradient(90deg, transparent 50%, var(--band) 50%); }
.previewing .day.is-start { background: linear-gradient(90deg, transparent 50%, var(--band-soft) 50%); }
.day.is-end { background: linear-gradient(90deg, var(--band) 50%, transparent 50%); }
.day.is-preview-end { background: linear-gradient(90deg, var(--band-soft) 50%, transparent 50%); }
td:first-child > .day:is(.is-in, .is-preview), .day.m-first:is(.is-in, .is-preview) { border-radius: 999px 0 0 999px; }
td:last-child > .day:is(.is-in, .is-preview) { border-radius: 0 999px 999px 0; }
td:first-child > .day.m-last:is(.is-in, .is-preview), td:last-child > .day.m-first:is(.is-in, .is-preview) { border-radius: 999px; }
/* Murdosalised lahtrilaiused jätavad päevade vahele heleda joone — kate 1 px vasakule */
td:not(:first-child) > .day:is(.is-in, .is-end):not(.m-first) { box-shadow: -1px 0 0 var(--band); }
td:not(:first-child) > .day:is(.is-preview, .is-preview-end):not(.m-first) { box-shadow: -1px 0 0 var(--band-soft); }
.has-end td:last-child > .day.is-start, .previewing td:last-child > .day.is-start,
td:first-child > .day:is(.is-end, .is-preview-end), .day.m-first:is(.is-end, .is-preview-end) { background: transparent; }
.legend { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--ink-2); }
.legend .sw { margin-right: 6px; }
.cal__jump { display: block; margin: 10px auto 0; background: none; border: 0; font: 700 .9375rem/1.4 var(--body); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; cursor: pointer; color: var(--ink); }

.fields { border: 0; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.fields legend { font: 800 1.25rem/1 var(--display); margin-bottom: 14px; padding: 0; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide, .fields .err { grid-column: 1 / -1; } }
.fields label { display: grid; gap: 6px; font-weight: 700; font-size: .9375rem; }
.fields label small { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid #B9BEC6; border-radius: 8px; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: transparent; }
input[aria-invalid=true] { border-color: var(--red); }
.fields--checks .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.fields--checks .check small { display: block; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.err { margin: 0; color: var(--red-dark); font-weight: 700; font-size: .9375rem; }

/* Pilet: reisi kokkuvõte, iga ööpäev on oma kastike */
.ticket__card { background: #fff; border-radius: var(--radius); padding: 20px; border-top: 6px solid var(--red); }
.ticket h3 { font-weight: 800; font-size: 1.375rem; margin-bottom: 14px; }
.ticket__empty { color: var(--ink-2); }
.leg { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 16px; font-size: .9375rem; }
.leg dt { color: var(--ink-2); }
.leg dd { margin: 0; font-weight: 700; }
.ribbon { margin: 0 0 16px; display: grid; gap: 10px; }
.tier__label { font: 600 .75rem/1.2 var(--mono); color: var(--ink-2); margin-bottom: 4px; display: flex; justify-content: space-between; }
.tier__days { display: flex; flex-wrap: wrap; gap: 3px; }
.tile {
  width: 46px; padding: 5px 0 4px; border-radius: 4px; text-align: center;
  font-family: var(--mono); line-height: 1.15;
  animation: tile-in .28s ease both; animation-delay: calc(var(--i, 0) * 14ms);
}
.tile small { display: block; font-size: .625rem; color: rgb(25 27 31 / .7); }
.tile b { font-size: .8125rem; font-weight: 600; }
.tile--sun { background: var(--sun); }
.tile--sea { background: var(--sea); }
.tile--back { border: 1.5px dashed var(--ink-2); background: transparent; }
.tile--back b { font-size: .625rem; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }
.sum { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 16px; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 1.125rem; }
.sum__total b { font: 600 2.25rem/1 var(--mono); letter-spacing: -.03em; }
.sum p { margin: 8px 0 0; font-size: .875rem; color: var(--ink-2); }
.warn { background: var(--sun-tint); border-radius: 6px; padding: 10px 12px; font-size: .875rem; margin-bottom: 16px; }
.ticket__note { margin: 14px 0 0; padding: 12px; background: var(--silver); border-radius: 6px; font-size: .9375rem; }
.next { padding: 20px 4px 0; }
.next h4 { font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.next ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: .9375rem; }
.next li { margin-bottom: 6px; }

/* Tingimused */
.terms ul { display: grid; gap: 0 48px; padding: 0; margin: 0 0 24px; list-style: none; }
.terms li { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .terms ul { grid-template-columns: 1fr 1fr; } }

/* Jalus */
.ftr { background: var(--ink); color: #fff; padding: 48px 0 24px; font-size: .9375rem; }
.ftr a { color: #fff; }
.ftr__in { display: grid; gap: 24px; }
@media (min-width: 760px) { .ftr__in { grid-template-columns: repeat(3, 1fr); } }
.mark--ftr { margin-bottom: 12px; font-size: 1.25rem; }
.mark--ftr i { background: linear-gradient(115deg, transparent 0 30%, var(--red) 30% 52%, transparent 52% 62%, #fff 62% 78%, transparent 78%); }
.ftr__by { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .15); color: rgb(255 255 255 / .7); font-size: .8125rem; }
