/* Tikiwa Projects — front-end styles.
   Fonts come from the theme. Colours: --tkp-accent is set in Settings → Tikiwa Projects. */

:root {
	--tkp-accent: #1F4D3A;
	--tkp-ink: #16211B;
	--tkp-muted: #56635B;
	--tkp-line: #D7DDD8;
	--tkp-soft: #F2F4F1;
	--tkp-bg: #FFFFFF;
	--tkp-hot: #B3261E;
	--tkp-few: #9A5800;
	--tkp-soon: #1F4E8C;
	--tkp-sold: #5F6B66;
	--tkp-radius: 12px;
	--tkp-gap: 24px;
}

.tkp { color: var(--tkp-ink); }
.tkp *, .tkp *::before, .tkp *::after { box-sizing: border-box; }
.tkp img { max-width: 100%; height: auto; display: block; }
.tkp .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tkp .tkp-icon { flex: none; }

/* Page wrapper (project and location pages) */
.tkp-wrap { width: 100%; }
.tkp-wrap > .tkp { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }

/* Buttons */
.tkp .tkp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: 8px;
	font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; border: 1.5px solid var(--tkp-accent);
	transition: background-color .15s ease, color .15s ease;
}
.tkp .tkp-btn--primary { background: var(--tkp-accent); border-color: var(--tkp-accent); color: #fff; }
/* Some themes style <button> very strongly; keep our submit buttons on-brand. */
.tkp button.tkp-btn.tkp-btn--primary { background: var(--tkp-accent) !important; border-color: var(--tkp-accent) !important; color: #fff !important; }
.tkp .tkp-btn--primary:hover, .tkp button.tkp-btn.tkp-btn--primary:hover { background: color-mix(in srgb, var(--tkp-accent) 85%, #000); color: #fff; }
.tkp .tkp-btn--ghost { background: transparent; color: var(--tkp-accent); }
.tkp .tkp-btn--ghost:hover { background: color-mix(in srgb, var(--tkp-accent) 8%, transparent); color: var(--tkp-accent); }
.tkp .tkp-btn--block { display: flex; width: 100%; }
.tkp a:focus-visible, .tkp button:focus-visible, .tkp select:focus-visible, .tkp [tabindex]:focus-visible {
	outline: 3px solid var(--tkp-accent); outline-offset: 2px;
}

/* Status badges */
.tkp .tkp-badge {
	position: absolute; top: 12px; left: 12px; z-index: 1;
	padding: 5px 10px; border-radius: 6px;
	background: var(--tkp-accent); color: #fff;
	font-size: 0.8rem; font-weight: 700; line-height: 1.2;
}
.tkp .tkp-badge--hot { background: var(--tkp-hot); }
.tkp .tkp-badge--few { background: var(--tkp-few); }
.tkp .tkp-badge--soon { background: var(--tkp-soon); }
.tkp .tkp-badge--sold { background: var(--tkp-sold); }

/* Grid */
.tkp ul.tkp-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: var(--tkp-gap);
	grid-template-columns: 1fr;
}
.tkp ul.tkp-grid > li { margin: 0; display: flex; }
@media (min-width: 640px) { .tkp ul.tkp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tkp ul.tkp-grid { grid-template-columns: repeat(var(--tkp-cols, 3), minmax(0, 1fr)); } }

/* Card */
.tkp .tkp-card {
	display: flex; flex-direction: column; width: 100%;
	background: var(--tkp-bg); border: 1px solid var(--tkp-line); border-radius: var(--tkp-radius);
	overflow: hidden;
}
.tkp .tkp-card:hover { border-color: color-mix(in srgb, var(--tkp-accent) 45%, var(--tkp-line)); }
.tkp .tkp-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tkp-soft); }
.tkp .tkp-card__media .tkp-card__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tkp .tkp-card__size {
	position: absolute; left: 12px; bottom: 12px;
	padding: 5px 10px 5px 8px; border-radius: 4px;
	background: var(--tkp-ink); color: #fff; border-left: 4px solid var(--tkp-accent);
	font-size: 0.8rem; font-weight: 600; line-height: 1.2;
}
.tkp .tkp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.tkp .tkp-card__loc {
	display: flex; align-items: center; gap: 6px; margin: 0;
	color: var(--tkp-muted); font-size: 0.9rem;
}
.tkp .tkp-card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.tkp .tkp-card__title a { color: var(--tkp-ink); text-decoration: none; }
.tkp .tkp-card__title a:hover { color: var(--tkp-accent); }
.tkp .tkp-card__price {
	margin: 4px 0 0; text-wrap: balance; font-size: 1.45rem; font-weight: 800; line-height: 1.15;
	font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.tkp .tkp-card__price span, .tkp .tkp-panel__price span {
	font-size: 0.85rem; font-weight: 600; color: var(--tkp-muted); letter-spacing: 0;
}
.tkp .tkp-card__terms { margin: 0; font-size: 0.92rem; color: var(--tkp-ink); }
.tkp .tkp-card__summary { margin: 0; font-size: 0.92rem; color: var(--tkp-muted); line-height: 1.5; }
.tkp ul.tkp-card__facts {
	list-style: none; margin: 2px 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 14px;
	font-size: 0.85rem; font-weight: 600; color: var(--tkp-accent);
}
.tkp ul.tkp-card__facts:empty { display: none; }
.tkp ul.tkp-card__facts li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.tkp .tkp-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.tkp .tkp-card__actions .tkp-btn { flex: 1 1 120px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.tkp .tkp-card.is-sold .tkp-card__img { filter: grayscale(1); opacity: .75; }

/* Filters */
.tkp .tkp-filters, .tkp-search {
	display: grid; gap: 14px; align-items: end;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 0 0 20px; padding: 18px;
	background: var(--tkp-soft); border-radius: var(--tkp-radius);
}
.tkp .tkp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tkp .tkp-field label { font-size: 0.85rem; font-weight: 600; color: var(--tkp-muted); margin: 0; }
.tkp .tkp-field select {
	width: 100%; min-height: 44px; padding: 8px 12px; margin: 0;
	border: 1px solid var(--tkp-line); border-radius: 8px; background-color: #fff;
	color: var(--tkp-ink); font: inherit; font-size: 0.95rem;
}
.tkp .tkp-filters__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tkp .tkp-filters__clear { color: var(--tkp-accent); font-size: 0.9rem; font-weight: 600; }
.tkp .tkp-count { margin: 0 0 14px; color: var(--tkp-muted); font-size: 0.9rem; }
.tkp-search { background: #fff; box-shadow: 0 1px 0 var(--tkp-line); border: 1px solid var(--tkp-line); }

.tkp .tkp-empty {
	padding: 32px 20px; text-align: center; border: 1px dashed var(--tkp-line); border-radius: var(--tkp-radius);
}
.tkp .tkp-empty p { margin: 0 0 12px; }
.tkp .tkp-empty p:last-child { margin: 0; }

/* Pagination */
.tkp .tkp-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.tkp .tkp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
	padding: 0 12px; border: 1px solid var(--tkp-line); border-radius: 8px;
	color: var(--tkp-ink); text-decoration: none; font-weight: 600;
}
.tkp .tkp-pagination .page-numbers.current { background: var(--tkp-accent); border-color: var(--tkp-accent); color: #fff; }

/* Carousel */
.tkp .tkp-carousel { position: relative; }
.tkp .tkp-carousel__nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.tkp .tkp-carousel__nav[hidden] { display: none; }
.tkp .tkp-carousel__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	border: 1.5px solid var(--tkp-line); background: #fff; color: var(--tkp-ink); cursor: pointer;
}
.tkp .tkp-carousel__btn:hover:not(:disabled) { border-color: var(--tkp-accent); color: var(--tkp-accent); }
.tkp .tkp-carousel__btn:disabled { opacity: .35; cursor: default; }
.tkp ul.tkp-carousel__track {
	list-style: none; margin: 0; padding: 0 0 12px;
	display: grid; grid-auto-flow: column; gap: var(--tkp-gap);
	grid-auto-columns: min(82%, 340px);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin;
}
.tkp ul.tkp-carousel__track > li { margin: 0; display: flex; scroll-snap-align: start; }
@media (min-width: 1024px) {
	.tkp ul.tkp-carousel__track {
		grid-auto-columns: calc((100% - (var(--tkp-cols, 3) - 1) * var(--tkp-gap)) / var(--tkp-cols, 3));
	}
}
.tkp .tkp-more { margin: 20px 0 0; text-align: center; }

/* Updates */
.tkp .tkp-update { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.tkp .tkp-update__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--tkp-radius); overflow: hidden; background: var(--tkp-soft); }
.tkp .tkp-update__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tkp .tkp-update__date { font-size: 0.85rem; color: var(--tkp-muted); }
.tkp .tkp-update__title { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.tkp .tkp-update__title a { color: var(--tkp-ink); text-decoration: none; }
.tkp .tkp-update__title a:hover { color: var(--tkp-accent); }
.tkp .tkp-update__excerpt { margin: 0; color: var(--tkp-muted); font-size: 0.95rem; line-height: 1.55; }

/* Breadcrumbs */
.tkp .tkp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: 0.9rem; color: var(--tkp-muted); }
.tkp .tkp-crumbs a { color: var(--tkp-accent); text-decoration: none; }
.tkp .tkp-crumbs a:hover { text-decoration: underline; }

/* Location / status pages */
.tkp .tkp-archive__head { margin-bottom: 24px; }
.tkp .tkp-archive__title { margin: 0 0 10px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; }
.tkp .tkp-archive__intro { max-width: 70ch; color: var(--tkp-muted); }

/* Single project */
.tkp .tkp-single__top { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) {
	.tkp .tkp-single__top { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 40px; }
	.tkp .tkp-panel { position: sticky; top: 24px; }
}
.tkp .tkp-gallery__main {
	position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
	border-radius: var(--tkp-radius); background: var(--tkp-soft);
}
.tkp .tkp-gallery__main .tkp-gallery__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.tkp ul.tkp-gallery__thumbs {
	list-style: none; margin: 12px 0 0; padding: 0 0 4px;
	display: flex; gap: 10px; overflow-x: auto;
}
.tkp ul.tkp-gallery__thumbs li { margin: 0; flex: none; }
.tkp .tkp-gallery__thumb {
	display: block; width: 88px; height: 66px; padding: 0; overflow: hidden;
	border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer;
}
.tkp .tkp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tkp .tkp-gallery__thumb[aria-current="true"] { border-color: var(--tkp-accent); }

.tkp .tkp-panel {
	padding: 24px; border: 1px solid var(--tkp-line); border-radius: var(--tkp-radius); background: var(--tkp-bg);
}
.tkp .tkp-panel__title { margin: 0 0 10px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.15; }
.tkp .tkp-panel__loc { display: flex; gap: 8px; margin: 0 0 18px; color: var(--tkp-muted); line-height: 1.45; }
.tkp .tkp-panel__loc .tkp-icon { margin-top: 2px; }
.tkp .tkp-panel__loc small { font-size: 0.9rem; }
.tkp .tkp-panel__price {
	margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--tkp-line);
	font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; line-height: 1.1;
	font-variant-numeric: tabular-nums; letter-spacing: -0.015em;
}
.tkp .tkp-facts { margin: 0 0 20px; display: grid; gap: 12px; }
.tkp .tkp-facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.tkp .tkp-facts dt { margin: 0; color: var(--tkp-muted); font-size: 0.92rem; font-weight: 400; }
.tkp .tkp-facts dd { margin: 0; font-weight: 600; }
.tkp .tkp-panel__actions { display: grid; gap: 10px; }
.tkp .tkp-panel__sold { margin: 0; padding: 12px; border-radius: 8px; background: var(--tkp-soft); font-weight: 600; }
.tkp .tkp-panel__minor { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: 0.92rem; }
.tkp .tkp-panel__minor a { display: inline-flex; align-items: center; gap: 6px; color: var(--tkp-accent); font-weight: 600; text-decoration: none; }
.tkp .tkp-panel__minor a:hover { text-decoration: underline; }

.tkp .tkp-single__body { max-width: 820px; }
.tkp .tkp-section { margin-top: 48px; }
.tkp .tkp-section > h2 { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.25; }
.tkp .tkp-prose { line-height: 1.7; }
.tkp .tkp-prose > :last-child { margin-bottom: 0; }

.tkp .tkp-table-wrap { overflow-x: auto; }
.tkp .tkp-table { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tkp .tkp-table th, .tkp .tkp-table td { padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--tkp-line); }
.tkp .tkp-table th { font-size: 0.85rem; color: var(--tkp-muted); font-weight: 600; background: var(--tkp-soft); }
.tkp .tkp-table td:last-child { font-weight: 700; }

.tkp ul.tkp-ticks {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tkp ul.tkp-ticks li { display: flex; align-items: center; gap: 10px; margin: 0; }
.tkp ul.tkp-ticks .tkp-icon {
	width: 26px; height: 26px; padding: 4px; border-radius: 50%;
	background: color-mix(in srgb, var(--tkp-accent) 12%, transparent); color: var(--tkp-accent);
}

.tkp .tkp-sitemap { position: relative; display: block; border: 1px solid var(--tkp-line); border-radius: var(--tkp-radius); overflow: hidden; }
.tkp .tkp-sitemap span {
	position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 6px;
	background: rgba(22, 33, 27, .85); color: #fff; font-size: 0.85rem; font-weight: 600;
}
.tkp .tkp-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tkp-radius); overflow: hidden; background: #000; }
.tkp .tkp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tkp .tkp-map { aspect-ratio: 16 / 9; margin-bottom: 14px; border-radius: var(--tkp-radius); overflow: hidden; border: 1px solid var(--tkp-line); }
.tkp .tkp-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.tkp .tkp-related { max-width: none; padding-top: 40px; border-top: 1px solid var(--tkp-line); }

/* Mobile quick-contact bar */
.tkp .tkp-stickybar { display: none; }
@media (max-width: 767px) {
	.tkp .tkp-single { padding-bottom: 76px; }
	.tkp .tkp-stickybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--tkp-line);
	}
	.tkp-page .joinchat { display: none; } /* Avoid two WhatsApp buttons on project pages. */
}

