/* =========================================================
   CENY BYTŮ PODLE LOKALITY

   Stránka /ceny-nemovitosti/<lokalita>/.
   Navazuje na proměnné a komponenty ze styles.css
   (subpage-hero, cta-strip-box, btn-gold, fsbo-disclaimer).
========================================================= */


/* =========================================================
   HERO
========================================================= */

.lp-hero {
  min-height: 440px;
}

.lp-hero .subpage-hero-content {
  min-height: calc(440px - var(--header-height));
  padding-top: 56px;
  padding-bottom: 56px;
}

.lp-title {
  margin-bottom: 18px;
}

.lp-hero .subpage-lead {
  margin-bottom: 20px;
  font-size: 18px;
}

.lp-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  font-weight: 700;
}

.lp-updated i {
  color: var(--gold-light);
}


/* =========================================================
   ROZLOŽENÍ
========================================================= */

.lp-main {
  padding: 56px 0 90px;
}

.lp-main > .container {
  display: grid;
  gap: 36px;
  max-width: 1080px;
}

.lp-main [hidden] {
  display: none !important;
}

.lp-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.08);
  box-shadow: 0 14px 40px rgba(13, 21, 31, 0.07);
}

.lp-panel-title,
.lp-section-title {
  margin: 0;
  color: var(--dark);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.lp-section-title {
  margin-bottom: 18px;
}

.lp-preview-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--text);
  font-weight: 700;
}


/* =========================================================
   VÝBĚR ČTVRTLETÍ
========================================================= */

.lp-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-bottom: 22px;
}

.lp-selected-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lp-selected-label strong {
  color: var(--text);
}

.lp-quarter-form {
  display: grid;
  gap: 6px;
}

.lp-quarter-label {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.lp-quarter-control {
  display: flex;
  gap: 10px;
}

.lp-quarter-select {
  min-width: 240px;
  padding-top: 11px;
  padding-bottom: 11px;
  border-radius: var(--radius-sm);
  border-color: rgba(13, 21, 31, 0.18);
  color: var(--text);
  font-weight: 700;
}

.lp-quarter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(200, 163, 95, 0.28);
}

.lp-old-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--text);
  font-size: 14.5px;
}

.lp-old-note i {
  color: var(--gold);
}

.lp-old-note a {
  color: var(--dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-note {
  margin: 0 0 20px;
  color: var(--muted-dark);
  font-size: 15.5px;
  line-height: 1.6;
}


/* =========================================================
   CENOVÁ TABULKA
========================================================= */

/*
 * Cenová tabulka se vždy vejde do panelu (pevné sloupce, ceny se smí
 * zalomit před „mil. Kč“). Bez overflow-x, aby tabulka při svislém
 * scrollování trackpadem neujížděla do strany.
 */
.lp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.lp-table thead th:first-child {
  width: 22%;
}

.lp-table th,
.lp-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(13, 21, 31, 0.08);
  vertical-align: top;
  text-align: left;
}

.lp-table thead th {
  padding-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom-color: rgba(13, 21, 31, 0.14);
}

.lp-table tbody th {
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
}

.lp-table tbody tr:last-child th,
.lp-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-range {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lp-m2 {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.lp-empty {
  color: var(--muted);
}


/* =========================================================
   VÝZVA K AKCI
========================================================= */

.lp-cta {
  padding: 40px 44px;
}

.lp-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.lp-cta-actions {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 12px;
}

.lp-cta-actions .btn-gold {
  padding: 15px 26px;
  font-size: 16px;
}

.lp-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  font-weight: 700;
}

.lp-cta-phone:hover {
  color: var(--gold-light);
}


/* =========================================================
   UKAZATELE TRHU
========================================================= */

.lp-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.lp-indicator {
  display: grid;
  gap: 4px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.08);
}

.lp-indicator i {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 22px;
}

.lp-indicator strong {
  color: var(--dark);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.lp-indicator span {
  color: var(--muted-dark);
  font-size: 14.5px;
}


/* =========================================================
   GRAF
========================================================= */

.lp-chart-subtitle {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.lp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--muted-dark);
  font-size: 14px;
  font-weight: 700;
}

.lp-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-legend-key {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--series-color);
}

.lp-chart {
  position: relative;
  min-height: 240px;
}

.lp-chart svg {
  display: block;
  overflow: visible;
}

.lp-chart-grid {
  stroke: rgba(13, 21, 31, 0.08);
  stroke-width: 1;
}

