/* ===========================================================================
   PROPERTY LISTING + PROPERTY DETAILS
=========================================================================== */

/* Shared breadcrumb / toolbar */
.pl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: var(--space-4);
  color: var(--color-ink);
  white-space: nowrap;
}

.page-property .pl-breadcrumb,
.page-property .pl-breadcrumb a {
  color: #919191;
}

.pl-breadcrumb a:hover {
  color: var(--color-navy);
}

.pl-breadcrumb-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* Badge-as-breadcrumb (all inner pages) */
.pl-hero-badge--bc {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--space-1);
  height: auto;
  min-height: var(--space-4);
  max-width: 100%;
  padding: var(--space-0-5) 12px;
  white-space: normal;
  line-height: 1.3;
}

.pl-hero-badge--bc a {
  color: inherit;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.pl-hero-badge--bc a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pl-hero-badge--bc [aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

.pl-hero-badge--bc .pl-bc-sep {
  opacity: 0.45;
  font-weight: 400;
  user-select: none;
}

/* Solid/inner pages without dark hero: navy-tint badge */
.page-solid .pl-hero-badge--bc,
.pd-toolbar .pl-hero-badge--bc,
.pl-toolbar .pl-hero-badge--bc {
  border: 1px solid rgba(27, 41, 120, 0.16);
  background: rgba(27, 41, 120, 0.06);
  color: #475569;
}

.page-solid .pl-hero-badge--bc a:hover,
.pd-toolbar .pl-hero-badge--bc a:hover,
.pl-toolbar .pl-hero-badge--bc a:hover {
  color: var(--color-navy);
}

.page-solid .pl-hero-badge--bc [aria-current="page"],
.pd-toolbar .pl-hero-badge--bc [aria-current="page"],
.pl-toolbar .pl-hero-badge--bc [aria-current="page"] {
  color: var(--color-navy);
}

.pl-toolbar,
.pd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  margin-bottom: var(--space-5);
}

.pl-toolbar-line {
  flex: 1 1 auto;
  height: 1px;
  background: #e4e4e4;
}

.pl-toolbar-arrows,
.pd-similar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pl-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(27, 41, 120, 0.18);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pl-arrow-btn:hover:not(:disabled) {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.pl-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Listing hero + search (Rightmove / Zoopla inspired)
--------------------------------------------------------------------------- */
.pl-hero {
	position: relative;
	padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-5);
	color: var(--color-white);
	overflow: hidden;
	display: flex;
	align-items: end;
	min-height: 480px;
}

.pl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.2) 100%),
    radial-gradient(60% 80% at 20% 0%, rgba(47, 78, 174, 0.55) 0%, transparent 70%);
}

.pl-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, var(--color-white) 100%);
  pointer-events: none;
}

.pl-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.pl-hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: var(--space-4);
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--font-ui);
  font-size: var(--text-10);
  letter-spacing: var(--tracking-slight);
  color: var(--color-white);
}

.pl-hero-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-46);
  line-height: 1.15;
  color: var(--color-white);
}

.pl-hero-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--space-4);
  color: rgba(255, 255, 255, 0.95);
}

.pl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-1);
}

.pl-hero-actions .btn-pill {
  flex: 0 0 auto;
}

.btn-pill--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}

