/* Property search — match CheckLondon marketing layout (white, #0052FF primary, soft shadows) */

.cl-page--property .cl-main {
  background: #f4f6f9;
}

.cl-property-page {
  --cl-prop-blue: #0052ff;
  --cl-prop-blue-hover: #0040cc;
  --cl-prop-surface: #ffffff;
  --cl-prop-text: #0f172a;
  --cl-prop-muted: #64748b;
  --cl-prop-border: #e8ecf1;
  --cl-prop-radius: 10px;
  --cl-prop-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.055);
  --cl-prop-shadow-hover: 0 12px 36px rgba(15, 23, 42, 0.09);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3.25rem;
}

@media (min-width: 992px) {
  .cl-property-page {
    padding-bottom: 2rem;
  }
}

.cl-property-page .btn-primary {
  background-color: var(--cl-prop-blue);
  border-color: var(--cl-prop-blue);
  font-weight: 600;
  border-radius: 8px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.875rem;
}

.cl-property-page .btn-primary:hover {
  background-color: var(--cl-prop-blue-hover);
  border-color: var(--cl-prop-blue-hover);
}

.cl-page--property .breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

/* Hero */
.cl-prop-hero__title {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cl-prop-text);
  margin-bottom: 0.25rem;
}

.cl-prop-hero__subtitle {
  font-size: 0.9375rem;
  max-width: 40rem;
  line-height: 1.45;
}

/* Search card — premium shell */
.cl-prop-search.card {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.07) !important;
}

.cl-prop-search .card-body {
  padding: 1rem 1.1rem;
}

@media (min-width: 768px) {
  .cl-prop-search .card-body {
    padding: 1.2rem 1.35rem 1.25rem;
  }
}

.cl-prop-search__primary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cl-prop-search__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1100px) {
  .cl-prop-search__fields {
    display: grid;
    grid-template-columns:
      minmax(min-content, auto) minmax(168px, 1.55fr) minmax(92px, 0.5fr) minmax(104px, 0.62fr) 5.75rem minmax(112px, 0.72fr) minmax(148px, 0.95fr);
    gap: 0.7rem 0.85rem;
    align-items: end;
  }

  .cl-prop-field--seg {
    grid-column: 1;
  }

  .cl-prop-field--grow {
    grid-column: 2;
    min-width: 0;
  }

  .cl-prop-field--postcode {
    grid-column: 3;
  }

  .cl-prop-field--budget {
    grid-column: 4;
  }

  .cl-prop-field--narrow {
    grid-column: 5;
  }

  .cl-prop-field--type {
    grid-column: 6;
  }

  .cl-prop-field--cta {
    grid-column: 7;
  }
}

.cl-prop-search__mini-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.cl-prop-field__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 0.28rem;
}

.cl-prop-field__label--spacer {
  visibility: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.cl-prop-field .form-control,
.cl-prop-field .form-select,
.cl-prop-field .cl-prop-input {
  border-radius: 10px;
  border-color: #e2e8f0;
  font-size: 0.875rem;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  background-color: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cl-prop-field .form-control:hover,
.cl-prop-field .form-select:hover,
.cl-prop-field .cl-prop-input:hover {
  border-color: #cbd5e1;
}

.cl-prop-field .form-control:focus,
.cl-prop-field .form-select:focus,
.cl-prop-field .cl-prop-input:focus {
  border-color: rgba(0, 82, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
  outline: 0;
}

.cl-prop-field--grow {
  flex: 1 1 188px;
  min-width: 168px;
}

.cl-prop-field--postcode {
  flex: 0 1 112px;
  min-width: 96px;
}

.cl-prop-field--budget {
  flex: 1 1 120px;
  min-width: 108px;
  max-width: 168px;
}

.cl-prop-field--narrow {
  flex: 0 0 5.75rem;
  min-width: 5.25rem;
}

.cl-prop-field--type {
  flex: 1 1 128px;
  min-width: 112px;
}

.cl-prop-field--cta {
  flex: 1 1 148px;
  min-width: 132px;
}

@media (min-width: 992px) {
  .cl-prop-field--cta {
    flex: 0 0 auto;
    min-width: 152px;
  }
}

.cl-prop-search__submit {
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.22);
}

.cl-prop-search__submit:hover {
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.28);
  transform: translateY(-1px);
}

.cl-prop-search__submit:active {
  transform: translateY(0);
}

/* Buy / rent segment */
.cl-prop-offer-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf1 100%);
  border: 1px solid #dce3ed;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  min-height: 42px;
}

