/* ========================================
   Property Hive Custom Grid Styles
   ======================================== */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;375;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap");

/* ============================================================
   KB Archive Page — Dark Theme
   All rules scoped to .kb-archive-page to avoid single-property conflicts
   ============================================================ */

:root {
  --kb-bg: #07172f;
  --kb-card-bg: #0d2240;
  --kb-accent: #fd006a;
  --kb-accent-dark: #c50f5c;
  --kb-text: #ffffff;
  --kb-text-muted: rgba(255, 255, 255, 0.55);
  --kb-border: rgba(255, 255, 255, 0.1);
  --kb-field-bg: rgba(255, 255, 255, 0.06);
}

/* Page background */
body.post-type-archive-property {
  background-color: var(--kb-bg);
}

/* Archive wrapper */
.kb-archive-page {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--kb-bg);
  color: var(--kb-text);
  padding-top: 180px;
  padding-bottom: 90px;
}

.kb-archive-page *,
.kb-archive-page *::before,
.kb-archive-page *::after {
  box-sizing: border-box;
}

/* Override any Bricks / PH font on archive page */
.kb-archive-page,
.kb-archive-page input,
.kb-archive-page select,
.kb-archive-page button,
.kb-archive-page label,
.kb-archive-page p,
.kb-archive-page h1,
.kb-archive-page h2,
.kb-archive-page h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Container */
.kb-container {
  width: 1521px;
  margin: 0 auto;
  max-width: 85%;
}

/* ── Section 1: Hero ───────────────────────────────────────────── */
.kb-props-hero {
  padding: 80px 0 48px;
}

.kb-props-title {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 7.5rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.4;
}

/* ── Section 2: Search Form ────────────────────────────────────── */
.kb-search-section {
  padding: 0 0 56px;
}

/* BUY / RENT tab strip */
.kb-dept-tabs {
  display: flex;
  gap: 0;
}

.kb-dept-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 22px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-text-muted);
  cursor: pointer;
  width: 93px;
  height: 40px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.kb-dept-tab.active {
  color: #ffffff;
  border-bottom-color: var(--kb-accent);
}

/* Form panel — hidden until active */
.kb-form {
  display: none;
}

.kb-form.kb-form-active {
  display: block;
}

/* Connected field bar */
.kb-form-fields {
  display: flex;
  gap: 0;
  padding: 29px 40px 36px 20px;
  background: #111f2d;
  align-items: flex-end;
}

/* Individual field */
.kb-form-field {
  flex: 1;
  padding: 12px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

/* Vertical separator between consecutive fields only (not before button) */
.kb-form-field + .kb-form-field {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.kb-form-field label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  display: block;
}

.kb-form-field input[type="text"],
.kb-form-field select {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 0;
  width: 100%;
  height: 22px;
  line-height: 20px;
}

.kb-form-field input[type="text"]::placeholder {
  color: var(--kb-text-muted);
}

.kb-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
  cursor: pointer;
}

.kb-form-field select option {
  background-color: #0d2240;
  color: #ffffff;
}

/* Submit: sits outside the inner border, stretches to full row height */
.kb-form-submit {
  flex: 0 0 auto;
  padding-left: 12px;
  display: flex;
  align-items: stretch;
}

/* Button fills the row height (set by the tallest field via align-items: stretch) */
.kb-search-btn {
  background: var(--kb-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 13px 22px;
  height: auto; /* stretches to match field row height */
  align-self: stretch;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: background 0.2s ease;
  letter-spacing: 0.5px;
}

.kb-search-btn:hover {
  background: var(--kb-accent-dark);
}

.kb-search-btn svg {
  flex-shrink: 0;
}

/* ── Section 3: Grid ───────────────────────────────────────────── */
.kb-grid-section {
  padding: 16px 0 20px;
}

/* Results bar */
.kb-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: row;
}

.kb-archive-page .propertyhive-result-count,
.kb-archive-page .propertyhive-result-count p {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 18px !important;
  color: var(--kb-text-muted) !important;
  margin: 0 !important;
}

.kb-sort-wrapper .propertyhive_catalog_ordering {
  margin: 0;
  padding: 0;
}

.kb-sort-wrapper select,
.kb-sort-wrapper .orderby {
  background: var(--kb-field-bg) !important;
  border: 1px solid var(--kb-border) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 15px !important;
  padding: 8px 30px 8px 12px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}