.btn-pill--ghost-light .btn-pill-dot {
  background: radial-gradient(circle at 35% 30%, var(--color-white) 0%, #cdd6ff 75%);
}

.btn-pill--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Search bar */
.pl-search {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-5);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 14, 40, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.pl-search-filters {
  display: contents;
}

.pl-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 148px;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: var(--color-white);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pl-search-field:focus-within {
  border-color: rgba(27, 41, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(27, 41, 120, 0.16);
}

.pl-search-field--query {
  flex: 1 1 280px;
  gap: 8px;
  padding-left: 16px;
}

.pl-search-field--select {
  padding-right: 36px;
}

.pl-search-field i {
  color: #64748b;
  font-size: var(--text-lg);
  pointer-events: none;
}

.pl-search-field--query i {
  flex-shrink: 0;
  color: var(--color-navy);
}

.pl-search-field select,
.pl-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  color: #0f172a;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.pl-search-field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.pl-search-field select {
  padding: 0 4px 0 0;
  cursor: pointer;
  color: #334155;
}

.pl-search-field select:invalid,
.pl-search-field select option[value=""] {
  color: #64748b;
  font-weight: 500;
}

.pl-search-field select option {
  color: #0f172a;
  font-weight: 500;
  background: var(--color-white);
}

.pl-search-field--select:has(select option:checked:not([value=""])) select {
  color: #0f172a;
  font-weight: 600;
}

.pl-search-field select + i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #64748b;
  transition: color 0.18s ease, transform 0.18s ease;
}

.pl-search-field--select:focus-within select + i {
  color: var(--color-navy);
}

.pl-search-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 41, 120, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pl-search-btn-label {
  display: none;
}

.pl-search-btn:hover {
  background: #142060;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 41, 120, 0.34);
}

.pl-search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 6px 16px rgba(27, 41, 120, 0.28);
}

/* Listing grid area */
.pl-main {
  padding: var(--space-4) 0 var(--space-5);
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.pl-results-count {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: #64748b;
  white-space: nowrap;
}

.pl-results-count strong {
  color: #0f172a;
  font-weight: 700;
}

.pl-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pl-sort:focus-within {
  border-color: rgba(27, 41, 120, 0.4);
  box-shadow: 0 0 0 3px rgba(27, 41, 120, 0.12);
}

.pl-sort-label {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: var(--text-13);
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  pointer-events: none;
}

.pl-sort select {
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--text-13);
  font-weight: 600;
  color: #0f172a;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  min-width: 120px;
  max-width: 180px;
}

.pl-sort i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #64748b;
  pointer-events: none;
}

.pl-sort:focus-within i {
  color: var(--color-navy);
}

.pl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.pl-pagination-status {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #475569;
}

.pl-register {
  padding: 0 0 var(--section-y);
}

/* Full-card link */
.pl-card {
  gap: 0;
}

.pl-card .property-card-hit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  padding: 0 0 var(--space-0-5);
  border-radius: calc(var(--radius-sm) + 2px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pl-card .property-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
  flex: 1 1 auto;
}

.pl-card .property-card-title {
  margin: 0;
  transition: color 0.2s ease;
}

.pl-card .property-card-hit:hover,
.pl-card .property-card-hit:focus-visible {
  outline: none;
}

.pl-card .property-card-hit:hover .property-card-title,
.pl-card .property-card-hit:focus-visible .property-card-title {
  color: var(--color-navy);
}

.pl-card .property-card-hit:focus-visible .property-card-media {
  box-shadow: 0 0 0 3px rgba(27, 41, 120, 0.35);
}

/* Listing-only image / text density */
.pl-card .property-card-media {
  height: 240px;
}

.pl-card .property-card-text {
  min-height: 0;
}

/* ---------------------------------------------------------------------------
   Property details
--------------------------------------------------------------------------- */
.page-property .pd-main {
  padding: calc(var(--header-h) + var(--space-5)) 0 0;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 396px);
  gap: var(--space-3);
  align-items: start;
}

.pd-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-ink);
}

.pd-gallery-main .swiper-wrapper,
.pd-gallery-main .swiper-slide {
  height: 100%;
}

.pd-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  margin-top: -20px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
  font-size: var(--text-22);
  cursor: pointer;
}

.pd-gallery-nav--prev {
  left: var(--space-3);
}

.pd-gallery-nav--next {
  right: var(--space-3);
}

.pd-gallery-count,
.pd-gallery-tour {
  position: absolute;
  z-index: 2;
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-xs);
}

.pd-gallery-count {
  left: var(--space-3);
}

.pd-gallery-tour {
  right: var(--space-3);
  transition: background 0.2s ease;
}

