/* Towarowa 10 — style pojedynczej powierzchni (single-powierzchnia.php).
   Ładowane PO tokens/main.css — korzysta ze wspólnych zmiennych --t10-*
   (fallbacki literalne na wypadek braku tokens). Prefiks sekcji: .t10sp-
   Struktura wg SPEC-OFERTA-POJEDYNCZA.md. */

/* ===== 1. Nagłówek ===== */
.t10sp-hero {
  padding: 34px 44px 30px;
  background: var(--t10-bg-alt, #F4F2EE);
  border-bottom: 1px solid var(--t10-line, #E7E3DB);
}
.t10sp-hero__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.t10sp-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--t10-text-2, #6B675F);
  text-decoration: none;
  white-space: nowrap;
}
.t10sp-back:hover { color: var(--t10-accent-link, #B8461D); }

.t10sp-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.t10sp-hero__main { max-width: 760px; }
.t10sp-hero__title {
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 900;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--t10-text, #1C1B18);
}
.t10sp-hero__side { text-align: right; white-space: nowrap; }
.t10sp-hero__updated {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--t10-muted, #9B968C);
}

/* ===== 2. Zdjęcia ===== */
.t10sp-media { padding: 32px 44px 0; background: var(--t10-bg-base, #fff); }
.t10sp-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--t10-r-card-lg, 8px);
  display: block;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--t10-bg-alt, #F4F2EE);
}
.t10sp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 32px;
}
.t10sp-thumb {
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--t10-r-card, 6px);
  display: block;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--t10-bg-alt, #F4F2EE);
}
.t10sp-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--t10-muted, #9B968C);
  text-align: center;
  cursor: default;
}

