/* পেটুকের ম্যাপ */
.kh-hero {
  background: #A8231B; color: #fff; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, .07) 26px 29px);
}
.kh-hero::before, .kh-hero::after {
  content: ''; position: absolute; left: 14px; right: 14px; border-top: 3px dashed rgba(255, 244, 224, .55);
}
.kh-hero::before { top: 12px; } .kh-hero::after { bottom: 12px; }
.kh-hero-in { max-width: 860px; margin: 0 auto; padding: 34px 18px 38px; text-align: center; }
.kh-kicker { margin: 0; color: #FFC94A; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.kh-hero h1 { font-family: "Galada", "Anek Bangla", cursive; font-weight: 400; font-size: clamp(44px, 11vw, 72px); line-height: 1.1; margin: 4px 0 6px; text-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.kh-tag { margin: 0 auto 10px; font-size: 18px; max-width: 560px; color: #FFE9D2; }
.kh-stats { margin: 0 0 16px; font-weight: 700; color: #FFC94A; min-height: 1.4em; }
.kh-add-btn { background: #FFC94A; color: #3B1F00; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }

.kh-bar { position: sticky; top: 0; z-index: 20; background: rgba(251, 245, 236, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.kh-bar-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.kh-bar select { min-height: 44px; padding: 8px 12px; font-size: 16px; }
.kh-search { grid-column: 1 / -1; position: relative; }
.kh-search span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; }
.kh-search input { padding-left: 40px; min-height: 46px; }
@media (min-width: 760px) { .kh-bar-in { grid-template-columns: 200px 200px 1fr; } .kh-search { grid-column: auto; } }

.kh-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px 50px; }
.kh-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.kh-h { font-size: 21px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kh-h small { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.kh-grid2 { display: grid; gap: 18px; }
@media (min-width: 900px) { .kh-grid2 { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } .kh-side { position: sticky; top: 130px; } }

.kh-mapbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.kh-mapbox svg { display: block; width: 100%; height: auto; max-height: 56vh; }
.kh-mapbox .d { fill: #F1E7DA; stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.kh-mapbox .d:hover { fill: #F2A65A; }
.kh-mapbox .u { fill: #F7E3CB; stroke: #C99A6E; cursor: pointer; transition: fill .15s; }
.kh-mapbox .u:hover { fill: #F5CFA3; }
.kh-mapbox .u.on { fill: #F2A65A; }
.kh-mapbox .nb { fill: #F6EFE5; stroke: #E2D4C0; }
.kh-mapbox text { fill: #6B3E26; text-anchor: middle; dominant-baseline: middle; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: #FFF6EA; }
.kh-mapbox .pin { fill: #D7263D; stroke: #fff; cursor: pointer; }
.kh-mapbox .pin.hl { fill: #FFC94A; stroke: #A8231B; }
.kh-maphint { font-size: 13.5px; color: var(--muted); text-align: center; margin: 6px 0 0; }
.kh-legend { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.kh-legend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }

.kh-pop { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.kh-pop .dchip { flex: 0 0 auto; }
.kh-pop .dchip b { font-weight: 800; color: var(--red); margin-left: 2px; }
.kh-pop .dchip.on b { color: #FFC94A; }

.kh-tools { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 10px; }
.kh-seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; }
.kh-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 99px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: 14.5px; }
.kh-seg button.on { background: var(--ink); color: #fff; }

.kh-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .kh-list.two { grid-template-columns: 1fr 1fr; } }
.spot {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start;
}
.spot.hl { outline: 3px solid #FFC94A; }
.spot.closed { opacity: .62; }
.spot .ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--cream); display: grid; place-items: center; font-size: 28px; border: 3px solid #FFF4E0; box-shadow: 0 0 0 2px #FFC94A; }
.spot h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.spot .where { margin: 2px 0 6px; font-size: 14.5px; color: var(--muted); }
.spot .rank { position: absolute; top: -8px; left: -6px; background: #FFC94A; color: #3B1F00; font-weight: 800; border-radius: 99px; padding: 1px 9px; font-size: 13.5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.spot .badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #E3F4E8; color: #1F5A35; font-weight: 700; margin-left: 6px; vertical-align: 2px; }
.spot .badge.cl { background: #FDE6E6; color: #9B1C1C; }
.spot .dl { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; }
.spot .dl span { background: #FFF4E0; border: 1px solid #F2DDB8; border-radius: 99px; padding: 2px 10px; font-size: 14px; }
.spot .dl span b { color: var(--red); font-weight: 800; margin-left: 3px; }
.spot .note { margin: 6px 0; font-size: 15px; color: #4A403A; }
.spot .meta { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.spot .act { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 10px; }
.spot .act a, .spot .act button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink);
}
.spot .act .voted { background: #E3F4E8; border-color: #9ED3AE; color: #1F5A35; }

.kh-empty { background: #fff; border: 2px dashed #F2A65A; border-radius: 18px; padding: 26px 18px; text-align: center; }
.kh-empty p { margin: 6px 0 14px; font-size: 17px; }
.kh-empty .big { font-size: 46px; }

.kh-ups { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.kh-ups button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 14px; cursor: pointer; }
.kh-ups button.on { background: var(--red); color: #fff; border-color: var(--red); }
.kh-ups button i { font-style: normal; color: var(--red); font-weight: 800; margin-left: 3px; }
.kh-ups button.on i { color: #FFC94A; }

/* মডাল */
.kh-modal { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100% - 20px)); max-height: calc(100% - 20px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.kh-modal::backdrop { background: rgba(30, 12, 5, .55); }
.kh-modal form { padding: 16px 18px 18px; }
.kh-modal header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kh-modal h2 { margin: 0; font-size: 20px; }
.kh-modal .x { border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); line-height: 1; }
.kh-modal label { display: block; font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.kh-modal label input, .kh-modal label select, .kh-modal label textarea { margin-top: 4px; }
.kh-modal textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDF9; font: inherit; resize: vertical; }
.kh-modal .chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.kh-modal footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.kh-modal .err { color: #9B1C1C; font-weight: 600; margin: 8px 0 0; min-height: 0; }
.kh-modal .err:empty { display: none; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.kh-qchips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.kh-qchips .chip { flex: 0 0 auto; }
.kh-pinpick { margin-top: 12px; }
.kh-pinpick .lab small { font-weight: 400; color: var(--muted); }
.kh-pinmap { background: #F3EADC; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; margin: 6px 0 8px; min-height: 60px; }
.kh-pinmap svg { display: block; width: 100%; height: auto; max-height: 300px; cursor: crosshair; }
.kh-pinmap .hint { padding: 16px; text-align: center; }
.kh-edit-of { background: var(--cream); border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; font-weight: 600; }
/* চওড়া জিনিস যেন পেজ পাশে না ঠেলে */
.kh-wrap, .kh-grid2 > *, .kh-side, .kh-mapbox { min-width: 0; max-width: 100%; }
.kh-pop { max-width: 100%; }
.kh-ups { max-height: 132px; overflow-y: auto; }
.spot h3 { overflow-wrap: anywhere; }
.spot .rank { z-index: 1; }
.kh-modal input:not([type=checkbox]), .kh-modal select {
  display: block; width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDF9; font: inherit; font-size: 16px; min-height: 46px;
}
.kh-modal input:focus, .kh-modal select:focus, .kh-modal textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 38, 61, .14); }
.kh-modal .cols2 label { min-width: 0; }

/* কে কে বলেছেন */
.spot .badge.tr { background: #E3F4E8; color: #1F5A35; border: 1px solid #BFE3CB; }
.spot .people { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; margin: 4px 0 2px; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; text-align: left; }
.spot .people b { color: var(--ink); font-weight: 700; }
.spot .people u { color: var(--red); text-decoration: none; font-weight: 700; white-space: nowrap; }
.spot .people:hover u { text-decoration: underline; }
.faces { display: inline-flex; flex: 0 0 auto; }
.faces i, .people-list i { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; border: 2px solid #fff; margin-left: -7px; }
.faces i:first-child { margin-left: 0; }
.faces i.more { background: #F1E7D8; color: #6B4A2E; font-size: 11px; width: auto; min-width: 24px; padding: 0 5px; border-radius: 99px; }
#dlg-people .pp-in { padding: 16px 18px 18px; }
.people-sum { margin: 10px 0 6px; font-size: 15.5px; } .people-sum .tr { color: #1F5A35; font-weight: 700; }
.people-list { list-style: none; margin: 0; padding: 0; max-height: min(52vh, 420px); overflow-y: auto; border-top: 1px dashed var(--line); }
.people-list li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.people-list li i { width: 34px; height: 34px; margin: 0; font-size: 15px; flex: 0 0 auto; border: 0; }
.people-list li span { flex: 1; min-width: 0; } .people-list li b { display: block; } .people-list li small { color: var(--muted); font-size: 13.5px; }
.people-list li time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.people-list li.anon i { background: #F1E7D8; color: #6B4A2E; }
@media (max-width: 600px) {
  #dlg-people { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 85vh; }
}