.lp-chart-tick {
  fill: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.lp-chart-highlight {
  fill: var(--gold-soft);
}

.lp-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-chart-dot {
  stroke: #fff;
  stroke-width: 2;
}

.lp-chart-crosshair {
  stroke: rgba(13, 21, 31, 0.28);
  stroke-width: 1;
}

.lp-chart-hit {
  fill: transparent;
  cursor: pointer;
}

.lp-chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.1);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 13.5px;
  pointer-events: none;
}

.lp-chart-tooltip-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted-dark);
}

.lp-chart-tooltip-row b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.lp-chart-data {
  margin-top: 18px;
}

.lp-chart-data summary {
  color: var(--muted-dark);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}

.lp-chart-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.lp-chart-table {
  width: 100%;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.lp-chart-table th,
.lp-chart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(13, 21, 31, 0.08);
  white-space: nowrap;
}

.lp-chart-table thead th {
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   KOMENTÁŘ MAKLÉŘE
========================================================= */

.lp-comment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
}

.lp-comment-text {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.lp-comment-text p:last-child {
  margin-bottom: 0;
}

.lp-author {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.08);
}

.lp-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.lp-author strong {
  display: block;
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
}

.lp-author span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.lp-author p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   JAK DATA POČÍTÁM
========================================================= */

.lp-method {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.09);
}

.lp-method summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  color: var(--dark);
  font-size: 16.5px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.lp-method summary::-webkit-details-marker {
  display: none;
}

.lp-method summary::after {
  content: "\F282";
  margin-left: auto;
  font-family: "bootstrap-icons";
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.lp-method[open] summary::after {
  transform: rotate(180deg);
}

.lp-method summary i {
  color: var(--gold);
}

.lp-method summary:focus-visible,
.lp-chart-data summary:focus-visible {
  outline: 3px solid rgba(200, 163, 95, 0.6);
  outline-offset: 3px;
  border-radius: 12px;
}

.lp-method-body {
  padding: 0 24px 22px;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.75;
}

.lp-method-body p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   ROZCESTNÍK LOKALIT
========================================================= */

.lp-locality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-locality-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(13, 21, 31, 0.08);
  box-shadow: 0 14px 40px rgba(13, 21, 31, 0.07);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.lp-locality-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.lp-locality-card:focus-visible {
  outline: 3px solid rgba(200, 163, 95, 0.6);
  outline-offset: 3px;
}

.lp-locality-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 20px;
}

.lp-locality-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lp-locality-body strong {
  color: var(--dark);
  font-size: 18px;
  font-weight: 900;
}

.lp-locality-body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lp-locality-arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 18px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
  .lp-comment {
    grid-template-columns: 1fr;
  }

  .lp-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-cta-actions {
    justify-items: start;
  }
}

/* Na mobilu se tabulka mění na karty podle typu domu. */
@media (max-width: 767px) {
  .lp-hero,
  .lp-hero .subpage-hero-content {
    min-height: 0;
  }

  .lp-hero .subpage-hero-content {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .lp-main {
    padding: 32px 0 70px;
  }

  .lp-main > .container {
    gap: 28px;
  }

  .lp-panel {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .lp-quarter-form,
  .lp-quarter-control,
  .lp-quarter-select {
    width: 100%;
    min-width: 0;
  }

  .lp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .lp-table,
  .lp-table tbody,
  .lp-table tr,
  .lp-table th,
  .lp-table td {
    display: block;
  }

  .lp-table tbody {
    display: grid;
    gap: 14px;
  }

  .lp-table tbody tr {
    padding: 16px 18px 6px;
    border-radius: var(--radius-sm);
    background: var(--cream-2);
    border: 1px solid rgba(13, 21, 31, 0.06);
  }

  .lp-table tbody th {
    padding: 0 0 8px;
    border-bottom: 0;
    font-size: 17px;
  }

  .lp-table td {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 12px;
    padding: 10px 0;
  }

  .lp-table tbody tr td:last-child {
    border-bottom: 0;
  }

  .lp-table td::before {
    content: attr(data-label);
    grid-row: span 2;
    color: var(--muted-dark);
    font-size: 14px;
    font-weight: 800;
  }

  .lp-range {
    font-size: 16px;
  }

  .lp-m2 {
    grid-column: 2;
  }

  .lp-cta {
    padding: 30px 24px;
  }

  .lp-cta-actions,
  .lp-cta-actions .btn-gold {
    width: 100%;
  }

  .lp-cta-actions {
    justify-items: stretch;
  }

  .lp-cta-phone {
    justify-content: center;
  }

  .lp-indicator {
    padding: 20px 22px;
  }

  .lp-comment-text {
    font-size: 16px;
  }
}
