/* Loupik Reality — modern listing + detail */

:root {
  --rx-ink: #12141c;
  --rx-muted: #6b7285;
  --rx-line: rgba(18, 20, 28, 0.1);
  --rx-soft: #f4f5f8;
  --rx-paper: #ffffff;
  --rx-pink: #e9348d;
  --rx-pink-deep: #c41e72;
  --rx-pink-soft: #fff0f7;
  --rx-slate: #1a1d29;
  --rx-radius: 14px;
  --rx-radius-lg: 22px;
  --rx-shadow: 0 18px 50px rgba(18, 20, 28, 0.08);
  --rx-display: "Sora", "Segoe UI", sans-serif;
  --rx-sans: "Manrope", "Segoe UI", sans-serif;
}

.page-reality {
  min-height: 100vh;
  color: var(--rx-ink);
  font-family: var(--rx-sans);
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(233, 52, 141, 0.12), transparent 55%),
    radial-gradient(900px 420px at 88% 0%, rgba(26, 29, 41, 0.06), transparent 50%),
    linear-gradient(180deg, #faf9fb 0%, #f3f4f7 45%, #eef0f4 100%);
}

.page-reality *,
.page-reality *::before,
.page-reality *::after {
  box-sizing: border-box;
}

.page-reality a {
  color: inherit;
  text-decoration: none;
}

.rx-shell {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 0.5rem 0 4.5rem;
}

/* ——— Hero brand ——— */
.rx-brand {
  text-align: center;
  padding: 2.25rem 0 1.75rem;
  animation: rx-rise 0.7s ease both;
}

.rx-brand__head {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 1.25rem;
}

.rx-brand__main {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
}

.rx-brand__cta-col {
  grid-column: 5;
  display: flex;
  justify-content: center;
  padding-top: 0.15rem;
}

.rx-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.rx-brand__glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff5eab, var(--rx-pink-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 52, 141, 0.35);
}

.rx-brand__name {
  font-family: var(--rx-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.rx-brand__name span {
  color: var(--rx-pink);
}

.rx-brand__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9348d, #c41e72);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(233, 52, 141, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.rx-brand__cta svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.rx-brand__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(233, 52, 141, 0.34);
}

.rx-brand__cta:active {
  transform: translateY(0);
}

.rx-brand__count {
  margin: 0;
  color: var(--rx-muted);
  font-size: 0.98rem;
}

.rx-brand__count strong {
  color: var(--rx-ink);
  font-weight: 800;
}

/* ——— Categories ——— */
.rx-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  animation: rx-rise 0.75s 0.08s ease both;
}

.rx-cat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 64px;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.rx-cat:hover {
  border-color: rgba(233, 52, 141, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 20, 28, 0.07);
}

.rx-cat.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rx-pink), var(--rx-pink-deep));
  color: #fff;
  box-shadow: 0 14px 32px rgba(233, 52, 141, 0.28);
}

.rx-cat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--rx-pink-soft);
  color: var(--rx-pink);
}