.cl-prop-offer-seg__btn {
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.85rem;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.cl-prop-offer-seg__btn.is-active {
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.cl-prop-offer-seg__btn.is-active:last-of-type,
.cl-prop-offer-seg__btn.is-active:nth-of-type(2) {
  color: var(--cl-prop-blue);
}

.cl-prop-offer-seg__btn:hover:not(.is-active) {
  color: #0f172a;
}

.cl-prop-offer-seg__btn:focus-visible {
  outline: 2px solid rgba(0, 82, 255, 0.45);
  outline-offset: 2px;
}

/* Location row */
.cl-prop-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 0.6rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  min-height: 42px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cl-prop-location:focus-within {
  border-color: rgba(0, 82, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.cl-prop-location__icon {
  color: var(--cl-prop-blue);
  flex-shrink: 0;
  display: flex;
  opacity: 0.92;
}

.cl-prop-location__select {
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

/* Popular — full-width strip under main fields (no cramped side column) */
.cl-prop-popular--lux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0 0.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.cl-prop-popular__label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
}

.cl-prop-popular__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.cl-prop-popular__list li {
  margin: 0;
}

.cl-prop-popular__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  line-height: 1.25;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.cl-prop-popular__link:hover {
  border-color: rgba(0, 82, 255, 0.4);
  color: var(--cl-prop-blue);
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.1);
}

@media (max-width: 575.98px) {
  .cl-prop-popular--lux {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cl-prop-popular__list {
    flex-direction: column;
    align-items: stretch;
  }

  .cl-prop-popular__link {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Keywords — secondary search */
.cl-prop-search__keywords {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cl-prop-search__keywords-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.cl-prop-search__keywords-label-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

.cl-prop-search__keywords-optional {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.cl-prop-search__keywords-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 0.65rem;
  background: #fff;
  min-height: 44px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cl-prop-search__keywords-input-wrap:focus-within {
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.08);
}

.cl-prop-search__keywords-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--cl-prop-blue);
  opacity: 0.85;
}

.cl-prop-search__keywords-input {
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 42px;
  font-size: 0.875rem;
  background: transparent !important;
}

.cl-prop-search__keywords-input:focus {
  box-shadow: none !important;
}

/* Toolbar (chips + count + sort) */
.cl-property-toolbar.card {
  border-radius: var(--cl-prop-radius) !important;
  border: 1px solid var(--cl-prop-border) !important;
  background: #eef1f6 !important;
  box-shadow: none !important;
}

.cl-property-toolbar__inner {
  padding: 0.55rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cl-property-toolbar__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.cl-property-toolbar__chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.cl-property-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cl-property-toolbar__count {
  font-size: 0.875rem;
  color: var(--cl-prop-text);
}

.cl-property-toolbar__count strong {
  font-weight: 800;
}

.cl-property-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cl-property-toolbar__sort-label {
  font-size: 0.8rem;
  color: var(--cl-prop-muted);
  white-space: nowrap;
}

.cl-property-toolbar__sort .form-select {
  border-radius: 8px;
  min-width: 10rem;
  font-size: 0.8125rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

/* Bootstrap d-lg-inline-flex uses !important; keep [hidden] respected for "Show advanced filters". */
button[data-cl-advanced-filters-show-sidebar][hidden] {
  display: none !important;
}

/* First paint when localStorage hides sidebar (set by inline script on <html> before CSS load). */
@media (min-width: 992px) {
  html.cl-prop-sidebar-ls-hidden .cl-property-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.cl-prop-sidebar-ls-hidden .cl-property-sidebar {
    display: none !important;
  }

  html.cl-prop-sidebar-ls-hidden button[data-cl-advanced-filters-show-sidebar][hidden] {
    display: inline-flex !important;
  }
}

/* Chips */
.cl-property-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cl-prop-surface);
  color: var(--cl-prop-text);
  border: 1px solid #d8dee9;
  text-decoration: none;
}

.cl-property-chip:hover {
  border-color: var(--cl-prop-blue);
  color: var(--cl-prop-blue);
}

.cl-property-chip__x {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.45;
}

.cl-property-chip--clear {
  background: transparent;
  border-color: transparent;
  color: var(--cl-prop-blue);
  text-decoration: underline;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.cl-property-chip--clear:hover {
  border-color: transparent;
}

/* Save search banner */
.cl-save-search-banner {
  border-radius: var(--cl-prop-radius) !important;
  background: linear-gradient(90deg, #e8f1ff 0%, #f0f6ff 100%) !important;
  border: 1px solid #cfe0ff !important;
  box-shadow: var(--cl-prop-shadow) !important;
}

.cl-save-search-banner__bell {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-prop-blue);
  border: 1px solid rgba(0, 82, 255, 0.15);
}

/* Compare bar */
.cl-property-compare-bar {
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cl-prop-border);
  margin-bottom: 0.5rem;
}

.cl-property-compare-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
}

/* Sidebar histogram */
.cl-prop-hist {
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--cl-prop-border);
  padding: 0.25rem 0.4rem 0;
  overflow: hidden;
}

.cl-prop-hist__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 3px;
}

.cl-prop-hist__bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.45), rgba(0, 82, 255, 0.85));
  min-height: 12%;
}

