/* ==========================================================================
   Podolská 144 — produktový web (demo)
   Používá tokeny z ../brand/brand.css
   ========================================================================== */

/* Demo banner */
.demo-banner {
  background: var(--rl-blue-dark);
  color: var(--rl-sky);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-align: center; padding: 7px 16px;
}
.demo-banner strong { color: #fff; }

/* Navigace */
.pnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rl-rule);
}
.pnav-inner {
  max-width: var(--rl-maxw); margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 24px;
}
.pnav .rl-logo { font-size: 1.3rem; }
.pnav .project-mark {
  font-weight: 700; font-size: 0.95rem; color: var(--rl-blue-bridge);
  padding-left: 20px; border-left: 1px solid var(--rl-rule);
  white-space: nowrap;
}
.pnav-links { display: flex; gap: 22px; font-size: 0.86rem; font-weight: 600; margin-left: auto; }
.pnav-links a { color: var(--rl-blue-bridge); }
.pnav-links a:hover { color: var(--rl-blue); text-decoration: none; }
.lang-toggle {
  display: flex; gap: 2px; font-size: 0.8rem; font-weight: 700;
}
.lang-toggle span, .lang-toggle button {
  border: 0; background: none; font: inherit; padding: 4px 8px; border-radius: 5px;
}
.lang-toggle .active { background: var(--rl-blue-bridge); color: #fff; }
.lang-toggle button { color: var(--rl-text-muted); cursor: pointer; }
.lang-toggle button:hover { color: var(--rl-blue); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rl-red-bridge); color: #fff; /* Bridge Red — WCAG AA kontrast s bílou */
  font-weight: 700; font-size: 0.92rem;
  border: 0; border-radius: 999px; padding: 12px 24px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(170, 17, 32, 0.3); }
.btn:focus-visible, .fchip:focus-visible, .unit-link:focus-visible { outline: 3px solid var(--rl-blue); outline-offset: 2px; }
.unit-link { color: inherit; font-weight: inherit; }
.unit-link:hover { text-decoration: none; }
.btn.secondary {
  background: transparent; color: var(--rl-blue-bridge);
  border: 2px solid var(--rl-blue-bridge);
}
.btn.secondary:hover { box-shadow: 0 6px 18px rgba(12, 39, 73, 0.15); }
.btn.small { padding: 8px 16px; font-size: 0.82rem; }

@media (max-width: 900px) {
  .pnav-links, .pnav .project-mark { display: none; }
  .pnav .btn { margin-left: auto; }
}

