:root {
  --ps-blue: #243886;
  --ps-blue-dark: #1b2a66;
  --ps-blue-soft: #30479f;
  --ps-brand-top: #243886;
  --ps-brand-top-dark: #18275f;
  --ps-gold: #c19a57;
  --ps-gold-soft: #ead6b1;
  --ps-ink: #0f172a;
  --ps-text: #334155;
  --ps-muted: #64748b;
  --ps-line: rgba(15, 23, 42, 0.1);
  --ps-surface: #ffffff;
  --ps-surface-soft: #f6f7fb;
  --ps-shadow: 0 22px 50px rgba(12, 18, 49, 0.14);
  --ps-radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body.ps-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(193, 154, 87, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f8fb 0%, #edf1f8 100%);
  color: var(--ps-ink);
  font-family: 'Cairo', 'Manrope', sans-serif;
}

html[lang="en"] body.ps-body {
  font-family: 'Manrope', 'Cairo', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.ps-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: none;
  background: var(--ps-brand-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.ps-brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ps-brand img {
  width: min(220px, 42vw);
  border-radius: 0;
  box-shadow: none;
  height: auto;
}

.ps-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ps-nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
}

.ps-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-link-button,
.ps-secondary-button,
.ps-primary-button,
.ps-call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.ps-phone {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.ps-link-button,
.ps-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ps-primary-button,
.ps-call-button {
  color: #0c132f;
  background: linear-gradient(135deg, #d0aa6a 0%, #f4e1b9 100%);
  box-shadow: 0 14px 30px rgba(193, 154, 87, 0.24);
}

.ps-link-button:hover,
.ps-secondary-button:hover,
.ps-primary-button:hover,
.ps-call-button:hover,
.ps-text-link:hover,
.page-btn:hover {
  transform: translateY(-1px);
}

.ps-hero,
.ps-detail-hero {
  background:
    linear-gradient(180deg, rgba(36, 56, 134, 1) 0%, rgba(24, 39, 95, 0.96) 72%, rgba(20, 32, 79, 0.98) 100%),
    radial-gradient(circle at top right, rgba(193, 154, 87, 0.18), transparent 30%);
  color: #fff;
}

.ps-hero {
  padding: 84px 0 64px;
}

.ps-detail-hero {
  padding: 72px 0 56px;
  background-size: cover;
  background-position: center;
}

.ps-hero-grid,
.ps-detail-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: end;
}

.ps-eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ps-gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.ps-hero-title,
.ps-detail-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.05;
}

.ps-hero-copy,
.ps-detail-copy,
.ps-footer-copy {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.ps-detail-text,
.ps-card-copy {
  color: var(--ps-text);
  line-height: 1.8;
}

.ps-card-copy-tight {
  margin-top: 10px;
}

.ps-hero-actions,
.ps-detail-actions,
.ps-side-actions,
.ps-filter-actions,
.ps-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ps-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ps-stat-card,
.ps-detail-summary-card,
.ps-filter-card,
.ps-detail-card,
.ps-property-card,
.ps-list-card,
.ps-empty-state {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
}

.ps-stat-card {
  padding: 24px;
  color: var(--ps-ink);
}

.ps-stat-card strong {
  display: block;
  font-size: 2rem;
}

.ps-stat-card span {
  color: var(--ps-muted);
}

.ps-filter-wrap,
.ps-results-head,
.ps-results-section,
.ps-detail-section {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.ps-filter-card,
.ps-detail-card {
  padding: 24px;
}

.ps-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ps-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ps-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.ps-field input,
.ps-field select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--ps-line);
  background: var(--ps-surface-soft);
  padding: 0 16px;
  color: var(--ps-ink);
  font: inherit;
}

.ps-filter-actions {
  margin-top: 18px;
  justify-content: space-between;
  align-items: center;
}

.ps-view-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: #eef2fa;
}

.ps-view-toggle a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ps-muted);
  font-weight: 700;
}

.ps-view-toggle .is-active {
  background: var(--ps-blue);
  color: #fff;
}

.ps-results-head {
  padding-top: 28px;
}

.ps-results-head h2,
.ps-detail-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.ps-results-head p {
  margin: 0;
  color: var(--ps-muted);
}

