/* ================================================================
   PRIME Philippines — Commercial Properties Landing Page
   Styles for the property search bar (overlapping hero bottom)
   and the 5-card property category grid.
   Depends on: prime-homepage.css, prime-service-page.css
   ================================================================ */

/* ----------------------------------------------------------------
   Property Search — Dark premium section
   ---------------------------------------------------------------- */
.prime-property-search-section {
  background: var(--prime-warm-white);
  padding: 48px var(--section-px) 24px;
  position: relative;
  z-index: 3;
}

.prime-property-search {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--prime-gray);
  padding: 38px 44px 32px;
  border-top: 4px solid var(--prime-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  position: relative;
}

.prime-property-search__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 252, 251, 0.1);
}

.prime-property-search__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prime-property-search__rule {
  width: 40px;
  height: 2px;
  background-color: var(--prime-gold);
  flex: 0 0 40px;
}

.prime-property-search__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--prime-warm-white);
}

/* --- Transaction Tab Toggle (radio buttons styled as tabs) --- */
.prime-property-search__tabs {
  position: relative;
  display: inline-flex;
  background: rgba(255, 252, 251, 0.08);
  padding: 4px;
}

.prime-property-search__tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prime-property-search__tab {
  position: relative;
  z-index: 2;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 252, 251, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.prime-property-search__tab:hover {
  color: var(--prime-warm-white);
}

.prime-property-search__tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--prime-blue);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  z-index: 1;
}

/* --- 2-tab layout (default) --- */
.prime-property-search__tabs input[type="radio"]:nth-of-type(1):checked ~ .prime-property-search__tab-indicator {
  transform: translateX(0);
}

.prime-property-search__tabs input[type="radio"]:nth-of-type(2):checked ~ .prime-property-search__tab-indicator {
  transform: translateX(100%);
  background: var(--prime-gold);
}

/* --- 3-tab layout --- */
.prime-property-search__tabs--3 .prime-property-search__tab-indicator {
  width: calc(33.333% - 3px);
}

/* 1st tab (Exclusive) — gold background */
.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(1):checked ~ .prime-property-search__tab-indicator {
  transform: translateX(0);
  background: var(--prime-gold);
}

/* 2nd tab (For Lease) — blue background */
.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(2):checked ~ .prime-property-search__tab-indicator {
  transform: translateX(100%);
  background: var(--prime-blue);
}

/* 3rd tab (For Sale) — blue background */
.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(3):checked ~ .prime-property-search__tab-indicator {
  transform: translateX(200%);
  background: var(--prime-blue);
}

/* Highlight the active tab's label (uses adjacent sibling) */
.prime-property-search__tabs input[type="radio"]:checked + .prime-property-search__tab {
  color: var(--prime-warm-white);
}

/* Gold-background tabs get dark text */
.prime-property-search__tabs input[type="radio"]:nth-of-type(2):checked + .prime-property-search__tab {
  color: var(--prime-deep-ink);
}

.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(1):checked + .prime-property-search__tab {
  color: var(--prime-deep-ink);
}

.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(2):checked + .prime-property-search__tab {
  color: var(--prime-warm-white);
}

.prime-property-search__tabs--3 input[type="radio"]:nth-of-type(3):checked + .prime-property-search__tab {
  color: var(--prime-warm-white);
}

