.kfra {
  --kfra-primary: #142342;
  --kfra-primary-hover: #0f1c36;
  --kfra-text: #142342;
  --kfra-muted: #667085;
  --kfra-soft: #f8f9fc;
  --kfra-border: #dfe3e9;
  --kfra-track: #f0f1f3;
  --kfra-available: #16a34a;
  --kfra-sold: #f6ad55;
  --kfra-white: #ffffff;
  --kfra-shadow: 0 3px 8px rgba(15, 35, 65, 0.13);
  width: 100%;
  color: var(--kfra-text);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.kfra,
.kfra *,
.kfra *::before,
.kfra *::after {
  box-sizing: border-box;
}

.kfra [hidden] {
  display: none !important;
}

.kfra button,
.kfra input,
.kfra a {
  font: inherit;
}

.kfra button,
.kfra a {
  -webkit-tap-highlight-color: transparent;
}

.kfra h1,
.kfra h2,
.kfra h3,
.kfra p {
  margin-top: 0;
}

.kfra svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.kfra__container {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 52px 16px 70px;
}

.kfra__header {
  margin-bottom: 32px;
  text-align: center;
}

.kfra__header h2 {
  margin-bottom: 0;
  color: var(--kfra-primary);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.kfra__stats {
  width: min(100%, 770px);
  margin: 0 auto 48px;
  border: 1px solid var(--kfra-border);
  border-radius: 10px;
  padding: 24px;
  background: #fbfcfd;
  box-shadow: var(--kfra-shadow);
}

.kfra__stats-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kfra__stats-head > div {
  display: grid;
}

.kfra__stats-sold {
  text-align: right;
}

.kfra__stats-head strong {
  font-size: 17px;
  font-weight: 800;
}

.kfra__count {
  font-size: 26px;
  line-height: 1.2;
}

.kfra__count--available {
  color: var(--kfra-available);
}

.kfra__count--sold {
  color: #f29d38;
}

.kfra__progress {
  display: flex;
  width: 100%;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--kfra-track);
}

.kfra__progress-available,
.kfra__progress-sold {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: width 280ms ease;
}

.kfra__progress-available {
  width: 0;
  background: var(--kfra-available);
}

.kfra__progress-sold {
  width: 0;
  background: var(--kfra-sold);
  color: #000;
}

.kfra__total {
  margin: 11px 0 0;
  padding-top: 10px;
  color: #475467;
  text-align: center;
  font-weight: 700;
}

.kfra__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
}

.kfra__search {
  position: relative;
  display: block;
  width: min(100%, 510px);
}

.kfra__search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 21px;
  transform: translateY(-50%);
  pointer-events: none;
}