@media (prefers-reduced-motion: reduce) {
	.tkp ul.tkp-carousel__track { scroll-behavior: auto; }
	.tkp .tkp-btn { transition: none; }
}

/* ===== Version 1.1 additions ===== */

/* Filters with a main row and a "More filters" drawer */
.tkp .tkp-filters { display: block; }
.tkp .tkp-filters__row {
	display: grid; gap: 14px; align-items: end;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.tkp .tkp-filters__more { margin-top: 14px; }
.tkp .tkp-filters__more summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--tkp-accent); padding: 6px 0; }
.tkp .tkp-filters__more .tkp-filters__row { margin-top: 10px; }
.tkp .tkp-filters__actions { margin-top: 16px; }
.tkp-search .tkp-btn { align-self: end; }

/* Similar properties and browse links */
.tkp .tkp-similar { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--tkp-line); }
.tkp .tkp-similar > h2 { margin: 0 0 18px; font-size: 1.4rem; }
.tkp .tkp-browse { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tkp .tkp-browse h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tkp .tkp-browse ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tkp .tkp-browse li { margin: 0; }
.tkp .tkp-browse a { color: var(--tkp-ink); text-decoration: none; }
.tkp .tkp-browse a:hover { color: var(--tkp-accent); text-decoration: underline; }
.tkp .tkp-browse span { color: var(--tkp-muted); font-size: 0.9rem; }

/* Location map */
.tkp .tkp-maptabs { display: inline-flex; margin: 0 0 12px; border: 1.5px solid var(--tkp-accent); border-radius: 8px; overflow: hidden; }
.tkp .tkp-maptabs button {
	min-height: 40px; padding: 8px 16px; border: 0; border-radius: 0; background: #fff; color: var(--tkp-accent);
	font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.tkp .tkp-maptabs button.is-on { background: var(--tkp-accent); color: #fff; }
.tkp .tkp-map__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* Plot availability */
.tkp .tkp-plots { max-width: none; }
.tkp .tkp-plots__summary { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.tkp .tkp-plots__summary span { color: var(--tkp-muted); font-size: 0.92rem; }
.tkp ul.tkp-legend { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; }
.tkp ul.tkp-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.tkp .tkp-swatch { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--tkp-accent); background: color-mix(in srgb, var(--tkp-accent) 30%, #fff); }
.tkp .tkp-swatch.is-reserved { border-color: #9A5800; background: #F6DE9C; }
.tkp .tkp-swatch.is-sold { border-color: #7A847F; background: repeating-linear-gradient(45deg, #E4E7E5 0 4px, #9AA39E 4px 7px); }

.tkp .tkp-plotmap { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tkp .tkp-plotmap { grid-template-columns: minmax(0, 1fr) 300px; } }
.tkp .tkp-plotmap__stage { border: 1px solid var(--tkp-line); border-radius: var(--tkp-radius); background: #fff; padding: 12px; overflow-x: auto; }
.tkp .tkp-plotmap__stage svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.tkp .tkp-plot { cursor: pointer; outline: none; }
.tkp .tkp-plot polygon { stroke-width: 1.6; stroke-linejoin: round; transition: fill .12s ease; }
.tkp .tkp-plot text { fill: var(--tkp-ink); font-weight: 600; pointer-events: none; font-family: inherit; }
.tkp .tkp-plot.is-available polygon { fill: color-mix(in srgb, var(--tkp-accent) 30%, #fff); stroke: var(--tkp-accent); }
.tkp .tkp-plot.is-available:hover polygon { fill: color-mix(in srgb, var(--tkp-accent) 52%, #fff); }
.tkp .tkp-plot.is-reserved polygon { fill: #F6DE9C; stroke: #9A5800; }
.tkp .tkp-plot.is-reserved:hover polygon { fill: #F0CB6A; }
.tkp .tkp-plot.is-sold polygon { stroke: #7A847F; }
.tkp .tkp-plot.is-sold text { fill: #4A524E; }
.tkp .tkp-plot.is-selected polygon { stroke-width: 4; stroke: var(--tkp-ink); }
.tkp .tkp-plot:focus-visible polygon { stroke-width: 4; stroke: var(--tkp-ink); stroke-dasharray: 6 3; }
.tkp .only-available .tkp-plot.is-sold, .tkp .only-available .tkp-plot.is-reserved { opacity: .35; }
.tkp .only-available tr.is-sold, .tkp .only-available tr.is-reserved { display: none; }

.tkp .tkp-plotmap__panel {
	padding: 20px; border: 1px solid var(--tkp-line); border-radius: var(--tkp-radius); background: var(--tkp-bg);
	display: grid; gap: 12px; min-height: 120px;
}
.tkp .tkp-plotmap__panel > * { margin: 0; }
.tkp .tkp-plotmap__hint { color: var(--tkp-muted); }
.tkp .tkp-plotmap__title { font-size: 1.5rem; line-height: 1.2; }
.tkp .tkp-plotmap__note { margin: 12px 0 0; color: var(--tkp-muted); font-size: 0.88rem; }

.tkp .tkp-state {
	display: inline-block; width: fit-content; padding: 3px 10px; border-radius: 999px;
	font-size: 0.85rem; font-weight: 700; line-height: 1.4;
	background: color-mix(in srgb, var(--tkp-accent) 14%, #fff); color: var(--tkp-accent);
}
.tkp .tkp-state.is-reserved { background: #F6DE9C; color: #6B3E00; }
.tkp .tkp-state.is-sold { background: #E4E7E5; color: #3E4642; }

.tkp .tkp-plotlist { margin-top: 28px; }
.tkp .tkp-plotlist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tkp .tkp-plotlist__head h3 { margin: 0; font-size: 1.15rem; }
.tkp .tkp-field--inline { flex-direction: row; align-items: center; gap: 10px; }
.tkp .tkp-field--inline select { width: auto; }
.tkp .tkp-plots-table th[scope="row"] { font-weight: 700; }
.tkp .tkp-plots-table tr.is-sold td, .tkp .tkp-plots-table tr.is-sold th { color: #5F6B66; }
.tkp .tkp-rowlink { display: inline-flex; align-items: center; gap: 6px; color: var(--tkp-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tkp .tkp-rowlink:hover { text-decoration: underline; }
.tkp .tkp-plotlist .tkp-table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--tkp-line); border-radius: 8px; }
.tkp .tkp-plotlist .tkp-table thead th { position: sticky; top: 0; z-index: 1; }

.tkp .tkp-plotmap__panel .tkp-facts > div { grid-template-columns: 4rem 1fr; }
.tkp .tkp-plotmap__panel .tkp-facts { margin: 0; }
.tkp .tkp-plotmap__swipe { display: none; margin: 8px 0 0; color: var(--tkp-muted); font-size: 0.85rem; }
@media (max-width: 899px) {
	.tkp .tkp-plotmap__stage svg { min-width: 680px; }
	.tkp .tkp-plotmap__swipe { display: block; }
}
@media (max-width: 640px) {
	.tkp .tkp-plots-table th, .tkp .tkp-plots-table td { padding: 10px 8px; font-size: 0.9rem; }
	.tkp .tkp-plots-table td:nth-child(3) { white-space: nowrap; }
}

/* One-line filter bar: Location, Plot size, Budget, Sort by, button */
.tkp .tkp-filters {
	display: grid; gap: 12px 14px; align-items: end;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tkp .tkp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tkp .tkp-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } }
.tkp .tkp-filters .tkp-filters__actions { margin: 0; flex-wrap: nowrap; }
.tkp .tkp-filters .tkp-filters__actions .tkp-btn { white-space: nowrap; }
.tkp .tkp-filters__clear { white-space: nowrap; }
.tkp-search { display: grid; gap: 12px 14px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tkp-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tkp-search { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } }
