/* Страница на град */
.city-head { display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center; padding: 24px 0 32px; }
.city-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.015em; margin: 10px 0 12px; }
.city-head .sub { color: var(--ink-2); font-size: 17px; max-width: 560px; }
.city-head .facts { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.city-head .facts div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.city-head .facts b { display: block; color: var(--ink); font-size: 16px; }
.city-head .facts .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 130px 130px; gap: 8px; border-radius: 18px; overflow: hidden; }
.mosaic a { position: relative; display: block; overflow: hidden; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .more { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }

.toolbar { position: sticky; top: 72px; z-index: 30; background: rgba(247,246,242,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.toolbar .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .chip { height: 38px; padding: 0 14px; }
.toolbar .tools { display: flex; gap: 8px; flex: none; }
.selectbox { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 34px 0 12px; font-weight: 600; font-size: 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23101a4d' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.filter-btn { display: none; }

.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding-top: 28px; align-items: start; }

.filters { position: sticky; top: 148px; max-height: calc(100vh - 168px); overflow-y: auto; scrollbar-width: thin; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.filters .fh { display: none; }
.fgroup { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; }
.fgroup h4 a { font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.check .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.stars { display: flex; gap: 6px; }
.stars button { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.stars button svg { width: 14px; height: 14px; color: var(--sun-2); fill: var(--sun-2); stroke: none; }
.stars button.on { border-color: var(--brand); background: var(--brand-soft); }
.range { display: flex; gap: 10px; align-items: center; }
.range input[type=number] { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font-weight: 600; }
.range-bar { margin-top: 14px; }
.range-bar input { width: 100%; accent-color: var(--brand); }

.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.results-head h2 { font-size: 18px; font-weight: 700; }
.results-head span { color: var(--muted); font-weight: 500; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { height: 30px; padding: 0 8px 0 12px; border-radius: 999px; border: 0; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.active-filters svg { width: 14px; height: 14px; }

.mapbox { height: 300px; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); position: relative; z-index: 1; }
.mapbox.big { height: 640px; }
.pin { background: #fff; color: var(--ink); font: 800 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(16,26,77,.25); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; border: 2px solid #fff; }
.pin.on, .pin:hover { background: var(--ink); color: #fff; }
.leaflet-div-icon { background: none; border: 0; }

.list { display: grid; gap: 16px; }
.res { display: grid; grid-template-columns: 300px 1fr 200px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); transition: box-shadow .2s; }
.res:hover { box-shadow: var(--shadow-lg); }
.res .photo { min-height: 220px; }
.res .photo .count { position: absolute; left: 12px; bottom: 12px; background: rgba(16,26,77,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 5px; align-items: center; }
.res .main { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.res .kind { display: flex; gap: 6px; flex-wrap: wrap; }
.res h3 { font-size: 19px; font-weight: 700; }
.res h3 a { color: var(--ink); }
.res h3 a:hover { color: var(--brand); }
.res .loc { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.res .intro { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.res .perks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; }
.res .perks span { display: inline-flex; gap: 6px; align-items: center; }
.res .perks .ok { color: var(--green); }
.res .perks .of { color: #9a6a00; }
.res .side { padding: 18px 20px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.res .side .price b { font-size: 24px; }
.res .side .btns { display: grid; gap: 8px; }
.tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); }
.tel:hover { border-color: var(--brand); color: var(--brand); }
.tel.shown { border-color: var(--green); color: var(--green); background: var(--green-soft); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager span { border: 0; background: none; }
.pager a.next { display: inline-flex; gap: 6px; }

.near { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.near a { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); }
.near a:hover { border-color: var(--brand); color: var(--ink); }
.near .km { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 15px; line-height: 1; flex: none; }
.near .km small { display: block; font-size: 11px; font-weight: 600; }
.near b { display: block; font-size: 15px; }
.near span { color: var(--muted); font-size: 13px; }

.sights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sight { color: var(--ink); }
.sight:hover { color: var(--ink); }
.sight .photo { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.sight b { display: block; margin-top: 10px; font-size: 15px; }
.sight span { color: var(--muted); font-size: 13px; }

.about-city { display: grid; grid-template-columns: 1fr 360px; gap: 40px; background: #fff; border-radius: 22px; padding: 40px; border: 1px solid var(--line); }
.about-city h2 { font-family: var(--display); font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.about-city p { color: var(--ink-2); }
.about-city aside h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.about-city aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.about-city aside a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.about-city aside a span { color: var(--muted); font-weight: 500; }
.about-city aside a:hover { color: var(--brand); }

@media (max-width: 1180px) {
  .res { grid-template-columns: 260px 1fr; }
  .res .side { grid-column: 2; border-left: 0; border-top: 1px solid var(--line-2); flex-direction: row; align-items: center; }
  .res .side .btns { grid-auto-flow: column; }
  .near, .sights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .city-head { grid-template-columns: 1fr; gap: 24px; }
  .layout { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex; }
  .toolbar { top: 62px; }
  .filters { position: fixed; inset: 0; z-index: 120; max-height: none; border-radius: 0; display: none; top: 0; }
  .filters-open .filters { display: block; }
  .filters .fh { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .filters .fh button { background: none; border: 0; cursor: pointer; padding: 6px; }
  .filters .fapply { position: sticky; bottom: 0; background: #fff; padding: 14px 20px; border-top: 1px solid var(--line); }
  .about-city { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (min-width: 961px) { .filters .fapply { display: none; } }
@media (max-width: 640px) {
  .mosaic { grid-template-rows: 110px 110px; }
  .toolbar .tools .selectbox { display: none; }
  .res { grid-template-columns: 1fr; }
  .res .photo { min-height: 0; aspect-ratio: 16 / 10; }
  .res .side { grid-column: auto; flex-direction: column; align-items: stretch; }
  .res .side .btns { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .near, .sights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .near a { flex-direction: column; align-items: start; }
  .mapbox { height: 220px; }
}

/* VIP и обикновени обекти */
.res.vip .side { background: linear-gradient(180deg, var(--sun-soft), #fff 70%); border-left-color: #f6e6b0; }
.res:not(.vip) { grid-template-columns: 220px 1fr 200px; box-shadow: none; border: 1px solid var(--line); }
.res:not(.vip) .photo { min-height: 170px; }
.res:not(.vip) h3 { font-size: 17px; }
.res:not(.vip) .intro { -webkit-line-clamp: 2; }
.res:not(.vip) .fav { display: none; }
.list-sep { display: flex; align-items: center; gap: 14px; margin: 14px 0 2px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.list-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 1180px) { .res:not(.vip) { grid-template-columns: 220px 1fr; } }
@media (max-width: 640px) { .res:not(.vip) { grid-template-columns: 1fr; } }

/* ---------- Сайт: филтри като връзки, празни резултати, описание ---------- */
.rb-city .crumbs, .rb-city #breadcrumb { padding-top: 18px; }
.city-head .sub.clamp { max-height: 7.6em; overflow: hidden; position: relative; }
.city-head .sub.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(transparent, var(--bg)); }
.city-head .sub a { font-weight: 600; }
.city-head .facts a { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.city-head .facts a:hover b { color: var(--brand); }
.more-btn { background: none; border: 0; color: var(--brand); font-weight: 700; padding: 6px 0 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.more-btn.on svg { transform: rotate(180deg); }
.filters a.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.filters a.check:hover { color: var(--ink); }
.filters .cb { width: 18px; height: 18px; border: 1.5px solid #c5c9de; border-radius: 5px; flex: none; display: grid; place-items: center; background: #fff; }
.filters a.check.on .cb { background: var(--brand); border-color: var(--brand); }
.filters a.check.on .cb::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.filters a.check.on { color: var(--ink); font-weight: 600; }
.filters .stars a { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: var(--ink); }
.filters .stars a svg { width: 14px; height: 14px; fill: var(--sun-2); stroke: none; }
.filters .stars a.on { border-color: var(--brand); background: var(--brand-soft); }
.filters .range button { height: 40px; flex: none; }
.filters .more-link { background: none; border: 0; color: var(--brand); font-weight: 700; padding: 6px 0 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.filters .more-link.on svg { transform: rotate(180deg); }
.fcount { min-width: 20px; height: 20px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.active-filters a { height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.active-filters a svg { width: 14px; height: 14px; }
.active-filters a.clear { background: none; color: var(--muted); padding: 0 6px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { margin: 0 auto 10px; color: var(--brand); }
.res .photo { display: block; }
.res .photo img { position: absolute; inset: 0; }
.pin.vip { background: linear-gradient(135deg, #ffd65a, #ffb700); color: var(--ink); border-color: #fff; }
.pin.vip.on, .pin.vip:hover { background: var(--ink); color: var(--sun); }
.pin.dot { padding: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.mosaic a[hidden] { display: none; }
.mosaic a:only-child { grid-row: span 2; grid-column: span 2; }
.filters-slot { align-self: stretch; min-width: 0; }
[data-rb-results].loading [data-rb="list"], [data-rb-results].loading [data-rb="head"] { opacity: .45; transition: opacity .15s; pointer-events: none; }
[data-rb-results].loading .filters { cursor: progress; }

/* Почивки и оферти */
.offers-grid { align-items: stretch; }
.offers-grid .hcard .photo { aspect-ratio: 16 / 10; }
.hcard .by { font-size: 13px; color: var(--muted); }
.filters a.check.radio .cb { border-radius: 50%; }
.filters a.check.radio.on .cb::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
@media (max-width: 1180px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .offers-grid { grid-template-columns: 1fr; } }
