/* nyumbake bridge onto the vendored MakaUG design (mk-app.css).
   Our form/breadcrumb/chip markup is kept (JS + tests depend on it); these
   rules give it MakaUG's section-search, pill and results look, in the
   Kenyan-flag palette. Hand-written; not generated. */

/* Map price tags and "N homes" clusters (MakaUG mk-price-tag) */
.leaflet-marker-icon.mk-price-tag-wrap,
.leaflet-marker-icon.nke-cluster.mk-price-tag-wrap { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important; color: inherit; }
.nke-price-pin.mk-price-tag-wrap span.mk-price-tag { border: 0; padding: 5px 10px; background: var(--nke-green-dark); font: 800 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.28), 0 0 0 2px #fff; border-radius: 999px; }
.nke-price-pin.mk-price-tag-wrap span.mk-price-tag.is-approx { background: #fff; color: var(--nke-green-dark); box-shadow: 0 2px 6px rgba(0,0,0,.2), inset 0 0 0 1.5px var(--nke-green-dark); }
.nke-price-pin.mk-price-tag-wrap span.mk-price-tag:hover { background: var(--nke-red); color: #fff; }
.nke-cluster.mk-price-tag-wrap span.mk-price-tag.is-cluster { background: var(--nke-red); padding: 7px 12px; font-size: 13px; }
.mk-map-popup .nke-pin-popup { display: block; min-width: 0; color: #111; text-decoration: none; }
.mk-map-popup .nke-pin-popup img { width: 100%; height: 128px; object-fit: cover; border-radius: 0; margin: 0; display: block; }
.mk-map-popup .nke-pin-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.mk-map-popup .nke-pin-text strong { color: var(--nke-green-dark); font-size: 15px; font-weight: 800; }
.mk-map-popup .nke-pin-title { font-weight: 700; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-map-popup .nke-pin-where { font-size: 12px; color: #6b7280; }
.mk-map-popup .nke-pin-cta { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--nke-green); }

/* Page frame */
body.nke-mk { background: #f9fafb; }
body.nke-mk .nke-mk-page { display: block; }
.nke-mk-title-band h1 { color: #fff; }

/* Section search: our .property-search inside MakaUG's .section-search-inner */
.section-search-inner .property-search { display: block; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; max-width: none; }
.section-search-inner .property-search label > span:first-child,
.section-search-inner .property-search fieldset > legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section-search-inner .property-search label { display: block; margin: 0; min-width: 0; position: relative; }
.section-search-inner .category-search-primary { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) auto; gap: 8px; align-items: center; margin: 0; padding: 0; background: none; border: 0; }
.section-search-inner .category-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding: 0; background: none; border: 0; }
.section-search-inner .property-search input[type="search"],
.section-search-inner .property-search input[type="text"],
.section-search-inner .property-search input[type="number"],
.section-search-inner .property-search input[type="date"],
.section-search-inner .property-search select {
  width: 100%; min-width: 0; height: 44px; margin: 0;
  border: 1px solid color-mix(in srgb, var(--nke-green-line) 45%, transparent);
  border-radius: 8px; background-color: #fff; color: var(--nke-green-dark);
  font-size: 14px; font-weight: 700; padding: 0 10px; outline: none; box-shadow: none;
}
.section-search-inner .property-search input[type="search"] { padding: 0 44px 0 13px; font-weight: 600; }
.section-search-inner .property-search input:focus,
.section-search-inner .property-search select:focus { border-color: var(--nke-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nke-green) 16%, transparent); }
.section-search-inner .property-search select:disabled { opacity: .65; }
.section-search-inner .location-field { position: relative; display: block; }
.section-search-inner .location-field .locate-target { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--nke-green); display: inline-flex; align-items: center; justify-content: center; }
.section-search-inner .location-field .locate-target:hover { background: var(--nke-green-soft); }
.section-search-inner .property-search button[type="submit"] {
  height: 44px; border-radius: 8px; font-size: 13px; font-weight: 800; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  border: 1px solid var(--nke-green-dark); background: var(--nke-green); color: #fff; margin: 0; box-shadow: none;
}
.section-search-inner .property-search button[type="submit"]:hover { background: var(--nke-green-dark); }
.section-search-inner .property-search button[type="submit"]::before { content: "\f002"; font: 900 13px "Font Awesome 6 Free"; }
.section-search-inner .location-status:empty { display: none; }
.section-search-inner .location-status { margin: 6px 0 0; font-size: 12px; color: var(--nke-green-dark); }
@media (max-width: 1023px) {
  .section-search-inner .category-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section-search-shell { position: relative; top: auto; }
  .section-search-inner .category-search-primary { grid-template-columns: 1fr 1fr; }
  .section-search-inner .category-search-primary > label:first-child { grid-column: 1 / -1; }
}

/* Breadcrumbs, intro and popular-area chips as MakaUG pills */
.nke-mk-page .nke-breadcrumbs { margin: 0 0 12px; font-size: 13px; color: #6b7280; }
.nke-mk-page .nke-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nke-mk-page .nke-breadcrumbs a { color: var(--nke-green); font-weight: 600; text-decoration: none; }
.nke-mk-page .nke-breadcrumbs a:hover { text-decoration: underline; }
.nke-mk-page .nke-mk-intro { margin: 0 0 14px; color: #4b5563; font-size: 14px; line-height: 1.6; }
.nke-mk-page .nke-area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.nke-mk-page .nke-area-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--nke-green-soft); color: var(--nke-green-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.nke-mk-page .nke-area-chips a:hover { background: var(--nke-green-soft); }

/* Results header + grid */
.nke-mk-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.nke-mk-results-head #result-count { color: #4b5563; font-size: 14px; margin: 0; }
.nke-mk-results-head #result-count strong { color: #111; }
.nke-mk-results-head select { height: 38px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; }
.nke-mk-save-search { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--nke-green); background: none; border: 0; cursor: pointer; padding: 0; }
.nke-mk-save-search:hover { text-decoration: underline; }
.mk-listing-grid { margin: 0; padding: 0; list-style: none; }
.mk-listing-grid > .property-card.mk-card { display: block; }
.mk-card .nke-photo-placeholder,
.mk-card .listing-card-media.nke-photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mk-card .listing-card-source { line-height: 1.4; }
.mk-card .property-description-tooltip { opacity: 0; transition: opacity .2s ease; }
@media (hover: hover) { .mk-card:hover .property-description-tooltip { opacity: 0; } }
.nke-mk-page #results-pagination { margin-top: 24px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.nke-mk-page #results-pagination a,
.nke-mk-page #results-pagination button,
.nke-mk-page #results-pagination span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #374151; text-decoration: none; }
.nke-mk-page #results-pagination [aria-current="page"] { background: var(--nke-green); color: #fff; border-color: var(--nke-green); }
.nke-mk-page #empty-state { background: #fff; border: 1px dashed var(--nke-green-line); border-radius: 14px; padding: 28px; text-align: center; color: #4b5563; }

/* Map column */
.listing-map-shell .map-h .leaflet-container,
.listing-map-shell .map-h { border-radius: 12px; }
.listing-map-shell .nke-mk-map-note { font-size: 12px; color: #6b7280; margin: 8px 2px 0; }

/* Ask-AI band spacing like MakaUG */
.ai-search-band .ask-ai-search-shell { margin-bottom: 0; }

/* Results/map split exactly like MakaUG (lg:grid-cols-3, list spans 2) */
#marketplace-results.results-band { grid-template-columns: minmax(0, 1fr); padding-block: 32px; min-height: 0; }
@media (min-width: 1024px) { #marketplace-results.results-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nke-mk-page .search-scope { color: rgba(255,255,255,.78) !important; }
.nke-mk-page .search-scope span { color: inherit; }
.ai-search-band .ask-ai-search-row { display: flex; width: 100%; max-width: none; }
.ai-search-band .ask-ai-search-input { flex: 1 1 auto; min-width: 0; width: auto; max-width: none; }
.listing-map-shell [data-nyumbake-search-map] { min-height: 420px; }
.section-search-inner .location-field .locate-target { top: 22px; }
.listing-map-shell .nke-map-toggle { display: none; }
.nke-mk-page nav.nke-area-chips { display: block; background: color-mix(in srgb, var(--nke-green-soft) 55%, #fff); border: 1px solid var(--nke-green-soft); border-radius: 14px; padding: 14px 12px; margin: 0 0 20px; }
.nke-mk-page nav.nke-area-chips h2 { font-size: 15px; font-weight: 700; color: #1f2937; margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
.nke-mk-page nav.nke-area-chips > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nke-mk-page nav.nke-area-chips a { display: inline-flex; gap: 4px; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--nke-green-line); color: var(--nke-green-dark); font-size: 13px; font-weight: 500; text-decoration: none; }
.nke-mk-page nav.nke-area-chips a span::before { content: "("; } .nke-mk-page nav.nke-area-chips a span::after { content: ")"; }
.nke-mk-page nav.nke-area-chips a span { color: inherit; background: none; padding: 0; font-weight: 500; }
.nke-mk-page .nke-seo-intro { color: #374151 !important; font-size: 15px; line-height: 1.6; }
.mk-card .p-4 h3 a { color: inherit; text-decoration: none; }
.mk-card .listing-card-category { margin: 0 0 4px; }
.ai-search-band form.ai-search-form { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
.section-search-inner .location-field { height: 44px; }
.section-search-inner .location-field .locate-target { top: 6px !important; bottom: auto !important; transform: none !important; margin: 0 !important; }
.mk-card .mk-card-media .nke-photo-placeholder { position: absolute; inset: 0; margin: 0; border-radius: 0; width: auto; height: auto; max-width: none; }
.mk-card .mk-card-media > .absolute.top-2.left-2 { align-items: flex-start; }
.nke-mk-page .results-heading-row { border: 0; padding: 0; }
.nke-mk-page .sort-control { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.nke-mk-page .sort-control > span { position: static; width: auto; height: auto; margin: 0; clip: auto; }

/* ---------- Property detail (MakaUG property page layout) ---------- */
body.nke-mk-detail .nke-detail-wrap { max-width: 80rem; margin: 0 auto; padding: 16px 16px 48px; }
body.nke-mk-detail .nke-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--nke-green); font-size: 13px; font-weight: 700; margin: 4px 0 10px; text-decoration: none; }
body.nke-mk-detail .nke-back-link::before { content: "\f060"; font: 900 12px "Font Awesome 6 Free"; }
body.nke-mk-detail .nke-detail-crumbs { font-size: 12px; color: #6b7280; margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
body.nke-mk-detail .nke-detail-crumbs a { color: var(--nke-green); }
body.nke-mk-detail .nke-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) { body.nke-mk-detail .nke-detail-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
body.nke-mk-detail .nke-detail-main-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 18px; padding: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; }
body.nke-mk-detail .nke-gallery-hero { position: relative; height: 420px; border-radius: 14px; overflow: hidden; background: #f3f4f6; margin: 0; }
body.nke-mk-detail .nke-gallery-hero .detail-gallery-primary { width: 100%; height: 100%; object-fit: cover; border-radius: 0; max-height: none; }
body.nke-mk-detail .nke-gallery-count { position: absolute; right: 10px; bottom: 10px; left: auto; top: auto; background: rgba(17,17,17,.72); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
body.nke-mk-detail .nke-gallery-credit { position: absolute; left: 10px; bottom: 10px; background: rgba(17,17,17,.72); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 600; }
body.nke-mk-detail .nke-mk-gallery-label { margin: 12px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
body.nke-mk-detail .nke-detail-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 8px; margin: 0; overflow: visible; }
body.nke-mk-detail .nke-detail-thumb { height: 72px; width: auto; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #f3f4f6; }
body.nke-mk-detail .nke-detail-thumb.is-active { border-color: var(--nke-green); }
body.nke-mk-detail .nke-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.nke-mk-detail .nke-detail-body { padding: 16px 12px 12px; }
body.nke-mk-detail .nke-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
body.nke-mk-detail .nke-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; background: var(--nke-green); color: #fff; border: 0; }
body.nke-mk-detail .nke-badge-warn { background: var(--nke-red); color: #fff; }
body.nke-mk-detail .nke-badge-ok { background: var(--nke-green-dark); color: #fff; }
body.nke-mk-detail .detail-card-title { font-size: 1.875rem; line-height: 1.2; font-weight: 800; color: #111827; margin: 0 0 6px; letter-spacing: -.01em; }
body.nke-mk-detail .nke-detail-location { color: #4b5563; font-size: 14px; margin: 0 0 4px; }
body.nke-mk-detail .detail-date { color: #6b7280; font-size: 12px; margin: 4px 0 10px; }
body.nke-mk-detail .nke-detail-price { font-size: 2rem; font-weight: 900; color: var(--nke-green-dark); margin: 10px 0 8px; }
body.nke-mk-detail .nke-mk-share-row { display: flex; gap: 6px; margin: 0 0 12px; }
body.nke-mk-detail .nke-detail-quickfacts { color: #374151; font-size: 14px; font-weight: 600; }
body.nke-mk-detail .nke-detail-subhead { font-size: 1.125rem; font-weight: 800; color: #111827; margin: 22px 0 10px; }
body.nke-mk-detail .detail-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; border: 0; background: none; padding: 0; }
body.nke-mk-detail .detail-fact { background: color-mix(in srgb, var(--nke-green-soft) 60%, #fff); border: 1px solid var(--nke-green-soft); border-radius: 10px; padding: 10px 12px; }
body.nke-mk-detail .detail-fact dt { font-size: 11px; color: #6b7280; text-transform: none; letter-spacing: 0; font-weight: 600; }
body.nke-mk-detail .detail-fact dd { font-size: 14px; font-weight: 800; color: #111827; margin: 2px 0 0; }
body.nke-mk-detail .detail-summary { color: #374151; font-size: 14px; line-height: 1.7; }
body.nke-mk-detail .nke-detail-side { position: sticky; top: 5rem; }
body.nke-mk-detail .nke-side-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body.nke-mk-detail .nke-side-price { font-size: 1.5rem; font-weight: 900; color: var(--nke-green-dark); margin: 0; }
body.nke-mk-detail .nke-side-title { font-size: 1.05rem; font-weight: 800; color: #111827; margin: 10px 0 8px; }
body.nke-mk-detail .detail-actions { display: grid; gap: 8px; margin-top: 12px; }
body.nke-mk-detail .detail-action { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; border: 1px solid var(--nke-green); color: var(--nke-green-dark); background: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
body.nke-mk-detail .detail-action:hover { background: var(--nke-green-soft); }
body.nke-mk-detail .detail-action-primary { background: var(--nke-green); color: #fff; border-color: var(--nke-green-dark); }
body.nke-mk-detail .detail-action-primary:hover { background: var(--nke-green-dark); }
body.nke-mk-detail .detail-map-section,
body.nke-mk-detail .detail-trust,
body.nke-mk-detail .detail-safety,
body.nke-mk-detail .detail-similar { background: #fff; border: 1px solid #f3f4f6; border-radius: 18px; padding: 22px; margin-top: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body.nke-mk-detail .detail-section-heading h2,
body.nke-mk-detail .detail-trust h2 { font-size: 1.25rem; font-weight: 800; color: #111827; }
body.nke-mk-detail .detail-location-map { height: 360px; border-radius: 14px; overflow: hidden; }
body.nke-mk-detail .detail-similar .listing-grid { display: grid; }
@media (max-width: 640px) {
  body.nke-mk-detail .nke-gallery-hero { height: 260px; }
  body.nke-mk-detail .nke-detail-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.nke-mk-detail .detail-card-title { font-size: 1.5rem; }
  body.nke-mk-detail .nke-detail-side { position: static; }
}
body.nke-mk-detail .nke-gallery-hero > .nke-photo-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-card .mk-card-media > img, .mk-card .mk-card-media > .nke-photo-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; margin: 0; object-fit: cover; }
.mk-card .listing-card-category { color: #fff !important; background: var(--nke-green) !important; }
.mk-card .mk-card-price .listing-card-price { color: #fff; font-size: 13px; font-weight: 800; margin: 0; }
footer .text-green-200, footer .text-green-300, footer .text-green-400 { color: #d1d5db; }
footer .text-green-200 a:hover, footer a.hover\:text-white:hover { color: #fff; }
.mk-card p.listing-card-facts::before { content: "\f236"; font: 900 12px "Font Awesome 6 Free"; color: #9ca3af; margin-right: 4px; }

/* ---------- Short-term (MakaUG short-stay layout) ---------- */
#page-short-term.nke-mk-page { background: linear-gradient(180deg, var(--nke-green-soft) 0, #fff 420px); }
#page-short-term .nke-mk-title-band { background: transparent !important; padding: 36px 0 8px; }
#page-short-term .nke-mk-title-band h1 { color: var(--nke-ink) !important; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; }
#page-short-term .nke-mk-title-band .search-scope, #page-short-term .nke-mk-title-band .search-scope * { color: #4b5563 !important; }
#page-short-term .section-search-shell { background: transparent; border: 0; }
#page-short-term .section-search-inner .property-search { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center; background: #fff; border-radius: 999px; padding: 10px 10px 10px 18px; box-shadow: 0 10px 30px rgba(17,17,17,.08); border: 1px solid #f3f4f6; }
#page-short-term .section-search-inner .property-search datalist { display: none; }
#page-short-term .section-search-inner .property-search button[type="submit"] { border-radius: 999px; padding: 0 24px; background: var(--nke-black); }
#page-short-term .section-search-inner .property-search button[type="submit"]:hover { background: var(--nke-black-true); }
@media (max-width: 1023px) {
  #page-short-term .section-search-inner .property-search { grid-template-columns: 1fr 1fr; border-radius: 18px; padding: 12px; }
  #page-short-term .section-search-inner .property-search .search-location,
  #page-short-term .section-search-inner .property-search button[type="submit"] { grid-column: 1 / -1; }
}
.mk-card .listing-card-category:not(.bg-green-700) { background: none !important; color: var(--nke-green) !important; padding: 0; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; display: block; margin: 0 0 4px; }
@media (min-width: 1024px) {
  #page-short-term .section-search-inner .property-search .search-location { grid-column: auto; }
  #page-short-term .section-search-inner .property-search button[type="submit"] { width: auto; min-width: 128px; }
}

/* Footer: red headings, light links on black (cleanup 2026-11-04) */
footer.bg-green-900 h4 { color: var(--nke-red) !important; }
footer.bg-green-900 a:hover { color: #fff !important; text-decoration: underline; }
