#rp-module {
  --rp-primary: #263c8e;
  --rp-primary-dark: #1d2f70;
  --rp-primary-deep: #17234f;
  --rp-accent: #d10e1c;
  --rp-accent-dark: #960d16;
  --rp-star: #d6a21d;
  --rp-ink: #101114;
  --rp-ink-soft: #272b33;
  --rp-muted: #5f6674;
  --rp-surface: #ffffff;
  --rp-surface-soft: #f6f8fb;
  --rp-surface-tint: #eef3ff;
  --rp-stroke: rgba(16, 20, 31, 0.10);
  --rp-stroke-strong: rgba(38, 60, 142, 0.18);
  --rp-shadow-soft: 0 1px 0 rgba(15, 23, 42, 0.08), 0 12px 38px rgba(15, 23, 42, 0.08);
  --rp-shadow-deep: 0 18px 52px rgba(2, 6, 23, 0.20);
  --rp-radius-xl: 24px;
  --rp-radius-lg: 18px;
  --rp-radius-md: 12px;
  --rp-radius-sm: 8px;
  --rp-font-head: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --rp-font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --rp-max: 1220px;
  width: min(100%, var(--rp-max));
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--rp-ink);
  font-family: var(--rp-font-body);
  font-size: 16px;
  line-height: 1.6;
}

#rp-module *,
#rp-module *::before,
#rp-module *::after {
  box-sizing: border-box;
}

#rp-module button,
#rp-module select {
  font: inherit;
}

#rp-module a:focus-visible,
#rp-module button:focus-visible,
#rp-module select:focus-visible {
  outline: 2px solid rgba(38, 60, 142, 0.48);
  outline-offset: 3px;
}

.rp-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1fr);
  gap: 26px;
  overflow: hidden;
  min-height: 410px;
  margin-bottom: 16px;
  padding: 34px 34px 32px;
  align-items: stretch;
  border-radius: var(--rp-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.76) 0%, rgba(29, 47, 112, 0.54) 48%, rgba(38, 60, 142, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.08), rgba(8, 10, 16, 0.28)),
    url("/wp-content/location-pages/assets/commercial-areas-we-serve-action-card.webp") center 48% / cover no-repeat,
    linear-gradient(145deg, var(--rp-primary) 0%, var(--rp-primary-dark) 42%, #111111 100%);
  color: #ffffff;
  box-shadow: var(--rp-shadow-deep);
}

.rp-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--rp-accent) 0 22%, #ffffff 22% 29%, var(--rp-primary) 29% 100%);
}

.rp-header::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 32px;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.14) 48% 52%, transparent 52% 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.13), transparent 58%);
  opacity: 0.75;
  pointer-events: none;
}

.rp-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 14px;
  min-width: 0;
  padding: 0 0 18px;
}

.rp-header h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-family: var(--rp-font-head);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: none;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.48);
}

.rp-sub {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(2, 6, 23, 0.48);
}

.rp-header .rp-map-wrap {
  z-index: 1;
  min-height: 330px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: var(--rp-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.24);
}

.rp-header .rp-map {
  height: 100%;
  min-height: 330px;
}

.rp-header .rp-map-note {
  background:
    linear-gradient(180deg, rgba(238, 243, 255, 0.94), rgba(255, 255, 255, 0.96)),
    var(--rp-surface-soft);
}

.rp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--rp-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.rp-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.rp-map-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-lg);
  background: var(--rp-surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rp-map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 500px;
  min-height: 360px;
  overflow: hidden;
  background: var(--rp-surface-soft);
}

.rp-map .leaflet-control-zoom a {
  color: var(--rp-ink);
  text-decoration: none;
}

.rp-map .leaflet-control-attribution {
  color: var(--rp-muted);
  font-size: 11px;
}

.rp-map-note {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  padding: 24px;
  background: var(--rp-surface-soft);
  color: var(--rp-muted);
  font-weight: 700;
  text-align: center;
}

.rp-map-note[hidden] {
  display: none;
}

.rp-pin {
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--rp-accent);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
  transform: rotate(-45deg);
}