.ps-property-grid,
.ps-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ps-list-stack {
  display: grid;
  gap: 18px;
}

.ps-property-card,
.ps-related-card {
  overflow: hidden;
}

.ps-list-card {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 20px;
  padding: 18px;
  align-items: center;
}

.ps-card-media,
.ps-list-media {
  display: block;
  background: linear-gradient(135deg, #17245d, #2840a8);
  min-height: 220px;
}

.ps-list-media {
  min-height: 180px;
  border-radius: 20px;
  overflow: hidden;
}

.ps-card-media img,
.ps-list-media img,
.ps-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-card-placeholder {
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
}

.ps-card-body {
  padding: 22px;
}

.ps-card-topline,
.ps-spec-line,
.ps-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.ps-card-topline {
  color: var(--ps-muted);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.ps-property-card h3,
.ps-list-card h3,
.ps-related-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.ps-location-line {
  margin: 0 0 12px;
  color: var(--ps-muted);
}

.ps-card-price,
.ps-detail-price {
  color: var(--ps-blue);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.ps-text-link {
  color: var(--ps-blue-soft);
  font-weight: 800;
}

.ps-empty-state {
  padding: 56px 24px;
  text-align: center;
}

.ps-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.ps-status-available { background: rgba(5, 122, 85, 0.12); color: #057a55; }
.ps-status-reserved { background: rgba(193, 154, 87, 0.18); color: #8a6126; }
.ps-status-under-contract { background: rgba(37, 99, 235, 0.14); color: #1d4ed8; }
.ps-status-sold { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.ps-status-off-market,
.ps-status-default { background: rgba(100, 116, 139, 0.12); color: #475569; }

.paginator {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 999px;
  background: #fff;
  color: var(--ps-blue);
  border: 1px solid rgba(23, 36, 93, 0.1);
  font-weight: 800;
}

.page-btn.active {
  background: var(--ps-blue);
  color: #fff;
}

.ps-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.ps-detail-summary-card {
  padding: 24px;
  color: var(--ps-ink);
}

.ps-summary-row,
.ps-side-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ps-line);
}

.ps-summary-row:last-child,
.ps-side-item:last-child {
  border-bottom: none;
}

.ps-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.ps-detail-main,
.ps-detail-side {
  display: grid;
  gap: 20px;
}

.ps-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ps-gallery-item {
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  background: #dfe7ff;
}

.ps-gallery-item figcaption {
  padding: 12px 14px;
  background: #fff;
  color: var(--ps-muted);
  font-size: 0.92rem;
}

.ps-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ps-feature-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--ps-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.ps-feature-card span {
  color: var(--ps-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.ps-feature-card strong {
  color: var(--ps-ink);
  line-height: 1.8;
}

.ps-map-card {
  padding: 0;
  overflow: hidden;
}

.ps-map-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background:
    linear-gradient(135deg, rgba(36, 56, 134, 1) 0%, rgba(27, 42, 102, 1) 100%),
    radial-gradient(circle at top left, rgba(193, 154, 87, 0.18), transparent 30%);
  color: #fff;
}

.ps-map-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px;
}

.ps-map-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
}

.ps-map-eyebrow {
  width: fit-content;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.1);
}

.ps-map-meta {
  display: grid;
  gap: 14px;
}

.ps-map-row {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ps-map-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ps-map-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.ps-map-row strong {
  font-size: 1.04rem;
  line-height: 1.7;
}

.ps-map-embed {
  min-height: 420px;
  background: rgba(255, 255, 255, 0.08);
}

.ps-map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.ps-footer {
  margin-top: 56px;
  padding: 58px 0 28px;
  background: #0b1334;
  color: rgba(255, 255, 255, 0.82);
}

.ps-footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 320px;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
}

.ps-footer-intro,
.ps-footer-brand-panel,
.ps-footer-contact {
  display: grid;
  gap: 18px;
}

.ps-footer-intro {
  justify-items: center;
  text-align: center;
}

.ps-footer-brand-panel {
  justify-items: end;
}

.ps-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-footer-brand {
  display: inline-flex;
}

.ps-footer-brand img {
  width: min(240px, 50vw);
}

.ps-footer-brand-copy {
  max-width: 340px;
  margin: 0;
  text-align: right;
}

html[dir="ltr"] .ps-footer-brand-panel {
  justify-items: start;
}

html[dir="ltr"] .ps-footer-brand-copy {
  text-align: left;
}

.ps-footer-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ps-gold-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.ps-footer-title {
  color: #fff;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 800;
  margin: 0;
}

.ps-footer-lead {
  max-width: 760px;
  margin: 0 auto;
}

.ps-footer-copy {
  margin: 0;
}

.ps-footer-socials {
  display: flex;
  flex-wrap: wrap;
  direction: ltr;
  gap: 18px;
  justify-content: flex-end;
}

.ps-footer-socials-wrap {
  display: grid;
  justify-items: end;
}

.ps-footer-social-link,
.ps-footer-legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.ps-footer-social-link {
  width: 110px;
  min-width: 110px;
  min-height: 110px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  text-align: center;
}

.ps-footer-legal-links a {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.ps-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 16px;
  direction: ltr;
  justify-content: start;
}

.ps-footer-contact-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 116px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[dir="rtl"] .ps-footer-contact-card {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .ps-footer-contact-card {
  direction: ltr;
  text-align: left;
}

.ps-footer-contact-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
}

.ps-footer-contact-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.ps-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.ps-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.ps-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ps-footer-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

html[dir="ltr"] .ps-footer-meta {
  text-align: left;
}

html[dir="ltr"] .ps-footer-socials,
html[dir="ltr"] .ps-footer-legal-links {
  justify-content: flex-start;
}

html[dir="ltr"] .ps-footer-socials-wrap {
  justify-items: start;
}

@media (max-width: 1180px) {
  .ps-property-grid,
  .ps-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-list-card {
    grid-template-columns: 240px 1fr;
  }

  .ps-list-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .ps-nav {
    display: none;
  }

  .ps-header-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .ps-header-actions {
    width: 100%;
    justify-content: center;
  }

  .ps-hero-grid,
  .ps-detail-hero-grid,
  .ps-detail-grid,
  .ps-related-grid,
  .ps-map-section,
  .ps-footer-hero,
  .ps-footer-main {
    grid-template-columns: 1fr;
  }

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

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

  .ps-footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .ps-footer-brand-panel,
  .ps-footer-socials-wrap {
    justify-items: center;
  }

  .ps-footer-brand-copy {
    max-width: 100%;
    text-align: center;
  }

  .ps-footer-socials {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .ps-header-shell,
  .ps-header-actions,
  .ps-filter-actions,
  .ps-footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-shell {
    width: min(100% - 20px, 1200px);
  }

  .ps-stat-grid,
  .ps-filter-grid,
  .ps-gallery-grid,
  .ps-feature-grid,
  .ps-property-grid,
  .ps-related-grid {
    grid-template-columns: 1fr;
  }

  .ps-hero,
  .ps-detail-hero {
    padding-top: 56px;
  }

  .ps-card-body,
  .ps-filter-card,
  .ps-detail-card {
    padding: 18px;
  }

  .ps-brand img,
  .ps-footer-brand img {
    width: min(190px, 62vw);
  }

  .ps-brand,
  .ps-footer-brand {
    width: 100%;
    justify-content: center;
  }

  .ps-detail-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .ps-summary-row,
  .ps-side-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ps-map-copy {
    padding: 24px;
  }

  .ps-map-embed,
  .ps-map-embed iframe {
    min-height: 320px;
  }

  .ps-footer-social-link {
    width: 92px;
    min-width: 92px;
    min-height: 92px;
    font-size: 0.92rem;
  }

  .ps-footer-legal-links {
    justify-content: center;
  }

  .ps-footer-meta {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .ps-header-actions > a,
  .ps-detail-actions > a,
  .ps-side-actions > a,
  .ps-filter-buttons > a,
  .ps-filter-buttons > button,
  .ps-footer-actions > a {
    width: 100%;
  }

  .ps-call-button,
  .ps-link-button,
  .ps-secondary-button,
  .ps-primary-button {
    min-height: 50px;
  }

  .ps-map-copy {
    padding: 22px 18px;
  }

  .ps-footer {
    padding-top: 40px;
  }
}
