/* ==========================================================
   Hlídání vozu
   Dvě části: veřejné stránky /hlidani/ (potvrzení, správa, odhlášení)
   a panel „Hlídat vůz" v detailu vozu. Tokeny dědíme ze site.css
   a wow-upgrade-v2.css, ať to sedí se zbytkem webu.
   ========================================================== */

:root {
  --accent: #e96609;
}
html[data-theme='dark'] {
  --accent: #f97316;
}

/* ---------- Veřejné stránky /hlidani/ ---------- */

.watch-page {
  padding: clamp(2rem, 6vw, 4.5rem) 1rem clamp(3rem, 8vw, 6rem);
  background: var(--bg);
}
.watch-shell {
  max-width: 60rem;
  margin: 0 auto;
}
.watch-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 0.4rem;
}
.watch-head p {
  color: var(--text-soft);
  margin: 0 0 1.6rem;
}

.watch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
}
.watch-card h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  color: var(--heading);
  margin: 0.6rem 0 0.5rem;
}
.watch-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 0.4rem;
}
.watch-card p {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 36rem;
}
.watch-card--ok {
  border-color: color-mix(in srgb, #059669 34%, var(--line));
}
.watch-card--warn {
  border-color: color-mix(in srgb, #d97706 34%, var(--line));
}

.watch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, #059669 14%, transparent);
  color: #059669;
}
.watch-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface-soft);
}
.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.watch-flash {
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.watch-flash--ok {
  background: color-mix(in srgb, #059669 12%, transparent);
  color: #047857;
}
.watch-flash--err {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  color: #b91c1c;
}

.watch-list {
  display: grid;
  gap: 1rem;
}
.watch-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.watch-row-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  object-fit: cover;
}
.watch-row-body {
  padding: 1.1rem 1.3rem 1.3rem 0;
}
.watch-row-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
}
.watch-row-body h2 a {
  color: var(--heading);
  text-decoration: none;
}
.watch-row-body h2 a:hover {
  color: var(--accent);
}

.watch-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem 1rem;
  margin: 0 0 1rem;
}
.watch-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.watch-facts dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.watch-drop {
  display: inline-block;
  margin-left: 0.35rem;
  color: #047857;
  font-size: 0.85rem;
}

.watch-row-forms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.watch-target label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}
.watch-target-row {
  display: flex;
  gap: 0.5rem;
}
.watch-target input {
  width: 9.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.watch-cancel-all {
  margin-top: 1.4rem;
  text-align: center;
}

.watch-similar {
  margin-top: 2.5rem;
}
.watch-similar h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 0.9rem;
  text-align: center;
}
.watch-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.watch-tip {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.watch-tip:hover {
  transform: translateY(-2px);
}
.watch-tip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.watch-tip-name,
.watch-tip-price {
  display: block;
  padding: 0 0.9rem;
}
.watch-tip-name {
  padding-top: 0.7rem;
  font-weight: 700;
  color: var(--heading);
  font-size: 0.95rem;
}
.watch-tip-price {
  padding-bottom: 0.9rem;
  padding-top: 0.2rem;
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 40rem) {
  .watch-row {
    grid-template-columns: 1fr;
  }
  .watch-row-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .watch-row-body {
    padding: 0 1.1rem 1.2rem;
  }
}

/* ---------- Panel „Hlídat vůz" v detailu vozu ---------- */

.watch-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.watch-trigger:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: translateY(-1px);
}
.watch-trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}
.watch-trigger svg {
  width: 1.05rem;
  height: 1.05rem;
}
.watch-trigger[aria-expanded='true'] {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: var(--accent);
  color: var(--accent);
}
.watch-trigger[aria-expanded='true']:hover {
  background: var(--accent);
  color: #fff;
}

/* Inline panel, ne modal přes celou obrazovku — návštěvník nepřijde
   o kontext vozu, u kterého se rozhoduje. */
.watch-panel {
  margin-top: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}
.watch-panel[hidden] {
  display: none;
}
/* Uvozující věta pod tlačítkem — říká rovnou, že se ozve člověk. */
.watch-lead {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.watch-optional {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.watch-panel label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.3rem;
}
.watch-panel input[type='email'],
.watch-panel input[type='tel'],
.watch-panel input[type='text'] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: var(--bg);
  color: var(--heading);
  font-size: 0.95rem;
}
.watch-panel input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}
.watch-field + .watch-field {
  margin-top: 0.8rem;
}
.watch-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}
.watch-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--heading);
  cursor: pointer;
}
.watch-check input {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.watch-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}
.watch-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.watch-legal {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 0.7rem;
}
.watch-legal a {
  color: var(--accent);
  font-weight: 600;
}
.watch-message {
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.87rem;
  font-weight: 600;
}
.watch-message[hidden] {
  display: none;
}
.watch-message--ok {
  background: color-mix(in srgb, #059669 13%, transparent);
  color: #047857;
}
.watch-message--err {
  background: color-mix(in srgb, #dc2626 13%, transparent);
  color: #b91c1c;
}

/* Honeypot — pro člověka neviditelný, pro bota lákavý. */
.watch-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.watch-counter {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- Štítek „Sníženo" ---------- */

.price-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, #059669 13%, transparent);
  color: #047857;
  border: 1px solid color-mix(in srgb, #059669 28%, transparent);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.price-was {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--text-soft);
  text-decoration: line-through;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
