.cc-search {
  margin: 2rem 0;
  padding: 0;
  background: transparent;
}

/* Root wrapper for theme variables (defaults are set as CSS fallbacks). */
.cc-root {
  font-family: var(--cc-font-family, inherit);
  background: #1a1a1a;
  color: #ffffff;
}

/* Utility: respect hidden attribute (used by modal/panels) */
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------------- */
/* Modern search bar (matches provided screenshots)                           */
/* ------------------------------------------------------------------------- */
.cc-searchbar {
  /* Full-bleed wrapper so the bar can be wider than the theme content width */
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.75rem;
  width: 100vw;
  padding: 0 1.75rem; /* match .cc-listings horizontal padding */
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cc-searchbar::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: min(1320px, calc(100vw - 3.5rem));
  background: var(--cc-searchbar-bg, rgba(17, 24, 39, 0.92));
  border: 1px solid var(--cc-searchbar-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.cc-searchbar__form {
  position: relative;
  width: min(1320px, calc(100vw - 3.5rem));
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  box-sizing: border-box;
}

.cc-searchbar__row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cc-searchbar__field {
  min-width: 180px;
  flex: 1 1 180px;
}

.cc-searchbar__field--actions {
  flex: 2 1 460px;
  min-width: 320px;
}

.cc-searchbar__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.cc-searchbar__label--sr {
  visibility: hidden;
}

.cc-searchbar__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.cc-searchbar__control,
.cc-searchbar select.cc-searchbar__control,
.cc-searchbar input.cc-searchbar__control,
.cc-more input,
.cc-more select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--cc-border, rgba(255, 255, 255, 0.16));
  font-size: 0.98rem;
  box-sizing: border-box;
  font-family: var(--cc-font-family, inherit);
  color: var(--cc-text, #ffffff);
  background: var(--cc-surface, rgba(255, 255, 255, 0.06));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cc-searchbar__control:focus,
.cc-more input:focus,
.cc-more select:focus {
  outline: none;
  border-color: var(--cc-primary, #4ECFEF);
  box-shadow: 0 0 0 3px rgba(78, 207, 239, 0.2);
  background: var(--cc-surface, rgba(255, 255, 255, 0.08));
}

.cc-searchbar__field--select select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.05rem), calc(100% - 14px) calc(1.05rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

/* Native <select> dropdown menu (Windows/Chrome/Edge): ensure options are readable.
   Without this, the <select> has white text, but the opened menu is white, making options appear "blank". */
.cc-searchbar__field--select select,
.cc-more select,
.cc-search__field select {
  color-scheme: dark;
}

.cc-searchbar__field--select select option,
.cc-searchbar__field--select select optgroup,
.cc-more select option,
.cc-more select optgroup,
.cc-search__field select option,
.cc-search__field select optgroup {
  background-color: rgba(17, 24, 39, 0.98);
  color: rgba(255, 255, 255, 0.92);
}

.cc-searchbar__field--select select option[value=''],
.cc-more select option[value=''],
.cc-search__field select option[value=''] {
  color: rgba(255, 255, 255, 0.65);
}

.cc-searchbar__field--select select option:checked,
.cc-more select option:checked,
.cc-search__field select option:checked {
  background-color: rgba(78, 207, 239, 0.22);
}

.cc-searchbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 0.9rem;
  align-items: center;
  justify-content: flex-start;
}

.cc-searchbar__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
}

.cc-searchbar__submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-searchbar__more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-searchbar__more:hover,
.cc-searchbar__more:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.cc-searchbar__reset {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  font-weight: 600;
  padding: 0.2rem 0.25rem;
}

.cc-searchbar__reset:hover,
.cc-searchbar__reset:focus {
  color: rgba(255, 255, 255, 1);
}

/* Display toggle */
.cc-searchbar__display {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-display-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cc-display-toggle:hover,
.cc-display-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.cc-display-toggle.is-active {
  background: rgba(78, 207, 239, 0.22);
  color: #ffffff;
}

/* City combobox dropdown */
.cc-combobox {
  position: relative;
}

.cc-combobox__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: auto;
  max-height: 240px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.cc-combobox__option {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.cc-combobox__option:hover,
.cc-combobox__option.is-active {
  background: rgba(78, 207, 239, 0.16);
}

/* Budget slider */
.cc-budget__min {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  white-space: nowrap;
}

.cc-budget__value {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  white-space: nowrap;
}

.cc-budget__slider {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.cc-budget__track {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cc-budget__track-fill {
  position: absolute;
  height: 100%;
  border-radius: 999px;
  background: var(--cc-primary, #4ECFEF);
  left: 0;
  width: 100%;
}

.cc-budget__range {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 36px;
}

.cc-budget__range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.cc-budget__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 4px solid var(--cc-primary, #4ECFEF);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-top: -6px;
}

.cc-budget__range::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.cc-budget__range::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 4px solid var(--cc-primary, #4ECFEF);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.cc-budget__range--min {
  z-index: 2;
}
.cc-budget__range--max {
  z-index: 3;
}

/* More filters modal/panel */
html.cc-modal-open,
html.cc-modal-open body {
  overflow: hidden;
}

.cc-more {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: auto;
}

.cc-more__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.cc-more__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 96vw);
  max-height: min(90vh, 860px);
  display: flex;
  flex-direction: column;
  z-index: 1;
  border-radius: 18px;
  background: var(--cc-panel, rgba(17, 24, 39, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.cc-more__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-more__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.cc-more__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cc-more__content {
  padding: 1rem 1.2rem 1.2rem;
  overflow: auto;
}

.cc-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.cc-more__hint {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.cc-more__checks,
.cc-more__subtypes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.cc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.cc-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--cc-primary, #4ECFEF);
}

.cc-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0;
}

.cc-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.cc-accordion__summary::-webkit-details-marker {
  display: none;
}

.cc-accordion__summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
}

.cc-accordion[open] .cc-accordion__summary::after {
  content: '—';
}

.cc-accordion__body {
  padding: 0.25rem 0 1rem;
}

.cc-more__footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.cc-more__reset {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  font-weight: 700;
}

.cc-more__secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.cc-more__primary {
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
}

@media (max-width: 780px) {
  .cc-searchbar {
    padding: 0 1rem;
  }

  .cc-searchbar::before {
    width: calc(100vw - 2rem);
    border-radius: 14px;
  }

  .cc-searchbar__form {
    width: calc(100vw - 2rem);
    padding: 1rem;
  }

  .cc-searchbar__field--actions {
    flex: 1 1 100%;
    min-width: 0;
  }

  .cc-more__panel {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .cc-more__grid,
  .cc-more__checks,
  .cc-more__subtypes {
    grid-template-columns: 1fr;
  }
}

/* List/Grid behavior */
.cc-root[data-cc-display='list'] .cc-listings {
  flex-direction: column;
  align-items: center;
}

.cc-root[data-cc-display='list'] .cc-listings .cc-card {
  flex: 0 1 auto;
  max-width: 1180px;
  width: min(1180px, 100%);
}

/* Density modifiers (card grid) */
.cc-root.cc-density--compact .cc-listings .cc-card {
  max-width: 420px;
}

.cc-root.cc-density--spacious .cc-listings .cc-card {
  max-width: 560px;
}

.cc-search__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.cc-search__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.cc-search__field input,
.cc-search__field select,
.cc-contact-form input,
.cc-contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--cc-border, rgba(255, 255, 255, 0.2));
  font-size: 0.95rem;
  box-sizing: border-box;
  font-family: var(--cc-font-family, inherit);
  color: var(--cc-text, #ffffff);
  background: var(--cc-surface, #2a2a2a);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-search__field input:focus,
.cc-search__field select:focus,
.cc-contact-form input:focus,
.cc-contact-form textarea:focus {
  outline: none;
  border-color: #4ECFEF;
  box-shadow: 0 0 0 3px rgba(78, 207, 239, 0.2);
}

.cc-search__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1rem), calc(100% - 13px) calc(1rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.cc-search__actions {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .cc-search__form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 1rem;
  }

  .cc-search__field {
    flex: 1 1 0;
  }

  .cc-search__actions {
    justify-content: flex-start;
  }

  .cc-search__actions .cc-button {
    white-space: nowrap;
  }
}

.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--cc-primary, #4ECFEF);
  color: #fff;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  font-family: var(--cc-font-family, inherit);
}

.cc-button:hover,
.cc-button:focus {
  background: var(--cc-primary-hover, #6EDEFF);
  box-shadow: 0 4px 10px rgba(78, 207, 239, 0.4);
}

.cc-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(78, 207, 239, 0.3);
}

.cc-results-meta {
  /* Full-bleed like listings section */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 0 1.75rem 1rem;
  box-sizing: border-box;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.cc-listings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  /* Make results section full-bleed across the viewport,
     even when the shortcode sits inside a centered content area. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 0 1.75rem 2rem;
  box-sizing: border-box;
  background: #1a1a1a;
}

.cc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* Full-bleed like listings section */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 0 1.75rem 2rem;
  box-sizing: border-box;
  background: #1a1a1a;
}

.cc-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-pagination__link:hover,
.cc-pagination__link:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.cc-pagination__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cc-pagination__status {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.cc-pagination__numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cc-pagination__page {
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 800;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-pagination__page:hover,
.cc-pagination__page:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.cc-pagination__page.is-current {
  background: rgba(78, 207, 239, 0.22);
  border-color: rgba(78, 207, 239, 0.45);
  color: #ffffff;
}

.cc-pagination__ellipsis {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
  padding: 0 0.15rem;
}

.cc-listings .cc-card {
  flex: 0 1 100%;
  max-width: 480px;
}

@media (min-width: 640px) {
  .cc-listings .cc-card {
    flex: 0 1 calc(50% - 1.5rem);
  }
}

@media (min-width: 900px) {
  .cc-listings .cc-card {
    flex: 0 1 calc(33.333% - 1.5rem);
  }
}

@media (min-width: 1200px) {
  .cc-listings .cc-card {
    flex: 0 1 calc(25% - 1.5rem);
  }
}

.cc-listings__empty {
  margin: 0;
  color: #b0b0b0;
}

.cc-card {
  background: var(--cc-surface, #2a2a2a);
  border-radius: var(--cc-radius, 8px);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  color: var(--cc-text, #ffffff);
  font-family: var(--cc-font-family, inherit);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.cc-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cc-card__media {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.cc-card__image-link {
  display: block;
  position: relative;
  padding-bottom: 72%;
  overflow: hidden;
}

.cc-card__image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.cc-card:hover .cc-card__image-link::after {
  opacity: 1;
}

.cc-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Mobile: show the full thumbnail image (no crop) on listing cards. */
@media (max-width: 900px) {
  .cc-card__image-link {
    background: #020617;
  }

  .cc-card__image {
    object-fit: contain;
  }
}

.cc-card__image-link:hover .cc-card__image {
  transform: scale(1.03);
}

.cc-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
  align-items: stretch;
}

.cc-card__price {
  display: inline-block;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
}

.cc-card__price-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  background: #4ECFEF;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
  pointer-events: none;
}

.cc-card__new-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: #4ECFEF;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
  pointer-events: none;
}

.cc-card__price-row {
  margin-bottom: 0.15rem;
}

.cc-card__address {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.cc-card__address-line {
  font-weight: 600;
}

.cc-card__address-city {
  font-size: 0.86rem;
  color: #b0b0b0;
}

.cc-card__stats {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: #b0b0b0;
  gap: 1rem;
  width: 100%;
}

.cc-card__stats-left {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.cc-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cc-card__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  color: #b0b0b0;
}

.cc-card__photo-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: none;
  background: rgba(78, 207, 239, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.65rem;
  pointer-events: auto;
}

.cc-card__photo-count:hover,
.cc-card__photo-count:focus {
  background: rgba(110, 222, 255, 1);
}

.cc-card__media-actions {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
  pointer-events: auto;
}

.cc-card__video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: rgba(78, 207, 239, 0.9);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.cc-card__video:hover,
.cc-card__video:focus {
  background: rgba(110, 222, 255, 1);
}

.cc-card__video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
}

.cc-card__video-icon i {
  font-size: 0.8rem;
}

.cc-card__virtual-tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: none;
  background: rgba(78, 207, 239, 0.9);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.cc-card__virtual-tour-button:hover,
.cc-card__virtual-tour-button:focus {
  background: rgba(110, 222, 255, 1);
}

.cc-card__photo-count-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

.cc-card__photo-count-icon i {
  font-size: 0.8rem;
}

.cc-card__view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-left: auto;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.2s ease;
  z-index: 3;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-card__view-button:hover,
.cc-card__view-button:focus {
  background: #4ECFEF;
  color: #ffffff;
  border-color: #4ECFEF;
  box-shadow: 0 4px 12px rgba(78, 207, 239, 0.4);
  transform: translateY(-1px);
}

.cc-card__view-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(78, 207, 239, 0.3);
}

.cc-error {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.5);
  font-size: 0.95rem;
}

.pgl-listings-single .cc-single {
  /* Full-bleed like the listings/search layout, so the single page feels less "compacted". */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Avoid 100vw here to prevent horizontal scrolling on browsers where 100vw includes the scrollbar width. */
  width: auto;
  margin-top: calc(2.5rem + var(--pgl-header-offset, 0px));
  margin-bottom: 0;
  padding: 0 1.75rem 2.5rem;
  max-width: none;
  display: grid;
  gap: 1.75rem;
  background: #1a1a1a;
  color: #ffffff;
}

/* Ensure the site header stays above the hero overlay on listing pages (theme z-index varies). */
/* Note: must be a BODY-level class so we can actually target the theme header outside our #primary wrapper. */
.pgl-listings-single-page #wpadminbar {
  z-index: 2147483001 !important;
}

.pgl-listings-single-page header#masthead,
.pgl-listings-single-page #masthead,
.pgl-listings-single-page #main-header, /* Divi */
.pgl-listings-single-page #top-header, /* Divi top bar */
.pgl-listings-single-page .et-l--header, /* Divi Theme Builder */
.pgl-listings-single-page .et_pb_sticky, /* Divi sticky wrappers */
.pgl-listings-single-page .et_pb_sticky--top,
.pgl-listings-single-page .et-fixed-header,
.pgl-listings-single-page .et_fixed_nav #main-header,
.pgl-listings-single-page .et_fixed_nav #top-header, /* Divi fixed nav top bar */
.pgl-listings-single-page #page-container #main-header, /* Divi (some builds scope header under page container) */
.pgl-listings-single-page #page-container #top-header,
.pgl-listings-single-page #page-container .et-l--header,
.pgl-listings-single-page #page-container .et_pb_sticky,
.pgl-listings-single-page #page-container .et_pb_sticky--top,
.pgl-listings-single-page header.site-header,
.pgl-listings-single-page .site-header,
.pgl-listings-single-page header[role='banner'] {
  z-index: 2147483000 !important;
}

/* Keep the hero meta visible above the image, but below the header. */
.pgl-listings-single .cc-single__gallery-main-trigger {
  position: relative;
  z-index: 1;
}
.pgl-listings-single .cc-single__hero-meta {
  z-index: 2;
}

/* Never allow horizontal scrolling on the single listing page (any viewport size). */
.pgl-listings-single {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  .pgl-listings-single {
    overflow-x: clip;
  }
}

.cc-single__title {
  margin: 0;
  font-size: 1.9rem;
  color: #ffffff;
}

/* Mobile-only: add extra space above the address/title so it doesn't sit under a fixed theme header. */
@media (max-width: 900px) {
  .pgl-listings-single .cc-single__title {
    margin-top: 96px;
  }
}

.cc-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #b0b0b0;
}

.cc-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.cc-single__print {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
}

.cc-single__print i {
  font-size: 1rem;
}

.cc-single__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4ECFEF;
}

.cc-single__media {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 0.75rem;
  align-items: stretch;
}

.cc-single__gallery-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  background: #020617;
}

.cc-single__media-actions-desktop {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 4;
  pointer-events: auto;
}

.cc-single__media-actions-mobile {
  display: none;
  margin-top: 0.75rem;
  gap: 0.6rem;
}

.cc-single__media-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: rgba(78, 207, 239, 0.9);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.cc-single__media-button--tour,
.cc-single__media-button--gallery {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.95);
}

.cc-single__media-button:hover,
.cc-single__media-button:focus-visible {
  background: rgba(110, 222, 255, 1);
}

.cc-single__media-button--tour:hover,
.cc-single__media-button--tour:focus-visible,
.cc-single__media-button--gallery:hover,
.cc-single__media-button--gallery:focus-visible {
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.75);
}

