/* Container */
.rpl-single {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* Header */
.rpl-single__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.rpl-single__title {
  margin: 6px 0 4px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.rpl-single__subtitle {
  color: #64748b;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.rpl-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.rpl-badge--salelease {
  background: #e6f4ea;
  color: #10733b;
}
.rpl-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111;
  text-decoration: none;
}
.rpl-btn--ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
}

/* Hero gallery (no border-radius for images) */
.rpl-hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.rpl-hero__main {
  position: relative;
}
.rpl-hero__main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.rpl-hero__count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}
.rpl-hero__count-icon {
  font-size: 12px;
}
.rpl-hero__side {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}
.rpl-hero__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 0;
}
.rpl-ph {
  background: #e5e7eb;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
}
.rpl-ph--sm {
  border-radius: 0;
}

/* Tabs */
.rpl-tabs {
  display: flex;
  gap: 20px;
  margin: 16px 0 12px;
  border-bottom: 1px solid #e5e7eb;
}
.rpl-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0;
  margin: 0;
  cursor: pointer;
  color: #475569;
  position: relative;
  font-weight: 600;
}
.rpl-tab.is-active {
  color: #0f6ab4;
}
.rpl-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #0f6ab4;
}

/* Main layout with sidebar */
.rpl-mainlayout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.rpl-aside {
  position: sticky;
  top: 16px;
  height: max-content;
}

/* Summary cards */
.rpl-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.rpl-summary__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}
.rpl-summary__label {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}
.rpl-summary__value {
  font-size: 16px;
  font-weight: 600;
}

/* Features list */
.rpl-features {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.rpl-features li {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rpl-features li::before {
  content: '•';
  color: #0f6ab4;
}

/* Rich text & muted text */
.rpl-richtext p {
  margin: 0 0 10px;
}
.rpl-muted {
  color: #94a3b8;
}

/* Table (Unit) */
.rpl-table {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.rpl-thead,
.rpl-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}
.rpl-thead {
  background: #0f6ab4;
  color: #fff;
  font-weight: 600;
}
.rpl-thead > div {
  padding: 12px 10px;
}
.rpl-row > div {
  padding: 12px 10px;
  border-top: 1px solid #e5e7eb;
}

/* Map */
.rpl-map {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.rpl-address-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

/* Contact cards */
.rpl-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.rpl-card__hd {
  padding: 12px 14px;
  font-weight: 600;
  background: #0f3850;
  color: #fff;
  border-radius: 12px 12px 0 0;
}
.rpl-agentlist {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}
.rpl-agent {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rpl-avatarph {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #cbd5e1;
  display: inline-block;
}
.rpl-agent__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.rpl-agent__name {
  font-weight: 600;
}
.rpl-agent__role {
  color: #6b7280;
  font-size: 12px;
}
.rpl-chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  margin-left: 4px;
}

/* Panes */
.rpl-pane {
  display: none;
}
.rpl-pane.is-active {
  display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
  .rpl-hero__grid {
    grid-template-columns: 1fr;
  }
  .rpl-mainlayout {
    grid-template-columns: 1fr;
  }
  .rpl-summary__grid {
    grid-template-columns: 1fr;
  }
  .rpl-aside {
    position: static;
  }
}