.pd-gallery-tour:hover {
  background: rgba(0, 0, 0, 0.78);
  color: var(--color-white);
}

.pd-gallery-tour i {
  font-size: var(--text-md);
}

.pd-gallery-thumbs {
  width: 100%;
  height: var(--space-10);
  box-sizing: border-box;
  padding: 0;
}

.pd-gallery-thumbs .swiper-slide {
  width: auto;
  height: var(--space-10);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  background: #e8eef5;
  box-shadow: inset 0 0 0 0 transparent;
}

.pd-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  box-shadow: inset 0 0 0 3px var(--color-navy);
}

.pd-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-tabs {
  position: sticky;
  top: calc(var(--header-h) + var(--space-2));
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1.5px solid #bfcbda;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header hidden on scroll-down → park tabs/sidebar under 16px inset */
body:has(.site-header.is-hidden) .pd-tabs,
body:has(.site-header.is-hidden) .pd-sidebar {
  top: var(--space-2);
}

.pd-tab {
  flex: 0 0 auto;
  padding: var(--space-2);
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-md);
  color: #475569;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pd-tab:hover,
.pd-tab.is-active {
  color: var(--color-navy);
}

.pd-tab.is-active {
  border-bottom-color: var(--color-navy);
}

.pd-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: var(--space-0-5);
}

.pd-heading-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px var(--space-2);
}

.pd-heading .pd-tag {
  margin: 0;
	background: var(--color-light-blue);
}

.pd-price--inline {
  display: none;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xl);
  color: #0f172a;
}

.pd-heading h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xl);
  color: var(--color-black);
  margin: 0;
}

.pd-address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin: 0;
  font-size: var(--text-md);
  color: #3b3b3b;
}

.pd-address i {
  margin-top: 2px;
  color: var(--color-navy);
}

/* Compact key facts — same language as pd-spec-grid */
.pd-key-facts.pd-spec-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: var(--space-0-5);
}

.pd-key-facts .pd-spec-item {
  padding: var(--space-1) 10px;
}

.pd-key-facts .pd-spec-item > i {
  font-size: var(--text-lg);
}

.pd-key-facts .pd-spec-meta {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
}

.pd-key-facts .pd-spec-label {
  font-size: var(--text-10);
  line-height: 1.2;
}

.pd-key-facts .pd-spec-value {
  font-size: var(--text-13);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.pd-key-facts .pd-epc-badge {
  width: 22px;
  height: 22px;
  font-size: var(--text-11);
}

.pd-subhead {
  margin: var(--space-1) 0 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-slight);
  text-transform: uppercase;
  color: #64748b;
}

.pd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
}

.pd-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy);
}

.pd-inline-link:hover {
  color: #142060;
}

.pd-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 0 var(--space-3);
  border-bottom: 1px solid #e4e4e4;
  scroll-margin-top: calc(var(--header-h) + var(--space-9));
}

.pd-block--last {
  border-bottom: 0;
  padding-bottom: var(--space-6);
}

.pd-block h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.5px;
  color: #0f172a;
}

.pd-block p,
.pd-desc-text {
  font-size: var(--text-md);
  line-height: 1.6;
  color: #475569;
}

.pd-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-desc-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.pd-block--overview {
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.pd-overview-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pd-tour {
  flex: 0 0 212px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 212px;
  padding: var(--space-1);
  border: 1px solid #bfcbda;
  border-radius: var(--radius-md);
}

.pd-tour-label {
  font-weight: 700;
  font-size: var(--text-sm);
  color: #0f172a;
}

.pd-tour-preview {
  position: relative;
  display: block;
  height: 93px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pd-tour-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-tour-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-28);
  background: rgba(0, 0, 0, 0.2);
}

.pd-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0-5);
  width: fit-content;
  border: 0;
  padding: 0;
  background: none;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
}

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

.pd-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-size: var(--text-sm);
  color: #0f172a;
}

.pd-features i {
  flex: 0 0 auto;
  font-size: var(--text-20);
  color: #E05A10;
}