.cl-prop-bath-radios .form-check {
  margin-bottom: 0.15rem;
}

.cl-prop-reset-filters {
  color: var(--cl-prop-muted);
  font-weight: 600;
}

.cl-prop-reset-filters:hover {
  color: var(--cl-prop-blue);
}

/* Property cards — horizontal */
.cl-property-card {
  border-radius: var(--cl-prop-radius) !important;
  border: 1px solid var(--cl-prop-border) !important;
  overflow: hidden;
  background: var(--cl-prop-surface);
  box-shadow: var(--cl-prop-shadow) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cl-property-card:hover {
  box-shadow: var(--cl-prop-shadow-hover) !important;
  border-color: #d0d7e2 !important;
}

/* Allow horizontal overflow scroll inside flex columns (mobile gallery). */
.cl-property-card > .row > [class*="col-"] {
  min-width: 0;
}

.cl-property-card__media-col {
  min-height: 168px;
}

@media (min-width: 768px) {
  .cl-property-card__media-col {
    min-height: 100%;
  }
}

.cl-property-card__media {
  position: relative;
  height: 100%;
  min-height: 168px;
  min-width: 0;
  background: #e8ecf1;
  overflow: hidden;
  border-radius: var(--cl-prop-radius) var(--cl-prop-radius) 0 0;
}

@media (min-width: 768px) {
  .cl-property-card__media {
    border-radius: var(--cl-prop-radius) 0 0 var(--cl-prop-radius);
  }
}

@media (max-width: 767.98px) {
  .cl-property-card__media {
    min-height: 200px;
  }
}

.cl-property-card__gallery {
  position: relative;
  height: 100%;
  min-height: 168px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cl-property-card__gallery-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 168px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.cl-property-card__gallery-track:focus {
  outline: 2px solid rgba(0, 82, 255, 0.45);
  outline-offset: 2px;
}

.cl-property-card__gallery-track::-webkit-scrollbar {
  height: 5px;
}

.cl-property-card__gallery-track::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 4px;
}

.cl-property-card__gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 168px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

.cl-property-card__gallery-slide-link {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
}

.cl-property-card__gallery-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 3;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0.2rem 0.38rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cl-property-card__gallery-img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  display: block;
  touch-action: manipulation;
}

.cl-property-card__gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
  z-index: 4;
  padding: 0.2rem 0.45rem;
  pointer-events: none;
}

.cl-property-card__gallery-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: -0.15rem -0.35rem;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), transparent);
  z-index: -1;
  pointer-events: none;
}

.cl-property-card__gallery-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cl-property-card__gallery-dot.is-active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(0, 82, 255, 0.55);
}

.cl-property-card__img--placeholder {
  object-fit: contain;
  padding: 1rem;
  opacity: 0.55;
}

@media (max-width: 767.98px) {
  .cl-property-card__gallery-track,
  .cl-property-card__gallery-slide,
  .cl-property-card__gallery-img {
    min-height: 200px;
  }
}

.cl-property-card__body {
  padding: 0.75rem 0.9rem 0.85rem !important;
}