.cc-single__media-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.cc-single__media-button--tour:focus-visible,
.cc-single__media-button--gallery:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(0, 0, 0, 0.4);
}

.cc-single__media-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

.cc-single__media-button-icon i {
  font-size: 0.95rem;
}

.cc-single__media-button-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.cc-single__hero-meta {
  display: none;
}

.cc-single__gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  align-content: start;
  max-height: 520px;
  overflow: hidden;
  padding-right: 0;
}

.cc-single__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  position: relative;
}

.cc-single__thumb-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.cc-single__thumb-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.cc-single__thumb-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.cc-single__thumb-trigger:hover::after {
  opacity: 1;
}

.cc-single__thumb-overlay-button {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 1.4rem);
  padding: 0.42rem 0.85rem;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.95);

  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;

  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.08s ease, filter 0.18s ease;
}

.cc-single__thumb-overlay-button:hover,
.cc-single__thumb-overlay-button:focus-visible {
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.75);
  filter: brightness(1.02);
}

.cc-single__thumb-overlay-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.cc-single__thumb-overlay-button:active {
  transform: translateX(-50%) translateY(1px);
}

.cc-single__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.cc-single__thumb--view-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    rgba(0, 0, 0, 0.00) 100%
  );
  pointer-events: none;
}

.cc-single__thumb-overlay {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(78, 207, 239, 0.92);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cc-single__gallery-main-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cc-single__gallery-main-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.cc-single__gallery-main-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.cc-single__gallery-main-trigger:hover::after {
  opacity: 1;
}

.cc-single__image-main {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (min-width: 900px) {
  /* Desktop-only: ensure the hero/gallery clears any fixed/sticky theme header. */
  .pgl-listings-single .cc-single {
    margin-top: calc(4.75rem + var(--pgl-header-offset, 0px));
  }

  /* Desktop-only: add a little extra breathing room below a fixed/sticky theme header.
     Mobile spacing is handled separately (and should remain unchanged). */
  .pgl-listings-single .cc-single__media {
    margin-top: 56px;
  }

  /* Make the hero image feel taller on desktop (less wide/rectangular). */
  .cc-single__gallery-main {
    height: min(720px, 70vh);
  }

  /* Match the thumbs column height to the main image and split it evenly into 3. */
  .cc-single__gallery-thumbs {
    height: min(720px, 70vh);
    max-height: none;
    align-content: stretch;
  }

  .cc-single__thumb {
    height: 100%;
  }

  .cc-single__gallery-main-trigger {
    height: 100%;
  }

  .cc-single__image-main {
    max-height: none;
  }

  /* Desktop-only overlay meta panel (top-left). */
  .cc-single__title,
  .cc-single__meta {
    display: none;
  }

  .cc-single__hero-meta {
    display: block;
    position: absolute;
    top: 1rem;
    left: 1rem;
    max-width: min(520px, calc(100% - 2rem));
    padding: 0.9rem 1rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.18) 100%
    );
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
    pointer-events: none; /* keep the image click-to-open behavior */
    z-index: 2;
  }

  .cc-single__hero-address {
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.2;
    color: #ffffff;
  }

  .cc-single__hero-price {
    margin-top: 0.4rem;
    font-size: 1.2rem;
    font-weight: 950;
    color: rgba(78, 207, 239, 0.98);
  }

  .cc-single__hero-sub {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 750;
    font-size: 0.95rem;
  }

  .cc-single__hero-city {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
  }

  .cc-single__hero-stat {
    position: relative;
    padding-left: 0.75rem;
  }

  .cc-single__hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%);
  }
}