/* Spec / nearby lists — white board + inset hairlines (no grey empty cells) */
.pd-spec-grid {
	--pd-grid-line: #bfcbda;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--color-white);
	border: 1px solid var(--pd-grid-line);
	border-bottom: 0px solid transparent;
	border-right: 0px solid transparent;
	border-radius: inherit;
	box-shadow: inset -1px -1px 0 0 var(--pd-grid-line);
	border-radius: 14px;
	overflow: hidden;
}

.pd-spec-grid--list {
  grid-template-columns: 1fr;
}

.pd-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  /* Right + bottom hairline between cells; outer edge is the container border */
  box-shadow: inset -1px -1px 0 0 var(--pd-grid-line);
}

.pd-spec-item > i {
  flex: 0 0 auto;
  font-size: var(--text-20);
  color: var(--color-navy);
}

.pd-spec-meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-0-5) 12px;
  min-width: 0;
}

.pd-spec-label {
  font-weight: 500;
  font-size: var(--text-11);
  letter-spacing: var(--tracking-slight);
  text-transform: uppercase;
  color: #475569;
}

.pd-spec-value {
  font-weight: 600;
  font-size: var(--text-sm);
  color: #0f172a;
  white-space: nowrap;
}

.pd-location {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  gap: var(--space-3);
}

.pd-map {
  position: relative;
  min-height: 239px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef5;
}

.pd-map iframe,
.pd-map img {
  width: 100%;
  height: 100%;
  min-height: 239px;
  border: 0;
  object-fit: cover;
}

.pd-map-bubble {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.pd-map-bubble strong {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: #0f172a;
}

.pd-map-bubble span {
  font-family: var(--font-ui);
  font-size: var(--text-11);
  color: #475569;
}

.pd-map-bubble a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-11);
  color: var(--color-navy);
}

.pd-nearby h3 {
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #0f172a;
}

.pd-epc {
  display: grid;
  grid-template-columns: 2fr 1fr 3fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.pd-epc-card {
  background: #1c70b8;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}

.pd-epc-card--cta {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.pd-epc-card--cta p {
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-sm);
}

.pd-epc-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--space-6);
  padding: 0 10px;
  border-radius: 0 40px 40px 22px;
  background: var(--color-white);
  color: #1c70b8;
  font-weight: 600;
  font-size: var(--text-md);
}

.pd-epc-btn span:last-child {
  flex: 1;
  text-align: center;
}

.pd-epc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(28, 112, 184, 0.12);
  font-size: var(--text-md);
}

.pd-epc-card--rating {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
}

.pd-epc-card--rating p {
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-sm);
  margin: 0;
}

.pd-epc-card--rating strong {
  font-size: var(--text-64);
  line-height: 1;
  font-weight: 700;
}

.pd-epc-card--meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pd-epc-card--meta .pd-spec-label,
.pd-epc-card--meta .pd-spec-value {
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: none;
}

.pd-epc-card--meta .pd-spec-label {
  width: 156px;
}

.pd-floorplan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 20px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #f8fafc 0%, var(--color-white) 40%, var(--color-white) 100%);
}

.pd-floorplan img {
  max-height: 360px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Sidebar */
.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
	padding-bottom: var(--space-6);
  top: calc(var(--header-h) + var(--space-2));
  z-index: 30;
  align-self: start;
  transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid #bfcbda;
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: var(--color-white);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pd-panel--price {
  background: var(--color-light-blue);
  border: 0;
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
}

.pd-tag {
	display: inline-flex;
	align-self: flex-start;
	padding: 2px var(--space-1);
	border-radius: 4px;
	background: var(--color-white);
	font-weight: 700;
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-navy);
}

.pd-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: #0f172a;
}

.pd-sidebar-address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: #3b3b3b;
}

.pd-sidebar-address i {
  margin-top: 2px;
  color: var(--color-navy);
}

.pd-panel-rule {
  height: 1px;
  width: 100%;
  background: rgba(27, 41, 120, 0.12);
}