/* 3-column grid */
.kb-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* ── Property Card ─────────────────────────────────────────────── */
.kb-prop-card {
  border-radius: 30px;
  overflow: hidden;
  background: var(--kb-prop-card-bg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  background-size: cover;
}

.kb-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.kb-prop-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Card image */
.kb-prop-img {
  position: relative;
  aspect-ratio: 46 / 26;
  overflow: hidden;
}

.kb-prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.kb-prop-card:hover .kb-prop-img img {
  transform: scale(1.05);
}

.kb-prop-img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}

/* Status badge */
.kb-prop-badge {
  position: absolute;
  top: 24px;
  left: 21px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 8px;
  color: #ffffff;
  z-index: 2;
  line-height: 1.4;
}

.kb-badge-available {
  background: #fd006a;
}
.kb-badge-sold-stc {
  background: #fd006a;
}
.kb-badge-sold {
  background: #fd006a;
}
.kb-badge-under-offer {
  background: #fd006a;
}
.kb-badge-to-let {
  background: #fd006a;
}
.kb-badge-let-agreed {
  background: #fd006a;
}
.kb-badge-for-sale {
  background: #fd006a;
}

/* Card info */
.kb-prop-info {
  padding: 35px 30px 42px 30px;
}

.kb-prop-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 21px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 45px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
}

.kb-prop-meta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.kb-prop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.kb-prop-price svg,
.kb-prop-beds svg {
  margin-right: 10px;
}


.kb-prop-price-text {
  text-indent: -1ch;
  overflow: hidden;
}

.kb-price-icon {
  color: var(--kb-accent);
  font-weight: 500;
}

.kb-prop-beds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}

.kb-beds-icon {
  color: var(--kb-accent);
  flex-shrink: 0;
}

/* ── Pagination — base layout ──────────────────────────────────── */
.kb-archive-page .propertyhive-pagination-custom {
  padding: 120px 0 10px;
}

.kb-archive-page .pagination-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-archive-page .pagination-dot,
.kb-archive-page .pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.kb-archive-page .pagination-arrow.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Pagination — dark theme colours ───────────────────────────── */
.kb-archive-page .pagination-dot:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.kb-archive-page .pagination-dot.active {
  background: var(--kb-accent);
  border-color: var(--kb-accent);
  color: #ffffff;
}