.cc-single__description {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #ffffff;
}

.cc-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cc-lightbox.is-open {
  display: block;
}

.cc-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.cc-lightbox__dialog {
  position: relative;
  width: min(1120px, 96vw);
  height: min(90vh, 820px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.cc-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

/* Lightbox carousel track (smooth drag + snap). */
.cc-lightbox__track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x;
  scrollbar-width: none; /* Firefox */
}

.cc-lightbox__track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cc-lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-lightbox__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: transparent !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  filter: none !important;
}

/* Mobile: show the full photo in the lightbox (no cropping). */
@media (max-width: 900px) {
  .cc-lightbox__dialog {
    /* True full-screen on mobile so the image + controls have room. */
    width: 100vw;
    height: 100vh;
    top: 0;
    transform: none;
    margin: 0;
    /* Mobile: image-only carousel (no arrows). */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 0;
    align-content: center;
    /* Keep content/close button below any fixed/sticky theme header on mobile. */
    padding: calc(max(12px, env(safe-area-inset-top)) + var(--pgl-header-offset, 0px)) 12px
      max(12px, env(safe-area-inset-bottom)) 12px;
    box-sizing: border-box;
  }

  .cc-lightbox__inner {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    /* Let the carousel row size to the visible image height (keeps nav directly under image). */
    height: auto;
  }

  .cc-lightbox__track {
    height: auto;
  }

  .cc-lightbox__slide {
    height: auto;
  }

  .cc-lightbox__image {
    object-fit: contain;
    /* Give the image more usable space on small screens. */
    border-radius: 12px;
    box-shadow: none;
    height: auto;
    /* Cap the image height so there's still room for the nav buttons + close. */
    max-height: min(70vh, calc(100vh - 210px));
  }

  /* Mobile: no arrows (scroll/drag through the gallery instead). */
  .cc-lightbox__nav {
    display: none !important;
  }

  .cc-lightbox__close {
    /* Move the close button below the theme header (when present). */
    top: calc(max(10px, env(safe-area-inset-top)) + var(--pgl-header-offset, 0px));
    right: 12px;
  }
}