.pd-room-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.pd-room-pills span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 110px;
  font-weight: 500;
  font-size: var(--text-sm);
  color: #475569;
}

.pd-room-pills i {
  font-size: var(--text-lg);
  color: var(--color-navy);
}

.pd-kv {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.pd-kv > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-sm);
}

.pd-kv dt {
  color: #475569;
  font-weight: 400;
}

.pd-kv dd {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.pd-epc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--space-4);
	border-radius: 4px;
	background: #8dce46;
	color: var(--color-white);
	font-size: var(--text-xs);
	font-weight: 700;
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* CTA-shaped actions (no magnetic / follow cursor effect) */
.pd-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  height: var(--space-7);
  padding: 0 var(--space-3) 0 var(--space-2);
  overflow: hidden;
  border: 0;
  border-radius: 0 32px 32px 32px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.pd-action:hover {
  transform: translateY(-2px);
}

.pd-action:active {
  transform: translateY(0);
}

.pd-action-label {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-action:hover .pd-action-label {
  transform: translateX(2px);
}

.pd-action-ico {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-4);
  height: var(--space-4);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  font-size: var(--text-lg);
  line-height: 1;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease;
}

.pd-action:hover .pd-action-ico {
  transform: scale(1.06);
}

/* Same corner cut as .btn-cta-icon */
.pd-action-ico::before {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: var(--space-2);
  height: var(--space-2);
}

.pd-action--primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(27, 41, 120, 0.18);
}

.pd-action--primary:hover {
  background: #15205f;
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(27, 41, 120, 0.3);
}

.pd-action--primary .pd-action-ico {
  background: var(--color-white);
  color: var(--color-navy);
}

.pd-action--primary .pd-action-ico::before {
  background: var(--color-white);
}

.pd-action--dark {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.pd-action--dark:hover {
  background: #222;
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pd-action--dark .pd-action-ico {
  background: var(--color-white);
  color: var(--color-black);
}

.pd-action--dark .pd-action-ico::before {
  background: var(--color-white);
}

.pd-action--outline {
  border: 1px solid #a5b5d2;
  background: transparent;
  color: var(--color-black);
  box-shadow: none;
}

.pd-action--outline:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 10px 22px rgba(27, 41, 120, 0.18);
}

.pd-action--outline .pd-action-ico {
  background: var(--color-navy);
  color: var(--color-white);
}

.pd-action--outline:hover .pd-action-ico {
  background: var(--color-white);
  color: var(--color-navy);
}

.pd-action--outline .pd-action-ico::before {
  background: var(--color-navy);
  transition: background-color 0.25s ease;
}

.pd-action--outline:hover .pd-action-ico::before {
  background: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .pd-panel,
  .pd-action,
  .pd-action-label,
  .pd-action-ico {
    transition: none;
  }

  .pd-panel--price:hover,
  .pd-action:hover,
  .pd-action:hover .pd-action-label,
  .pd-action:hover .pd-action-ico {
    transform: none;
  }
}

.pd-panel-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #0f172a;
}

.pd-agent {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pd-agent img {
  width: var(--space-7);
  height: var(--space-7);
  border-radius: 50%;
  object-fit: cover;
}

.pd-agent strong {
  display: block;
  font-size: var(--text-md);
  color: #0f172a;
}

.pd-agent p {
  font-size: var(--text-sm);
  line-height: 1.35;
  color: #475569;
}

.pd-agent-contact {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.pd-agent-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
}

.pd-agent-contact i {
  color: var(--color-navy);
}

.pd-agent-contact a {
  color: #0f172a;
  font-weight: 600;
}

.pd-agent-contact li:last-child a {
  font-weight: 400;
  color: #475569;
}

.pd-agent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
}

.pd-agent-actions .btn-pill {
  width: 100%;
  justify-content: center;
}

.pd-links {
  display: flex;
  flex-direction: column;
}

.pd-links li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 41, 120, 0.12);
}

.pd-links--compact li + li {
  margin-top: var(--space-1);
  padding-top: var(--space-1);
}

