/* Detail projektu + detail nabídky */

.detail-page .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-page .section-eyebrow::before {
  width: 2px;
  height: 14px;
  background: var(--brand-accent);
  content: "";
}

.detail-page .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-page .section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-page .section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.detail-page .section-heading > a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.detail-top {
  padding-top: 22px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  color: var(--brand-accent);
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.detail-gallery-main,
.detail-gallery-side img,
.detail-gallery-more {
  overflow: hidden;
  border-radius: 16px;
}

.detail-gallery-main {
  position: relative;
  min-height: 420px;
}

.detail-gallery-main img,
.detail-gallery-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-main img {
  min-height: 420px;
}

.detail-status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  background: var(--brand-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.detail-gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-gallery-side img,
.detail-gallery-more {
  min-height: 204px;
}

.detail-gallery-more {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 34, 79, 0.35), rgba(8, 34, 79, 0.72)),
    url("../assets/novostavby-new-03.jpg") center / cover no-repeat;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.detail-gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.detail-gallery-main.detail-gallery-trigger {
  position: relative;
  min-height: 420px;
}

.detail-gallery-side .detail-gallery-trigger {
  min-height: 204px;
  overflow: hidden;
  border-radius: 16px;
}

.detail-gallery-trigger:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 40, 0.88);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
}

.gallery-lightbox-close svg,
.gallery-lightbox-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 46%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.gallery-lightbox-nav--prev {
  left: 0;
}

.gallery-lightbox-nav--next {
  right: 0;
}

.gallery-lightbox-figure {
  display: grid;
  gap: 10px;
  margin: 0 56px;
  min-height: 0;
}

.gallery-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.gallery-lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-align: center;
}

.gallery-lightbox-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.gallery-lightbox-thumbs {
  position: relative;
  display: flex;
  justify-content: safe center;
  gap: 10px;
  max-width: min(720px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.gallery-lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.gallery-lightbox-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0.55;
  cursor: pointer;
  scroll-snap-align: center;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gallery-lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-thumb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gallery-lightbox-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    inset 0 0 0 2px var(--brand-accent),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-thumb.is-active::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  content: "";
}

@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox-figure {
    margin: 0 0 48px;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 78px;
    transform: none;
  }

  .gallery-lightbox-nav--prev {
    left: 8px;
  }

  .gallery-lightbox-nav--next {
    right: 8px;
  }

  .gallery-lightbox-thumb {
    width: 64px;
    height: 46px;
  }

  .gallery-lightbox-thumbs {
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
}

.detail-main {
  margin-top: 36px;
  padding-bottom: 12px;
}

.detail-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-heading-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.detail-heading-copy > .detail-location {
  margin-top: 10px;
}

.detail-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.detail-location svg,
.detail-project-link svg,
.detail-block-head a svg,
.detail-amenities svg,
.detail-unit-row svg,
.detail-developer svg,
.detail-aside-contacts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-left: auto;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
}

.detail-heading-actions {
  display: flex;
  gap: 8px;
}

.detail-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(6, 26, 63, 0.05);
}

.detail-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(12, 31, 68, 0.08);
  border-bottom: 1px solid rgba(12, 31, 68, 0.08);
}

.detail-price-row strong {
  color: var(--brand-accent);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-price-row span {
  color: var(--text-secondary);
  font-size: 14px;
}

.detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-kpi-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--gray-25);
  border: 1px solid rgba(12, 31, 68, 0.06);
  border-radius: 14px;
}

.detail-kpi-grid svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand-accent);
  stroke-width: 1.8;
}

.detail-kpi-grid span {
  color: var(--text-secondary);
  font-size: 12px;
}

.detail-kpi-grid strong {
  font-size: 16px;
  font-weight: 800;
}

.detail-block {
  margin-top: 36px;
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-block > p {
  margin: 0 0 12px;
  max-width: none;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-block-head h2 {
  margin: 0;
}

.detail-block-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.detail-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.detail-amenities svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  stroke: var(--brand-accent);
}

.detail-units {
  display: grid;
  gap: 10px;
}

.detail-unit-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.15fr) repeat(3, 0.7fr) 1.05fr 24px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(6, 26, 63, 0.04);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

a.detail-unit-row:hover {
  border-color: rgba(194, 13, 24, 0.35);
  transform: translateY(-1px);
}

.detail-unit-row.is-sold {
  opacity: 0.78;
  cursor: default;
}