.rx-cat.is-active .rx-cat__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rx-cat__label {
  flex: 1;
  font-family: var(--rx-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.rx-cat__count {
  color: var(--rx-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.rx-cat.is-active .rx-cat__count {
  color: rgba(255, 255, 255, 0.78);
}

.rx-dev-link {
  margin: -0.35rem 0 1.25rem;
  text-align: left;
}

.rx-dev-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--rx-pink);
  font-size: 0.9rem;
  font-weight: 750;
}

.rx-dev-link a:hover {
  color: var(--rx-pink-deep);
}

/* ——— Search panel (kategorie) ——— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rx-search {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--rx-line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(233, 52, 141, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(18, 20, 28, 0.05);
  animation: rx-rise 0.7s 0.1s ease both;
}

.rx-search__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rx-line);
}

.rx-search__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--rx-pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rx-search__title {
  margin: 0;
  font-family: var(--rx-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rx-ink);
}

.rx-search__reset {
  flex: none;
  margin-top: 0.35rem;
  color: var(--rx-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.rx-search__reset:hover {
  color: var(--rx-pink);
}

.rx-search__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.rx-search__summary {
  display: none;
}

.rx-search.is-collapsed {
  margin-bottom: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.rx-search.is-collapsed .rx-search__summary {
  display: block;
}

.rx-search.is-collapsed .rx-search__body {
  display: none;
}

.rx-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.15rem 0.85rem 1.35rem;
  border: 1px solid rgba(18, 20, 28, 0.1);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 20, 28, 0.08);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rx-summary-bar:hover {
  border-color: rgba(233, 52, 141, 0.35);
  box-shadow: 0 12px 32px rgba(233, 52, 141, 0.12);
}

.rx-summary-bar:focus-visible {
  outline: 2px solid rgba(233, 52, 141, 0.45);
  outline-offset: 2px;
}

.rx-summary-bar__cols {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
}

.rx-summary-bar__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.15rem 1.1rem;
  border-right: 1px solid rgba(18, 20, 28, 0.08);
}

.rx-summary-bar__col:first-child {
  padding-left: 0.15rem;
}

.rx-summary-bar__col:last-child {
  border-right: 0;
}

.rx-summary-bar__label {
  color: var(--rx-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.rx-summary-bar__value {
  overflow: hidden;
  color: var(--rx-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.rx-summary-bar__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding-left: 0.35rem;
  color: #c41e72;
  font-size: 0.92rem;
  font-weight: 750;
}

.rx-summary-bar__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--rx-pink);
}

.rx-summary-bar__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--rx-pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.rx-search__edit,
.rx-search__collapse {
  appearance: none;
  border: 1px solid rgba(233, 52, 141, 0.35);
  border-radius: 999px;
  background: #fff0f7;
  color: var(--rx-pink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.rx-search__edit:hover,
.rx-search__collapse:hover {
  border-color: var(--rx-pink);
  background: #ffe3f0;
}

.page-reality--search.is-search-collapsed .rx-sticky-bar {
  display: none !important;
}

.page-reality--search.is-search-collapsed {
  padding-bottom: 0;
}

@media (max-width: 820px) {
  .rx-summary-bar {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .rx-summary-bar__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }

  .rx-summary-bar__col {
    padding: 0;
    border-right: 0;
  }

  .rx-summary-bar__edit {
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid rgba(18, 20, 28, 0.08);
  }
}

.rx-search__block {
  margin: 0 0 1.45rem;
}

.rx-search__h {
  margin: 0 0 0.75rem;
  font-family: var(--rx-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.rx-search__sub {
  margin: 1rem 0 0.55rem;
  color: var(--rx-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.rx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rx-checkchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: #f7f8fb;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--rx-ink);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.rx-checkchip input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rx-pink);
}

.rx-checkchip:has(input:checked) {
  border-color: rgba(233, 52, 141, 0.45);
  background: var(--rx-pink-soft);
  color: var(--rx-pink-deep);
}

.rx-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}

.rx-check-grid--rooms {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rx-check-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rx-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--rx-ink);
}

.rx-check input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  border-radius: 4px;
  accent-color: var(--rx-pink);
}

.rx-search__loc {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.rx-field--sm {
  flex: 0 1 160px;
  min-width: 140px;
}

.rx-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 2rem 0.65rem 1rem;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rx-ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7285' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rx-field select:focus {
  border-color: rgba(233, 52, 141, 0.55);
  box-shadow: 0 0 0 3px rgba(233, 52, 141, 0.12);
}

.rx-map-wrap {
  margin-top: 1.15rem;
}

.rx-map-hint {
  margin: 0 0 0.75rem;
  color: var(--rx-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.rx-czechia-frame {
  max-width: 760px;
  padding: 0.15rem 0 0.35rem;
}

.rx-czechia {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rx-czechia__region {
  cursor: pointer;
  outline: none;
}

.rx-czechia__region path {
  fill: #ffffff;
  stroke: #8a919e;
  stroke-width: 7;
  stroke-linejoin: round;
  transition: fill 0.16s ease, stroke 0.16s ease;
}

.rx-czechia__region text {
  fill: #3a4150;
  font-weight: 800;
  font-family: var(--rx-font, Manrope, Arial, sans-serif);
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 16px;
}

.rx-czechia__region:hover path,
.rx-czechia__region:focus-visible path {
  fill: #ffe4f1;
  stroke: #e9348d;
}

.rx-czechia__region:hover text,
.rx-czechia__region:focus-visible text {
  fill: #c41e72;
}

.rx-czechia__region.is-active path {
  fill: #e9348d;
  stroke: #c41e72;
}

.rx-czechia__region.is-active text {
  fill: #fff;
  stroke: transparent;
}

.rx-czechia__region--praha path {
  stroke-width: 8;
}

.rx-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

.rx-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--rx-pink-soft);
  color: var(--rx-pink-deep);
  font-size: 0.8rem;
  font-weight: 750;
}

.rx-map-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.rx-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.rx-field--grow {
  flex: 1 1 280px;
}

.rx-field__label {
  color: var(--rx-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.rx-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rx-ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rx-field input:focus {
  border-color: rgba(233, 52, 141, 0.55);
  box-shadow: 0 0 0 3px rgba(233, 52, 141, 0.12);
}

.rx-field--unit {
  position: relative;
}

.rx-field--unit input {
  padding-right: 2.75rem;
}

.rx-field__unit {
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  color: var(--rx-muted);
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.rx-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: 520px;
}

.rx-search__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rx-line);
}

.rx-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem max(1.25rem, calc((100vw - 1120px) / 2 + 1.25rem));
  border-top: 1px solid var(--rx-line);
  background: #fff;
  box-shadow: 0 -8px 28px rgba(18, 20, 28, 0.08);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rx-sticky-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.rx-sticky-bar__clear {
  color: var(--rx-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.rx-sticky-bar__clear:hover {
  color: var(--rx-pink);
}

.rx-sticky-bar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rx-pink), var(--rx-pink-deep));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(233, 52, 141, 0.28);
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rx-sticky-bar__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(233, 52, 141, 0.34);
}

.rx-sticky-bar__submit.is-updating {
  opacity: 0.72;
}

.rx-sticky-bar__submit svg {
  flex: none;
}

.page-reality--search.is-sticky-actions {
  padding-bottom: 6rem;
}

@media (max-width: 640px) {
  .rx-sticky-bar {
    padding: 0.75rem 1rem;
    min-height: 68px;
  }

  .rx-sticky-bar__submit {
    padding: 0.65rem 1.05rem;
    font-size: 0.9rem;
  }
}

.rx-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rx-pink), var(--rx-pink-deep));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(233, 52, 141, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.rx-search__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(233, 52, 141, 0.34);
}

.rx-search__submit span {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
}

.rx-search__clear {
  color: var(--rx-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.rx-search__clear:hover {
  color: var(--rx-pink);
}

.rx-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
}

.rx-results-bar__count {
  margin: 0;
  color: var(--rx-muted);
  font-size: 0.92rem;
}

.rx-results-bar__count strong {
  color: var(--rx-ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .rx-check-grid,
  .rx-check-grid--rooms,
  .rx-check-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rx-search {
    padding: 1.1rem 1rem 1.25rem;
    border-radius: 14px;
  }

  .rx-search__head {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rx-check-grid,
  .rx-check-grid--rooms,
  .rx-check-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .rx-range {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* ——— Promo strip ——— */
.rx-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--rx-slate);
  color: #fff;
  animation: rx-rise 0.8s 0.12s ease both;
}