.prime-property-search__tabs input[type="radio"]:focus-visible + .prime-property-search__tab {
  outline: 2px solid var(--prime-gold);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Multi-select transaction tabs (checkboxes). Replaces the single
   sliding indicator with per-tab fills so multiple tabs can show
   active simultaneously (e.g. "Exclusive" + "For Lease" both on).
   ---------------------------------------------------------------- */
.prime-property-search__tabs--multi input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Hide the sliding indicator when in multi mode — individual labels
   own their backgrounds now. */
.prime-property-search__tabs--multi .prime-property-search__tab-indicator {
  display: none;
}
.prime-property-search__tabs--multi .prime-property-search__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
/* Visible checkbox affordance — empty square when unchecked, filled
   square with check glyph when checked. Makes the multi-select tabs
   read unambiguously as checkboxes rather than a static pill bar. */
.prime-property-search__tabs--multi .prime-property-search__tab::before {
  content: '';
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  background: transparent center/9px 9px no-repeat;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
/* Active states — fill the individual label */
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(1):checked + .prime-property-search__tab {
  background: var(--prime-gold);
  color: var(--prime-deep-ink);
}
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(2):checked + .prime-property-search__tab,
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(3):checked + .prime-property-search__tab {
  background: var(--prime-blue);
  color: var(--prime-warm-white);
}
/* When checked, paint the checkbox indicator with a check glyph in
   the tab's text color. SVG is inlined so no extra asset is needed. */
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(1):checked + .prime-property-search__tab::before {
  background-color: var(--prime-deep-ink);
  border-color: var(--prime-deep-ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><polyline points='2 7 5 10 10 3' fill='none' stroke='%23C9AB4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(2):checked + .prime-property-search__tab::before,
.prime-property-search__tabs--multi input[type="checkbox"]:nth-of-type(3):checked + .prime-property-search__tab::before {
  background-color: var(--prime-warm-white);
  border-color: var(--prime-warm-white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><polyline points='2 7 5 10 10 3' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.prime-property-search__tabs--multi input[type="checkbox"]:focus-visible + .prime-property-search__tab {
  outline: 2px solid var(--prime-gold);
  outline-offset: 2px;
}

.prime-property-search__fields {
  display: grid;
  /* 4 equal field columns (Type, Location, City/Town, Floor Area);
     submit + reset drop to their own row via grid-column:1/-1 below. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  margin-bottom: 0;
}

.prime-property-search__fields .prime-property-search__submit-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.prime-property-search__fields .prime-property-search__submit {
  width: auto;
  min-width: 220px;
}
.prime-property-search__reset {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid rgba(255, 252, 251, 0.35);
  color: var(--prime-warm-white, #FFFCFB);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.prime-property-search__reset:hover {
  border-color: var(--prime-gold, #C9AB4C);
  color: var(--prime-gold, #C9AB4C);
}
/* Defeat Elementor kit-8's `a { color: #003366 }` cascade so the
   reset link stays visible on the dark search panel. */
body .prime-property-search__reset {
  color: var(--prime-warm-white, #FFFCFB) !important;
}
body .prime-property-search__reset:hover {
  color: var(--prime-gold, #C9AB4C) !important;
}
@media (max-width: 640px) {
  .prime-property-search__fields .prime-property-search__submit-wrap {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .prime-property-search__reset,
  .prime-property-search__fields .prime-property-search__submit {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

.prime-property-search__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.prime-property-search__field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--prime-warm-white);
}

.prime-property-search__field-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--prime-gold);
  flex: 0 0 14px;
}

.prime-property-search__field-icon svg {
  width: 100%;
  height: 100%;
}

.prime-property-search__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 14px 38px 14px 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--prime-warm-white);
  background-color: rgba(255, 252, 251, 0.06);
  border: 1px solid rgba(255, 252, 251, 0.15);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><polyline points='1 1 5 5 9 1' stroke='%23C9AB4C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  line-height: 1.2;
}

.prime-property-search__select:hover {
  border-color: var(--prime-gold);
}

.prime-property-search__select:focus {
  outline: none;
  border-color: var(--prime-warm-white);
  box-shadow: 0 0 0 3px rgba(201, 171, 76, 0.15);
}

/* Ensure native dropdown options are readable on OS-rendered menus */
.prime-property-search__select option {
  color: var(--prime-gray);
  background: var(--prime-warm-white);
}

/* --- Inline submit button (lives as 5th grid column) --- */
.prime-property-search__submit-wrap {
  display: flex;
  align-items: stretch;
}

.prime-property-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  background: var(--prime-gold);
  color: var(--prime-deep-ink);
  border: 1px solid var(--prime-gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  line-height: 1;
}

.prime-property-search__submit:hover {
  background: var(--prime-warm-white);
  border-color: var(--prime-warm-white);
  color: var(--prime-deep-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 252, 251, 0.15);
}

.prime-property-search__submit-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.prime-property-search__submit-icon svg {
  width: 100%;
  height: 100%;
}

.prime-property-search__arrow {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

/* --- Helper row (advisor link, subtle, below search fields) --- */
.prime-property-search__helper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 252, 251, 0.1);
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 252, 251, 0.5);
}

.prime-property-search__helper-text {
  font-weight: 400;
}

.prime-property-search__helper-link,
.prime-property-search__helper-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--prime-gold) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
}

.prime-property-search__helper-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 26px;
  bottom: -3px;
  height: 1px;
  background: var(--prime-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.prime-property-search__helper-link:hover::after {
  transform: scaleX(1);
}

.prime-property-search__helper-link:hover .prime-property-search__arrow {
  transform: translateX(4px);
}

/* --- Trust Strip (below search card) --- */
.prime-property-search__trust {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 48px;
}

.prime-property-search__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27, 29, 30, 0.7);
}

.prime-property-search__trust-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--prime-gold);
  flex: 0 0 16px;
}