.detail-unit-row.is-sold > svg {
  visibility: hidden;
}

.detail-unit-arrow {
  display: block;
  width: 16px;
  height: 16px;
  justify-self: end;
  align-self: center;
}

.detail-unit-price-na {
  justify-self: end;
  align-self: center;
  min-height: 24px;
  line-height: 24px;
  text-align: right;
}

.detail-unit-label {
  font-weight: 750;
}

.detail-unit-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.detail-unit-status--available {
  color: #0f7a3a;
  background: rgba(15, 122, 58, 0.1);
}

.detail-unit-status--reserved {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
}

.detail-unit-status--oral {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.1);
}

.detail-unit-status--written {
  color: #9a3412;
  background: rgba(154, 52, 18, 0.12);
}

.detail-unit-status--sold {
  color: #64748b;
  background: rgba(100, 116, 139, 0.14);
}

.detail-unit-row strong {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  min-height: 24px;
  color: var(--brand-accent);
  font-weight: 800;
  line-height: 1;
}

.detail-unit-row > svg {
  display: block;
  width: 16px;
  height: 16px;
  justify-self: end;
  align-self: center;
}

.detail-unit-row.is-sold strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.detail-params {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-param-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(6, 26, 63, 0.04);
}

.detail-param-card i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand-accent);
  background: rgba(194, 13, 24, 0.08);
  border-radius: 10px;
}

.detail-param-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-param-card span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.detail-param-card strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.detail-downloads {
  display: grid;
  gap: 10px;
}

.detail-download-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(6, 26, 63, 0.04);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.detail-download-card:hover {
  border-color: rgba(194, 13, 24, 0.3);
  transform: translateY(-1px);
}

.detail-download-card > i.file-type {
  position: relative;
  display: grid;
  place-items: end center;
  width: 42px;
  height: 50px;
  padding: 0 0 8px;
  overflow: hidden;
  color: #fff;
  background: #e11d2e;
  border-radius: 7px 11px 7px 7px;
  box-shadow: 0 6px 14px rgba(6, 26, 63, 0.14);
}

.detail-download-card > i.file-type::before {
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent rgba(255, 255, 255, 0.4) transparent transparent;
  content: "";
}

