:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.9);
  --card-soft: rgba(15, 23, 42, 0.75);
  --white: #f9fafb;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.3);
  --accent: #38bdf8;
  --accent2: #6366f1;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--white);
}

/* MAPA cez celý viewport v pozadí */
#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* skryj Leaflet ovládanie + geocoder */
.leaflet-control-zoom,
.leaflet-control-geocoder {
  display: none !important;
}

/* Foreground layout – pláva nad mapou, ale prepúšťa kliky mimo panelov */
.layout-map {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 14px 18px;
  background: transparent !important;
  pointer-events: none;
}

/* prvky, ktoré majú byť klikateľné */
.topbar-map,
.map-left,
.drawer-backdrop {
  pointer-events: auto;
}

/* TOPBAR */
.topbar-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}

/* vnútro topbaru – ľavá časť + stredný search */
.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.topbar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-title h1 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--white);
}

.topbar-title span {
  font-size: 0.74rem;
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* jazykový prepínač */
.lang-switch select {
  appearance: none;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  padding: 6px 30px 6px 12px;
  font-size: 0.78rem;
  color: var(--white);
  cursor: pointer;
  position: relative;
}

.lang-switch {
  position: relative;
}

.lang-switch::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 0.6rem;
  color: var(--muted);
  pointer-events: none;
}

.top-actions {
  display: flex;
  gap: 8px;
}

/* BUTTONY */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top, var(--accent) 0%, var(--accent2) 100%);
  color: #020617;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.btn-primary.disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary.full-width {
  justify-content: center;
  width: 100%;
}

/* KARTY / PANELY */

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
}

/* ĽAVÝ PANEL */

.map-left {
  position: absolute;
  top: 88px;
  left: 18px;
  width: 320px;
  max-width: calc(100% - 36px);
}

.map-left h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.map-left h3 {
  margin: 10px 0 6px;
  font-size: 0.86rem;
}

/* --- MODE SWITCH (tabs ako v registrácii) --- */

.mode-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.mode-tab {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.74rem;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease;
}

.mode-tab:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.mode-tab.active {
  background: radial-gradient(circle at top, var(--accent) 0%, var(--accent2) 100%);
  color: #020617;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
}

.mode-tab.active:hover {
  transform: translateY(-1px);
}

/* FILTER BLOKY */

.mode-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.filter-block {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.field label {
  color: var(--white);
}

.filter,
.map-left select {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 7px 10px;
  font-size: 0.78rem;
  color: var(--white);
}

.small-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 4px 0 0;
}

/* footer ľavého panelu */
.map-left-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

/* 🔍 SEARCH V TOPBARE */

.top-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.top-search i.fa-search {
  font-size: 0.9rem;
  color: #9ca3af;
}

.top-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.top-search input::placeholder {
  color: #6b7280;
}

/* 🔽 návrhy pod vyhľadávaním */

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  padding: 4px 0;
  list-style: none;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  max-height: 260px;
  overflow-y: auto;
  z-index: 1200;
  display: none;
}

.search-suggestions li {
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-suggestions li span.city {
  font-weight: 500;
}

.search-suggestions li span.country {
  font-size: 0.7rem;
  color: #9ca3af;
}

.search-suggestions li:hover {
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.15),
    rgba(99, 102, 241, 0.18)
  );
}

/* 🔍 MOBILNÝ SEARCH V ĽAVOM PANELI – default skrytý (ukáže sa až na mobile) */