.cl-property-card__body .mb-2 {
  margin-bottom: 0.35rem !important;
}

.cl-property-card__actions {
  margin-top: 0.5rem !important;
  gap: 0.4rem !important;
}

.cl-property-card .cl-result-fav-btn,
.cl-property-card .cl-result-fav-link {
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
}

.cl-property-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.cl-property-card__badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
}

.cl-property-card__badge--featured {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.cl-property-card__badge--new {
  background: var(--cl-prop-blue);
  color: #fff;
}

.cl-property-card__badge--reduced {
  background: #059669;
  color: #fff;
}

.cl-property-card__badge--avail {
  background: #334155;
  color: #fff;
}

.cl-property-card__price {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cl-prop-text);
  line-height: 1.12;
}

.cl-property-card__price-period {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cl-prop-muted);
}

.cl-property-card__summary {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cl-prop-text);
}

.cl-property-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.cl-property-card__title a {
  color: var(--cl-prop-text);
  text-decoration: none;
}

.cl-property-card__title a:hover {
  color: var(--cl-prop-blue);
}

.cl-property-card__loc .cl-result-location {
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: var(--cl-prop-muted);
}

.cl-property-card__tube {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cl-prop-text);
  font-weight: 500;
}

.cl-property-card__tube-icon {
  flex-shrink: 0;
  color: var(--cl-prop-blue);
}

.cl-property-card__meta {
  font-size: 0.75rem;
}

.cl-property-card__pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.cl-property-card__pill--muted {
  background: #f1f5f9;
  color: var(--cl-prop-muted);
}

.cl-property-card__pill--accent {
  background: rgba(0, 82, 255, 0.1);
  color: var(--cl-prop-blue);
}

.cl-property-card__btn-primary {
  border-radius: 8px;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.cl-property-card__btn-map {
  border-radius: 8px;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.cl-property-card__map-icon {
  flex-shrink: 0;
  color: var(--cl-prop-blue, #0052ff);
}

.cl-property-card__heart {
  margin-right: 0.15rem;
}

.cl-result-card.cl-browse-card--active,
.cl-result-card.cl-browse-card--hover {
  outline: 2px solid rgba(0, 82, 255, 0.45);
  outline-offset: 2px;
}

/* Layout (sidebar + map) */
.cl-property-layout {
  display: block;
  position: relative;
}

/* Advanced filters: scroll zona din mijloc (header + footer rămân vizibile) */
.cl-property-sidebar.card > .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cl-property-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.25rem;
}

.cl-property-sidebar.card > .card-body > :first-child,
.cl-property-sidebar.card > .card-body > :last-child {
  flex-shrink: 0;
}

.cl-property-sidebar__scroll > .mb-3 {
  margin-bottom: 0.55rem !important;
}

.cl-property-sidebar .form-label.small {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.cl-property-sidebar .form-text.small,
.cl-property-sidebar .form-text {
  font-size: 0.6875rem;
  line-height: 1.35;
  margin-top: 0.2rem !important;
}

.cl-property-sidebar .form-check-label.small {
  font-size: 0.75rem;
}

.cl-property-page .cl-map-browse__card-grid {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.65rem;
}

.cl-property-card__body .mt-auto.pt-2 {
  padding-top: 0.3rem !important;
}

@media (min-width: 992px) {
  .cl-property-layout {
    display: grid;
    /* Coloană filtre mai lată = Advanced filters mai ușor de citit (fără height fix pe tot viewport-ul) */
    grid-template-columns: minmax(248px, 28%) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .cl-property-layout--hide-sidebar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cl-property-layout--hide-sidebar .cl-property-sidebar {
    display: none !important;
  }

  .cl-property-sidebar {
    position: sticky;
    /* Sub bara sticky + safe area; nu folosi z-index mare — altfel acoperă header-ul */
    top: calc(env(safe-area-inset-top, 0px) + var(--cl-header-h, 76px) + 0.12rem);
    /* Advanced filters mai înalt: reducem marginile sus/jos față de viewport. */
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--cl-header-h, 76px) - 0.12rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--cl-prop-radius) !important;
    border: 1px solid var(--cl-prop-border) !important;
    box-shadow: var(--cl-prop-shadow) !important;
  }

  .cl-property-map-root__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
    gap: 1rem;
    align-items: stretch;
  }

  .cl-property-map-col {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--cl-header-h, 76px) + 0.12rem);
    display: flex;
    flex-direction: column;
    /* Hartă mai înaltă: creștem înălțimea minimă și micșorăm spațiul rezervat. */
    height: clamp(660px, calc(100dvh - env(safe-area-inset-top, 0px) - var(--cl-header-h, 76px) - 0.35rem), 1040px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--cl-header-h, 76px) - 0.12rem);
  }

  .cl-property-map-stage {
    margin-bottom: 0 !important;
    border-radius: var(--cl-prop-radius) !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .cl-property-map-stage .cl-map-browse__eyebrow {
    flex: 0 0 auto;
  }

  .cl-property-map-root.cl-map-browse--property .cl-map-browse__map-shell--property {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .cl-property-map-root.cl-map-browse--property .cl-map-browse__map-canvas {
    flex: 1 1 auto;
    position: relative;
    min-height: 0;
  }

  .cl-property-map-root.cl-map-browse--property .cl-map-browse__map {
    width: 100%;
    min-height: 0;
    height: 100% !important;
    max-height: none !important;
    flex: 1 1 auto;
  }

  .cl-map-browse__hint {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .cl-property-map-root__inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 44%);
  }
}