.pd-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: var(--text-sm);
  color: #0f172a;
}

.pd-links i {
  color: var(--color-navy);
  font-size: var(--text-md);
}

.pd-panel--move {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  border: 0;
  background: var(--color-navy);
  color: var(--color-white);
}

.pd-register {
  padding: 0 0 var(--space-10);
  background: transparent;
}

.pd-register-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px var(--space-4);
  padding: var(--space-4) var(--space-4);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: var(--color-navy);
  color: var(--color-white);
}

.pd-register-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.pd-register-copy h2,
.pd-panel--move h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
}

.pd-register-copy p,
.pd-panel--move p {
  margin: 0 0 12px;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.pd-register-copy p {
  margin-bottom: 0;
}

.pd-move-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 10px;
	width: var(--space-11);
	height: var(--space-11);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
	overflow: hidden;
}

.pd-move-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mobile sticky CTA — hidden on desktop */
.pd-mobile-bar {
  display: none;
}

/* Similar properties */
.pd-similar {
  padding: 60px 0 var(--space-6);
  border-top: 1px solid #e4e4e4;
}

.pd-similar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.pd-similar-head h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: -0.64px;
  color: var(--color-black);
}

/* Responsive */
@media (max-width: 1100px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-sidebar {
    position: static;
  }

  .pd-price--inline {
    display: block;
  }

  .pd-features,
  .pd-spec-grid:not(.pd-spec-grid--list):not(.pd-key-facts) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-key-facts.pd-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-epc {
    grid-template-columns: 1fr 1fr;
  }

  .pd-epc-card--cta,
  .pd-epc-card--rating {
    grid-row: auto;
  }

  .pd-epc-card--meta {
    grid-column: span 2;
  }
}

/* Tablet — Zoopla/Rightmove: 2-up grid, search stacks cleanly */
@media (max-width: 992px) {
  .pl-hero {
    padding: calc(var(--header-h) + var(--space-4)) 0 var(--space-4);
  }

  .pl-hero-lead {
    font-size: var(--text-md);
    line-height: var(--space-3);
  }

  .pl-hero-actions {
    margin-top: 6px;
    gap: 10px;
  }

  .pl-search {
    gap: var(--space-1);
    padding: 10px;
    border-radius: 20px;
  }

  .pl-search-field,
  .pl-search-field--query {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }

  .pl-search-btn {
    flex: 1 1 100%;
    width: 100%;
    border-radius: 12px;
    height: 46px;
  }

  .pl-search-btn-label {
    display: inline;
  }

  .pl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .pl-card .property-card-media {
    height: 200px;
  }

  .pl-card .property-card-title {
    font-size: var(--text-lg);
    line-height: 26px;
  }

  .pd-gallery-main {
    max-height: none;
  }

  .pd-gallery-thumbs {
    height: var(--space-9);
  }

  .pd-gallery-thumbs .swiper-slide {
    height: var(--space-9);
  }

  .pd-location {
    grid-template-columns: 1fr;
  }

  .pd-block--overview {
    flex-direction: column;
  }

  .pd-tour {
    width: 100%;
    flex: none;
  }
}