.map-search {
  width: 100%;
  margin-bottom: 10px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.map-search i.fa-search {
  font-size: 0.8rem;
  color: #9ca3af;
}

.map-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.map-search input::placeholder {
  color: #6b7280;
}

.map-search button {
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  background: radial-gradient(circle at top, #38bdf8 0%, #6366f1 100%);
  color: #020617;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.map-search button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* DRAWER VPRAVO – spoločný pre detail aj info RK */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;            /* 🔼 nad mapou, topbarom aj ľavým panelom */
}

.drawer-backdrop.hidden {
  display: none;
}

.drawer-panel {
  width: min(430px, 100%);
  background: rgba(15, 23, 42, 0.98);
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: -24px 0 45px rgba(0, 0, 0, 0.8);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-title h3 {
  margin: 0;
  font-size: 0.92rem;
}

.drawer-title span {
  font-size: 0.72rem;
  color: var(--muted);
}

.drawer-close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.drawer-close-btn:hover {
  background: rgba(30, 64, 175, 0.9);
}

.drawer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.drawer-main {
  font-size: 0.8rem;
}

.drawer-price {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.drawer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.drawer-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.drawer-photos {
  font-size: 0.74rem;
}

.photos-placeholder {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 10px;
  color: var(--muted);
  text-align: center;
}

/* single-column layout pre info drawer */
.drawer-body-single {
  display: block;
  margin-top: 10px;
}

/* zoznam v RK draweri */

.rk-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-info-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
}

.rk-info-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
}

.rk-info-list strong {
  color: var(--white);
  font-weight: 600;
}

/* UTILITIES */

.hidden {
  display: none !important;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .layout-map {
    padding: 10px;
  }

  .topbar-map {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .map-left {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .drawer-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* na mobile zobrazíme map-search a skryjeme top-search,
     aby si nemal dva search bary naraz */
  .top-search {
    display: none;
  }

  .map-search {
    display: flex;
  }
  }
  /* ==== RK MARKERY NA MAPE ==== */

.rk-marker {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--accent2) 0%, var(--accent) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rk-marker i {
  font-size: 18px;
  color: #f9fafb; /* biela ikonka na farebnom pozadí */
}

/* ==== DRAWER RK – HLAVIČKA S LOGOM ==== */

.drawer-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--accent2) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.drawer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-logo-fallback {
  font-size: 1rem;
  font-weight: 700;
  color: #020617;
}

/* ==== LAYOUT TELA DRAWERA PRE RK ==== */

/* ==== LAYOUT TELA DRAWERA PRE RK – vždy jeden stĺpec ==== */

.drawer-body-rk {
  display: block;
  margin-top: 10px;
}

/* hlavný text ostáva hore, tím kancelárie dáme nižšie */
.drawer-main {
  font-size: 0.8rem;
}

.drawer-side {
  margin-top: 18px; /* jemný odstup pod bannerom */
}


/* kontakty */

.drawer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  background: radial-gradient(circle at top, var(--accent) 0%, var(--accent2) 100%);
  color: #020617;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.contact-pill.secondary {
  background: rgba(15, 23, 42, 0.95);
  color: var(--white);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.contact-pill.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* pravá strana – tím RK */

.drawer-side-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

#drawerAgentsList {
  font-size: 0.76rem;
  color: var(--muted);
}

.drawer-agents-empty {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

/* mobil – drawer na jeden stĺpec */

@media (max-width: 900px) {
  .drawer-body-rk {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==== DRAWER – MONETIZAČNÝ SLOT ==== */

.drawer-ad-slot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}
.drawer-agency-stats {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  font-size: 0.76rem;
  color: var(--muted);
}

.drawer-agency-stats-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.drawer-agency-stats-line {
  font-size: 0.76rem;
}

.drawer-ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.drawer-ad-placeholder {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  padding: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ==== RK – KARTIČKY MAKLÉROV V PRAVOM DRAWERI ==== */

.drawer-side {
  font-size: 0.76rem;
}

.agent-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
}

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at top, var(--accent2) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #020617;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agent-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}
.agent-stats {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}

.agent-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.agent-contact-link {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
  text-decoration: none;
}

.agent-contact-link:hover {
  border-color: var(--accent);
  color: var(--white);
}
.agent-offers-row {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}
.btn-small {
  font-size: 0.72rem;
  padding: 4px 10px;
  margin-top: 6px;
}
.agent-actions-row {
  margin-top: 6px;
}

.agent-show-btn {
  width: 100%;
  justify-content: center;
}
.offer-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--accent2) 0%, var(--accent) 100%);
  border: 2px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
}

.offer-marker i {
  font-size: 16px;
  color: #f9fafb;
}
.offer-photos {
  margin: 10px 0 12px;
}

.offer-photos-main {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  max-height: 220px;
}

.offer-photos-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.offer-photos-thumbs {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.offer-photos-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.65;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.offer-photos-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-photos-thumb.active {
  opacity: 1;
  outline: 2px solid var(--accent);
}
/* ==== LIGHTBOX ==== */
.lightbox {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.lightbox.hidden { display: none; }

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox-nav.left { left: 30px; }
.lightbox-nav.right { right: 30px; }

/* ==== VIDEO ==== */
.offer-video {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  background: #020617;
  aspect-ratio: 16 / 9;
}

.offer-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.offer-video a {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--accent);
  text-align: center;
  text-decoration: none;
}

/* ==== RK BLOK ==== */
.offer-rk, .offer-agent {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
}

.rk-btn, .agent-btn {
  padding: 8px 14px;
  margin-right: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.agent-card {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.agent-photo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
/* nech je celý panel max cez výšku okna a telo sa môže scrolovať */
.drawer-panel {
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* samotný obsah (fotky, video, maklér…) bude scrollovateľný */
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;            /* dôležité pre flex + overflow */
  overflow-y: auto;
  padding-right: 8px;       /* malý priestor od scrollbar-u */
}

/* PONUKOVÝ / RK DRAWER – VŽDY JEDEN STĹPEC (maklér dole) */
.drawer-body-rk {
  display: block;     /* žiadne flex stĺpce, ide to pekne pod seba */
}

/* maklér ako blok pod celým obsahom */
.drawer-side {
  margin-top: 18px;
}

/* základný domček pre GARIS – 3D chip + glow */
.offer-marker.garis-marker {
  position: relative;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #38bdf8 45%, #0f172a 80%);
  box-shadow:
    0 0 0 2px rgba(15,23,42,0.9),         /* tmavý „okraj“ */
    0 0 12px rgba(56,189,248,0.9),        /* glow */
    0 10px 18px rgba(0,0,0,0.45);         /* 3D tieň pod markerom */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* jemný vonkajší prsteň */
.offer-marker.garis-marker::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(56,189,248,0.4);
}

/* samotná ikona domčeka – trochu „3D“ */
.offer-marker.garis-marker i {
  text-shadow: 0 2px 4px rgba(15,23,42,0.7);
  font-size: 18px;
}

/* voliteľné – jemný pulz, nech láka pozornosť */
@keyframes garisPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  50%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}

.offer-marker.garis-marker::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(56,189,248,0.5), transparent 60%);
  animation: garisPulse 2s infinite;
}
.garis-demo-box {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.18),
    rgba(99, 102, 241, 0.22)
  );
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  padding: 16px 18px;
  border-radius: 14px;

  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.48;

  backdrop-filter: blur(6px);
}
/* ============================================================
   OVERRIDE: Leaflet MarkerCluster – farba podľa GARIS markerov
   ============================================================ */