.rp-pin-google,
.rp-pin-facebook {
  background: var(--rp-primary);
}

.rp-pin-facebook {
  border-width: 5px;
}

.rp-pin-yelp {
  background: var(--rp-accent);
}

.rp-pop {
  max-width: 220px;
  color: var(--rp-ink);
  font-family: var(--rp-font-body);
}

.rp-pop-stars {
  color: var(--rp-star);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}

.rp-pop-name {
  margin: 5px 0 2px;
  color: var(--rp-ink);
  font-weight: 800;
}

.rp-pop-area {
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 700;
}

.rp-pop-text {
  margin-top: 8px;
  color: var(--rp-ink-soft);
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.rp-pop-btn {
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--rp-primary);
  border-radius: 999px;
  background: var(--rp-primary);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.rp-pop-btn:hover {
  background: var(--rp-primary-dark);
  border-color: var(--rp-primary-dark);
}

.rp-areas {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  margin: 16px 0 8px;
  padding: 0;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-xl);
  background: var(--rp-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rp-areas-head {
  display: grid;
  align-content: center;
  gap: 9px;
  margin: 0;
  padding: 20px;
  border-right: 1px solid var(--rp-stroke);
  border-bottom: 0;
  border-radius: var(--rp-radius-xl) 0 0 var(--rp-radius-xl);
  background:
    linear-gradient(145deg, rgba(38, 60, 142, 0.12), rgba(209, 14, 28, 0.07)),
    #ffffff;
}

.rp-areas-head h2 {
  margin: 0;
  color: var(--rp-ink);
  font-family: var(--rp-font-head);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.rp-areas-head p {
  margin: 0;
  color: var(--rp-ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.rp-area-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: transparent;
}

.rp-area-group {
  position: relative;
  min-width: 0;
  padding: 14px 12px 13px;
  border-right: 1px solid var(--rp-stroke);
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
}

.rp-area-group::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--rp-area-color, var(--rp-primary));
}

.rp-area-group:nth-child(1),
.rp-area-group:nth-child(4) {
  --rp-area-color: var(--rp-primary);
  --rp-area-soft: rgba(38, 60, 142, 0.10);
}

.rp-area-group:nth-child(2),
.rp-area-group:nth-child(5) {
  --rp-area-color: var(--rp-accent);
  --rp-area-soft: rgba(209, 14, 28, 0.08);
}

.rp-area-group:nth-child(3) {
  --rp-area-color: #111111;
  --rp-area-soft: rgba(16, 17, 20, 0.06);
}

.rp-area-group h3 {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 9px;
  color: var(--rp-area-color, var(--rp-primary));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rp-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rp-area-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rp-area-soft, var(--rp-surface-tint));
  color: var(--rp-ink);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rp-area-pill:hover {
  border-color: var(--rp-area-color, var(--rp-primary));
  background: var(--rp-area-color, var(--rp-primary));
  color: #ffffff;
  transform: translateY(-1px);
}

.rp-controls {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 18px;
  padding: 18px;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-lg);
  background:
    linear-gradient(135deg, rgba(38, 60, 142, 0.08), rgba(209, 14, 28, 0.045) 58%, rgba(255, 255, 255, 0) 100%),
    var(--rp-surface);
  box-shadow: var(--rp-shadow-soft);
}

.rp-controls::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--rp-radius-lg) var(--rp-radius-lg) 0 0;
  background: linear-gradient(90deg, var(--rp-primary), var(--rp-accent));
}

.rp-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rp-stroke);
}

.rp-controls-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rp-controls-heading {
  color: var(--rp-ink);
  font-family: var(--rp-font-head);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
}

