/* Local media polish. Real source images remain uncropped and prices sit
   outside the photography. This preview is composed from catalogue content. */
body.rp-site-style .rp-offer > .rp-hero-selection:has(.rp-catalog-preview) {
  display: block;
  height: auto !important;
  min-height: 0;
  background: #fffefa;
  border: 1px solid #d4cbb9;
}

body.rp-site-style .rp-catalog-preview {
  display: block;
  min-width: 0;
  padding: 18px;
  color: var(--ink);
  background: #fffefa;
}

body.rp-site-style .rp-catalog-top {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.rp-site-style .rp-catalog-kicker {
  color: var(--style-accent, #886337);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.rp-site-style .rp-catalog-title {
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

body.rp-site-style .rp-catalog-subtitle {
  color: #59656a;
  font-size: 12px;
  line-height: 1.5;
}

body.rp-site-style .rp-preview-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}

body.rp-site-style .rp-preview-filters > span {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d6d0c3;
  border-radius: 8px;
  background: #f7f5f0;
}

body.rp-site-style .rp-preview-filters small {
  color: #687474;
  font-size: 10px;
  line-height: 1.3;
}

body.rp-site-style .rp-preview-filters b {
  color: #344449;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.rp-site-style .rp-preview-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

body.rp-site-style .rp-preview-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6d0c3;
  border-radius: 10px;
  background: #fffefa;
}

body.rp-site-style .rp-preview-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #f2f0e9;
}

body.rp-site-style .rp-preview-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 11px;
}

body.rp-site-style .rp-preview-card-copy > small {
  color: #687474;
  font-size: 10px;
  line-height: 1.35;
}

body.rp-site-style .rp-preview-card-copy > strong {
  color: #344449;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.rp-site-style .rp-preview-card-copy > b {
  margin-top: auto;
  padding-top: 3px;
  color: var(--style-accent, #886337);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

body.rp-site-style .rp-catalog-caption {
  margin: 12px 0 0;
  color: #59656a;
  font-size: 11px;
  line-height: 1.45;
}

/* The same media treatment applies to all project variants. Existing desktop
   absolute placement and media-column width are intentionally retained. */
body.rp-site-style .rp-offer > .rp-hero.rp-project-media {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  background: var(--paper);
  border: 1px solid #d4cbb9;
}

body.rp-site-style .rp-hero.rp-project-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
}

body.rp-site-style .rp-project-media .rp-price {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 15px 17px;
  border: 0;
  border-top: 1px solid rgba(30, 42, 48, .13);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

body.rp-site-style .rp-project-media .rp-price > strong {
  flex: none;
  max-width: 100%;
  color: var(--ink);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.15;
}

body.rp-site-style .rp-project-media .rp-equivalents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  color: #59656a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

body.rp-site-style[data-style-region="pattaya"] .rp-catalog-preview,
body.rp-site-style[data-style-region="pattaya"] .rp-preview-card {
  background: #fffefa;
}

body.rp-site-style[data-style-region="pattaya"] .rp-preview-filters > span {
  background: #f1f3ed;
}

@media (max-width: 760px) {
  body.rp-site-style .rp-offer > .rp-hero-selection:has(.rp-catalog-preview),
  body.rp-site-style .rp-offer > .rp-hero.rp-project-media {
    height: auto !important;
    min-height: 0;
    margin-top: 17px;
  }

  body.rp-site-style .rp-catalog-preview {
    padding: 14px;
  }

  body.rp-site-style .rp-catalog-top {
    gap: 3px;
  }

  body.rp-site-style .rp-catalog-kicker {
    font-size: 9px;
    letter-spacing: .1em;
  }

  body.rp-site-style .rp-catalog-title {
    font-size: 19px;
  }

  body.rp-site-style .rp-catalog-subtitle {
    font-size: 11px;
  }

  body.rp-site-style .rp-preview-filters {
    gap: 6px;
    margin: 12px 0;
  }

  body.rp-site-style .rp-preview-filters > span {
    padding: 8px;
    gap: 3px;
    border-radius: 7px;
  }

  body.rp-site-style .rp-preview-filters small {
    font-size: 9px;
  }

  body.rp-site-style .rp-preview-filters b {
    font-size: 11px;
  }

  body.rp-site-style .rp-preview-cards {
    gap: 9px;
  }

  body.rp-site-style .rp-preview-card {
    border-radius: 8px;
  }

  body.rp-site-style .rp-preview-card-copy {
    padding: 9px;
    gap: 4px;
  }

  body.rp-site-style .rp-preview-card-copy > small {
    font-size: 9px;
  }

  body.rp-site-style .rp-preview-card-copy > strong {
    font-size: 12px;
    line-height: 1.35;
  }

  body.rp-site-style .rp-preview-card-copy > b {
    font-size: 13px;
  }

  body.rp-site-style .rp-catalog-caption {
    margin-top: 10px;
    font-size: 10px;
  }

  body.rp-site-style .rp-project-media .rp-price {
    gap: 7px 13px;
    padding: 12px 14px;
  }

  body.rp-site-style .rp-project-media .rp-price > strong {
    font-size: 28px;
  }

  body.rp-site-style .rp-project-media .rp-equivalents {
    font-size: 14px;
  }
}

/* Native form stages remain authoritative if media is hidden on navigation. */
body.rp-site-style .rp-hero[hidden] {
  display: none !important;
}
