
@font-face { font-family: Yekan; src: url('/fonts/Yekan.woff') format('woff'); font-display: swap; }
@font-face { font-family: KjDigits; src: url('/fonts/KjDigits.woff') format('woff'); unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066A-066C; font-display: swap; }
@font-face { font-family: KjDigits; font-weight: 700; src: url('/fonts/KjDigits-bold.woff') format('woff'); unicode-range: U+0030-0039, U+06F0-06F9, U+0660-0669, U+066A-066C; font-display: swap; }
:root {
  --am-cyan: #009abd;        
  --am-cyan-deep: #00718b;
  --am-cyan-soft: #e0f3f8;
  --am-gold: #d2960a;        
  --am-ochre-deep: #94690a;
  --am-ochre-soft: #fbf1d8;
  --am-crimson: #a3214f;     
  --am-crimson-soft: #f8e4ec;
  --am-rent: #b98300;        
  --am-ink: #12323b;
  --am-mute: #5e7a82;
  --am-line: #d5e7ec;
  --am-bg: #f3fafc;
  --am-card: #fff;
  --am-font: KjDigits, Yekan, 'B Yekan', system-ui, sans-serif;
}
html, body, button, input, select, textarea, option, .maplibregl-map, .maplibregl-ctrl, .maplibregl-popup { font-family: var(--am-font); }
.am-bar-bg { background: var(--am-cyan) url('/images/topbg.png') center bottom / auto 118% no-repeat; box-shadow: 0 3px 10px rgba(0, 45, 60, 0.38); }
@media (max-width: 700px) {
  #header-container { padding-top: 4px !important; background-size: auto 60px; }
  #header-container .AmlakihaLogo { width: 46px; height: 46px; }
  #header-container .welcome, #header-container .title { font-size: 1.05rem; line-height: 1.6; }
  #header-container .platform, #header-container .subtitle { display: none; }
}
.maplibregl-ctrl-attrib { direction: ltr; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button { background: #fff url('/images/kojamoja-mark.png') center / cover no-repeat; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.am-profile { flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--am-cyan-deep); box-shadow: 0 1px 5px rgba(0, 60, 80, 0.35); cursor: pointer; }
.am-profile svg, .am-profile-menu svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-profile svg { width: 24px; height: 24px; }
.am-profile svg .f, .am-profile-menu svg .f { fill: var(--am-gold); stroke: none; }
.am-profile svg.is-solid, .am-profile-menu svg.is-solid { stroke: none; }
svg.is-solid .c { fill: var(--am-cyan); }
svg.is-solid .d { fill: var(--am-cyan-deep); }
svg.is-solid .g { fill: var(--am-gold); }
svg.is-solid .w { fill: #fff; }
.am-profile-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 8px; width: min(280px, calc(100vw - 16px)); padding: 6px; border-radius: 16px; background: #fff; color: var(--am-ink); box-shadow: 0 10px 30px rgba(18, 50, 59, 0.28); }
.am-profile-menu p { margin: 0; padding: 6px 10px 4px; font-size: 12px; color: var(--am-mute); }
.am-profile-menu p.is-soon { padding: 8px 10px 6px; border-top: 1px solid var(--am-line); margin-top: 4px; text-align: center; }
.am-profile-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--am-ink); text-align: start; cursor: pointer; }
.am-profile-menu button:hover { background: var(--am-bg); }
.am-profile-menu button.is-on { background: var(--am-cyan-soft); }
.am-profile-menu button svg { flex: none; width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #fff; color: var(--am-cyan-deep); box-shadow: 0 0 0 1.5px var(--am-line); box-sizing: content-box; }
.am-profile-menu button.is-on svg { box-shadow: 0 0 0 1.5px var(--am-cyan); }
.am-profile-menu button span { display: grid; line-height: 1.5; }
.am-profile-menu button b { font-size: 14px; }
.am-profile-menu button small { font-size: 12px; color: var(--am-mute); }
.am-city { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(18, 50, 59, 0.45); }
.am-city-card { width: 100%; max-width: 440px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: var(--am-ink); box-shadow: 0 -8px 30px rgba(18, 50, 59, 0.3); }
.am-city-card h2 { margin: 0 0 4px; font-size: 18px; }
.am-city-card > p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; color: var(--am-mute); }
.am-city-search { position: relative; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; border: 1.5px solid var(--am-line); border-radius: 12px; background: #fff; }
.am-city-search:focus-within { border-color: var(--am-cyan); box-shadow: 0 0 0 3px rgba(0, 154, 189, 0.18); }
.am-city-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--am-mute); stroke-width: 2; stroke-linecap: round; }
.am-city-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--am-ink); }
.am-city-search ul { position: absolute; inset: auto 0 54px 0; z-index: 2; margin: 0; padding: 4px; list-style: none; max-height: 40vh; overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 -6px 20px rgba(18, 50, 59, 0.22); }
.am-city-search li { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 8px; cursor: pointer; }
.am-city-search li:hover { background: var(--am-cyan-soft); }
.am-city-search small { color: var(--am-mute); }
.am-city-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.am-city-quick button { height: 38px; padding: 0 14px; border: 1.5px solid var(--am-line); border-radius: 999px; background: #fff; color: var(--am-ink); font-size: 14px; cursor: pointer; }
.am-city-quick button:hover { border-color: var(--am-cyan); background: var(--am-cyan-soft); }
.am-city-skip { width: 100%; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--am-mute); font-size: 14px; cursor: pointer; }
@media (min-width: 700px) { .am-city { align-items: center; } .am-city-card { border-radius: 22px; } .am-city-search ul { inset: 54px 0 auto 0; box-shadow: 0 6px 20px rgba(18, 50, 59, 0.22); } }
.am-gal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 12px; background: rgba(8, 40, 50, 0.28); }
.am-gal-box { position: relative; width: min(100%, 720px); display: flex; flex-direction: column; border-radius: 18px; background: #fff; color: var(--am-ink); box-shadow: 0 2px 10px rgba(0, 45, 60, 0.3); overflow: hidden; }
.am-gal-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.am-gal-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; }
.am-gal-count { flex: none; padding: 0 10px; border-radius: 999px; background: var(--am-cyan-soft); color: var(--am-cyan-deep); font-size: 12.5px; line-height: 26px; }
.am-gal-x { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--am-cyan-soft); color: var(--am-cyan-deep); font-size: 24px; line-height: 1; cursor: pointer; }
.am-gal-track { height: min(62vh, 75vw, 520px); display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; background: #eef5f6; }
.am-gal-track::-webkit-scrollbar { display: none; }
.am-gal-slide { position: relative; flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.am-gal-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.am-gal-dots { flex: none; display: flex; justify-content: center; gap: 7px; padding: 11px 0 13px; }
.am-gal-dots[hidden] { display: none; }
.am-gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--am-line); transition: width 0.2s, background 0.2s; }
.am-gal-dots i.is-on { width: 20px; border-radius: 999px; background: var(--am-gold); }
.am-gal-nav { display: none; position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--am-cyan-deep); box-shadow: 0 2px 8px rgba(0, 45, 60, 0.3); cursor: pointer; }
.am-gal-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.am-gal-nav.is-prev { right: 12px; }
.am-gal-nav.is-next { left: 12px; }
.am-gal-nav:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 900px) { .am-gal-nav:not([hidden]) { display: grid; place-items: center; } }
.am-gal-dots { padding-bottom: 9px; }
.am-gal-info { padding: 10px 14px 14px; border-top: 1px solid var(--am-line); }
.am-gal-info p { margin: 0; color: var(--am-mute); font-size: 13px; line-height: 1.9; }
.am-gal-info .am-gal-price { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--am-cyan-deep); font-size: 16px; font-weight: 700; }
.am-gal-info .hm-tag { flex: none; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 400; line-height: 22px; background: var(--am-cyan-soft); color: var(--am-cyan-deep); }
.am-gal-info .hm-tag.is-rent { background: var(--am-ochre-soft); color: var(--am-ochre-deep); }
.am-gal-track { height: min(54vh, 75vw, 500px); }
@media (max-width: 899px) {
  .am-gal { place-items: end center; padding: 8px 8px calc(54px + env(safe-area-inset-bottom) + 8px); background: rgba(8, 40, 50, 0.16); }
  .am-gal-track { height: min(38vh, 70vw, 420px); }
  .am-gal-head { padding: 6px 8px; }
  .am-gal-dots { padding: 8px 0 7px; }
  .am-gal-info { padding: 8px 12px 10px; }
}
.am-gal .am-gal-track { height: auto; aspect-ratio: 3 / 2; max-height: 60vh; background: #eef5f6; }
.am-gal-slide img { object-fit: contain; }
.am-gal-back { position: absolute; inset: -24px; background: center / cover no-repeat; filter: blur(20px) brightness(0.72) saturate(1.1); }
@media (min-width: 900px) {
  .am-gal { place-items: end center; padding: 16px; background: rgba(8, 40, 50, 0.16); }
  .am-gal-box { width: min(100%, 540px); }
  .am-gal .am-gal-track { max-height: 46vh; }
  body.home:not(.my) .am-gal { padding-right: 416px; }
}
.am-gal-slide.is-empty { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--am-mute); font-size: 13px; }
.am-gal-slide.is-empty svg { width: 64px; height: 64px; fill: none; stroke: var(--am-cyan-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.am-gal-slide.is-empty { background: radial-gradient(circle at 50% 35%, #ffffff 0, rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #e6f6f9, #bfe5ed); }
.am-gal-decor { position: absolute; z-index: 2; inset: 10px auto auto 10px; padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #8a4b00; font-size: 12px; font-weight: 700; } 
.am-gal .am-gal-track:has(.is-empty) { aspect-ratio: 5 / 2; }
.am-update { position: fixed; z-index: 100; top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; margin: 0 auto; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--am-ink); color: #fff; font-size: 13.5px; box-shadow: 0 6px 20px rgba(18, 50, 59, 0.35); }
.am-update span { flex: 1; min-width: 0; padding-inline-start: 4px; }
.am-update-go { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--am-gold); color: #fff; font: 700 13.5px var(--am-font); cursor: pointer; }
.am-update-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 899px) { .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in) { display: none; } }
.am-gal-box { max-height: 100%; }
.am-gal-track, .am-gal-head, .am-gal-dots { flex-shrink: 0; }
.am-gal-info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.am-gal-specs { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--am-line); font-size: 13px; line-height: 1.8; }
.am-gal-specs dt { color: var(--am-mute); }
.am-gal-specs dd { margin: 0; color: var(--am-ink); font-weight: 700; }
.am-gal-info .am-gal-desc { margin-top: 10px; color: var(--am-ink); white-space: pre-line; }
.am-gal-head { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; }
.am-gal-head .am-gal-x { justify-self: start; }
.am-gal-head .am-gal-count { justify-self: end; }
.am-gal-head strong { text-align: center; }
.am-gal-info .am-gal-price { justify-content: center; flex-wrap: wrap; row-gap: 2px; text-align: center; }
.am-gal-info > p:not(.am-gal-price):not(.am-gal-desc) { text-align: center; }
@media (max-width: 899px) {
  .am-gal-head strong { font-size: 17px; font-weight: 700; }
  .am-gal-info .am-gal-price { font-size: 20px; font-weight: 700; }
  .am-gal-info .am-gal-price .hm-tag { font-size: 12.5px; }
}
@media (max-width: 899px) { .am-gal-box { max-height: 90%; } }
.am-gal-slide { overflow: hidden; touch-action: pan-x pan-y; }
.am-gal-slide img { transform-origin: center; will-change: transform; }
.am-gal-track.is-zoomed { overflow: hidden; touch-action: none; }
.am-gal-track.is-zoomed .am-gal-slide { touch-action: none; }
@media (max-width: 899px) {
  .am-gal-info { scrollbar-width: none; }
  .am-gal-info::-webkit-scrollbar { display: none; }
}
a.am-update-go { display: grid; place-items: center; text-decoration: none; }
.am-gal-head .am-gal-count { white-space: nowrap; }
.am-gal-acts { justify-self: start; display: flex; align-items: center; gap: 6px; }
.am-gal-map { flex: none; display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; background: var(--am-cyan-soft); color: var(--am-cyan-deep); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.am-gal-map svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .am-gal-map { padding: 0 9px 0 7px; font-size: 12px; } .am-gal-head { gap: 6px; } }
.am-gal-go { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.am-gal-go .am-gal-map { height: auto; min-height: 40px; padding: 6px 14px 6px 12px; border: 1.5px solid var(--am-cyan-deep); background: var(--am-cyan-deep); color: #fff; font-size: 14px; }
.am-profile-menu .am-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--am-line); color: var(--am-ink); text-decoration: none; }
.am-profile-menu .am-who svg { flex: none; width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: var(--am-cyan-soft); color: var(--am-cyan-deep); box-sizing: content-box; }
.am-profile-menu .am-who span { display: grid; line-height: 1.5; min-width: 0; }
.am-profile-menu .am-who b { font-size: 14.5px; }
.am-profile-menu .am-who small { font-size: 12px; color: var(--am-mute); }
.am-menu-foot { display: flex; gap: 6px; padding: 6px 4px 2px; }
.am-profile-menu > .am-menu-foot:first-child { padding: 4px 4px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--am-line); }
.am-menu-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; border: 1.5px solid var(--am-line); background: #fff; color: var(--am-ink); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.am-menu-btn.is-login { border: 0; background: var(--am-cyan); color: #fff; }
.am-menu-btn.is-office { color: var(--am-ochre-deep); border-color: var(--am-gold); }
.am-menu-btn.is-office svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-menu-btn.is-office svg .f { fill: var(--am-gold); stroke: none; }
.am-menu-btn.is-out { flex: none; padding: 0 14px; color: var(--am-crimson); }
.am-profile-menu p.is-soon { line-height: 1.8; }
.am-profile-menu .am-menu-btn { width: auto; padding: 0 12px; justify-content: center; }
.am-profile-menu .am-menu-btn.is-login:hover { background: #008aa9; }
.am-menu-roles { padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--am-line); }
.am-menu-roles .am-role { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--am-ink); text-decoration: none; }
.am-menu-roles .am-role:hover { background: var(--am-bg); }
.am-menu-roles .am-role svg { flex: none; width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #fff; color: var(--am-cyan-deep); box-shadow: 0 0 0 1.5px var(--am-line); box-sizing: content-box; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-menu-roles .am-role svg .f { fill: var(--am-gold); stroke: none; }
.am-menu-roles .am-role svg.is-solid { stroke: none; }
.am-menu-roles .am-role span { display: grid; line-height: 1.5; }
.am-menu-roles .am-role b { font-size: 14px; }
.am-menu-roles .am-role small { font-size: 12px; color: var(--am-mute); }
.am-menu-about { display: flex; justify-content: center; gap: 4px; margin-top: 6px; padding: 8px 4px 2px; border-top: 1px solid var(--am-line); }
.am-profile-menu .am-menu-about a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; color: var(--am-mute); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.am-profile-menu .am-menu-about a:hover { background: var(--am-cyan-soft); color: var(--am-cyan-deep); }
.am-menu-about a + a::before { content: ''; }
.am-x-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--am-line); color: var(--am-mute); text-decoration: none; transition: background 0.15s, color 0.15s; }
.am-x-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.am-x-close:hover, .am-x-close:focus-visible { background: var(--am-crimson-soft, #fde8ea); color: var(--am-crimson, #c0283a); border-color: transparent; }
.am-menu-post { display: flex; gap: 6px; padding: 8px 4px; border-bottom: 1px solid var(--am-line); }
.am-menu-btn.is-post { border: 0; background: var(--am-cyan); color: #fff; }
.am-menu-btn.is-post.is-rent { background: var(--am-rent); }
.am-menu-btn.is-post svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-menu-btn.is-post svg .f { fill: rgba(255, 255, 255, 0.28); stroke: none; }
