body.p4r-home-ready {
  background-color: #080d14;
  background-image:
    linear-gradient(135deg, rgba(0, 167, 142, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 88px);
}

.p4r-original-heading-hidden {
  display: none !important;
}

.p4r-nav-enhanced {
  gap: 18px !important;
  padding: 14px 36px !important;
  min-height: 72px;
}

.p4r-nav-enhanced > :first-child {
  flex: 0 0 auto;
}

.p4r-nav-enhanced > :last-child {
  flex: 0 0 auto;
  gap: 10px !important;
}

.p4r-nav-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
}

.p4r-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c7d3e2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.p4r-nav-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.p4r-nav-link[href="/post"] {
  color: #90f2d7;
}

.p4r-prm-login {
  white-space: nowrap;
}

.p4r-company-field {
  margin-bottom: 0 !important;
}

.p4r-company-field .input-field {
  min-height: 52px;
}

.p4r-card-company {
  min-width: 0;
  max-width: calc(100% - 96px);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  padding: 0 10px 0 0;
  vertical-align: middle;
}

.p4r-card-agency-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.p4r-card-company span {
  color: #7f91a8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.p4r-card-company strong {
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p4r-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 100%;
}

.p4r-floor-field {
  grid-column: 1 / 2;
}

.p4r-furnishing-row {
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr) !important;
  align-items: end;
  max-width: 100%;
}

.p4r-furnishing-row .input-group {
  min-width: 0;
}

.p4r-shell {
  width: 100%;
  color: #f8fafc;
}

.p4r-home {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 18px;
}

.p4r-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 34px;
  padding: 46px 0 30px;
}

.p4r-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #90f2d7;
  font-size: 0.86rem;
  font-weight: 700;
}

.p4r-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5.1vw, 4.65rem);
  line-height: 1.04;
  font-weight: 800;
}

.p4r-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #b9c8da;
  font-size: 1.08rem;
  line-height: 1.75;
}

.p4r-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.p4r-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.p4r-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.p4r-btn-primary {
  border-color: rgba(0, 184, 148, 0.5);
  background: linear-gradient(135deg, #08b88f, #00a3a3 62%, #ff7a1a);
  box-shadow: 0 18px 46px rgba(0, 184, 148, 0.22);
}

.p4r-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.p4r-metric {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.p4r-metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.32rem;
  line-height: 1.1;
}

.p4r-metric span {
  display: block;
  margin-top: 7px;
  color: #a9b9ca;
  font-size: 0.88rem;
  line-height: 1.35;
}

.p4r-visual {
  position: relative;
  min-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(11, 15, 25, 0.95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.p4r-hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(5, 10, 18, 0.74) 100%),
    linear-gradient(135deg, #123039, #1c2935 46%, #0d111a);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.p4r-visual.has-image .p4r-hero-photo {
  filter: saturate(1.04) contrast(1.02);
}

.p4r-preview-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 13, 20, 0.76);
  backdrop-filter: blur(18px);
}

.p4r-preview-label {
  color: #90f2d7;
  font-size: 0.82rem;
  font-weight: 800;
}

.p4r-preview-card h2 {
  margin: 9px 0 8px;
  color: #ffffff;
  font-size: 1.42rem;
}

.p4r-preview-card p {
  margin: 0;
  color: #b9c8da;
  font-size: 0.94rem;
  line-height: 1.55;
}

.p4r-floating-note {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 182px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.p4r-floating-note strong,
.p4r-floating-note span {
  display: block;
}

.p4r-floating-note strong {
  font-size: 1rem;
}

.p4r-floating-note span {
  margin-top: 5px;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.35;
}

.p4r-section {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.p4r-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.p4r-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.p4r-section p {
  margin: 5px 0 0;
  color: #aab8c9;
  font-size: 0.96rem;
}

.p4r-chip-grid,
.p4r-location-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.p4r-chip,
.p4r-location {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.p4r-chip:hover,
.p4r-location:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 184, 148, 0.38);
  background: rgba(0, 184, 148, 0.1);
}

.p4r-chip span,
.p4r-location span {
  color: #9fb0c3;
  font-size: 0.78rem;
  line-height: 1.3;
}

.p4r-owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.p4r-owner-item {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.4);
}

.p4r-owner-index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 122, 26, 0.16);
  color: #ffb071;
  font-weight: 800;
}

.p4r-owner-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.05rem;
}

.p4r-owner-item p {
  margin: 0;
  color: #aab8c9;
  font-size: 0.9rem;
  line-height: 1.55;
}

.p4r-prm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: 30px 0 10px;
  padding: 28px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.p4r-prm h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
}

.p4r-prm p {
  margin: 8px 0 0;
  color: #b9c8da;
}

.p4r-listing-head {
  width: min(1052px, calc(100% - 32px));
  margin: 16px auto 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.p4r-listing-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.38rem;
}

.p4r-listing-head p {
  margin: 5px 0 0;
  color: #aab8c9;
}