.cc-lightbox__close {
  position: absolute;
  top: 0.9rem;
  right: 1.4rem;
  background: transparent;
  border: 0;
  color: #e5e7eb;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  z-index: 3;
}

.cc-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(78, 207, 239, 0.9);
  border: 0;
  color: #ffffff;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 3;
  transition: background 0.2s ease;
}

.cc-lightbox__nav:hover,
.cc-lightbox__nav:focus {
  background: rgba(110, 222, 255, 1);
}

.cc-lightbox__nav--prev {
  left: 1.2rem;
}

.cc-lightbox__nav--next {
  right: 1.2rem;
}

.cc-tourbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cc-tourbox.is-open {
  display: block;
}

.cc-tourbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.cc-tourbox__dialog {
  position: relative;
  width: min(1120px, 96vw);
  height: min(90vh, 820px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.cc-tourbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  background: #000;
  z-index: 1;
}

.cc-tourbox__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.cc-tourbox__close {
  position: absolute;
  top: 0.9rem;
  right: 1.4rem;
  background: transparent;
  border: 0;
  color: #e5e7eb;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  z-index: 3;
}

@media (max-width: 900px) {
  .cc-single__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-single__gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  /* Mobile: buttons should be under thumbs (not on top of the hero image). */
  .cc-single__media-actions-desktop {
    display: none;
  }

  .cc-single__media-actions-mobile {
    display: grid;
  }

  .cc-single__media-actions-mobile .cc-single__media-button {
    width: 100%;
    border-radius: 14px;
    padding: 0.7rem 1rem;
  }
}


/* ------------------------------------------------------------------------- */
/* Single listing: details layout + panels + sidebar                          */
/* ------------------------------------------------------------------------- */

.cc-single__about {
  margin-top: 0.25rem;
}

.cc-single__about-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.cc-single__details-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.cc-single__details-left,
.cc-single__details-right {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .cc-single__details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Panel (uses <details>) */
.cc-panel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.cc-panel__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #24a7d7;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.2px;
  user-select: none;
}

.cc-panel__summary::-webkit-details-marker {
  display: none;
}

.cc-panel__title {
  font-size: 1.05rem;
}

.cc-panel__toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  flex-shrink: 0;
}

