.rep-status-pill {
  display: inline-block;
  color: var(--rep-status-badge-text, #fff);
  border-radius: var(--rep-status-badge-radius, 999px);
  padding: var(--rep-status-badge-padding-y, 3px) var(--rep-status-badge-padding-x, 10px);
  font-size: var(--rep-status-badge-font-size, 12px);
  line-height: 1.4;
  font-weight: 600;
}

:root {
  --rep-primary: #a7654d;
  --rep-primary-hover: #3f2006;
  --rep-map-stroke-color: #ffffff;
  --rep-map-active-stroke-color: #ffffff;
  --rep-map-stroke-width: 1.6px;
  --rep-map-stroke-hover-width: 2.2px;
  --rep-map-opacity-default: 0.6;
  --rep-map-opacity-hover: 0.88;
  --rep-tooltip-bg: #1f2228;
  --rep-tooltip-text: #ffffff;
  --rep-tooltip-title-size: 36px;
  --rep-tooltip-body-size: 13px;
  --rep-table-text-size: 16px;
  --rep-row-active-bg: #f3eae6;
  --rep-row-active-outline: #9a6a58;
  --rep-status-badge-text: #ffffff;
  --rep-status-badge-font-size: 12px;
  --rep-status-badge-radius: 999px;
  --rep-status-badge-padding-y: 3px;
  --rep-status-badge-padding-x: 10px;
  --rep-button-text: #ffffff;
  --rep-button-font-size: 13px;
  --rep-button-radius: 8px;
  --rep-button-padding-y: 7px;
  --rep-button-padding-x: 10px;
}

.rep-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.rep-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.rep-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

#rep-tooltip.rep-tooltip {
  position: fixed;
  z-index: 999999;
  min-width: 220px;
  max-width: 280px;
  background: var(--rep-tooltip-bg, #1f2228);
  color: var(--rep-tooltip-text, #fff);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 14px;
  pointer-events: auto;
}

#rep-tooltip.rep-tooltip[hidden] {
  display: none !important;
}

.rep-tooltip::before {
  display: none !important;
}

.rep-tooltip__inner {
  display: grid;
  gap: 8px;
  position: relative;
  padding-top: 2px;
}

.rep-tooltip__code {
  font-size: var(--rep-tooltip-title-size, 36px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rep-tooltip__status {
  margin-top: 2px;
}

.rep-tooltip__chip {
  display: inline-block;
  color: var(--rep-status-badge-text, #fff);
  border-radius: var(--rep-status-badge-radius, 999px);
  padding: var(--rep-status-badge-padding-y, 3px) var(--rep-status-badge-padding-x, 10px);
  font-size: var(--rep-status-badge-font-size, 12px);
  font-weight: 700;
}

.rep-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--rep-tooltip-body-size, 13px);
  line-height: 1.3;
}

.rep-tooltip__label {
  color: var(--rep-tooltip-text, #fff);
  opacity: 0.72;
}

.rep-tooltip__val {
  font-weight: 600;
  text-align: right;
}

.rep-tooltip__cta {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rep-button-radius, 8px);
  background: #fff;
  color: #1f2228;
  text-decoration: none;
  padding: var(--rep-button-padding-y, 7px) var(--rep-button-padding-x, 10px);
  font-size: var(--rep-button-font-size, 13px);
  font-weight: 700;
}

.rep-tooltip__cta:hover,
.rep-tooltip__cta:focus {
  background: #f0f0f0;
  color: #111;
}

.rep-tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--rep-tooltip-text, #fff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.rep-tooltip-close:hover,
.rep-tooltip-close:focus {
  background: rgba(255, 255, 255, 0.2);
  color: var(--rep-tooltip-text, #fff);
}

@media (min-width: 769px) {
  .rep-tooltip-close {
    display: none;
  }
}

@media (max-width: 768px) {
  #rep-tooltip.rep-tooltip.rep-tooltip-mobile {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    max-width: none;
    width: auto;
    max-height: 45vh;
    overflow: auto;
    border-radius: 16px;
    padding: 16px;
  }

  #rep-tooltip.rep-tooltip.rep-tooltip-mobile .rep-tooltip__code {
    font-size: 56px;
  }

  #rep-tooltip.rep-tooltip.rep-tooltip-mobile .rep-tooltip-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

.rep-map-wrapper {
  --rep-opacity-default: var(--rep-map-opacity-default, 0.6);
  --rep-opacity-hover: var(--rep-map-opacity-hover, 0.88);
  --rep-stroke-width: var(--rep-map-stroke-width, 1.6px);
  --rep-stroke-hover: var(--rep-map-stroke-hover-width, 2.2px);
}

.rep-map-wrapper .imp-object polygon.rep-unit,
.rep-map-wrapper .imp-object-poly polygon.rep-unit,
.rep-map-wrapper svg.imp-object polygon.rep-unit {
  fill: var(--rep-fill-color, #44b556) !important;
  fill-opacity: var(--rep-opacity-default, 0.6) !important;
  stroke: var(--rep-map-stroke-color, #ffffff) !important;
  stroke-width: var(--rep-stroke-width, 1.6px) !important;
  transition: fill-opacity 0.18s ease, stroke-width 0.18s ease, stroke 0.18s ease;
  pointer-events: auto;
  vector-effect: non-scaling-stroke;
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-unit-clickable,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-unit-clickable,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-unit-clickable {
  cursor: pointer;
}

.rep-map-wrapper .imp-object polygon.rep-unit:hover,
.rep-map-wrapper .imp-object-poly polygon.rep-unit:hover,
.rep-map-wrapper svg.imp-object polygon.rep-unit:hover,
.rep-map-wrapper .imp-object:hover polygon.rep-unit,
.rep-map-wrapper .imp-object-poly:hover polygon.rep-unit,
.rep-map-wrapper svg.imp-object:hover polygon.rep-unit {
  fill-opacity: var(--rep-opacity-hover, 0.88) !important;
  stroke: var(--rep-map-active-stroke-color, #ffffff) !important;
  stroke-width: var(--rep-stroke-hover, 2.2px) !important;
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-status-available,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-status-available,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-status-available {
  --rep-fill-color: var(--rep-status-available, #44b556);
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-status-reserved,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-status-reserved,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-status-reserved {
  --rep-fill-color: var(--rep-status-reserved, #f4a100);
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-status-sold,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-status-sold,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-status-sold {
  --rep-fill-color: var(--rep-status-sold, #e53935);
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-status-hidden,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-status-hidden,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-status-hidden {
  --rep-fill-color: var(--rep-status-hidden, #9e9e9e);
}

.rep-map-wrapper .imp-object polygon.rep-unit.rep-unit-active,
.rep-map-wrapper .imp-object-poly polygon.rep-unit.rep-unit-active,
.rep-map-wrapper svg.imp-object polygon.rep-unit.rep-unit-active {
  fill-opacity: var(--rep-opacity-hover, 0.88) !important;
  stroke: var(--rep-map-active-stroke-color, #ffffff) !important;
  stroke-width: var(--rep-stroke-hover, 2.2px) !important;
}

.rep-row-active {
  outline: 2px solid var(--rep-row-active-outline, #9a6a58);
  outline-offset: -2px;
}

.rep-row-active td,
.rep-row-active th {
  background: var(--rep-row-active-bg, #f3eae6) !important;
}

.rep-row-hidden {
  display: none !important;
}

.rep-table-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: 10px 12px;
  align-items: flex-end;
  margin: 0 0 14px;
}

.rep-table-filters__field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rep-table-filters__field > span,
.rep-table-filters__label {
  font-size: 12px;
  font-weight: 600;
  color: #5e636b;
}

.rep-table-filters__select {
  min-height: 36px;
  border: 1px solid #d5d7dc;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #3f444b;
  -webkit-text-fill-color: #3f444b;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4f5560 50%),
    linear-gradient(135deg, #4f5560 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.rep-table-filters__select:focus,
.rep-table-filters__select:focus-visible {
  color: #3f444b;
  -webkit-text-fill-color: #3f444b;
  outline: none;
}

.rep-table-filters__select option {
  color: #3f444b;
}

.rep-table-filters__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.rep-table-filters__chip {
  border: 1px solid var(--rep-primary);
  background: #fff;
  border-radius: var(--rep-status-badge-radius, 999px);
  padding: var(--rep-status-badge-padding-y, 3px) var(--rep-status-badge-padding-x, 10px);
  font-size: var(--rep-status-badge-font-size, 12px);
  font-weight: 600;
  color: var(--rep-primary);
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

.rep-table-filters__chip:not(.is-active):hover,
.rep-table-filters__chip:not(.is-active):focus-visible {
  border-color: var(--rep-primary-hover);
  background: var(--rep-primary-hover);
  color: #fff;
  box-shadow: none;
  outline: none;
}

.rep-price-table-wrap .rep-table-filters__chip:not(.is-active):focus,
.rep-price-table-wrap .rep-table-filters__chip:not(.is-active):focus-visible {
  border-color: var(--rep-primary);
  background: #fff;
  color: var(--rep-primary);
  box-shadow: none;
  outline: none;
}

.rep-table-filters__chip.is-active,
.rep-table-filters__chip.is-active:hover,
.rep-table-filters__chip.is-active:focus,
.rep-table-filters__chip.is-active:focus-visible {
  border-color: var(--rep-primary);
  background: var(--rep-primary);
  color: #fff;
  box-shadow: none;
  outline: none;
}

.rep-table-filters__reset {
  min-height: 36px;
  border: 1px solid var(--rep-primary);
  border-radius: var(--rep-button-radius, 8px);
  background: var(--rep-primary);
  color: var(--rep-button-text, #fff);
  padding: var(--rep-button-padding-y, 7px) var(--rep-button-padding-x, 10px);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--rep-button-font-size, 13px);
  box-shadow: none;
  outline: none;
  line-height: 1.2;
}

.rep-table-filters__reset:hover,
.rep-table-filters__reset:focus,
.rep-table-filters__reset:focus-visible {
  border-color: var(--rep-primary-hover);
  background: var(--rep-primary-hover);
  color: #fff;
  box-shadow: none;
  outline: none;
}

@media (max-width: 1024px) {
  .rep-table-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .rep-table-filters__statuses {
    grid-column: 2;
    align-self: end;
    flex-wrap: wrap;
  }

  .rep-table-filters__field:first-child {
    grid-column: 1;
  }

  .rep-table-filters__label {
    margin-right: 2px;
  }
}

@media (max-width: 768px) {
  .rep-table-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .rep-table-filters__statuses {
    grid-column: 1 / -1;
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .rep-table-filters__statuses .rep-table-filters__label {
    display: block;
    white-space: normal;
    margin-bottom: 6px;
    margin-right: 0;
  }

  .rep-table-filters__statuses .rep-table-filters__chip {
    display: inline-flex;
    vertical-align: top;
    white-space: nowrap;
    margin-right: 6px;
    margin-bottom: 0;
  }

  .rep-table-filters__statuses .rep-table-filters__chip:last-child {
    margin-right: 0;
  }

  .rep-table-filters__select {
    width: 100%;
  }

  .rep-table-filters__reset {
    width: auto;
    justify-self: start;
  }
}

.rep-field-label {
  display: block;
  font-weight: 600;
}

.rep-price-table tbody tr td:nth-child(2),
.rep-price-table tbody tr td:nth-child(8),
.rep-price-table tbody tr td:nth-child(9) {
  font-weight: 700;
}

.rep-price-table tbody tr td.rep-price-table__status-cell {
  color: var(--rep-status-badge-text, #fff);
  font-weight: 600;
  line-height: 1.4;
}

.rep-price-table tbody tr[data-rep-permalink]:not([data-rep-permalink=""]) {
  cursor: pointer;
}

.rep-price-table tbody tr[data-rep-permalink]:not([data-rep-permalink=""]):focus-visible {
  outline: 2px solid var(--rep-primary);
  outline-offset: -2px;
}

.rep-price-table tbody tr.rep-status-available:hover td.rep-price-table__status-cell {
  background: var(--rep-status-available-hover-bg, rgba(var(--rep-status-available-rgb, 68, 181, 86), 0.4)) !important;
  color: var(--rep-status-available-hover-text, var(--rep-status-available, #44b556)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-status-reserved:hover td.rep-price-table__status-cell {
  background: var(--rep-status-reserved-hover-bg, rgba(var(--rep-status-reserved-rgb, 244, 161, 0), 0.4)) !important;
  color: var(--rep-status-reserved-hover-text, var(--rep-status-reserved, #f4a100)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-status-sold:hover td.rep-price-table__status-cell {
  background: var(--rep-status-sold-hover-bg, rgba(var(--rep-status-sold-rgb, 229, 57, 53), 0.4)) !important;
  color: var(--rep-status-sold-hover-text, var(--rep-status-sold, #e53935)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-status-hidden:hover td.rep-price-table__status-cell {
  background: var(--rep-status-hidden-hover-bg, rgba(var(--rep-status-hidden-rgb, 158, 158, 158), 0.4)) !important;
  color: var(--rep-status-hidden-hover-text, var(--rep-status-hidden, #9e9e9e)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-row-active.rep-status-available td.rep-price-table__status-cell {
  background: var(--rep-status-available-hover-bg, rgba(var(--rep-status-available-rgb, 68, 181, 86), 0.4)) !important;
  color: var(--rep-status-available-hover-text, var(--rep-status-available, #44b556)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-row-active.rep-status-reserved td.rep-price-table__status-cell {
  background: var(--rep-status-reserved-hover-bg, rgba(var(--rep-status-reserved-rgb, 244, 161, 0), 0.4)) !important;
  color: var(--rep-status-reserved-hover-text, var(--rep-status-reserved, #f4a100)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-row-active.rep-status-sold td.rep-price-table__status-cell {
  background: var(--rep-status-sold-hover-bg, rgba(var(--rep-status-sold-rgb, 229, 57, 53), 0.4)) !important;
  color: var(--rep-status-sold-hover-text, var(--rep-status-sold, #e53935)) !important;
  font-weight: 600;
}

.rep-price-table tbody tr.rep-row-active.rep-status-hidden td.rep-price-table__status-cell {
  background: var(--rep-status-hidden-hover-bg, rgba(var(--rep-status-hidden-rgb, 158, 158, 158), 0.4)) !important;
  color: var(--rep-status-hidden-hover-text, var(--rep-status-hidden, #9e9e9e)) !important;
  font-weight: 600;
}

.rep-field-hint {
  margin-top: 2px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 300 !important;
  color: #8a919b !important;
  letter-spacing: 0;
  opacity: 1;
  font-style: normal !important;
}

.rep-field-hint em,
.rep-field-hint * {
  font-style: normal;
  font-weight: 300 !important;
  font-size: 10px !important;
  color: #8a919b !important;
}

.form-table th .rep-field-hint {
  display: block !important;
  margin-top: 2px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 300 !important;
  color: #8a919b !important;
  font-style: normal !important;
}

.rep-shortcode-list {
  display: grid;
  gap: 12px;
}

.rep-shortcode-row label {
  display: block;
  margin-bottom: 5px;
}

.rep-shortcode-copy-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.rep-shortcode-input {
  font-size: 12px;
}

.rep-admin-shortcode-inline {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.wp-list-table .rep-shortcode-input {
  width: 100%;
  min-width: 220px;
  font-size: 11px;
}

.rep-admin-shortcode-list {
  display: grid;
  gap: 8px;
}

.rep-admin-shortcode-row {
  display: grid;
  gap: 4px;
}

.rep-admin-shortcode-label {
  font-size: 11px;
  font-weight: 600;
  color: #50575e;
}

.rep-admin-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rep-admin-badge {
  display: inline-block;
  border-radius: var(--rep-status-badge-radius, 999px);
  padding: var(--rep-status-badge-padding-y, 3px) var(--rep-status-badge-padding-x, 10px);
  font-size: var(--rep-status-badge-font-size, 12px);
  line-height: 1.5;
  font-weight: 600;
}

.rep-badge-ok {
  background: #ecf7ed;
  color: #1f7a2f;
}

.rep-badge-missing {
  background: #fbeaea;
  color: #9f1f1f;
}

.rep-debug-note {
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed #cc1818;
  color: #8c1010;
  background: #fff5f5;
  font-size: 12px;
}

.rep-field-locked {
  background: #f6f7f7 !important;
  color: #50575e !important;
}

.rep-lock-note {
  margin-top: 8px !important;
  font-size: 12px !important;
}

.bk427-floor {
  --accent: #9a6a58;
  --text: #111;
  --dash: rgba(154, 106, 88, 0.55);
  font-family: inherit;
  color: var(--text);
  width: 100%;
}

.bk427-floor__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 18px 0;
}

.bk427-floor__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.bk427-floor__level {
  font-weight: 800;
  font-size: clamp(20px, 4vw, 28px);
  margin: 0;
}

.bk427-floor__unit {
  font-weight: 700;
  font-size: 16px;
  opacity: 0.85;
  white-space: nowrap;
}

.bk427-floor__rows {
  display: grid;
  gap: 6px;
}

.bk427-row {
  display: grid;
  grid-template-columns: minmax(2.8ch, max-content) minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
}

.bk427-row__code {
  min-width: 2.8ch;
}

.bk427-row__code,
.bk427-row__name,
.bk427-row__val,
.bk427-total {
  color: var(--accent);
}

.bk427-row__name {
  min-width: 0;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  line-break: auto;
  line-height: 1.32;
}

.bk427-row__val {
  text-align: right;
  min-width: 4.8ch;
}

/* Rows without code cell (name + value only): keep name flush-left and value flush-right. */
.bk427-row > .bk427-row__name:first-child:nth-last-child(2) {
  grid-column: 1 / 3;
}

.bk427-row > .bk427-row__val:last-child:nth-child(2) {
  grid-column: 3;
  justify-self: end;
}

/* Legacy-safe explicit no-code rows (used by some custom HTML variants for POZEMOK). */
.bk427-row.bk427-row--no-code {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.bk427-row.bk427-row--no-code > .bk427-row__code {
  display: none;
}

.bk427-row.bk427-row--no-code > .bk427-row__name {
  grid-column: 1;
}

.bk427-row.bk427-row--no-code > .bk427-row__val {
  grid-column: 2;
  justify-self: end;
}

.bk427-total__val {
  text-align: right;
}

.bk427-total > div:first-child,
.bk427-summary__row > div:first-child {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
}

.bk427-dash {
  border-top: 2px dashed var(--dash);
  margin: 12px 0;
}

.bk427-total {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  align-items: baseline;
  font-size: 16px;
  font-weight: 700;
}

.bk427-summary {
  margin-top: 18px;
  border-top: 2px solid rgba(154, 106, 88, 0.35);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.bk427-summary__row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  align-items: baseline;
  font-size: 20px;
}

.bk427-summary__val {
  text-align: right;
}

/* Tablet: keep measurements legible in narrow right-side template columns. */
@media (max-width: 1200px) {
  .bk427-floor {
    padding-inline: 2px;
  }

  .bk427-floor__title {
    font-size: clamp(18px, 2.2vw, 34px);
    margin-bottom: 14px;
  }

  .bk427-floor__head {
    margin-bottom: 10px;
    gap: 8px;
  }

  .bk427-floor__level {
    font-size: clamp(18px, 3vw, 44px);
  }

  .bk427-floor__unit {
    font-size: clamp(14px, 1.8vw, 24px);
  }

  .bk427-row {
    grid-template-columns: 44px minmax(0, 1fr) 68px;
    gap: 8px;
    font-size: clamp(14px, 1.35vw, 18px);
  }

  .bk427-row__code {
    min-width: 0;
  }

  .bk427-row__val {
    min-width: 0;
  }

  .bk427-total {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 8px;
    font-size: clamp(14px, 1.35vw, 18px);
  }

  .bk427-summary__row {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    font-size: clamp(16px, 1.7vw, 22px);
  }
}

/* Mobile: stacked readability and tighter spacing. */
@media (max-width: 767px) {
  .bk427-floor__title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 12px;
  }

  .bk427-floor__level {
    font-size: clamp(22px, 7vw, 34px);
  }

  .bk427-floor__unit {
    font-size: clamp(18px, 4.5vw, 22px);
  }

  .bk427-row {
    grid-template-columns: 40px minmax(0, 1fr) 74px;
    gap: 10px;
    font-size: clamp(15px, 4vw, 20px);
  }

  .bk427-total {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 10px;
    font-size: clamp(15px, 4vw, 20px);
  }

  .bk427-summary__row {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    font-size: clamp(18px, 5vw, 24px);
  }
}

/* Narrow containers in split layouts (tablet/desktop right column): avoid letter-by-letter breaks. */
@media (max-width: 1100px) {
  .bk427-row {
    grid-template-columns: 42px minmax(0, 1fr) 70px;
    gap: 8px;
    font-size: 16px;
  }

  .bk427-row__name {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .bk427-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "name";
    row-gap: 4px;
    column-gap: 0;
  }

  .bk427-row__code,
  .bk427-row__val {
    min-width: 0;
    white-space: nowrap;
  }

  .bk427-row__code {
    grid-area: head;
    justify-self: start;
    display: inline-block;
    margin-right: 8px;
  }

  .bk427-row__val {
    grid-area: head;
    justify-self: end;
    display: inline-block;
  }

  .bk427-row__name {
    grid-area: name;
  }

  .bk427-row.bk427-row--no-code {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: none;
    column-gap: 10px;
  }

  .bk427-row.bk427-row--no-code > .bk427-row__name {
    grid-area: auto;
    grid-column: 1;
  }

  .bk427-row.bk427-row--no-code > .bk427-row__val {
    grid-area: auto;
    grid-column: 2;
  }
}

.rep-price-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.rep-price-table-wrap .rep-table-filters {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  max-width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
}

.rep-price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.rep-price-table th,
.rep-price-table td {
  border: 1px solid #ddd;
  padding: 10px;
  font-size: var(--rep-table-text-size, 16px);
  text-align: left;
}

.rep-price-table th {
  background: #f7f7f7;
}

/* Unit featured image hero shortcode output */
.rep-unit-image-wrap--hero {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rep-unit-image-wrap--hero .rep-unit-image--hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Unit PDF card shortcode output */
.rep-unit-pdf-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--rep-primary, #a7654d);
  font-size: var(--rep-button-font-size, 13px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.rep-unit-pdf-card-link:hover,
.rep-unit-pdf-card-link:focus {
  color: var(--rep-primary-hover, #3f2006);
}

.rep-unit-pdf-card-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  padding: var(--rep-status-badge-padding-y, 3px) var(--rep-status-badge-padding-x, 10px);
  border: 1px solid currentColor;
  border-radius: var(--rep-status-badge-radius, 999px);
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}