.rx-promo__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff5eab, var(--rx-pink));
}

.rx-promo p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.rx-promo strong {
  color: #fff;
  font-weight: 750;
}

.rx-promo a {
  margin-left: auto;
  flex: none;
  color: #ff9ec8;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.rx-promo a:hover {
  color: #fff;
}

/* ——— Tabs ——— */
.rx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0 0 1.35rem;
  border-bottom: 1px solid var(--rx-line);
  animation: rx-rise 0.85s 0.16s ease both;
}

.rx-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.1rem 0.85rem;
  color: var(--rx-muted);
  font-size: 0.9rem;
  font-weight: 650;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.rx-tab:hover {
  color: var(--rx-ink);
}

.rx-tab.is-active {
  color: var(--rx-ink);
  border-bottom-color: var(--rx-ink);
}

.rx-tab svg {
  opacity: 0.7;
}

/* ——— Listing grid ——— */
.rx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
  animation: rx-rise 0.9s 0.2s ease both;
}

.rx-more-wrap {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0.5rem;
}

.rx-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 20, 28, 0.12);
  background: #fff;
  color: #12141c;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 20, 28, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rx-more-btn:hover {
  background: #f7f8fb;
  border-color: rgba(233, 52, 141, 0.35);
  color: #c41e72;
  transform: translateY(-1px);
}

.rx-card {
  display: block;
  color: inherit;
  transition: transform 0.25s ease;
}

.rx-card:hover {
  transform: translateY(-4px);
}