.prime-property-search__trust-icon svg {
  width: 100%;
  height: 100%;
}


/* ----------------------------------------------------------------
   Property Categories — 5 clickable premium cards (3 + 2 grid)
   ---------------------------------------------------------------- */
.prime-property-categories {
  background: var(--prime-warm-white);
  padding: var(--section-py) var(--section-px);
}

.prime-property-categories__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prime-property-categories .prime-section-header {
  margin-bottom: 60px;
}

.prime-property-categories__subheading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(27, 29, 30, 0.72);
  max-width: 720px;
  margin: 20px auto 0;
}

/* --- Bento grid: 1 featured (spans 2 rows) + 4 standard cards --- */
.prime-property-categories__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 24px;
}

.prime-property-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--prime-gray);
  border: 1px solid rgba(27, 29, 30, 0.1);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  isolation: isolate;
}

/* Featured card: left column, spans both rows */
.prime-property-category-card--featured {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 48px 44px 44px;
}

/* Standard cards: fill the remaining 2x2 positions */
.prime-property-category-card--standard {
  padding: 32px 28px 28px;
}

/* Background image — clean, no blend mode or filters that kill the image */
.prime-property-category-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 1.2s ease;
}

/* Strong dark gradient — ensures title zone is fully legible */
.prime-property-category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.15) 0%,
      rgba(12, 12, 14, 0.45) 30%,
      rgba(12, 12, 14, 0.82) 65%,
      rgba(12, 12, 14, 0.95) 100%
    );
  transition: background 0.45s ease;
}

.prime-property-category-card--featured .prime-property-category-card__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.2) 0%,
      rgba(12, 12, 14, 0.5) 35%,
      rgba(0, 30, 66, 0.85) 65%,
      rgba(0, 22, 50, 0.95) 100%
    );
}

/* Gold accent bar — slides in on hover */
.prime-property-category-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--prime-gold);
  z-index: 3;
  transition: width 0.6s ease;
}

.prime-property-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(12, 12, 14, 0.28);
}

.prime-property-category-card:hover::before {
  width: 100%;
}

.prime-property-category-card:hover .prime-property-category-card__media {
  transform: scale(1.06);
}

.prime-property-category-card:hover .prime-property-category-card__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.2) 0%,
      rgba(12, 12, 14, 0.6) 40%,
      rgba(0, 51, 102, 0.94) 100%
    );
}

/* Icon chip — top-right corner, glass-morphism style */
.prime-property-category-card__icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 251, 0.92);
  border: 1px solid rgba(201, 171, 76, 0.3);
  z-index: 2;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.prime-property-category-card--featured .prime-property-category-card__icon {
  width: 64px;
  height: 64px;
  top: 32px;
  right: 32px;
}