/* Hero */
.phero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }
.phero .status {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--rl-rule); border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--rl-blue-bridge);
  padding: 7px 14px; margin-bottom: 22px;
}
.phero .status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rl-red);
}
.phero .illust { position: relative; }
.phero .illust .stripes {
  position: absolute; right: -30px; bottom: -30px; width: 220px; height: 120px;
  z-index: 0;
}
.phero .illust svg.facade { position: relative; z-index: 1; width: 100%; height: auto; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Sekce obecně */
.psection { padding: 76px 0; }
.psection.alt { background: #fff; border-top: 1px solid var(--rl-rule); border-bottom: 1px solid var(--rl-rule); }
@media (max-width: 820px) { .psection { padding: 54px 0; } }

/* Timeline fází */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
.tl-step { position: relative; padding: 22px 18px 0 0; border-top: 3px solid var(--rl-rule); }
.tl-step.done { border-top-color: var(--rl-blue); }
.tl-step.current { border-top-color: var(--rl-red); }
.tl-step .when { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rl-text-muted); }
.tl-step.current .when { color: var(--rl-red-bridge); }
.tl-step h3 { font-size: 1rem; margin-top: 6px; }
.tl-step p { font-size: 0.88rem; color: var(--rl-text-muted); margin-top: 6px; }

/* Filtry bytů */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.fchip {
  border: 1.5px solid var(--rl-rule); background: #fff; color: var(--rl-blue-bridge);
  font: inherit; font-size: 0.84rem; font-weight: 700;
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.fchip:hover { border-color: var(--rl-blue); }
.fchip.active { background: var(--rl-blue-bridge); border-color: var(--rl-blue-bridge); color: #fff; }

/* Tabulka bytů */
.units-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--rl-rule); border-radius: var(--rl-radius); }
table.units { width: 100%; border-collapse: collapse; min-width: 760px; }
.units th {
  text-align: left; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rl-text-muted);
  padding: 14px 16px; border-bottom: 2px solid var(--rl-rule);
  white-space: nowrap;
}
.units td { padding: 13px 16px; border-bottom: 1px solid var(--rl-rule); font-size: 0.92rem; }
.units tr:last-child td { border-bottom: 0; }
.units tbody tr { cursor: pointer; transition: background 0.12s ease; }
.units tbody tr:hover { background: var(--rl-cream); }
.units .uid { font-weight: 800; color: var(--rl-blue-bridge); }
.units .price { font-weight: 700; white-space: nowrap; }
.units .muted { color: var(--rl-text-muted); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-pill.free { background: rgba(0, 67, 255, 0.08); color: var(--rl-blue); }
.status-pill.free::before { background: var(--rl-blue); }
.status-pill.reserved { background: rgba(255, 18, 0, 0.08); color: var(--rl-red-bridge); }
.status-pill.reserved::before { background: var(--rl-red); }
.units-note { font-size: 0.82rem; color: var(--rl-text-muted); margin-top: 14px; }

/* Karty (garáže, dokument, lokalita) */
.pcard {
  background: #fff; border: 1px solid var(--rl-rule);
  border-radius: var(--rl-radius); padding: 28px;
}
.pcard h3 { font-size: 1.1rem; margin-bottom: 10px; }

.video-ph {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--rl-blue-bridge); border-radius: var(--rl-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--rl-sky); font-size: 0.85rem; font-weight: 600;
  overflow: hidden;
}
.video-ph::before {
  content: "▶"; display: flex; align-items: center; justify-content: center;
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: var(--rl-red); color: #fff; font-size: 1.2rem;
  top: calc(50% - 29px); left: calc(50% - 29px);
}
.video-ph span { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; }

/* Formulář */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--rl-blue-bridge); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.92rem; color: var(--rl-text);
  background: #fff; border: 1.5px solid var(--rl-rule); border-radius: 8px;
  padding: 11px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rl-blue); outline-offset: 1px; border-color: var(--rl-blue);
}
.form-note { font-size: 0.82rem; color: var(--rl-text-muted); }

/* Detail bytu */
.breadcrumb { font-size: 0.84rem; font-weight: 600; margin-bottom: 26px; }
.breadcrumb a { color: var(--rl-text-muted); }
.breadcrumb .sep { margin: 0 8px; color: var(--rl-rule); }
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; background: var(--rl-rule); border: 1px solid var(--rl-rule); border-radius: var(--rl-radius); overflow: hidden; }
.params > div { background: #fff; padding: 16px 18px; }
.params .k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rl-text-muted); }
.params .v { font-size: 1.05rem; font-weight: 800; color: var(--rl-blue-bridge); margin-top: 4px; }

.plan-box {
  background: #fff; border: 1px solid var(--rl-rule); border-radius: var(--rl-radius);
  padding: 30px; display: flex; align-items: center; justify-content: center;
}
.plan-box svg { width: 100%; max-width: 460px; height: auto; }

/* Patička */
.pfooter { background: var(--rl-blue-bridge); color: var(--rl-cream); padding: 56px 0 40px; }
.pfooter a { color: var(--rl-sky); }
.pfooter .legal { margin-top: 34px; font-size: 0.78rem; color: rgba(247, 245, 238, 0.6); line-height: 1.6; }
.pfooter .cols { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; align-items: flex-start; }

/* Toast (EN stub) */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--rl-blue-bridge); color: #fff;
  font-size: 0.88rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
  z-index: 100; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