.rx-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--rx-radius-lg);
  background: #dfe2ea;
  box-shadow: var(--rx-shadow);
}

.rx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.rx-card:hover .rx-card__media img {
  transform: scale(1.04);
}

.rx-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.rx-card__play {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 20, 28, 0.65);
  color: #fff;
  backdrop-filter: blur(4px);
}

.rx-card__body {
  padding: 0.85rem 0.15rem 0.2rem;
}

.rx-card__title {
  margin: 0;
  font-family: var(--rx-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.rx-card__loc {
  margin: 0.25rem 0 0;
  color: var(--rx-muted);
  font-size: 0.84rem;
}

.rx-card__price {
  margin: 0.45rem 0 0;
  font-family: var(--rx-display);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.rx-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--rx-muted);
}

/* ——— Detail ——— */
.page-reality-detail {
  background:
    radial-gradient(900px 380px at 80% -5%, rgba(233, 52, 141, 0.08), transparent 50%),
    linear-gradient(180deg, #faf9fb, #f2f3f7);
}

.rx-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 1rem;
}

.rx-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rx-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.rx-back:hover {
  color: var(--rx-pink);
}

.rx-detail-actions-mini {
  display: flex;
  gap: 0.45rem;
}

.rx-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--rx-line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--rx-ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.rx-icon-btn:hover {
  border-color: rgba(233, 52, 141, 0.4);
  color: var(--rx-pink);
}

/* Gallery — plochý mosaic (grid-template-areas) */
.rx-gallery {
  --rx-gallery-gap: 4px;
  position: relative;
  display: grid;
  gap: var(--rx-gallery-gap);
  height: 300px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #12141c;
  isolation: isolate;
  animation: rx-rise 0.65s ease both;
}

.rx-gallery--solo {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "main";
}

.rx-gallery--side1 {
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "main s1";
}

.rx-gallery--side2 {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main s1"
    "main s2";
}

.rx-gallery--side3 {
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main s1 s1"
    "main s2 s3";
}

.rx-gallery--side4 {
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "main s1 s2"
    "main s3 s4";
}

.rx-gallery__cell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: #1a1d27;
  cursor: zoom-in;
}

.rx-gallery__cell--main { grid-area: main; }
.rx-gallery__cell--s1 { grid-area: s1; }
.rx-gallery__cell--s2 { grid-area: s2; }
.rx-gallery__cell--s3 { grid-area: s3; }
.rx-gallery__cell--s4 { grid-area: s4; }

.rx-gallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.25s ease;
}

.rx-gallery__cell:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.rx-gallery.is-crop-zoomed .rx-gallery__cell img {
  transform: scale(var(--rx-img-zoom, 1.12));
  transform-origin: center top;
}

.rx-gallery.is-crop-zoomed .rx-gallery__cell:hover img {
  transform: scale(calc(var(--rx-img-zoom, 1.12) * 1.03));
}

.rx-gallery__more {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rx-gallery__more:hover {
  background: rgba(12, 14, 20, 0.94);
  transform: translateY(-1px);
}

.rx-gallery__more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Lightbox — velký náhled jako Bazar */
.rx-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.92);
  padding: 1rem;
  margin: 0;
  box-sizing: border-box;
}

.rx-lightbox.is-open {
  display: flex !important;
}

.rx-lightbox[hidden] {
  display: none !important;
}

.rx-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10002;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rx-lightbox__close:hover {
  background: var(--rx-pink);
}