.kfra__search input {
  width: 100%;
  min-height: 54px;
  border: 2px solid #e1e5ea;
  border-radius: 999px;
  padding: 12px 18px 12px 48px;
  background: #fafbfc;
  color: var(--kfra-text);
  outline: none;
  font-size: 17px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.kfra__search input::placeholder {
  color: #98a2b3;
}

.kfra__search input:focus {
  border-color: var(--kfra-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 35, 66, 0.1);
}

.kfra__segmented {
  display: grid;
  align-items: stretch;
  gap: 3px;
  border-radius: 999px;
  padding: 7px;
  background: #f1f2f4;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.07);
}

.kfra__segmented--island {
  width: min(100%, 435px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kfra__segmented--status {
  width: min(100%, 290px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kfra__segmented button {
  min-height: 42px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  background: transparent;
  color: var(--kfra-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.kfra__segmented button:hover {
  background: #e4e6ea;
}

.kfra__segmented button[aria-pressed='true'],
.kfra__segmented button[aria-pressed='true']:hover {
  background: var(--kfra-primary);
  color: #fff;
  box-shadow: 0 4px 8px rgba(20, 35, 66, 0.2);
}

.kfra__result-summary {
  min-height: 22px;
  margin: -20px 0 24px;
  color: var(--kfra-muted);
  text-align: center;
  font-size: 14px;
}

.kfra__grid {
  display: grid;
  grid-template-columns: repeat(var(--kfra-cols, 3), minmax(0, 1fr));
  gap: 24px;
}

.kfra__card {
  display: flex;
  min-width: 0;
  min-height: 200px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--kfra-border);
  border-radius: 6px;
  background: var(--kfra-white);
  box-shadow: var(--kfra-shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.kfra__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 35, 65, 0.13);
}

.kfra__card-main {
  padding: 20px 20px 10px;
}

.kfra__card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.kfra__card h3 {
  min-width: 0;
  margin-bottom: 0;
  color: var(--kfra-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.kfra__badge {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13px;
  font-weight: 800;
}

.kfra__badge--available {
  background: var(--kfra-available);
  color: #fff;
}

.kfra__badge--sold {
  background: var(--kfra-sold);
  color: #000;
}

.kfra__population {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--kfra-muted);
  font-size: 15px;
}

.kfra__population-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 18px;
}

.kfra__population strong {
  color: #596579;
  white-space: nowrap;
}

.kfra__card-footer {
  padding: 8px 20px 19px;
}

.kfra__enquire {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--kfra-primary);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 3px 7px rgba(20, 35, 66, 0.18);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.kfra__enquire:visited {
  color: #fff !important;
}

.kfra__enquire:hover,
.kfra__enquire:focus,
.kfra__enquire:active {
  transform: translateY(-1px);
  background: var(--kfra-primary-hover) !important;
  color: #fff !important;
  box-shadow: 0 6px 12px rgba(20, 35, 66, 0.22);
}

.kfra__sold-message {
  margin: 4px 0 0;
  color: var(--kfra-muted);
  text-align: center;
  font-size: 15px;
}

.kfra__empty {
  border: 1px dashed var(--kfra-border);
  border-radius: 10px;
  padding: 36px 20px;
  color: var(--kfra-muted);
  text-align: center;
  background: #fafbfc;
}

.kfra__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.kfra button:focus-visible,
.kfra input:focus-visible,
.kfra a:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.28);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .kfra__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .kfra {
    font-size: 15px;
  }

  .kfra__container {
    padding: 40px 14px 54px;
  }

  .kfra__header h2 {
    font-size: clamp(30px, 8vw, 39px);
  }

  .kfra__stats {
    margin-bottom: 38px;
    padding: 20px;
  }

  .kfra__controls {
    gap: 22px;
    margin-bottom: 36px;
  }

  .kfra__search input {
    min-height: 50px;
    font-size: 16px;
  }

  .kfra__grid {
    gap: 18px;
  }

  .kfra__card h3 {
    font-size: 18px;
  }
}

@media (max-width: 590px) {
  .kfra__grid {
    grid-template-columns: 1fr;
  }

  .kfra__segmented {
    border-radius: 22px;
  }

  .kfra__segmented button {
    min-width: 0;
    padding-inline: 9px;
    font-size: 13px;
  }

  .kfra__stats-head strong {
    font-size: 15px;
  }

  .kfra__count {
    font-size: 23px;
  }

  .kfra__progress {
    height: 22px;
  }

  .kfra__result-summary {
    margin-top: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kfra *,
  .kfra *::before,
  .kfra *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final polished filter and progress styles */
.kfra {
  --kfra-sold: #f6ad55;
}

.kfra__progress-available,
.kfra__progress-sold {
  position: relative;
  flex: 0 0 auto;
}

.kfra__progress-available > span,
.kfra__progress-sold > span {
  position: relative;
  z-index: 1;
  display: block;
  min-width: max-content;
  padding-inline: 8px;
  white-space: nowrap;
}

.kfra__progress-sold {
  min-width: 54px;
  background: #f6ad55;
  color: #142342;
}

.kfra__count--sold {
  color: #f6ad55;
}

.kfra__segmented {
  gap: 4px;
  padding: 6px;
}

.kfra__segmented--island {
  width: min(100%, 500px);
  grid-template-columns: 1.15fr 1fr 1fr;
}

.kfra__segmented--status {
  width: min(100%, 305px);
}

.kfra__segmented button {
  min-width: 0;
  white-space: nowrap;
  padding: 9px 14px;
  line-height: 1.15;
}

@media (max-width: 767px) {
  .kfra__controls {
    gap: 18px;
  }

  .kfra__segmented--island {
    width: min(100%, 460px);
  }

  .kfra__segmented--status {
    width: min(100%, 290px);
  }

  .kfra__segmented button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 590px) {
  .kfra__controls {
    gap: 16px;
  }

  .kfra__segmented {
    width: 100%;
    border-radius: 18px;
    padding: 5px;
  }

  .kfra__segmented--island {
    grid-template-columns: 1.08fr 1fr 1fr;
  }

  .kfra__segmented--status {
    max-width: 100%;
  }

  .kfra__segmented button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12.5px;
    letter-spacing: -0.1px;
  }

  .kfra__progress {
    height: 24px;
  }

  .kfra__progress-available,
  .kfra__progress-sold {
    font-size: 11px;
  }

  .kfra__progress-sold {
    min-width: 50px;
  }
}

@media (max-width: 390px) {
  .kfra__segmented button {
    font-size: 11.5px;
    padding-inline: 6px;
  }

  .kfra__progress-available > span,
  .kfra__progress-sold > span {
    padding-inline: 5px;
  }
}

/* Final status tab centering and responsiveness */
.kfra__segmented--status {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(100%, 320px) !important;
  gap: 4px !important;
  padding: 6px !important;
  align-items: stretch !important;
}

.kfra__segmented--status button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

@media (max-width: 767px) {
  .kfra__segmented--status {
    width: min(100%, 300px) !important;
    gap: 3px !important;
    padding: 5px !important;
  }

  .kfra__segmented--status button {
    min-height: 40px !important;
    padding: 7px 8px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 480px) {
  .kfra__segmented--status {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    gap: 2px !important;
    padding: 4px !important;
  }

  .kfra__segmented--status button {
    min-height: 38px !important;
    padding: 6px 5px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
    letter-spacing: -0.15px !important;
  }
}

@media (max-width: 360px) {
  .kfra__segmented--status button {
    font-size: 11px !important;
    padding-inline: 3px !important;
  }
}

@media (max-width: 960px) {
  .kfra__grid {
    grid-template-columns: repeat(
      var(--kfra-cols-tablet, 2),
      minmax(0, 1fr)
    ) !important;
  }
}
@media (max-width: 590px) {
  .kfra__grid {
    grid-template-columns: repeat(
      var(--kfra-cols-mobile, 1),
      minmax(0, 1fr)
    ) !important;
  }
}
.kfra {
  background: var(--kfra-section-bg, #fff);
}
.kfra__card {
  background: var(--kfra-card-bg, #fff);
}

/* v1.0.3 — global typography inheritance and resilient card text */
.kfra {
  font-family: inherit;
  font-size: inherit;
}

.kfra,
.kfra button,
.kfra input,
.kfra a,
.kfra h1,
.kfra h2,
.kfra h3,
.kfra p,
.kfra span,
.kfra strong {
  font-family: inherit;
}

.kfra__card {
  container-type: inline-size;
  container-name: kfra-card;
  min-width: 0;
}

.kfra__card-main,
.kfra__card-head,
.kfra__population,
.kfra__card-footer {
  min-width: 0;
}

.kfra__card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.kfra__card h3 {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: var(--kfra-primary);
  font-size: clamp(1rem, 0.82rem + 0.38vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kfra__badge {
  min-width: max-content;
  min-height: clamp(24px, 2.1vw, 28px);
  padding: clamp(3px, 0.3vw, 4px) clamp(9px, 0.8vw, 13px);
  font-size: clamp(0.7rem, 0.65rem + 0.16vw, 0.8125rem);
  line-height: 1;
  white-space: nowrap;
}

.kfra__population {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(5px, 0.55vw, 7px);
  font-size: clamp(0.78rem, 0.72rem + 0.18vw, 0.9375rem);
}

.kfra__population > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kfra__population strong {
  font-size: inherit;
  white-space: nowrap;
}

.kfra__enquire,
.kfra__sold-message {
  font-size: clamp(0.82rem, 0.76rem + 0.18vw, 0.9375rem);
}

@container kfra-card (max-width: 340px) {
  .kfra__card-main {
    padding-inline: 16px;
  }

  .kfra__card-footer {
    padding-inline: 16px;
  }

  .kfra__card-head {
    gap: 7px;
  }

  .kfra__card h3 {
    font-size: 1rem;
  }

  .kfra__badge {
    padding-inline: 9px;
    font-size: 0.7rem;
  }
}

@container kfra-card (max-width: 285px) {
  .kfra__card h3 {
    font-size: 0.9375rem;
  }

  .kfra__badge {
    padding-inline: 7px;
    font-size: 0.675rem;
  }

  .kfra__population {
    font-size: 0.75rem;
  }
}

@media (max-width: 590px) {
  .kfra__card h3 {
    font-size: clamp(1rem, 4.5vw, 1.125rem);
  }

  .kfra__population {
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  }
}