.detail-download-card > i.file-type span {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.file-type--pdf { background: #e11d2e; }
.file-type--docx { background: #2b579a; }
.file-type--xlsx { background: #217346; }

.detail-download-card > i svg,
.detail-download-card em svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-download-card strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
}

.detail-download-card > div span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-download-card em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.detail-developer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(6, 26, 63, 0.04);
  text-decoration: none;
}

.detail-developer-logo {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  background: var(--gray-25);
  border: 1px solid rgba(12, 31, 68, 0.06);
  border-radius: 14px;
}

.detail-developer-logo img,
.detail-developer > img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

/* Offer detail: list row like Novostavby “Nově spuštěné projekty” */
.detail-project-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 108px;
  padding: 14px 18px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(6, 26, 63, 0.04);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.detail-project-row:hover {
  color: var(--text-primary);
  background: #f8fafc;
  border-color: rgba(194, 13, 24, 0.2);
  box-shadow: 0 10px 26px rgba(6, 26, 63, 0.06);
}

.detail-project-row > img {
  display: block;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.detail-project-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.detail-project-row > div strong {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.detail-project-row > div small {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.detail-project-row > b {
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-project-row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand-accent);
  background: rgba(194, 13, 24, 0.08);
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.detail-project-row-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.detail-project-row:hover .detail-project-row-icon,
.detail-project-row:focus-visible .detail-project-row-icon {
  color: #fff;
  background: var(--brand-accent);
}

.detail-developer-body {
  min-width: 0;
}

.detail-developer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-developer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-developer-tag {
  display: inline-flex;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.detail-developer p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.detail-developer-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.detail-developer-facts li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--gray-25);
  border: 1px solid rgba(12, 31, 68, 0.06);
  border-radius: 12px;
}

.detail-developer-facts span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.detail-developer-facts strong {
  margin: 0;
  font-size: 16px;
}

.detail-developer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.detail-developer-cta,
.detail-developer-meta a,
.offer-detail-page .detail-developer > div > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.detail-developer-cta svg,
.detail-developer-meta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-map {
  overflow: hidden;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(12, 31, 68, 0.08);
  background: var(--gray-25);
}

.detail-map iframe,
.detail-map img {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.detail-map img {
  object-fit: cover;
}

.detail-map-leaflet {
  display: block;
  width: 100%;
  height: 320px;
  z-index: 1;
  background: linear-gradient(135deg, #edf1f7 0%, #e4ebf4 48%, #f3f6fa 100%);
}

.detail-map-leaflet .leaflet-control-zoom {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(6, 26, 63, 0.14) !important;
}

.detail-map-leaflet .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  color: var(--brand-primary) !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(12, 31, 68, 0.08) !important;
  font-size: 18px !important;
}

.detail-map-leaflet .leaflet-control-zoom a:hover {
  color: var(--brand-accent) !important;
  background: #f7f9fc !important;
}

.detail-map-leaflet .frs-map-popup-wrap .leaflet-popup-content-wrapper {
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(12, 31, 68, 0.06);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(6, 26, 63, 0.2);
  backdrop-filter: blur(8px);
}

.detail-map-leaflet .frs-map-popup-wrap .leaflet-popup-content {
  margin: 14px 16px;
}

.detail-map-leaflet .frs-map-popup-wrap .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.96);
}

.frs-map-pin {
  background: transparent !important;
  border: 0 !important;
}

.frs-map-pin__pulse {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border: 2px solid rgba(194, 13, 24, 0.5);
  border-radius: 50%;
  animation: frs-map-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.frs-map-pin__pulse--delay {
  animation-delay: 1.1s;
}

@keyframes frs-map-pulse {
  0% {
    transform: scale(0.45);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.frs-map-pin__dot {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  background: linear-gradient(160deg, #e1232d 0%, var(--brand-accent) 55%, #9d0a12 100%);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow:
    0 14px 32px rgba(194, 13, 24, 0.45),
    0 0 0 10px rgba(194, 13, 24, 0.12);
  transform: rotate(-45deg);
}

.frs-map-pin__dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  content: "";
}

.frs-map-popup {
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.frs-map-popup strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.frs-map-popup span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--brand-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.detail-map-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-aside {
  position: sticky;
  top: 24px;
}

.detail-aside-card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(6, 26, 63, 0.08);
}

.detail-aside-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-aside-card > p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.detail-form {
  display: grid;
  gap: 12px;
}

.detail-form label {
  display: grid;
  gap: 6px;
}

.detail-form label span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.detail-form input,
.detail-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: var(--gray-25);
  border: 1px solid rgba(12, 31, 68, 0.1);
  border-radius: 10px;
  font: inherit;
}

.detail-form textarea {
  min-height: 96px;
  resize: vertical;
}

.detail-form .primary-button {
  width: 100%;
  margin-top: 4px;
}

.detail-aside-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 31, 68, 0.08);
}

.detail-contact-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: inherit;
  background: var(--gray-25);
  border: 1px solid rgba(12, 31, 68, 0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.detail-contact-chip:hover {
  background: #fff;
  border-color: rgba(194, 13, 24, 0.28);
  transform: translateY(-1px);
}

.detail-contact-chip > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand-accent);
  background: #fff;
  border: 1px solid rgba(194, 13, 24, 0.12);
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(6, 26, 63, 0.06);
}

.detail-contact-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-contact-chip > span {
  min-width: 0;
}

.detail-contact-chip small {
  display: block;
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-contact-chip strong {
  display: block;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 575px) {
  .detail-aside-contacts {
    grid-template-columns: 1fr;
  }

  .detail-contact-chip strong {
    font-size: 14px;
  }
}

.detail-similar {
  margin-top: 48px;
  margin-bottom: 8px;
}

/* Same card language as Novostavby „Vybrané projekty“ */
:is(.detail-similar, .detail-project-ref) .project-showcase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 31, 68, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(6, 26, 63, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

:is(.detail-similar, .detail-project-ref) .project-media {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

:is(.detail-similar, .detail-project-ref) .project-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 300ms ease;
}

:is(.detail-similar, .detail-project-ref) .project-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  color: #fff;
  background: var(--brand-accent);
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(194, 13, 24, 0.28);
  pointer-events: none;
}

:is(.detail-similar, .detail-project-ref) .project-badge--navy {
  background: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(6, 26, 63, 0.28);
}

:is(.detail-similar, .detail-project-ref) .project-fav {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(6, 26, 63, 0.14);
  cursor: pointer;
}

:is(.detail-similar, .detail-project-ref) .project-fav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.detail-similar, .detail-project-ref) .project-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 14px;
}

:is(.detail-similar, .detail-project-ref) .project-showcase-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

:is(.detail-similar, .detail-project-ref) .project-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

:is(.detail-similar, .detail-project-ref) .project-location svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

:is(.detail-similar, .detail-project-ref) .project-price {
  display: block;
  margin-top: 14px;
  color: var(--brand-accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

:is(.detail-similar, .detail-project-ref) .project-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: 0;
  border: 0;
  border-bottom: none;
  color: var(--text-secondary);
  font-size: 12px;
  box-shadow: none;
}

:is(.detail-similar, .detail-project-ref) .project-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

:is(.detail-similar, .detail-project-ref) .project-specs i {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1;
}

:is(.detail-similar, .detail-project-ref) .project-specs svg,
:is(.detail-similar, .detail-project-ref) .project-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

:is(.detail-similar, .detail-project-ref) .project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
}

:is(.detail-similar, .detail-project-ref) .project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

:is(.detail-similar, .detail-project-ref) .project-meta span:last-child {
  justify-content: flex-end;
  text-align: right;
}

@media (hover: hover) {
  :is(.detail-similar, .detail-project-ref) .project-showcase-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 16px 36px rgba(6, 26, 63, 0.12);
    transform: translateY(-4px);
  }

  :is(.detail-similar, .detail-project-ref) .project-showcase-card:hover .project-media img {
    transform: scale(1.025);
  }

  :is(.detail-similar, .detail-project-ref) .project-fav:hover {
    color: var(--brand-accent);
  }
}