.prime-property-category-card__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.prime-property-category-card--featured .prime-property-category-card__icon svg {
  width: 38px;
  height: 38px;
}

.prime-property-category-card:hover .prime-property-category-card__icon {
  background: var(--prime-gold);
  border-color: var(--prime-gold);
  transform: rotate(-4deg);
}

/* Content block — sits over gradient */
.prime-property-category-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.prime-property-category-card__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--prime-gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 171, 76, 0.45);
  width: fit-content;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.prime-property-category-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.15;
  color: #FFFCFB !important;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.prime-property-category-card--featured .prime-property-category-card__title {
  font-size: 46px;
  line-height: 1.08;
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 3px 10px rgba(0, 0, 0, 0.5);
}

.prime-property-category-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 252, 251, 0.9) !important;
  margin: 0 0 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  /* clamp to 2 lines on standard cards */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prime-property-category-card--featured .prime-property-category-card__desc {
  font-size: 16px;
  line-height: 1.75;
  -webkit-line-clamp: unset;
  max-width: 460px;
  margin-bottom: 28px;
}

.prime-property-category-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--prime-gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.prime-property-category-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.prime-property-category-card:hover .prime-property-category-card__link svg {
  transform: translateX(5px);
}


/* ----------------------------------------------------------------
   Property Listings — Featured sample properties (3-col grid)
   ---------------------------------------------------------------- */
.prime-property-listings {
  background: #f6f5f3;
  padding: calc(var(--section-py) + 20px) var(--section-px) var(--section-py);
  margin-top: 60px;
}

.prime-property-listings__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prime-property-listings .prime-section-header {
  margin-bottom: 56px;
}

.prime-property-listings__subheading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(27, 29, 30, 0.72);
  max-width: 720px;
  margin: 20px auto 0;
}

.prime-property-listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.prime-property-listing-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 51, 102, 0.06);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 8px 24px rgba(16, 24, 40, 0.08);
  border-top: 3px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease;
  overflow: hidden;
}

.prime-property-listing-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(16, 24, 40, 0.06),
    0 24px 56px rgba(12, 12, 14, 0.18);
  border-top-color: var(--prime-gold);
}

.prime-property-listing-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--prime-warm-white);
  flex-shrink: 0;
  font-size: 0; /* nukes inline-element baseline whitespace under the img */
  line-height: 0;
}
.prime-property-listing-card__media img {
  min-height: 100%;
  vertical-align: bottom;
}

.prime-property-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.prime-property-listing-card:hover .prime-property-listing-card__media img {
  transform: scale(1.05);
}

.prime-property-listing-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 18px;
  color: var(--prime-warm-white);
  background: var(--prime-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 40px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1;
}

.prime-property-listing-card__badge--sale {
  background: var(--prime-gold);
  color: var(--prime-deep-ink);
}

/* Exclusive — premium dark treatment with gold border + star, distinct from For Sale */
.prime-property-listing-card__badge--exclusive {
  left: auto;
  right: 18px;
  background: rgba(12, 12, 14, 0.85);
  color: var(--prime-gold);
  border: 1px solid var(--prime-gold);
  padding: 10px 16px 10px 14px;
  gap: 7px;
}
.prime-property-listing-card__badge--exclusive::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--prime-gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.39 7.36H22l-6.18 4.49L18.21 21 12 16.5 5.79 21l2.39-7.15L2 9.36h7.61z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.39 7.36H22l-6.18 4.49L18.21 21 12 16.5 5.79 21l2.39-7.15L2 9.36h7.61z'/></svg>") center / contain no-repeat;
}

.prime-property-listing-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
  flex: 1 1 auto;
}

.prime-property-listing-card__type {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--prime-gold);
  margin-bottom: 12px;
}

.prime-property-listing-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 23px;
  line-height: 1.2;
  color: var(--prime-blue);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.prime-property-listing-card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(27, 29, 30, 0.72);
  margin: 0 0 20px;
}