.rp-controls-body {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.rp-source-field {
  flex: 0 0 auto;
  min-width: 0;
}

.rp-source-filter {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rp-stroke);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  padding: 3px 10px;
  border: 0;
  border-right: 1px solid var(--rp-stroke);
  border-radius: 0;
  background: transparent;
  color: var(--rp-ink-soft);
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rp-chip:first-child {
  border-radius: 9px 0 0 9px;
}

.rp-chip:last-child {
  border-right: 0;
  border-radius: 0 9px 9px 0;
}

.rp-chip:hover {
  background: var(--rp-surface-tint);
  color: var(--rp-ink);
}

.rp-chip.is-active {
  border-right-color: transparent;
  background: var(--rp-primary);
  color: #ffffff;
  box-shadow: none;
}

.rp-chip.is-active:hover {
  color: #ffffff;
}

.rp-controls-element {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rp-area-field {
  width: 210px;
}

.rp-sort-field {
  width: 170px;
}

.rp-field-label {
  display: block;
  min-height: 11px;
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rp-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--rp-stroke);
  border-radius: 10px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%208'%3E%3Cpath%20d='M1%201.5L6%206.5L11%201.5'%20fill='none'%20stroke='%23b42323'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 8px;
  color: var(--rp-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rp-select:hover {
  border-color: var(--rp-stroke-strong);
  transform: translateY(-1px);
}

.rp-select:focus {
  outline: none;
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px rgba(38, 60, 142, 0.14);
}

.rp-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--rp-stroke);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.rp-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rp-muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rp-view-btn:hover {
  color: var(--rp-primary);
}

.rp-view-btn.is-active {
  background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-deep));
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(38, 60, 142, 0.22);
}

.rp-content {
  min-height: 120px;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rp-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-lg);
  background: var(--rp-surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rp-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rp-primary);
  opacity: 0;
  transition: opacity 160ms ease;
}

.rp-card:hover {
  border-color: rgba(38, 60, 142, 0.18);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.rp-card:hover::before {
  opacity: 1;
}

.rp-card.is-highlight {
  outline: 3px solid rgba(209, 14, 28, 0.72);
  outline-offset: 3px;
}

.rp-card-photo {
  display: block;
  width: 100%;
  height: 178px;
  background: var(--rp-surface-tint);
}

.rp-card-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo-less cards keep the slot so every card in a row is the same height. */
.rp-card-photo.is-empty {
  background:
    linear-gradient(
      135deg,
      var(--rp-surface-tint) 0%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

.rp-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  min-width: 0;
  padding: 16px 16px 18px;
}

.rp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-source-icon {
  width: auto;
  max-width: 96px;
  height: 22px;
  object-fit: contain;
}

.rp-stars {
  flex: 0 0 auto;
  color: var(--rp-star);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}

.rp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rp-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rp-tag-soft {
  border: 1px solid var(--rp-stroke-strong);
  background: var(--rp-surface-tint);
  color: var(--rp-primary);
}

.rp-pop-type {
  margin-top: 3px;
  color: var(--rp-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rp-card-text {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  margin: 0;
  color: var(--rp-ink-soft);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.rp-card-author {
  color: var(--rp-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}

.rp-card-date,
.rp-card-area {
  font-size: 13px;
  line-height: 1.2;
}

.rp-card-date {
  color: var(--rp-muted);
  font-weight: 650;
}

.rp-card-area {
  color: var(--rp-primary);
  font-weight: 800;
}

.rp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-list .rp-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.rp-list .rp-card::before {
  opacity: 1;
}

.rp-list .rp-card-photo {
  width: 100%;
  height: 100%;
  min-height: 172px;
}

.rp-list .rp-card-text {
  -webkit-line-clamp: 3;
}

.rp-loading {
  padding: 50px;
  text-align: center;
}

.rp-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid var(--rp-surface-tint);
  border-top-color: var(--rp-primary);
  border-radius: 50%;
  animation: rp-spin 1s linear infinite;
}

.rp-empty {
  padding: 28px;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-md);
  background: var(--rp-surface);
  color: var(--rp-muted);
  font-weight: 700;
  text-align: center;
}

.rp-pagination {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-lg);
  background:
    linear-gradient(180deg, #ffffff, rgba(246, 248, 251, 0.82)),
    var(--rp-surface);
  box-shadow: var(--rp-shadow-soft);
}

.rp-page-status {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--rp-ink);
  line-height: 1.2;
}

.rp-page-status::before {
  content: none;
}

.rp-page-eyebrow {
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-page-range {
  color: var(--rp-ink);
  font-size: 15px;
  font-weight: 850;
}

.rp-page-controls {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--rp-stroke);
  border-radius: 999px;
  background: var(--rp-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--rp-ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rp-page-btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--rp-primary);
  transform: translateY(-1px);
}

.rp-page-btn[aria-current="page"] {
  border-color: transparent;
  background: var(--rp-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(38, 60, 142, 0.20);
}

.rp-page-step {
  min-width: 82px;
  padding-right: 14px;
  padding-left: 14px;
  border-color: transparent;
  background: #ffffff;
  color: var(--rp-ink);
}

.rp-page-step:hover:not(:disabled) {
  background: var(--rp-primary);
  color: #ffffff;
}

.rp-page-btn[aria-label="Previous page"]::before {
  content: "\2039";
  margin-right: 6px;
  font-size: 16px;
  line-height: 0;
}

.rp-page-btn[aria-label="Next page"]::after {
  content: "\203A";
  margin-left: 6px;
  font-size: 16px;
  line-height: 0;
}

.rp-page-btn:disabled {
  cursor: default;
  color: var(--rp-muted);
  opacity: 0.58;
}

.rp-page-btn[aria-current="page"]:disabled {
  color: #ffffff;
  opacity: 1;
}

.rp-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 800;
}

.rp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 20, 31, 0.68);
}

.rp-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--rp-radius-xl);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.rp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(16, 20, 31, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rp-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.rp-modal-close:hover {
  background: #ffffff;
}

.rp-modal-photo {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  background: var(--rp-surface-tint);
}

.rp-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--rp-stroke);
  background: var(--rp-surface-soft);
}

