/* ROOMS.bg - търсене по карта */
.rb-map { overflow: hidden; }
.rb-map .topbar { display: none; }
.mapapp { height: calc(100vh - 72px); height: calc(100dvh - 72px); display: flex; flex-direction: column; }

.mapbar { display: flex; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 500; flex-wrap: nowrap; }
.mb-search { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; width: 260px; flex: none; color: var(--muted); }
.mb-search input { border: 0; outline: 0; width: 100%; font-weight: 600; font-size: 14.5px; background: none; color: var(--ink); }
.mb-search .ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 20; }
.mb-search .ac.open { display: block; }
.mb-search .ac a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.mb-search .ac a span { color: var(--muted); font-weight: 500; }
.mb-search .ac a:hover, .mb-search .ac a.hl { background: var(--line-2); }
.mb-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.mb-pills::-webkit-scrollbar { display: none; }
.pill { height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); white-space: nowrap; flex: none; }
.pill:hover { border-color: #c5c9de; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.star { padding: 0 12px; }
.pill.star svg { width: 13px; height: 13px; fill: var(--sun-2); stroke: none; }
.mb-price label { display: flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mb-price input { width: 64px; border: 0; outline: 0; font-weight: 700; font-size: 14.5px; color: var(--ink); background: none; }
.mb-pop { position: absolute; right: 20px; top: calc(100% + 8px); width: 420px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 20px 0; z-index: 600; }
.mb-pop h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 0 8px; }
.mb-pop h4:first-child { margin-top: 0; }
.mb-pop .stars, .mb-pop .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-pop .check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.mb-pop .check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.mb-pop .checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mb-pop-foot { position: sticky; bottom: 0; background: #fff; display: flex; justify-content: space-between; padding: 12px 0 14px; margin-top: 12px; border-top: 1px solid var(--line); }

.mapbody { flex: 1; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 0; }
.maplist { overflow-y: auto; padding: 16px 20px 40px; background: var(--bg); }
.ml-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 15px; flex-wrap: wrap; }
.ml-head b { font-size: 18px; }
.ml-head span { color: var(--muted); }
.ml-auto { margin-left: auto; font-size: 13.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ml-auto input { accent-color: var(--brand); }
.ml-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ml-grid .hcard .photo { aspect-ratio: 4 / 3; }
.ml-grid .hcard.hl { box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg); }
.ml-grid .empty { grid-column: 1 / -1; }
.maplist.loading .ml-grid { opacity: .5; transition: opacity .15s; }
#mapmorebtn { margin-top: 18px; }

.mapwrap { position: relative; min-height: 0; }
#bigmap { position: absolute; inset: 0; }
.map-here { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 450; box-shadow: var(--shadow-lg); }
.map-pop { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 300px; z-index: 450; }
.map-pop .hcard { box-shadow: var(--shadow-lg); }
.map-pop .x { position: absolute; right: 8px; top: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); cursor: pointer; display: grid; place-items: center; }

/* Балончета */
.mpin { background: #fff; color: var(--ink); font: 800 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(16,26,77,.25); white-space: nowrap; display: inline-block; transform: translate(-50%, -50%); border: 1.5px solid #fff; cursor: pointer; transition: transform .1s; }
.mpin.v { background: linear-gradient(135deg, #ffd65a, #ffb700); }
.mpin.dot { width: 11px; height: 11px; padding: 0; background: var(--brand); border-width: 2px; }
.mpin.v.dot { background: var(--sun-2); }
.mpin.on, .mpin:hover { background: var(--ink); color: #fff; transform: translate(-50%, -50%) scale(1.08); z-index: 1000; }
.mpin.seen { background: #eceef6; }
.mclu { width: 44px; height: 44px; border-radius: 50%; background: rgba(31,47,184,.88); color: #fff; font: 800 13px/44px var(--font); text-align: center; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(31,47,184,.2); cursor: pointer; }
.mclu.m { width: 52px; height: 52px; line-height: 52px; }
.mclu.l { width: 62px; height: 62px; line-height: 62px; font-size: 14px; }
.leaflet-div-icon { background: none; border: 0; }

.map-switch { display: none; }

@media (max-width: 1100px) {
  .mapbody { grid-template-columns: minmax(340px, 50%) 1fr; }
  .ml-grid { grid-template-columns: 1fr; }
  .mb-search { width: 200px; }
}
@media (max-width: 900px) {
  .mapapp { height: calc(100vh - 62px); height: calc(100dvh - 62px); }
  .mapbar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .mb-search { width: 100%; order: -1; }
  .mb-price { display: none; }
  .mapbody { grid-template-columns: 1fr; position: relative; }
  .maplist { position: absolute; inset: 0; z-index: 1100; display: none; }
  .mapapp.show-list .maplist { display: block; }
  .ml-grid { grid-template-columns: 1fr; }
  .map-switch { display: inline-flex; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1200; box-shadow: var(--shadow-lg); border-radius: 999px; }
  .map-pop { bottom: 80px; width: calc(100% - 32px); }
  .cookie { bottom: 80px; }
}
.mclu.hv { box-shadow: 0 0 0 4px var(--sun), 0 0 0 9px rgba(255,183,0,.25); }