.kb-archive-page .pagination-arrow:hover:not(.disabled) {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.kb-archive-page .pagination-text {
  color: var(--kb-text-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* Hide "Page X of Y properties" count */
.kb-archive-page .pagination-info {
  display: none;
}

/* "No properties found" on dark bg */
.kb-archive-page .no-properties-found,
.kb-archive-page .propertyhive-no-properties-found {
  color: var(--kb-text-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: center;
  padding: 60px 0;
}

/* Prevent body scroll when mobile overlay is open */
body.kb-overlay-active {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Fix: select option visibility */
.kb-archive-page select option,
.kb-archive-page .orderby option,
.kb-sort-wrapper select option {
  background-color: #07172f;
  color: #ffffff;
}

/* Results actions wrapper (sort + filter button) */
.kb-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  justify-content: space-between;
}

/* Filter Properties button — hidden on desktop, shown on mobile */
.kb-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--kb-border);
  border-radius: 6px;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.kb-filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile search header — hidden on desktop */
.kb-mob-search-header {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1400px) and (min-width: 900px){
	    .kb-props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}
@media (max-width: 1100px) {
  .kb-props-title {
    font-size: 5.5rem;
  }
  .kb-form-field {
    border: none !important;
  }
  .kb-form-fields {
    padding: 15px;
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .kb-props-title {
    font-size: 4rem;
  }
  .kb-form-fields {
    flex-wrap: wrap;
  }
  .kb-form-field {
    flex: 0 0 calc(50% - 15px);
    min-width: 0;
  }
  .kb-form-submit {
    width: calc(50% - 15px);
  }
  .kb-search-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 22px;
  }
  .kb-results-bar {
    margin-bottom: 40px;
  }

  .kb-form-submit {
    flex: 0 0 auto;
    align-self: flex-end;
  }
  .kb-props-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .kb-prop-info {
    padding: 27px 18px 24px 18px;
  }
  .kb-prop-name {
    margin-bottom: 24px;
    font-size: 18px;
  }
  .kb-prop-price svg,
  .kb-prop-beds svg {
    margin-right: 5px;
  }
  .kb-prop-meta {
    gap: 25px;
  }
  .kb-prop-card {
    border-radius: 10px;
  }
  .kb-prop-price,
  .kb-prop-beds {
    font-size: 16px;
  }
  .kb-prop-badge {
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  .kb-props-hero {
    padding: 56px 0 32px;
  }
  .kb-props-title {
    font-size: 3.2rem;
  }
  .kb-form-field {
    flex: 0 0 calc(50% - 6px);
  }
  .kb-props-grid {
    gap: 24px;
  }
  .kb-archive-page {
    padding-top: 100px;
  }
}

@media (max-width: 576px) {
  .kb-props-title {
    font-size: 4rem;
  }
  .kb-props-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kb-archive-page .pagination-dots-wrapper {
    gap: 8px;
  }
}

/* ── Mobile: Search overlay ────────────────────────────────────── */
@media (max-width: 768px) {
  .kb-filter-btn {
    display: inline-flex;
    height: 38px;
    padding: 0 14px;
    align-items: center;
  }

  .kb-sort-wrapper select,
  .kb-sort-wrapper .orderby {
    height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 38px;
  }

  .kb-search-section {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    overflow-y: auto;
    padding: 0;
    background: var(--kb-bg);
  }

  .kb-search-section.kb-mob-open {
    display: block;
  }

  .kb-search-section .kb-container {
    padding: 0;
    max-width: 100%;
  }

  .kb-container {
    max-width: 90%;
  }

  .kb-search-section .kb-search-card {
    border: none;
    border-radius: 0;
    background: var(--kb-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .kb-mob-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 24px 20px;
  }

  .kb-mob-search-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
  }

  .kb-mob-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition:
      color 0.2s,
      background 0.2s;
    flex-shrink: 0;
  }

  .kb-mob-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .kb-search-section .kb-dept-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
    margin: 0 24px 4px;
    background: rgba(255, 255, 255, 0.07);
  }

  .kb-search-section .kb-dept-tab {
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    transition:
      background 0.2s,
      color 0.2s;
    width: 100%;
  }

  .kb-search-section .kb-dept-tab.active {
    background: #f0ede8;
    color: #07172f;
    border-bottom: none;
  }

  .kb-search-section .kb-form {
    padding: 8px 24px 32px;
    display: none;
    flex-direction: column;
    flex: 1;
  }

  .kb-search-section .kb-form.kb-form-active {
    display: flex;
  }

  .kb-search-section .kb-form-fields {
    flex-direction: column;
    gap: 0;
    flex: 1;
    border: none;
    border-radius: 0;
    align-items: stretch;
  }

  .kb-search-section .kb-form-field {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    border-left: none;
    padding: 25px 0;
    flex: none;
    width: 100%;
  }

  .kb-search-section .kb-form-field + .kb-form-field {
    border-left: none;
  }

  .kb-search-section .kb-form-field label {
    font-size: 16px;
  }

  .kb-search-section .kb-form-field input[type="text"],
  .kb-search-section .kb-form-field select {
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    padding: 2px 28px 2px 0;
    color: #ffffff;
    height: auto;
    width: 100%;
  }

  .kb-search-section .kb-form-field input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
  }

  .kb-search-section .kb-form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F11974' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
  }

  .kb-search-section .kb-form-submit {
    width: 100%;
    padding-top: 28px;
    margin-top: auto;
    flex: none;
  }

  .kb-search-section .kb-search-btn {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    font-size: 16px;
    letter-spacing: 0.06em;
    justify-content: center;
  }

  .kb-props-hero {
    padding: 48px 0 28px;
  }
  .kb-grid-section {
    padding-top: 8px;
  }
}

/* ============================================================
   END — KB Archive Page Dark Theme
   ============================================================ */

/* ============================================================
   KB Single Property Page — Dark Theme
   ============================================================ */

/* Base page */
body.single-property {
  background-color: #07172f !important;
}

.kb-single-page {
  background-color: #07172f;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  padding-top: 250px;
  padding-bottom: 80px;
}

.kb-single-page *,
.kb-single-page *::before,
.kb-single-page *::after {
  box-sizing: border-box;
}

.kb-single-page,
.kb-single-page input,
.kb-single-page select,
.kb-single-page button,
.kb-single-page label,
.kb-single-page p,
.kb-single-page h1,
.kb-single-page h2,
.kb-single-page h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ── Availability pill ─────────────────────────────────── */
.kb-sp-avail-wrap {
  display: block !important;
  margin-bottom: 30px;
}