/* Kill legacy .project-specs bottom rule on detail cards */
.detail-page .project-showcase-card .project-specs {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.detail-project-ref .project-showcase-card--wide {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 220px;
}

.detail-project-ref .project-showcase-card--wide .project-media {
  align-self: stretch;
  height: 100%;
  min-height: 220px;
}

.detail-project-ref .project-showcase-card--wide .project-media img {
  height: 100%;
  min-height: 220px;
}

.detail-project-ref .project-showcase-card--wide .project-body {
  justify-content: center;
  padding: 22px 24px;
}

.detail-project-ref .project-showcase-card--wide .project-price {
  margin-top: 12px;
}

.detail-project-ref .project-showcase-card--wide .project-specs {
  margin-top: 16px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-project-ref .project-showcase-card--wide .project-meta {
  margin-top: 14px;
}

@media (max-width: 767px) {
  .detail-project-ref .project-showcase-card--wide {
    grid-template-columns: 1fr;
  }

  .detail-project-ref .project-showcase-card--wide .project-media,
  .detail-project-ref .project-showcase-card--wide .project-media img {
    min-height: 200px;
    height: 200px;
  }
}

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

  .detail-gallery-main,
  .detail-gallery-main img,
  .detail-gallery-main.detail-gallery-trigger {
    min-height: 280px;
  }

  .detail-gallery-side img,
  .detail-gallery-side .detail-gallery-trigger,
  .detail-gallery-more {
    min-height: 140px;
  }

  .detail-kpi-grid,
  .detail-params {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-download-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .detail-download-card em {
    grid-column: 2;
  }

  .detail-unit-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .detail-unit-status {
    justify-self: end;
  }

  .detail-unit-row svg {
    display: none;
  }

  .detail-unit-row strong {
    justify-self: start;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .detail-heading-top {
    flex-direction: column;
  }

  .detail-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-project-link {
    margin-left: 0;
    white-space: normal;
  }

  .detail-amenities {
    grid-template-columns: 1fr;
  }

  .detail-params {
    grid-template-columns: 1fr 1fr;
  }

  .detail-params > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(12, 31, 68, 0.08);
  }

  .detail-params > div:last-child {
    border-bottom: 0;
  }

  .detail-developer {
    grid-template-columns: 1fr;
  }

  .detail-project-row {
    grid-template-columns: 96px minmax(0, 1fr) 36px;
    gap: 14px;
    padding: 12px 14px;
    min-height: 0;
  }

  .detail-project-row > img {
    width: 96px;
    height: 68px;
  }

  .detail-project-row > b {
    display: none;
  }

  .detail-developer-logo {
    min-height: 110px;
  }

  .detail-developer-top {
    flex-direction: column;
  }

  .detail-developer-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-page .section-heading h2 {
    font-size: 24px;
  }
}