.prime-property-listing-card__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--prime-blue);
  flex: 0 0 14px;
}

.prime-property-listing-card__icon svg {
  width: 100%;
  height: 100%;
}

.prime-property-listing-card__meta {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(27, 29, 30, 0.1);
  border-bottom: 1px solid rgba(27, 29, 30, 0.1);
  margin-bottom: 20px;
}

.prime-property-listing-card__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--prime-gray);
}

.prime-property-listing-card__meta-item:first-child {
  font-weight: 600;
  color: var(--prime-blue);
}

.prime-property-listing-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--prime-gold);
  margin-top: auto;
}

.prime-property-listing-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.prime-property-listing-card:hover .prime-property-listing-card__link svg {
  transform: translateX(5px);
}

.prime-property-listings__cta {
  text-align: center;
  margin-top: 56px;
}


/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .prime-property-listings__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .prime-property-search {
    padding: 36px 32px 32px;
  }

  .prime-property-search__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
  }

  .prime-property-search__tabs {
    width: 100%;
    display: flex;
  }

  .prime-property-search__tabs .prime-property-search__tab {
    flex: 1 1 50%;
    text-align: center;
  }

  .prime-property-search__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .prime-property-search__submit-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .prime-property-search__submit {
    width: 100%;
  }

  .prime-property-search__helper {
    margin-top: 20px;
    padding-top: 20px;
  }

  .prime-property-search__trust {
    gap: 20px 32px;
    margin-top: 24px;
  }

  /* Bento collapses: featured spans full-width on top row,
     4 standard cards form a 2x2 below. */
  .prime-property-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 20px;
  }

  .prime-property-category-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 340px;
    padding: 44px 40px 40px;
  }

  .prime-property-category-card--standard {
    grid-column: span 1;
    min-height: 260px;
  }

  .prime-property-category-card--featured .prime-property-category-card__title {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .prime-property-search {
    padding: 28px 22px 28px;
  }

  .prime-property-search__header {
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 22px;
  }

  .prime-property-search__tab {
    padding: 11px 18px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .prime-property-search__fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prime-property-search__submit-wrap {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .prime-property-search__submit {
    width: 100%;
    height: 54px;
  }

  .prime-property-search__helper {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    text-align: center;
  }

  .prime-property-search__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 0 10px;
  }

  .prime-property-categories {
    padding: var(--section-py) var(--section-px);
  }

  .prime-property-categories__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .prime-property-listings__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prime-property-listing-card__title {
    font-size: 22px;
  }

  .prime-property-category-card--featured,
  .prime-property-category-card--standard {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
    padding: 34px 26px 28px;
  }

  .prime-property-category-card--featured {
    min-height: 320px;
  }

  .prime-property-category-card__icon {
    width: 48px;
    height: 48px;
    top: 16px;
    right: 16px;
  }

  .prime-property-category-card--featured .prime-property-category-card__icon {
    width: 52px;
    height: 52px;
    top: 20px;
    right: 20px;
  }

  .prime-property-category-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .prime-property-category-card--featured .prime-property-category-card__icon svg {
    width: 30px;
    height: 30px;
  }

  .prime-property-category-card__title {
    font-size: 24px;
  }

  .prime-property-category-card--featured .prime-property-category-card__title {
    font-size: 30px;
  }

  .prime-property-category-card__desc {
    -webkit-line-clamp: 3;
  }
}


/* ----------------------------------------------------------------
   Exclusive Listings — Carousel showcase
   ---------------------------------------------------------------- */
.prime-exclusive-listings {
  background: var(--prime-warm-white);
  padding: clamp(32px, 5vw, 60px) var(--section-px) var(--section-py);
  position: relative;
  overflow: hidden;
}

.prime-exclusive-listings__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Section Header --- */
.prime-exclusive-listings__header {
  margin-bottom: 36px;
}

.prime-exclusive-listings__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--prime-gold);
  margin-bottom: 14px;
}