.kb-sp-avail-badge {
  display: inline-block !important;
  background-color: #094ac8 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  padding: 12px 40px !important;
  border-radius: 50px !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: none !important;
  box-shadow: none;
  letter-spacing: 0.21px;
}

/* ── Title + Price header ──────────────────────────────── */
.kb-sp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 51px;
}

.kb-sp-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 6.4rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

.kb-sp-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.kb-sp-price-qualifier {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kb-sp-price {
  color: #fd006a;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 62px;
}

/* ── Gallery ───────────────────────────────────────────── */
.kb-sp-gallery {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 60px;
  position: relative;
}

/* Main slider — 81% */
.kb-sp-main-slider {
  flex: 0 0 81%;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0d2240;
  min-height: 420px;
}

.kb-sp-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.kb-sp-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.kb-sp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 420px;
}

/* Prev / Next arrows — top-left overlay */
.kb-sp-arrows {
  position: absolute;
  top: 65px;
  left: 70px;
  display: flex;
  gap: 15px;
  z-index: 5;
}

.kb-sp-arrow {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}

.kb-sp-arrow:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Action buttons — desktop: absolute top-right of gallery; mobile: static below slider */
.kb-sp-actions {
  position: absolute;
  top: 65px;
  right: calc(
    17.22% + 86px
  ); /* = thumbs-col width + gap(16px) + original offset(70px) */
  display: flex;
  gap: 10px;
  z-index: 5;
}

.kb-sp-action-btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.kb-sp-btn-photos {
  background: #ffffff;
  color: #000000;
}

.kb-sp-btn-photos:hover {
  opacity: 0.9;
}

.kb-sp-btn-tour {
  background: #fd006a;
  color: #ffffff;
}

.kb-sp-btn-tour:hover {
  opacity: 0.9;
}

/* Thumbnail column — 17.22% right */
.kb-sp-thumbs-col {
  flex: 0 0 17.22%;
  width: 17.22%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 15px;
  background: #f5ede8;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
}

.kb-sp-thumb {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
}

.kb-sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.kb-sp-thumb:hover img {
  transform: scale(1.04);
}

/* Mobile-only virtual tour button */
.kb-sp-mobile-tour {
  display: none;
  margin-bottom: 24px;
}

.kb-sp-mobile-tour-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: #fd006a;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.kb-sp-mobile-tour-btn:hover {
  opacity: 0.9;
}

/* ── Property Overview ─────────────────────────────────── */
.kb-sp-overview {
  padding: 45px 50px 67px 50px;
  border-radius: 20px;
  background: #f5ede8;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
  margin-bottom: 90px;
}

.kb-sp-overview-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #07172f;
  margin: 0 0 54px;
}

.kb-sp-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
}

.kb-sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  position: relative;
  flex: 1;
  padding-right: 24px;
}

/* Diagonal divider between stats */
.kb-sp-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.5px;
  height: 44px;
  background: rgba(7, 23, 47, 0.18);
  transform: translateY(-50%) rotate(-20deg);
}

.kb-sp-stat:last-child {
  padding-right: 0;
}

.kb-sp-stat svg {
  color: #07172f;
  opacity: 0.7;
}

/* Label + value on the same line */
.kb-sp-stat-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.kb-sp-stat-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: rgba(7, 23, 47, 0.55);
}

.kb-sp-stat-sep {
  font-size: 20px;
  font-weight: 600;
  color: rgba(7, 23, 47, 0.35);
}

.kb-sp-stat-value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #07172f;
}

/* ── Two-column layout ─────────────────────────────────── */
.kb-sp-two-col {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 60px;
}

.kb-sp-col-left {
  flex: 0 0 58%;
  max-width: 58%;
}

.kb-sp-col-right {
  flex: 0 0 35%;
  max-width: 505px;
}

/* ── Section headings ──────────────────────────────────── */
.kb-sp-section-h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 16px;
}

/* ── Description ───────────────────────────────────────── */
.kb-sp-desc-section {
  margin-bottom: 36px;
}

.kb-sp-desc-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
}

.kb-sp-desc-text p {
  margin: 0 0 12px;
}

.kb-sp-desc-summary {
  margin-bottom: 16px !important;
  font-weight: 500;
}