/* Mobile — list cards like Rightmove / Zoopla SERP */
@media (max-width: 768px) {
  .page-property {
    padding-bottom: var(--space-11);
  }

  .pl-hero {
    padding: calc(var(--header-h) + var(--space-2)) 0 20px;
  }

  .pl-hero-content {
    gap: 6px;
  }

  .pl-hero-badge {
    height: 22px;
    font-size: var(--text-9);
  }

  .pl-hero-title {
    font-size: var(--text-28);
  }

  .pl-hero-lead {
    display: none;
  }

  .pl-hero-actions {
    width: 100%;
  }

  .pl-hero-actions .btn-pill {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
    justify-content: center;
  }

  .pl-hero-fade {
    height: 36%;
  }

  .pl-search {
    margin-top: var(--space-2);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .pl-search-field--query {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .pl-search-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-1);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .pl-search-filters::-webkit-scrollbar {
    display: none;
  }

  .pl-search-filters .pl-search-field {
    flex: 0 0 auto;
    width: auto;
    min-width: var(--space-14);
    max-width: 150px;
    height: 42px;
    padding: 0 32px 0 12px;
    border-radius: 10px;
  }

  .pl-search-filters .pl-search-field select {
    font-size: var(--text-13);
  }

  .pl-search-filters .pl-search-field select + i {
    right: 8px;
    font-size: 16px;
  }

  .pl-search-btn {
    flex: 0 0 auto;
    width: 100%;
    height: 44px;
  }

  .pl-main {
    padding: var(--space-2) 0 var(--space-5);
  }

  .pl-toolbar {
    gap: 10px;
    margin-bottom: var(--space-2);
  }

  .pl-toolbar-line {
    display: none;
  }

  .pl-results-count {
    flex: 1 1 auto;
    white-space: normal;
    font-size: var(--text-13);
  }

  .pl-sort {
    margin-left: auto;
    height: 38px;
    padding-right: 32px;
    padding-left: 12px;
    gap: 6px;
  }

  .pl-sort-label {
    display: none;
  }

  .pl-sort select {
    min-width: 0;
    max-width: 132px;
    font-size: var(--text-xs);
  }

  .pl-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pl-card .property-card-hit {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 0;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
  }

  .pl-card .property-card-media {
    height: 100%;
    min-height: var(--space-16);
    max-height: none;
    border-radius: 0;
  }

  .pl-card .property-card-price {
    right: var(--space-1);
    bottom: var(--space-1);
    font-size: var(--text-md);
    line-height: 1.2;
  }

  .pl-card .property-card-status {
    top: var(--space-1);
    right: var(--space-1);
    left: auto;
    height: 22px;
    font-size: var(--text-11);
  }

  .pl-card .property-card-body {
    gap: 6px;
    padding: 10px 12px 10px 0;
    justify-content: center;
  }

  .pl-card .property-card-title {
    font-size: var(--text-15);
    line-height: 1.3;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pl-card .property-card-facts {
    gap: var(--space-0-5) 10px;
  }

  .pl-card .property-card-facts li {
    font-size: var(--text-xs);
  }

  .pl-card .property-card-facts i {
    font-size: var(--text-sm);
  }

  .pl-card .property-card-text {
    display: none;
  }

  .pl-register {
    padding-bottom: var(--space-5);
  }

  .pd-features,
  .pd-spec-grid:not(.pd-spec-grid--list):not(.pd-key-facts) {
    grid-template-columns: 1fr;
  }

  .pd-key-facts.pd-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-gallery-thumbs {
    height: var(--space-8);
  }

  .pd-gallery-thumbs .swiper-slide {
    height: var(--space-8);
  }

  .pd-gallery-tour span {
    display: none;
  }

  .pd-agent-actions {
    grid-template-columns: 1fr;
  }

  .pd-register-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .pd-epc {
    grid-template-columns: 1fr;
  }

  .pd-epc-card--meta {
    grid-column: auto;
  }

  .pd-similar-head h2 {
    font-size: var(--text-26);
  }

  .pd-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e4e4e4;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  }

  .pd-mobile-bar-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .pd-mobile-bar-price strong {
    font-family: var(--font-body);
    font-size: var(--text-17);
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #0f172a;
  }

  .pd-mobile-bar-price .pd-tag {
    background: var(--color-light-blue);
  }

  .pd-mobile-bar-agent {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #bfcbda;
    background: #e8eef5;
  }

  .pd-mobile-bar-agent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pd-mobile-bar-agent-ico {
    position: absolute;
    right: -1px;
    bottom: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: var(--text-11);
    box-shadow: 0 0 0 2px var(--color-white);
  }

  .pd-mobile-bar .pd-action {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 190px;
  }

  .pd-mobile-bar .pd-action-label {
    font-size: var(--text-13);
  }
}

/* Very small phones — stack list cards vertically */
@media (max-width: 420px) {
  .pl-card .property-card-hit {
    grid-template-columns: 1fr;
  }

  .pl-card .property-card-media {
    height: 180px;
    min-height: 0;
  }

  .pl-card .property-card-body {
    padding: 0 12px 12px;
  }

  .pl-card .property-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pl-card .property-card-price {
    font-size: var(--text-lg);
  }
}

/* ===========================================================================
   Laravel additions

   Everything above this banner is the legacy property-pages.css, byte for
   byte. The rules below cover markup that only exists in the Laravel port:

     .pl-sort-form   the sort <select> now posts, so it needs a <form> the
                     static page never had. display:contents keeps .pl-sort
                     a direct flex child of .pl-toolbar, so the toolbar lays
                     out exactly as it did before the wrapper appeared.

     .pl-empty       the listing can now return no rows. The static page had
                     six hardcoded cards and no such state.
=========================================================================== */
.pl-sort-form {
  display: contents;
}

.pl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-3);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-align: center;
}