.rx-lightbox__stage {
  position: relative;
  width: min(1100px, 100%);
  height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rx-lightbox__frame {
  max-width: 100%;
  max-height: 88vh;
}

.rx-lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.rx-lightbox.is-crop-zoomed .rx-lightbox__frame {
  overflow: hidden;
  border-radius: 8px;
}

.rx-lightbox.is-crop-zoomed .rx-lightbox__img {
  transform: scale(var(--rx-img-zoom, 1.12));
  transform-origin: center top;
}

.rx-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rx-lightbox__nav:hover {
  background: var(--rx-pink);
}

.rx-lightbox__nav--prev {
  left: 8px;
}

.rx-lightbox__nav--next {
  right: 8px;
}

.rx-lightbox__counter {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 10002;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

body.rx-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .rx-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .rx-lightbox__nav--prev {
    left: 4px;
  }

  .rx-lightbox__nav--next {
    right: 4px;
  }
}

/* Detail layout */
.rx-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.rx-crumbs {
  margin: 0 0 0.65rem;
  color: var(--rx-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rx-crumbs a:hover {
  color: var(--rx-pink);
}

.rx-detail-title {
  margin: 0;
  font-family: var(--rx-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.rx-detail-loc {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.rx-detail-price {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-family: var(--rx-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.rx-price-tag {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--rx-pink-soft);
  color: var(--rx-pink);
}

.rx-price-panel {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rx-price-panel[open] summary,
.rx-price-panel summary {
  list-style: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.rx-price-panel summary::-webkit-details-marker {
  display: none;
}

.rx-price-panel__body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rx-line);
  color: var(--rx-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

.rx-desc {
  margin: 1.35rem 0 0;
  color: #2a2e3a;
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-line;
}

.rx-desc.is-collapsed {
  max-height: 12.6em; /* ~7 řádků */
  overflow: hidden;
  position: relative;
}

.rx-desc.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
}

.rx-desc-toggle {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--rx-pink);
  font-size: 0.88rem;
  font-weight: 750;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.rx-desc-toggle[hidden] {
  display: none !important;
}

/* Specs */
.rx-specs {
  margin: 2rem 0 0;
  border-top: 1px solid var(--rx-line);
}

.rx-spec {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rx-line);
  font-size: 0.92rem;
}

.rx-spec__label {
  color: var(--rx-muted);
}

.rx-spec__value {
  font-weight: 650;
}

.rx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rx-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--rx-soft);
  font-size: 0.8rem;
  font-weight: 650;
}

.rx-infra {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx-infra li + li {
  margin-top: 0.25rem;
}

.rx-meta {
  margin: 1rem 0 0;
  color: var(--rx-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Map */
.rx-section {
  margin: 2.5rem 0 0;
}

.rx-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rx-section__head h2 {
  margin: 0;
  font-family: var(--rx-display);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.rx-link {
  color: var(--rx-pink);
  font-size: 0.86rem;
  font-weight: 700;
}

.rx-map {
  position: relative;
  height: 320px;
  border-radius: var(--rx-radius-lg);
  overflow: hidden;
  background: #e8edf0;
  border: 1px solid var(--rx-line);
}

.rx-map.is-expanded {
  height: min(72vh, 640px);
}

.rx-map__canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
  min-height: 320px;
}

.rx-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  font-family: var(--rx-sans);
  background: #e8edf0;
}

/* Leaflet tiles — nesmí je omezovat globální img max-width */
.rx-map .leaflet-tile,
.rx-map .leaflet-tile-pane img,
.rx-map img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: 256px !important;
  height: 256px !important;
}

.rx-map__status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--rx-muted);
  font-size: 0.9rem;
  font-weight: 650;
  background: rgba(244, 245, 248, 0.88);
  pointer-events: none;
}

.rx-map__status[hidden] {
  display: none !important;
}

.rx-map__tools {
  position: absolute;
  inset: 0.75rem;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.rx-map__tools button {
  pointer-events: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rx-line);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rx-ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.rx-map__tools button:hover {
  border-color: rgba(233, 52, 141, 0.4);
  color: var(--rx-pink);
}

.rx-map-marker {
  background: none !important;
  border: none !important;
}

.rx-map-marker__pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #12141c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.rx-map-marker__pin span {
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}

/* Amenities */
.rx-amenity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--rx-line);
}

.rx-amenity-tab {
  padding: 0.55rem 0 0.7rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--rx-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.rx-amenity-tab.is-active {
  color: var(--rx-ink);
  border-bottom-color: var(--rx-ink);
}

.rx-amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.rx-amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.rx-amenity-row__label {
  color: var(--rx-muted);
  min-width: 5.5rem;
}

.rx-amenity-row__name {
  color: var(--rx-pink);
  font-weight: 750;
}

.rx-amenity-row__dist {
  color: var(--rx-muted);
}

/* Contact form */
.rx-contact-form {
  margin-top: 0.5rem;
}

.rx-seller-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.rx-seller-row img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.rx-seller-row strong {
  display: block;
  font-size: 0.98rem;
}

.rx-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.rx-field,
.rx-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rx-line);
  border-radius: 11px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--rx-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rx-field:focus,
.rx-textarea:focus {
  border-color: rgba(233, 52, 141, 0.45);
  box-shadow: 0 0 0 3px rgba(233, 52, 141, 0.12);
}

.rx-textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 0.85rem;
}

.rx-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.rx-form-note {
  margin: 0;
  color: var(--rx-muted);
  font-size: 0.78rem;
  max-width: 28rem;
  line-height: 1.45;
}

.rx-form-note a {
  color: var(--rx-pink);
  font-weight: 700;
}

/* Sidebar */
.rx-rail {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: rx-rise 0.7s 0.1s ease both;
}

.rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}