.kb-sp-desc-rooms p {
  margin: 0 0 12px;
}

/* Clamped to 4 lines */
.kb-desc-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.kb-desc-clamped.kb-desc-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.kb-sp-read-more {
  display: inline-block;
  margin-top: 8px;
  color: #fd006a;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-decoration: underline;
  transition: opacity 0.2s;
  line-height: 2em;
}

.kb-sp-read-more:hover {
  opacity: 0.8;
}

/* ── Accordion ─────────────────────────────────────────── */
.kb-sp-accordion {
  margin-bottom: 70px;
}

.kb-sp-acc-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kb-sp-acc-card:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kb-sp-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-align: left;
  gap: 12px;
  transition: color 0.2s;
}

.kb-sp-acc-trigger:hover {
  color: rgba(255, 255, 255, 0.8);
}

.kb-sp-acc-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Show minus when open, plus when closed */
.kb-sp-acc-card .kb-sp-plus {
  display: flex;
}
.kb-sp-acc-card .kb-sp-minus {
  display: none;
}
.kb-sp-acc-card.kb-sp-acc-open .kb-sp-plus {
  display: none;
}
.kb-sp-acc-card.kb-sp-acc-open .kb-sp-minus {
  display: flex;
}

.kb-sp-acc-body {
  display: none;
  padding-bottom: 20px;
}

.kb-sp-acc-card.kb-sp-acc-open .kb-sp-acc-body {
  display: block;
}

/* Features two-column list */
.kb-sp-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 50px;
}

.kb-sp-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}

.kb-sp-features-list li svg {
  flex-shrink: 0;
}

/* Utility list */
.kb-sp-utility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 55%;
}

.kb-sp-utility-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  padding: 10px 0;
}

.kb-sp-util-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.kb-sp-util-value {
  color: #ffffff;
  font-weight: 600;
}

/* ── Additional Information ────────────────────────────── */
.kb-sp-additional {
  border-radius: 25px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  background: #111f2d;
  padding: 43px 33px;
  margin-bottom: 60px;
}

.kb-sp-additional-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 25px;
  font-style: normal;
}

.kb-sp-downloads {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.kb-sp-download-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 10px 0;
  transition: opacity 0.2s;
  width: 45%;
  justify-content: flex-start;
}

.kb-sp-download-btn:hover {
  opacity: 0.8;
}

.kb-sp-dl-thumb {
  flex-shrink: 0;
  display: flex;
}

.kb-sp-dl-label {
  flex: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.kb-sp-dl-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── Right column: Enquiry card ────────────────────────── */
.kb-sp-enquiry-card {
  border-radius: 20px;
  background: #111f2d;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kb-sp-enquiry-pretitle {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 35px;
  text-align: center;
}

/* Request Viewing button — auto width, centred */
.kb-sp-request-btn {
  width: auto;
  background: #094ac8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  padding: 16px 40px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  letter-spacing: 0.02em;
  display: block;
  margin: 0 auto;
}

.kb-sp-request-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Property Location ─────────────────────────────────── */
.kb-sp-location {
  margin-bottom: 60px;
}

.kb-sp-location .kb-sp-section-h2 {
  margin-bottom: 30px;
}

.kb-sp-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 400px;
}

.kb-sp-map-wrap .ph_map_canvas,
.kb-sp-map-wrap #ph_map_canvas,
.kb-sp-map-wrap iframe,
.kb-sp-map-wrap > div {
  width: 100% !important;
  height: 400px !important;
  border-radius: 20px;
}

/* ── Similar Properties ────────────────────────────────── */
.kb-sp-similar {
  padding: 0 0 80px;
  background: #07172f;
}

.kb-sp-similar-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 28px;
}

/* ── Lightbox ──────────────────────────────────────────── */
.kb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.kb-lightbox.kb-lb-open {
  display: flex;
}

.kb-lb-img-wrap {
  max-width: 80vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-lb-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.kb-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.kb-lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.kb-lb-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  margin: 0 16px;
}

.kb-lb-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.kb-lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
}