.cc-panel__body {
  background: rgba(0, 0, 0, 0.12);
}

.cc-panel__rows {
  display: grid;
}

.cc-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-panel__row:first-child {
  border-top: 0;
}

.cc-panel__cell {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cc-panel__cell--label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-panel__cell--value {
  color: rgba(255, 255, 255, 0.92);
}

.cc-panel__text {
  padding: 0.95rem 1rem 1.1rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .cc-panel__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-panel__cell--label {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Rooms table */
.cc-rooms {
  display: grid;
}

.cc-rooms__header,
.cc-rooms__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.cc-rooms__header {
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-rooms__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-rooms__cell {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.cc-rooms__header .cc-rooms__cell {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

/* ------------------------------------------------------------------------- */
/* Lazy-load placeholders (single listing)                                    */
/* ------------------------------------------------------------------------- */
.cc-lazy {
  padding: 0;
}

/* Add padding only while placeholder UI is visible (avoid double-padding after hydrate). */
.cc-lazy[data-cc-lazy-state='loading'],
.cc-lazy[data-cc-lazy-state='error'] {
  padding: 0.95rem 1rem 1.1rem;
}

.cc-lazy__status {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.92rem;
}

.cc-lazy__empty {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.92rem;
}

.cc-lazy__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.16);
}

.cc-lazy__error-text {
  color: rgba(252, 165, 165, 0.95);
  font-weight: 800;
}

.cc-lazy__retry {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-weight: 800;
}

.cc-lazy__retry:hover,
.cc-lazy__retry:focus {
  background: rgba(255, 255, 255, 0.10);
}

/* Skeleton blocks */
.cc-skeleton {
  display: grid;
  gap: 0.55rem;
}

.cc-skeleton__row,
.cc-skeleton__line,
.cc-skeleton__avatar {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
}

.cc-skeleton__row {
  height: 16px;
}

.cc-skeleton--table .cc-skeleton__row {
  height: 20px;
}

.cc-skeleton__line {
  height: 12px;
  border-radius: 999px;
}

.cc-skeleton__line--w60 {
  width: 60%;
}
.cc-skeleton__line--w55 {
  width: 55%;
}
.cc-skeleton__line--w50 {
  width: 50%;
}
.cc-skeleton__line--w45 {
  width: 45%;
}
.cc-skeleton__line--w40 {
  width: 40%;
}
.cc-skeleton__line--w35 {
  width: 35%;
}

.cc-skeleton__avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cc-skeleton__row::after,
.cc-skeleton__line::after,
.cc-skeleton__avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: ccSkeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes ccSkeletonShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  .cc-rooms__header,
  .cc-rooms__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sidebar blocks */
.cc-sidebar-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.cc-sidebar-block__title {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------------- */
/* Single listing: sidebar CTA buttons + contact modal                        */
/* ------------------------------------------------------------------------- */

.cc-sidebar-ctas {
  display: grid;
  gap: 0.9rem;
}

/* ------------------------------------------------------------------------- */
/* Single listing: sidebar map                                                */
/* ------------------------------------------------------------------------- */

.cc-sidebar-map {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.cc-sidebar-map__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.cc-sidebar-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Ensure clicks open Google Maps in a new tab via overlay link */
  pointer-events: none;
}

.cc-sidebar-map__overlay-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}

.cc-sidebar-map__overlay-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.cc-cta-button {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  font-family: var(--cc-font-family, inherit);
}

.cc-cta-button:hover,
.cc-cta-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  filter: brightness(1.03);
}

.cc-cta-button__label {
  flex: 1 1 auto;
  padding: 1.05rem 1.15rem;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.cc-cta-button__icon {
  width: 84px;
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.cc-cta-button__icon i {
  font-size: 1.4rem;
}

.cc-cta-button--visit {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(17, 24, 39, 0.65));
  border-color: rgba(255, 255, 255, 0.14);
}

.cc-cta-button--visit .cc-cta-button__icon {
  background: rgba(0, 0, 0, 0.35);
}

.cc-cta-button--info {
  background: #24a7d7;
  border-color: rgba(36, 167, 215, 0.85);
  color: #ffffff;
}

.cc-cta-button--info .cc-cta-button__icon {
  background: rgba(0, 0, 0, 0.12);
  border-left-color: rgba(255, 255, 255, 0.35);
}

.cc-cta-button--print {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(17, 24, 39, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.cc-cta-button--print .cc-cta-button__icon {
  background: rgba(255, 255, 255, 1);
  border-left-color: rgba(0, 0, 0, 0.12);
  color: rgba(17, 24, 39, 0.85);
}

/* Contact modal */
.cc-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: auto;
}

.cc-contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.cc-contact-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 96vw);
  max-height: min(90vh, 860px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.98) 0%, rgba(10, 14, 20, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cc-contact-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cc-contact-modal__header {
  padding: 2.6rem 2.6rem 0.75rem;
}

.cc-contact-modal__title {
  margin: 0;
  font-weight: 950;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.98);
}

.cc-contact-modal__body {
  padding: 0.75rem 2.6rem 2.2rem;
  overflow: auto;
}

.cc-contact-form {
  display: grid;
  gap: 1rem;
}

.cc-contact-form__field input,
.cc-contact-form__field textarea,
.cc-contact-form input,
.cc-contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.cc-contact-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.cc-contact-form__consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cc-contact-form__consent input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--cc-primary, #4ECFEF);
}

.cc-contact-form__status {
  min-height: 1.1rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.85);
}

.cc-contact-form__status.is-error {
  color: rgba(252, 165, 165, 0.95);
}

.cc-contact-form__submit {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  color: rgba(17, 24, 39, 0.98);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.cc-contact-form__submit > span:first-child {
  padding: 0.9rem 1.2rem;
}

.cc-contact-form__submit-icon {
  width: 54px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.cc-contact-form__submit:hover,
.cc-contact-form__submit:focus {
  filter: brightness(1.02);
}

.cc-contact-success__title {
  font-weight: 950;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.98);
}

.cc-contact-success__body {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.cc-contact-error {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.16);
  color: rgba(252, 165, 165, 0.95);
  font-weight: 800;
}

@media (max-width: 780px) {
  .cc-contact-modal__panel {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }

  .cc-contact-modal__header {
    padding: 2.1rem 1.2rem 0.6rem;
  }

  .cc-contact-modal__body {
    padding: 0.6rem 1.2rem 1.4rem;
  }
}

.cc-agents {
  display: grid;
}

.cc-agent {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-agent:first-child {
  border-top: 0;
}

.cc-agent__photo {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-agent__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-agent__photo-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.cc-agent__name {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.12rem;
}

.cc-agent__title {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 700;
  margin-top: 0.15rem;
  font-size: 0.98rem;
}

.cc-agent__phone {
  margin-top: 0.35rem;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.1;
}

.cc-agent__phone a {
  color: #4ECFEF;
  text-decoration: none;
}

.cc-agent__phone a:hover,
.cc-agent__phone a:focus {
  text-decoration: underline;
}

/* Single-broker layout: vertical/stacked card */
.cc-agents--single .cc-agent {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: start;
  text-align: center;
  padding: 1.35rem 1.1rem 1.45rem;
}

.cc-agents--single .cc-agent__photo {
  width: 140px;
  height: 140px;
  border-width: 2px;
}

.cc-agents--single .cc-agent__meta {
  margin-top: 0.65rem;
}

.cc-agents--single .cc-agent__name {
  font-size: 1.25rem;
}

.cc-agents--single .cc-agent__title {
  font-size: 1.05rem;
}

.cc-agents--single .cc-agent__phone {
  font-size: 1.6rem;
}

/* ------------------------------------------------------------------------- */
/* Print styles: Single listing (Save as PDF)                                 */
/* ------------------------------------------------------------------------- */
@media print {
  /* Hide the site theme header/footer (not the browser print header/footer). */
  header,
  footer,
  #masthead,
  #colophon,
  .site-header,
  .site-footer,
  .wp-block-template-part {
    display: none !important;
  }

  /* Ensure clean white page and readable colors */
  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Scope to the single listing page template wrapper */
  .pgl-listings-single,
  .pgl-listings-single .cc-root,
  .pgl-listings-single .cc-single {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Remove dark UI backgrounds/shadows */
  .pgl-listings-single .cc-panel,
  .pgl-listings-single .cc-sidebar-block,
  .pgl-listings-single .cc-mortgage,
  .pgl-listings-single .cc-single__gallery-main {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
  }

  .pgl-listings-single .cc-panel__summary,
  .pgl-listings-single .cc-sidebar-block__title,
  .pgl-listings-single .cc-mortgage__header {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
  }

  .pgl-listings-single .cc-panel__cell--label {
    background: #ffffff !important;
    color: #000000 !important;
    border-right-color: rgba(0, 0, 0, 0.12) !important;
  }

  .pgl-listings-single .cc-panel__cell--value,
  .pgl-listings-single .cc-panel__text,
  .pgl-listings-single .cc-single__description,
  .pgl-listings-single .cc-single__meta {
    color: #000000 !important;
  }

  /* Hide interactive / overlay UI */
  .pgl-listings-single .cc-single__actions,
  .pgl-listings-single .cc-lightbox,
  .pgl-listings-single .cc-tourbox,
  .pgl-listings-single .cc-more,
  .pgl-listings-single input,
  .pgl-listings-single select,
  .pgl-listings-single textarea {
    display: none !important;
  }

  /* Keep the hero image visible: it is wrapped in a <button> for the gallery UX. */
  .pgl-listings-single .cc-single__gallery-main-trigger {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  /* Thumbnails are interactive and add noise in PDFs. */
  .pgl-listings-single .cc-single__gallery-thumbs {
    display: none !important;
  }

  /* Prefer the normal title/meta in print; hide the desktop hero overlay meta. */
  .pgl-listings-single .cc-single__title {
    display: block !important;
    color: #000000 !important;
  }
  .pgl-listings-single .cc-single__meta {
    display: flex !important;
    color: #000000 !important;
  }
  .pgl-listings-single .cc-single__hero-meta {
    display: none !important;
  }

  /* Print layout: avoid 2-column overlap by forcing a single column. */
  .pgl-listings-single .cc-single__details-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Re-order in print: Brokers + Key facts before the main panels. */
  .pgl-listings-single .cc-single__details-right {
    order: 1 !important;
    position: static !important;
    width: 100% !important;
  }
  .pgl-listings-single .cc-single__details-left {
    order: 2 !important;
    position: static !important;
    width: 100% !important;
  }

  /* Hide any open overlays that might be injected globally */
  .cc-lightbox,
  .cc-tourbox,
  .cc-more {
    display: none !important;
  }

  /* Defensive cookie/banner suppression (theme/plugin dependent) */
  [id*='cookie' i],
  [class*='cookie' i],
  [id*='consent' i],
  [class*='consent' i],
  .cookie-consent,
  .cookie-banner,
  .cc-window,
  .cc-banner,
  .cc-floating,
  .cmplz-cookiebanner,
  .cmplz-cookiebanner-container,
  .cky-consent-container,
  .cky-overlay,
  .ot-sdk-container,
  .ot-sdk-row,
  .otFloatingButton,
  .grecaptcha-badge {
    display: none !important;
    visibility: hidden !important;
  }

  /* Prevent awkward page breaks */
  .pgl-listings-single .cc-panel,
  .pgl-listings-single .cc-sidebar-block,
  .pgl-listings-single .cc-mortgage,
  .pgl-listings-single .cc-rooms,
  .pgl-listings-single .cc-panel__row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Images should scale cleanly and not overflow */
  .pgl-listings-single img {
    max-width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
  }

  /* Avoid full-bleed horizontal tricks in print */
  .pgl-listings-single .cc-single {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    padding: 0 !important;
  }
}

/* ------------------------------------------------------------------------- */
/* Mortgage calculator (styled card; JS hooks remain in frontend.js)          */
/* ------------------------------------------------------------------------- */

.cc-mortgage {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.cc-mortgage__header {
  padding: 0.85rem 1rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-mortgage__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

.cc-mortgage__subtitle {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cc-mortgage__content {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.cc-mortgage__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Rectangular layout on larger screens: form + results side-by-side */
@media (min-width: 900px) {
  .cc-mortgage__content {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 1.1rem;
  }

  .cc-mortgage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.9rem;
  }

  /* Let the results card visually read as a right-side block */
  .cc-mortgage__results {
    /* Stretch to the form column height without overflowing into the disclaimer area. */
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.cc-mortgage__warning {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.cc-mortgage__warning--error {
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.16);
  color: #fca5a5;
}

.cc-mortgage__warning--warning {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.14);
  color: rgba(253, 230, 138, 0.95);
}

.cc-mortgage__results {
  box-sizing: border-box;
  border-radius: 12px;
  padding: 1rem;
  /* Ensure the results card never visually touches/overlaps the disclaimer separator line. */
  margin-bottom: 0.35rem;
  background: rgba(78, 207, 239, 0.12);
  border: 1px solid rgba(78, 207, 239, 0.25);
}

.cc-mortgage__result-label {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.90);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.78rem;
}

.cc-mortgage__result-value {
  margin-top: 0.35rem;
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
}

.cc-mortgage__result-meta {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.9rem;
}

.cc-mortgage__disclaimer {
  padding: 0.85rem 1rem 1rem;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.9rem;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