.p4r-tabs {
  display: flex;
  gap: 8px;
}

.p4r-tab {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbe7f5;
  font-weight: 700;
}

.p4r-tab.active {
  border-color: rgba(0, 184, 148, 0.42);
  background: rgba(0, 184, 148, 0.16);
  color: #ffffff;
}

.p4r-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #9fb0c5;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  font-size: 0.9rem;
}

.p4r-footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.1;
}

.p4r-footer-brand p {
  max-width: 420px;
  margin: 10px 0 0;
  color: #aebed1;
  line-height: 1.65;
}

.p4r-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.p4r-footer-links a {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #eaf2fb;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.p4r-footer-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 184, 148, 0.4);
  background: rgba(0, 184, 148, 0.1);
}

.p4r-footer-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.p4r-footer-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p4r-icon-line {
  background: #06c755;
}

.p4r-icon-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af 74%, #515bd4);
}

.p4r-icon-tiktok {
  background: #050505;
  box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55;
}

.p4r-icon-phone,
.p4r-icon-mail,
.p4r-icon-prm {
  background: rgba(0, 184, 148, 0.16);
  color: #8df6d8;
}

.p4r-brand-text {
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.p4r-brand-note {
  color: #ffffff;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
}

.p4r-footer-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.p4r-footer-copy > span {
  color: #88a0b9;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.1;
}

.p4r-footer-copy strong {
  min-width: 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .p4r-nav-enhanced {
    padding: 12px 24px !important;
  }

  .p4r-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .p4r-furnishing-row {
    grid-template-columns: 1fr !important;
  }

  .p4r-nav-links {
    display: none;
  }

  .p4r-hero,
  .p4r-prm {
    grid-template-columns: 1fr;
  }

  .p4r-hero {
    min-height: 0;
    padding-top: 32px;
  }

  .p4r-visual {
    min-height: 360px;
  }

  .p4r-chip-grid,
  .p4r-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .p4r-owner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .p4r-nav-enhanced {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .p4r-spec-grid {
    grid-template-columns: 1fr !important;
  }

  .p4r-nav-enhanced > :last-child {
    gap: 6px !important;
  }

  .p4r-prm-login {
    display: none !important;
  }

  .p4r-home {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .p4r-hero {
    gap: 22px;
  }

  .p4r-hero h1 {
    font-size: 2.4rem;
  }

  .p4r-metrics {
    grid-template-columns: 1fr;
  }

  .p4r-visual {
    min-height: 320px;
  }

  .p4r-floating-note {
    width: 154px;
    right: 14px;
    top: 14px;
  }

  .p4r-section,
  .p4r-prm {
    padding: 18px;
  }

  .p4r-section-head,
  .p4r-listing-head,
  .p4r-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Compact marketplace header: keep listings close to the top. */
.p4r-home {
  padding: 16px 0 4px;
}

.p4r-hero {
  min-height: 280px;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 22px;
  padding: 18px 0 12px;
}

.p4r-kicker {
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.p4r-hero h1 {
  max-width: 600px;
  font-size: clamp(1.9rem, 3.3vw, 3.05rem);
  line-height: 1.08;
}

.p4r-hero p {
  max-width: 590px;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p4r-actions {
  margin-top: 16px;
}

.p4r-btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.p4r-metrics,
.p4r-floating-note,
.p4r-preview-card {
  display: none;
}

.p4r-visual {
  min-height: 230px;
  border-radius: 12px;
}

.p4r-home > .p4r-section:nth-of-type(n+3),
.p4r-home > .p4r-prm {
  display: none;
}

.p4r-section {
  margin: 8px 0 6px;
  padding: 12px 16px;
  border-radius: 10px;
}

.p4r-section-head {
  margin-bottom: 10px;
}

.p4r-section h2 {
  font-size: 1.05rem;
}

.p4r-section p,
.p4r-chip span,
.p4r-location span {
  display: none;
}

.p4r-chip-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.p4r-chip {
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.88rem;
  text-align: center;
}

.p4r-listing-head {
  margin: 10px auto 10px;
  align-items: center;
}

.p4r-listing-head h2 {
  font-size: 1.5rem;
}

.p4r-listing-head p {
  margin-top: 3px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .p4r-nav-enhanced {
    padding: 12px 24px !important;
  }

  .p4r-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .p4r-furnishing-row {
    grid-template-columns: 1fr !important;
  }

  .p4r-nav-links {
    display: none;
  }

  .p4r-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .p4r-visual {
    min-height: 210px;
  }

  .p4r-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .p4r-home {
    padding-top: 10px;
  }

  .p4r-hero {
    padding-top: 12px;
  }

  .p4r-hero h1 {
    font-size: 1.95rem;
  }

  .p4r-visual {
    display: none;
  }

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

@media (max-width: 760px) {
  .p4r-footer {
    width: min(100% - 24px, 1180px);
    margin-top: 30px;
    padding-bottom: 30px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 430px) {
  .p4r-footer-links {
    grid-template-columns: 1fr;
  }
}