.pl-empty h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-snug);
  color: var(--color-black);
}

.pl-empty p {
  max-width: 52ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-subtle);
}

.pl-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

@media (max-width: 576px) {
  .pl-empty {
    padding: var(--space-6) var(--space-2);
  }

  .pl-empty-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------------------------------------------------------------------------
   Insights listing — Laravel-only states

   blog.php rendered four hardcoded cards, so it needed neither an empty
   state nor a pagination control. Both exist here because the page reads a
   table. The control itself reuses .pl-arrow-btn / .pl-pagination-status
   above; only the wrapper needs defining.
--------------------------------------------------------------------------- */
.ip-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.ip-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-3);
  border: 1px solid rgba(27, 41, 120, 0.07);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.ip-empty h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.48px;
  color: var(--color-black);
}

.ip-empty p {
  max-width: 52ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-subtle);
}

@media (max-width: 576px) {
  .ip-empty {
    padding: var(--space-6) var(--space-2);
  }
}

/* ---------------------------------------------------------------------------
   Enquiry form — Laravel-only states

   The legacy contact.php form was a GET stub that never validated anything,
   so it had no error, context or reCAPTCHA states to style. Field layout
   itself is untouched: .ip-field and .ip-form-row in inner-pages.css still
   own width, height, padding and the two-column grid.

   These live here rather than in inner-pages.css so that file stays byte
   identical to the legacy original. property-pages.css loads first in the
   cascade, and nothing below collides with a legacy selector — the
   aria-invalid rules are more specific than .ip-field input, so they win
   regardless of order.
--------------------------------------------------------------------------- */
.ip-form-error {
  font-family: var(--font-ui);
  font-size: var(--text-13);
  font-weight: 500;
  line-height: 1.4;
  color: #b42318;
}

.ip-field input[aria-invalid="true"],
.ip-field select[aria-invalid="true"],
.ip-field textarea[aria-invalid="true"] {
  border-color: #d92d20;
  background: #fffbfa;
}

.ip-field input[aria-invalid="true"]:focus,
.ip-field select[aria-invalid="true"]:focus,
.ip-field textarea[aria-invalid="true"]:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.ip-form-errors {
  padding: 14px 16px;
  border: 1px solid #fecdca;
  border-radius: 12px;
  background: #fffbfa;
  font-family: var(--font-ui);
  font-size: var(--text-13);
  line-height: 1.5;
  color: #b42318;
}

.ip-form-errors p {
  margin: 0;
  font-weight: 600;
}

.ip-form-errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.ip-form-context {
  margin: 0 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: #475569;
}

.ip-form-context a {
  color: var(--color-navy);
  font-weight: 600;
}

/* Google pins its badge bottom-right, where .back-to-top already sits. */
.page-contact .grecaptcha-badge {
  bottom: 88px !important;
  z-index: 995;
}

@media (max-width: 640px) {
  .ip-form-errors {
    padding: 12px 14px;
  }
}
