/* ==========================================================================
   MOTORBIKE RENTAL BY THAI REAL
   Navazuje na style.css (tokeny) a guides.css (hero, closing pás). Prefix .mb-*
   VĚDOMÁ VÝJIMKA: tenhle modul jako jediný používá fotky — motorka JE produkt
   a lidé si vybírají očima (spec §4).
   ========================================================================== */

.mb-section { padding: clamp(44px, 5vw, 76px) 0; }
.mb-section + .mb-section { padding-top: 0; }

.mb-head { margin-bottom: clamp(22px, 2.4vw, 32px); max-width: 62ch; }
.mb-head h2 { margin-top: 8px; }
.mb-head p {
  margin-top: 10px;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   SLEVOVÝ PÁS — nejvýraznější prvek stránky (cross-sell je smysl modulu)
   ========================================================================== */

.mb-discount {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 20px);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 28px);
  background: var(--grad-gold);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(201, 162, 75, 0.28);
}

.mb-discount-ico {
  flex: none;
  display: inline-flex;
  color: var(--color-ink);
}

.mb-discount-ico svg { width: 30px; height: 30px; stroke-width: 1.6; }

.mb-discount strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-ink);
}

/* Ink na zlaté = 7.9:1 */
.mb-discount span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: rgba(18, 16, 11, 0.78);
}

@media (max-width: 559px) {
  .mb-discount { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   INFO PRUH — podmínky pronájmu, uvedené JEDNOU na stránku (spec §4)
   ========================================================================== */

.mb-terms {
  margin-top: clamp(16px, 1.8vw, 22px);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 26px);
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
}

.mb-terms h3 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mb-terms ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 28px;
}

@media (min-width: 640px)  { .mb-terms ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mb-terms ul { grid-template-columns: repeat(3, 1fr); } }

.mb-terms li {
  display: flex;
  gap: 10px;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-main);
}

.mb-terms li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--color-gold-shadow);   /* 3.8:1 — grafika */
}

/* ==========================================================================
   KATALOG — karty s fotkou
   ========================================================================== */

.mb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2vw, 26px);
}

@media (min-width: 640px)  { .mb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mb-grid { grid-template-columns: repeat(3, 1fr); } }

.mb-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--trans-medium), border-color var(--trans-medium), box-shadow var(--trans-medium);
}

.mb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 75, 0.45);
  box-shadow: 0 14px 32px rgba(18, 16, 11, 0.10);
}

/* ---- FOTKA (+ placeholder, dokud fotky nedorazí) ---- */
.mb-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #EAE4D6;
  overflow: hidden;
}

.mb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-photo.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(18, 16, 11, 0.05) 0,
    rgba(18, 16, 11, 0.05) 1px,
    transparent 1px,
    transparent 11px
  );
  color: var(--color-gold-shadow);
}

.mb-photo.is-empty svg { width: 46px; height: 46px; stroke-width: 1.4; }

.mb-photo.is-empty span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.mb-cc {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-control);
  background: var(--grad-dark-ink);
  color: var(--color-gold-hi);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(18, 16, 11, 0.3);
}

/* ---- OBSAH KARTY ---- */
.mb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(18px, 2vw, 24px);
}

.mb-card-body h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.25;
}

.mb-card-body p {
  margin-top: 7px;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-muted);
}

.mb-price {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-line);
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.mb-price-from {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.mb-price-value {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-main);
}

.mb-price-unit { font-size: var(--fs-sm); color: var(--text-muted); }

.mb-card-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mb-card-actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; }

/* ==========================================================================
   DETAIL — hero s cenovou tabulkou
   ========================================================================== */

.mb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gd-on-dark, #CFC8B7);
  text-decoration: none;
  margin-bottom: 18px;
}

.mb-back svg { width: 15px; height: 15px; transform: rotate(180deg); transition: transform var(--trans-fast); }
.mb-back:hover { color: var(--color-bone); }
.mb-back:hover svg { transform: rotate(180deg) translateX(3px); }

.mb-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
}

@media (min-width: 960px) { .mb-detail-grid { grid-template-columns: 1.05fr 0.95fr; } }

.mb-detail-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-dark-line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* ---- Cenová tabulka ---- */
.mb-rates {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark-line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.mb-rates h2 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-hi);
  margin-bottom: 14px;
}

.mb-rates table { width: 100%; border-collapse: collapse; }

.mb-rates td {
  padding: 11px 0;
  font-size: var(--gd-body-sm, var(--fs-base));
  border-bottom: 1px solid var(--border-dark-line);
  color: var(--text-dark-main);
}

.mb-rates tr:last-child td { border-bottom: none; }
.mb-rates td:first-child { color: var(--gd-on-dark, #CFC8B7); }

.mb-rates td:last-child {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mb-rates .mb-deposit td {
  border-bottom: 1px solid var(--color-gold-shadow);
  padding-bottom: 14px;
}

.mb-rates .mb-deposit td:last-child { color: var(--color-gold-hi); }

.mb-rates-cta { margin-top: 20px; }
.mb-rates-cta .btn { width: 100%; }

/* ==========================================================================
   DETAIL — spec sekce
   ========================================================================== */

.mb-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 28px);
}

@media (min-width: 760px) { .mb-specs { grid-template-columns: repeat(2, 1fr); } }

.mb-spec {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.2vw, 26px);
}

.mb-spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-line);
}

.mb-spec-head svg { width: 24px; height: 24px; flex: none; color: var(--color-gold-shadow); stroke-width: 1.5; }

.mb-spec-head h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 500;
}

.mb-spec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.mb-spec li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--gd-body-sm, var(--fs-base));
  line-height: 1.5;
  color: var(--text-main);
}

/* Ikona položky (infografika místo pomlčky) — jednotný slot, zlatý akcent. */
.mb-row-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-top: 0.12em;
  color: var(--color-gold-shadow);
}
.mb-row-ico svg { width: 100%; height: 100%; }

/* Fallback: jemná zlatá tečka, když ikona položce významově neodpovídá. */
.mb-row-ico--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.mb-row-text { min-width: 0; }

.mb-spec p {
  font-size: var(--gd-body-sm, var(--fs-base));
  line-height: 1.65;
  color: var(--text-main);
}

/* Sekce "In practice" jde přes celou šířku — je to souvislý text, ne výčet */
.mb-spec.is-wide { grid-column: 1 / -1; }

/* Čtecí škála pro modul (stejná jako guides) */
.mb-section, .mb-specs { --gd-body-sm: clamp(15px, 0.35vw + 14px, 16.5px); }