.rp-modal-thumb {
  width: 66px;
  height: 50px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--rp-radius-sm);
  background: none;
  cursor: pointer;
}

.rp-modal-thumb.is-active {
  border-color: var(--rp-primary);
}

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

.rp-modal-body {
  padding: 24px;
}

.rp-modal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rp-modal-text {
  margin: 0 0 14px;
  color: var(--rp-ink-soft);
  font-size: 18px;
  font-style: italic;
  line-height: 1.62;
}

.rp-modal-author {
  color: var(--rp-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.rp-modal-date {
  margin: 5px 0 18px;
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 700;
}

.rp-modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.rp-modal-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--rp-stroke);
  border-radius: var(--rp-radius-md);
  background: var(--rp-surface-soft);
}

.rp-modal-detail-k {
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rp-modal-detail-v {
  color: var(--rp-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.rp-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rp-btn:hover {
  transform: translateY(-1px);
}

.rp-btn-primary {
  border-color: var(--rp-accent);
  background: var(--rp-accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(209, 14, 28, 0.18);
}

.rp-btn-primary:hover {
  border-color: var(--rp-accent-dark);
  background: var(--rp-accent-dark);
}

.rp-modal-actions .rp-btn-primary {
  box-shadow: none;
}

.rp-btn-cs {
  border-color: var(--rp-primary);
  background: var(--rp-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(38, 60, 142, 0.16);
}

.rp-btn-cs:hover {
  border-color: var(--rp-primary-dark);
  background: var(--rp-primary-dark);
}

.rp-btn-review {
  border-color: var(--rp-primary);
  background: var(--rp-primary);
  color: #ffffff;
}

.rp-btn-review:hover {
  border-color: var(--rp-primary-dark);
  background: var(--rp-primary-dark);
}

.rp-review-btn-icon {
  height: 16px;
  width: auto;
  margin: 0 6px;
}

.rp-cta {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--rp-radius-lg);
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(255, 255, 255, 0.18), transparent 66%),
    linear-gradient(145deg, var(--rp-primary-dark) 0%, #111111 72%);
  color: #ffffff;
  box-shadow: var(--rp-shadow-deep);
}

.rp-cta-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rp-cta .rp-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.rp-cta-copy {
  max-width: 680px;
}

.rp-cta-copy h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--rp-font-head);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.rp-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}

.rp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-cta .rp-btn-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.rp-cta .rp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

@keyframes rp-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .rp-header {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rp-hero-copy {
    max-width: 760px;
  }

  .rp-areas {
    grid-template-columns: 1fr;
  }

  .rp-areas-head {
    border-right: 0;
    border-bottom: 1px solid var(--rp-stroke);
    border-radius: var(--rp-radius-xl) var(--rp-radius-xl) 0 0;
  }

  .rp-area-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rp-area-group {
    border-bottom: 1px solid var(--rp-stroke);
  }

  .rp-area-group:nth-child(5) {
    grid-column: span 2;
  }

  .rp-area-field {
    width: 190px;
  }

  .rp-sort-field {
    width: 160px;
  }
}

@media (max-width: 768px) {
  #rp-module {
    margin: 0 auto;
    padding: 0;
  }

  .rp-header {
    min-height: 0;
    padding: 26px 20px 24px;
    gap: 20px;
  }

  .rp-header::after {
    right: -54px;
    top: 18px;
    width: 240px;
  }

  .rp-header h1 {
    max-width: none;
    font-size: 34px;
  }

  .rp-sub {
    font-size: 16px;
  }

  .rp-header .rp-map-wrap {
    min-height: 300px;
  }

  .rp-header .rp-map {
    min-height: 300px;
  }

  .rp-map {
    height: 360px;
  }

  .rp-cta {
    padding: 18px;
  }

  .rp-areas-head {
    padding: 20px 18px 18px;
  }

  .rp-area-groups {
    grid-template-columns: 1fr;
  }

  .rp-grid {
    grid-template-columns: 1fr;
  }

  .rp-area-group:nth-child(5) {
    grid-column: auto;
  }

  .rp-controls {
    padding: 16px;
  }

  .rp-controls-head {
    gap: 12px;
    padding-bottom: 12px;
  }

  .rp-controls-heading {
    font-size: 16px;
  }

  .rp-controls-body {
    gap: 8px;
  }

  .rp-source-field {
    width: 100%;
    max-width: 100%;
  }

  .rp-source-filter {
    display: flex;
    width: 100%;
    border-radius: var(--rp-radius-md);
  }

  .rp-chip {
    flex: 1 1 0;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 10px !important;
    white-space: nowrap;
  }

  .rp-area-field {
    width: 168px;
  }

  .rp-sort-field {
    width: 145px;
  }

  .rp-select {
    width: 100%;
  }

  .rp-field-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .rp-select {
    min-height: 40px;
    padding-right: 24px;
    padding-left: 9px;
    background-position: right 9px center;
    font-size: 12px;
  }

  .rp-view-btn {
    flex: 0 0 auto;
  }

  .rp-list .rp-card {
    grid-template-columns: 1fr;
  }

  .rp-list .rp-card-photo {
    height: 178px;
    min-height: 0;
  }

  .rp-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .rp-page-controls {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 7px;
    -webkit-overflow-scrolling: touch;
  }

  .rp-modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .rp-modal {
    max-height: calc(100vh - 24px);
    border-radius: var(--rp-radius-lg);
  }

  .rp-modal-body {
    padding: 18px;
  }

  .rp-modal-text {
    font-size: 16px;
  }

  .rp-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .rp-controls-body {
    align-items: stretch;
  }

  .rp-source-field {
    width: 100%;
  }

  .rp-source-filter {
    display: flex;
    width: 100%;
  }

  .rp-chip {
    flex: 1 1 0;
    padding-right: 4px;
    padding-left: 4px;
  }

  .rp-area-field,
  .rp-sort-field {
    flex: 1 1 0;
    width: auto;
  }

  .rp-chip {
    font-size: 11px;
  }
}


/* Brand override — The Roofing Company */
#rp-module {
    --rp-primary: #b42323;
    --rp-primary-dark: #8f1c1c;
    --rp-primary-deep: #6d1414;
    --rp-accent: #b42323;
    --rp-accent-dark: #8f1c1c;
    --rp-star: #d6a21d;
    --rp-surface-tint: #f7eded;
    --rp-stroke-strong: rgba(180, 35, 35, 0.18);
}