/* ── Responsive — single property ─────────────────────── */
@media (max-width: 1024px) {
  .kb-sp-price {
    font-size: 36px;
    line-height: 1.3;
  }
  .kb-sp-stat {
    padding-right: 20px;
  }
  .kb-sp-overview {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .kb-single-page {
    padding-top: 120px;
  }

  .kb-sp-gallery {
    flex-direction: column;
  }

  .kb-sp-main-slider {
    flex: none;
    width: 100%;
    min-height: 260px;
    border-radius: 16px;
  }

  .kb-sp-slide img {
    min-height: 260px;
  }
  .kb-sp-thumbs-col {
    display: none;
  }
  .kb-sp-mobile-tour {
    display: block;
  }
  .kb-sp-btn-tour {
    display: none;
  }

  .kb-sp-avail-wrap {
    padding-top: 0;
    margin-bottom: 30px;
  }

  .kb-sp-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 50px;
  }
  /* ── Price: ensure left-aligned ── */
  .kb-sp-price-wrap {
    text-align: left;
    width: 100%;
    align-self: flex-start;
  }
  .kb-sp-price {
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
  }

  /* ── Slider arrows: left/right vertically centred ── */
  .kb-sp-arrows {
    display: contents; /* dissolve wrapper; children position relative to .kb-sp-main-slider */
  }
  .kb-sp-prev {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }
  .kb-sp-next {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  /* ── Action buttons: static below slider, full-width stacked ── */
  .kb-sp-actions {
    position: static;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 12px;
  }
  .kb-sp-action-btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Property Overview: dark theme, tighter title margin ── */
  .kb-sp-overview {
    padding: 24px 20px;
    margin-bottom: 32px;
    background: #192c3e;
  }
  .kb-sp-overview-title {
    color: #ffffff;
    margin: 0 0 32px;
  }
  .kb-sp-stat-label {
    color: rgba(255, 255, 255, 0.55);
  }
  .kb-sp-stat-sep {
    display: none;
  }
  .kb-sp-stat-value {
    color: #ffffff;
  }
  .kb-sp-stat svg {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
  }
  .kb-sp-stat:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.18);
  }

  /* ── Stats grid: equal width, centered, value on new line ── */
  .kb-sp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow-x: unset;
  }
  .kb-sp-stat {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .kb-sp-stat::after {
    display: none;
  }
  .kb-sp-stat-row {
    flex-direction: column;
    align-items: center;
    white-space: normal;
    text-align: center;
    gap: 2px;
  }
  .kb-sp-stat-label,
  .kb-sp-stat-value {
    font-size: 13px;
  }

  /* ── Two-column → single column ── */
  .kb-sp-two-col {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 36px;
  }
  .kb-sp-col-left,
  .kb-sp-col-right {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .kb-sp-col-right {
    position: static;
  }

  /* ── Typography ── */
  .kb-sp-section-h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 120%;
  }
  .kb-sp-desc-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
  }
  .kb-sp-additional-title {
    font-size: 24px;
  }

  .kb-sp-features-list {
    grid-template-columns: 1fr;
  }
  .kb-sp-location {
    margin-bottom: 36px;
  }
  .kb-sp-map-wrap,
  .kb-sp-map-wrap > div {
    height: 280px !important;
  }
  .kb-sp-avail-badge {
    font-size: 14px !important;
  }
  .kb-sp-title {
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    margin-bottom: 27px;
  }
	.kb-sp-downloads {
		flex-direction: column;
	}
	.kb-sp-download-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
  .kb-sp-actions {
    gap: 8px;
  }
  .kb-sp-action-btn {
    height: 55px;
    padding: 0 12px;
    font-size: 18px;
  }
  .kb-sp-overview {
    padding: 20px 14px;
  }
  .kb-sp-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kb-sp-additional {
    padding: 22px 18px;
  }
  .kb-sp-enquiry-card {
    padding: 24px 18px;
  }
}

/* ============================================================
   END — KB Single Property Page Dark Theme
   ============================================================ */

/* Chronicle Display font from local assets */
@font-face {
  font-family: "Chronicle Display";
  src:
    url("../assets/fonts/ChronicleDisplay-Regular.ttf") format("truetype"),
    url("../assets/fonts/chronicle-display.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Default font family for all property grid elements */
.property_listing,
.property_listing * {
  font-family: "Raleway", sans-serif;
  color: var(--ae-color-brand);
}

/* Search Results Page Background */
.propertyhive {
  background-color: var(--ae-color-bg);
}

/* Property Grid Container */
.property-search-results-container {
  background-color: var(--ae-color-bg);
  padding: 40px 20px;
}

/* Container & Grid Layout */
.listing_wrapper {
  margin-bottom: 30px;
  padding: 0 15px;
}

.property_listing {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
}