.prime-exclusive-listings__rule {
  width: 40px;
  height: 2px;
  background: var(--prime-gold);
  margin-bottom: 18px;
}

.prime-exclusive-listings__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 48px;
  line-height: 1.1;
  color: var(--prime-blue);
  margin: 0;
  letter-spacing: -0.01em;
}

/* --- Carousel Track --- */
.prime-exclusive-carousel {
  position: relative;
  overflow: hidden;
}

.prime-exclusive-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* --- Carousel Card --- */
.prime-exclusive-card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(27, 29, 30, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.prime-exclusive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(201, 171, 76, 0.4);
}

/* Gold accent bar — slides in on hover */
.prime-exclusive-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--prime-gold);
  transition: width 0.5s ease;
}

.prime-exclusive-card:hover::after {
  width: 100%;
}

/* Card Media */
.prime-exclusive-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.prime-exclusive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.prime-exclusive-card:hover .prime-exclusive-card__media img {
  transform: scale(1.05);
}

.prime-exclusive-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 15, 40, 0.15) 100%);
  pointer-events: none;
}

.prime-exclusive-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
}

.prime-exclusive-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prime-exclusive-card__badge--exclusive {
  background: var(--prime-gold);
  color: var(--prime-deep-ink);
}

.prime-exclusive-card__badge--exclusive svg {
  width: 10px;
  height: 10px;
}

.prime-exclusive-card__badge--trans {
  background: rgba(0, 0, 0, 0.55);
  color: var(--prime-warm-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card Body */
.prime-exclusive-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
  flex: 1 1 auto;
}

.prime-exclusive-card__type {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--prime-gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 171, 76, 0.3);
}

.prime-exclusive-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  color: var(--prime-blue);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.prime-exclusive-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(27, 29, 30, 0.6);
  margin: 0 0 18px;
}

.prime-exclusive-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.prime-exclusive-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--prime-gray);
}

.prime-exclusive-card__icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
  color: var(--prime-blue);
  flex: 0 0 13px;
}

.prime-exclusive-card__icon svg {
  width: 100%;
  height: 100%;
}

.prime-exclusive-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--prime-blue);
  margin-top: auto;
  transition: color 0.25s ease;
}

.prime-exclusive-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.prime-exclusive-card:hover .prime-exclusive-card__link {
  color: var(--prime-gold);
}

.prime-exclusive-card:hover .prime-exclusive-card__link svg {
  transform: translateX(5px);
}

/* --- Carousel Dots --- */
.prime-exclusive-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.prime-exclusive-carousel__dot {
  display: block;
  width: 8px;
  height: 8px;
  background: rgba(0, 51, 102, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.prime-exclusive-carousel__dot:hover {
  background: rgba(0, 51, 102, 0.35);
}

.prime-exclusive-carousel__dot.is-active {
  background: var(--prime-blue);
  transform: scale(1.3);
}

/* --- CTA --- */
.prime-exclusive-listings__cta {
  text-align: center;
  margin-top: 48px;
}

.prime-exclusive-listings__cta .prime-btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--prime-blue);
  color: var(--prime-blue);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.prime-exclusive-listings__cta .prime-btn--secondary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.prime-exclusive-listings__cta .prime-btn--secondary:hover {
  background: var(--prime-gold);
  color: var(--prime-deep-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 171, 76, 0.25);
}

.prime-exclusive-listings__cta .prime-btn--secondary:hover svg {
  transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .prime-exclusive-listings__heading {
    font-size: 40px;
  }

  .prime-exclusive-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .prime-exclusive-listings {
    padding: 48px var(--section-px);
  }

  .prime-exclusive-listings__heading {
    font-size: 32px;
  }

  .prime-exclusive-carousel__track {
    gap: 16px;
  }

  .prime-exclusive-card {
    flex: 0 0 85%;
  }

  .prime-exclusive-card__title {
    font-size: 22px;
  }

  .prime-exclusive-card__body {
    padding: 20px 20px 24px;
  }
}