.rx-btn:hover {
  transform: translateY(-1px);
}

.rx-btn--primary {
  background: linear-gradient(135deg, #f04499, var(--rx-pink-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(233, 52, 141, 0.28);
}

.rx-btn--primary:hover {
  filter: brightness(1.05);
}

.rx-btn--ghost {
  background: #fff;
  border: 1px solid var(--rx-ink);
  color: var(--rx-ink) !important;
}

.rx-rail-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.rx-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 64px;
  padding: 0.5rem;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rx-ink);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.rx-tool:hover {
  border-color: rgba(233, 52, 141, 0.35);
  color: var(--rx-pink);
}

.rx-tool.is-active,
.rx-tool.has-note,
.rx-icon-btn.is-active {
  border-color: var(--rx-pink);
  color: var(--rx-pink);
}

.rx-tool-wrap {
  position: relative;
}

.rx-tool-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 40;
  min-width: 180px;
  padding: 0.35rem;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 20, 30, 0.12);
  display: grid;
  gap: 0.15rem;
}

.rx-tool-menu[hidden] {
  display: none !important;
}

.rx-tool-menu a,
.rx-tool-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rx-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.rx-tool-menu a:hover,
.rx-tool-menu button:hover {
  background: rgba(233, 52, 141, 0.08);
  color: var(--rx-pink);
}

.rx-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 120;
  transform: translateX(-50%) translateY(12px);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(28, 28, 36, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rx-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rx-note-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 20, 30, 0.45);
}

.rx-note-dialog__panel {
  width: min(420px, 100%);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 20, 30, 0.2);
}

.rx-note-dialog__title {
  margin: 0;
  font-size: 1.05rem;
}

.rx-note-dialog__hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--rx-muted, #6b6b76);
}

.rx-note-dialog__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rx-line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 110px;
}

.rx-note-dialog__textarea:focus {
  outline: 2px solid rgba(233, 52, 141, 0.35);
  border-color: var(--rx-pink);
}

.rx-note-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.rx-agent {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--rx-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rx-agent img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.rx-agent strong {
  display: block;
  font-size: 0.9rem;
}

.rx-agent a {
  color: var(--rx-pink);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Similar */
.rx-similar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rx-similar .rx-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.rx-similar .rx-card__title {
  font-size: 0.88rem;
}

.rx-similar .rx-card__price {
  font-size: 0.95rem;
}

@keyframes rx-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .rx-brand__head {
    grid-template-columns: 1fr auto;
  }

  .rx-brand__main {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
  }

  .rx-brand__cta-col {
    grid-column: 2;
    padding-top: 0;
  }

  .rx-brand__cta {
    width: auto;
    max-width: none;
    font-size: 0.92rem;
    padding: 0.65rem 1.2rem;
  }

  .rx-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-gallery {
    height: 230px;
    border-radius: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "main";
  }

  .rx-gallery__cell--s1,
  .rx-gallery__cell--s2,
  .rx-gallery__cell--s3,
  .rx-gallery__cell--s4 {
    display: none;
  }

  .rx-gallery__more {
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.76rem;
  }

  .rx-detail-layout {
    grid-template-columns: 1fr;
  }

  .rx-rail {
    position: static;
    order: -1;
  }

  .rx-similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-fields {
    grid-template-columns: 1fr;
  }

  .rx-amenity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rx-brand__head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .rx-brand__main,
  .rx-brand__cta-col {
    grid-column: 1;
    align-items: center;
    text-align: center;
  }

  .rx-brand__cta-col {
    padding-top: 0.5rem;
  }

  .rx-cats {
    grid-template-columns: 1fr;
  }

  .rx-grid {
    grid-template-columns: 1fr;
  }

  .rx-promo {
    flex-wrap: wrap;
  }

  .rx-promo a {
    margin-left: 0;
  }

  .rx-spec {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .rx-gallery {
    height: 210px;
    border-radius: 10px;
  }

  .rx-similar {
    grid-template-columns: 1fr 1fr;
  }
}