.marker-cluster div {
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0f172a 90%) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  border: 2px solid rgba(56, 189, 248, 0.55) !important;
  box-shadow:
    0 0 12px rgba(56,189,248,0.75),
    0 10px 18px rgba(0,0,0,0.45) !important;
}

/* veľkosť necháme pôvodnú, iba farby sa menia */
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0f172a 90%) !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
}
/* ============================================== */
/* MOBILNÝ REŽIM – FILTER PANEL SKRYTÝ NA ZAČIATKU */
/* ============================================== */

@media (max-width: 640px) {

  /* celý ľavý panel je off-canvas */
  .map-left {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.28s ease-out;
    background: rgba(15,23,42,0.97);
    border-radius: 18px 18px 0 0;
    padding: 18px;
    box-shadow: 0 -20px 35px rgba(0,0,0,0.55);
    z-index: 2500;
  }

  /* keď je panel otvorený */
  .map-left.open {
    transform: translateY(0);
  }

  /* malé tlačidlo FILTER hore nad mapou */
  #mobileFilterBtn {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2600;
    padding: 10px 22px;
    border-radius: 999px;
    background: radial-gradient(circle at top, var(--accent) 0%, var(--accent2) 100%);
    color: #020617;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  }
  
  /* zatváracie X v mobile */
  .map-left .close-mobile-panel {
    display: block;
    text-align: right;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--muted);
  }
}

/* desktop – tlačidlo FILTER nech neexistuje */
@media (min-width: 641px) {
  #mobileFilterBtn {
    display: none !important;
  }
  .close-mobile-panel {
    display: none !important;
  }
}