/* ===== 3. Dwie kolumny ===== */
.t10sp-body {
  padding: 48px 44px 64px;
  background: var(--t10-bg-base, #fff);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.t10sp-content { min-width: 0; }
.t10sp-block { margin-bottom: 40px; }
.t10sp-block:last-child { margin-bottom: 0; }
.t10sp-block__title {
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 16px;
  color: var(--t10-text, #1C1B18);
}
.t10sp-desc { font-size: 15px; line-height: 1.65; color: var(--t10-text-2, #6B675F); }
.t10sp-desc p { margin: 0 0 14px; }
.t10sp-desc p:last-child { margin-bottom: 0; }

/* 3b. Parametry */
.t10sp-params { width: 100%; border-collapse: collapse; }
.t10sp-params tr { border-bottom: 1px solid var(--t10-line-soft, #EFEBE3); }
.t10sp-params tr:last-child { border-bottom: 0; }
.t10sp-params td { padding: 12px 0; font-size: 14.5px; }
.t10sp-params td:first-child { color: var(--t10-text-2, #6B675F); }
.t10sp-params td:last-child { font-weight: 600; color: var(--t10-text, #1C1B18); text-align: right; }

/* 3c. W cenie najmu */
.t10sp-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.t10sp-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--t10-text, #1C1B18);
}
.t10sp-perk svg { flex: none; color: var(--t10-accent, #DA5A2A); }

/* 3d. Rzut techniczny */
.t10sp-rzut__tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.t10sp-rzut__tab {
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--t10-r-btn, 4px);
  border: 1px solid var(--t10-line, #E7E3DB);
  background: #fff;
  color: var(--t10-text-2, #6B675F);
  cursor: pointer;
}
.t10sp-rzut__tab[aria-selected="true"] {
  background: var(--t10-text, #1C1B18);
  color: #fff;
  border-color: var(--t10-text, #1C1B18);
}
.t10sp-rzut__panel {
  height: 380px;
  border-radius: var(--t10-r-card-lg, 8px);
  overflow: hidden;
  position: relative;
}
.t10sp-rzut__panel--2d {
  background: var(--t10-bg-field, #FBFAF7);
  background-image: linear-gradient(var(--t10-line, #E7E3DB) 1px, transparent 1px), linear-gradient(90deg, var(--t10-line, #E7E3DB) 1px, transparent 1px);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.t10sp-rzut__panel--2d img { max-width: 100%; max-height: 100%; object-fit: contain; }
.t10sp-rzut__panel--3d {
  background: radial-gradient(circle at 50% 40%, #2E2B26, #1C1B18);
}
.t10sp-rzut__panel[hidden] { display: none; }
.t10sp-rzut__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--t10-muted, #9B968C);
  flex-wrap: wrap;
}
.t10sp-rzut__foot a { color: var(--t10-accent-link, #B8461D); font-weight: 600; text-decoration: none; }
.t10sp-rzut__foot a:hover { text-decoration: underline; }
.t10sp-model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.t10sp-model-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* 3e. Warunki najmu */
.t10sp-warunki {
  background: var(--t10-bg-alt, #F4F2EE);
  border: 1px solid var(--t10-line, #E7E3DB);
  border-radius: var(--t10-r-card-lg, 8px);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t10sp-warunki dt { font-size: 12.5px; color: var(--t10-text-2, #6B675F); margin: 0 0 4px; }
.t10sp-warunki dd { font-size: 15px; font-weight: 700; color: var(--t10-text, #1C1B18); margin: 0; }
.t10sp-warunki__link { grid-column: 1 / -1; font-size: 13px; color: var(--t10-accent-link, #B8461D); text-decoration: none; }
.t10sp-warunki__link:hover { text-decoration: underline; }

/* 3f. Dojazd */
.t10sp-dojazd { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.t10sp-dojazd__item { font-size: 14px; color: var(--t10-text-2, #6B675F); border-left: 2px solid var(--t10-line, #E7E3DB); padding-left: 10px; }
.t10sp-dojazd__item--accent { border-color: var(--t10-accent, #DA5A2A); color: var(--t10-text, #1C1B18); font-weight: 600; }
.t10sp-dojazd__link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--t10-accent-link, #B8461D); text-decoration: none; }
.t10sp-dojazd__link:hover { text-decoration: underline; }

/* ===== Sticky karta ===== */
.t10sp-card {
  position: sticky;
  top: 88px;
  border: 1px solid var(--t10-line, #E7E3DB);
  border-radius: var(--t10-r-panel, 10px);
  padding: 26px;
  box-shadow: var(--t10-shadow-lift, 0 12px 30px rgba(0,0,0,.06));
  background: #fff;
}
.t10sp-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.t10sp-card__price {
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 800;
  font-size: 28px;
  color: var(--t10-text, #1C1B18);
}
.t10sp-card__area {
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--t10-accent, #DA5A2A);
}
.t10sp-card__estimate { margin: 4px 0 18px; font-size: 12.5px; color: var(--t10-muted, #9B968C); }
.t10sp-card__estimate b { color: var(--t10-text-2, #6B675F); }
.t10sp-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; list-style: none; padding: 0; }
.t10sp-card__chip { font-size: 12.5px; background: var(--t10-bg-alt, #F4F2EE); border-radius: 5px; padding: 5px 10px; color: var(--t10-text-2, #6B675F); }

.t10sp-card__note { font-size: 13px; line-height: 1.5; border-radius: var(--t10-r-card, 6px); padding: 12px 14px; margin-bottom: 14px; }
.t10sp-card__note--busy { background: var(--t10-busy-bg, #F0E4E0); color: var(--t10-busy-fg, #B04A2E); }
.t10sp-card__note--ask { background: var(--t10-ask-bg, #F4EEDE); color: var(--t10-ask-fg, #8A6D1E); }
.t10sp-card__cta-note { margin: 10px 0 0; font-size: 12px; color: var(--t10-muted, #9B968C); text-align: center; }

.t10sp-card__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--t10-line-soft, #EFEBE3);
  font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--t10-text, #1C1B18);
  text-decoration: none;
}
.t10sp-card__phone svg { flex: none; color: var(--t10-accent, #DA5A2A); }
.t10sp-card__hours { margin: 4px 0 0; font-size: 12.5px; color: var(--t10-muted, #9B968C); }
.t10sp-card__viewing { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--t10-accent-link, #B8461D); text-decoration: none; }
.t10sp-card__viewing:hover { text-decoration: underline; }

/* ===== 4. Inne wolne / podobne ===== */
.t10sp-similar {
  padding: 56px 44px;
  background: var(--t10-bg-alt, #F4F2EE);
}
.t10sp-similar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.t10sp-similar__title { font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif); font-weight: 800; font-size: 22px; margin: 0; }
.t10sp-similar__all { font-size: 13.5px; font-weight: 600; color: var(--t10-accent-link, #B8461D); text-decoration: none; }
.t10sp-similar__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t10sp-similar__invite {
  border: 1px dashed var(--t10-line-dash, #D6D0C5);
  background: var(--t10-bg-field, #FBFAF7);
  border-radius: var(--t10-r-card-lg, 8px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.t10sp-similar__invite--full { grid-column: 1 / -1; }

/* ===== Mobile — dolny pasek ===== */
.t10sp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--t10-line, #E7E3DB);
  box-shadow: 0 -6px 24px rgba(0,0,0,.1);
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.t10sp-bar__price { font-family: var(--t10-font-head, 'Archivo', system-ui, sans-serif); font-weight: 800; font-size: 17px; }
.t10sp-bar__unit { font-size: 12px; font-weight: 400; color: var(--t10-text-2, #6B675F); }
.t10sp-bar__name { margin: 2px 0 0; font-size: 12px; color: var(--t10-text-2, #6B675F); }

/* ===== Responsywność ===== */
@media (max-width: 1024px) {
  .t10sp-body { grid-template-columns: 1fr; }
  .t10sp-card { position: static; order: -1; margin-bottom: 32px; }
  .t10sp-similar__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .t10sp-hero, .t10sp-media, .t10sp-body, .t10sp-similar { padding-left: 20px; padding-right: 20px; }
  .t10sp-hero__title { font-size: 30px; }
  .t10sp-hero-img { height: 260px; }
  body.t10sp-has-bar { padding-bottom: 76px; }
  .t10sp-bar { display: flex; }
  [data-t10-float] { bottom: 84px; }
  .t10sp-similar__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .t10sp-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .t10sp-warunki { grid-template-columns: 1fr; }
  .t10sp-perks { grid-template-columns: 1fr; }
}