.cl-property-mobile-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.cl-property-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1025;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--cl-prop-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 992px) {
  .cl-property-mobile-cta {
    display: none !important;
  }
}

/* Desktop: sub header (header z-index 200) ca sticky filters să nu acopere meniul */
.cl-property-sidebar {
  z-index: 25;
}

@media (max-width: 1199.98px) {
  .cl-property-sidebar {
    z-index: 1040;
    position: fixed;
    inset: 0;
    max-width: min(26rem, 94vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    border-radius: 0 1rem 1rem 0 !important;
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .cl-property-layout.is-filter-open .cl-property-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
  }

  .cl-property-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1028;
    background: rgba(15, 23, 42, 0.35);
    display: none;
  }

  .cl-property-drawer-backdrop.is-visible {
    display: block;
  }

  .cl-property-map-root.is-map-mode .cl-property-main-col {
    display: none;
  }

  .cl-property-map-root:not(.is-map-mode) .cl-property-map-col {
    display: none;
  }

  .cl-property-map-root.is-map-mode .cl-property-map-col {
    display: block;
  }

  /* Hartă mai înaltă pe mobil când e mod „hartă” */
  .cl-property-map-root.is-map-mode .cl-map-browse__map,
  .cl-property-map-root.is-map-mode .cl-map-browse__map-canvas {
    min-height: min(72dvh, 640px) !important;
    max-height: none !important;
  }

  .cl-property-map-root.is-map-mode .cl-map-browse__map-shell--property {
    min-height: min(76dvh, 680px);
  }
}

/* Map chrome */
.cl-property-page .cl-map-browse__map-stage {
  border: 1px solid var(--cl-prop-border);
  box-shadow: var(--cl-prop-shadow);
}

.cl-property-map-stage .cl-map-browse__eyebrow {
  font-size: 0.65rem !important;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem !important;
}

.cl-map-browse__search-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cl-map-auto-search {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cl-prop-text);
}

.cl-property-results-list.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Pagination */
.cl-property-pagination .pagination {
  gap: 0.25rem;
}

.cl-property-pagination .page-link {
  border-radius: 8px !important;
  border: 1px solid var(--cl-prop-border);
  color: var(--cl-prop-text);
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.3rem 0.45rem;
}

.cl-property-pagination .page-item.active .page-link {
  background: var(--cl-prop-blue);
  border-color: var(--cl-prop-blue);
  color: #fff;
}

.cl-property-pagination__arrow {
  font-size: 1.1rem;
  line-height: 1.2;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.cl-property-pagination__ellipsis {
  border: 0 !important;
  background: transparent !important;
}

.cl-property-empty {
  border-radius: var(--cl-prop-radius) !important;
}

.cl-property-recently-viewed__list a {
  display: inline-block;
  margin-right: 0.75rem;
  font-weight: 600;
  color: var(--cl-prop-blue);
}

/* MapLibre card body override for horizontal cards */
.cl-map-browse .cl-property-card .card-body {
  padding: 0.75rem 0.9rem 0.85rem;
}
