/* Modern Light Theme UI for OfertoMapa — Simplified Single Link Version */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-sidebar: #ffffff;
  --border-color: #cbd5e1;
  --border-light: #e2e8f0;
  --border-focus: #ff5e14;
  
  --accent-primary: #ff5e14;  /* Neon Orange Bez Kuriera */
  --accent-primary-hover: #e04b06;
  --accent-secondary: #6366f1;/* Indigo Accent */
  --accent-delivery-zero: #10b981; /* Emerald Green 0 zł */
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
  
  --text-main: #0f172a;       /* Slate 900 */
  --text-muted: #475569;      /* Slate 600 */
  --text-dim: #94a3b8;        /* Slate 400 */
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header Navbar */
.navbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 180px;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.25);
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.brand-text span {
  color: var(--accent-primary);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 7px;
  border-radius: 6px;
  width: max-content;
  border: 1px solid rgba(255, 94, 20, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.brand-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0d9488;
  display: inline-block;
  animation: pulse-badge-dot 1.5s infinite;
}

@keyframes pulse-badge-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.url-guide-label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  background: #ccfbf1;
  color: #0f766e;
  border: 1px dashed #0d9488;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.1);
  user-select: none;
  flex-shrink: 0;
}

.url-guide-label i {
  font-size: 1.05rem;
  color: #0d9488;
  animation: pulse-arrow 1.4s infinite ease-in-out;
}

@keyframes pulse-arrow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  height: 44px;
}

.search-input-wrapper > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-input::-ms-clear,
.search-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.btn-input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-input-clear i {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  font-size: 12px;
  color: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-input-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
  transform: translateY(-50%) scale(1.08);
}

.btn-input-clear:active {
  transform: translateY(-50%) scale(0.94);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn-search {
  height: 44px;
  padding: 0 20px;
  background: linear-gradient(135deg, #ff5e14 0%, #e04b06 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.35);
  flex-shrink: 0;
}

.btn-search:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 44px;
  flex-shrink: 0;
}

.btn-share i {
  color: var(--accent-primary);
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn-share:hover {
  background: #f0fdfa;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-share:hover i {
  transform: scale(1.15);
}

.btn-share.copied {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #16a34a;
}

.btn-share.copied i {
  color: #16a34a;
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 44px;
  flex-shrink: 0;
}

.btn-contact:hover {
  background: #f0fdfa;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.btn-contact i {
  font-size: 1.1rem;
  color: var(--accent-primary);
}

/* Main Split Content */
.main-container {
  flex: 1;
  display: flex;
  height: calc(100vh - 68px);
  position: relative;
}

/* Map Section */
.map-section {
  flex: 1;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
}

/* Map Controls Overlay */
.map-controls-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-btn {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.control-btn:hover {
  background: #f8fafc;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.control-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Stats Bar floating on map */
.map-stats-banner {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 800;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

/* Floating Filter Toolbar on Map */
.map-filter-bar {
  position: absolute;
  top: 16px;
  left: 60px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.filter-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-collapse-btn {
  display: none;
}

.filter-price-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-input-price {
  width: 95px;
  height: 36px;
  padding: 0 10px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.filter-input-price:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.filter-sep {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.filter-search-group {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-group i {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.filter-input-search {
  height: 36px;
  padding: 0 10px 0 30px;
  width: 200px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input-search:focus {
  width: 250px;
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.filter-select {
  height: 32px;
  padding: 0 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
}

.filter-select:focus {
  border-color: var(--accent-primary);
}

.filter-count-badge {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: rgba(13, 148, 136, 0.12);
  border: 1.5px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-toggle-btn {
  height: 36px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.filter-toggle-btn i {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.filter-toggle-btn:hover {
  background: #f0fdfa;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filter-toggle-btn:hover i {
  color: var(--accent-primary);
  transform: scale(1.15);
}

.filter-toggle-btn.active {
  background: linear-gradient(135deg, #ff5e14 0%, #e04b06 100%);
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.filter-toggle-btn.active i {
  color: #fef08a; /* Golden shine */
  transform: scale(1.1);
}

/* Source Filter Buttons (Wszystkie / Allegro Lokalnie / Sklepy Allegro) */
.source-filter-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.source-btn {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}

.source-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.source-btn.active {
  background: #ff5a36; /* Kolor pasujący do Allegro/OLX */
  color: white;
  border-color: #ff5a36;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 90, 54, 0.35);
}

/* Hide / Show Filters Controls */
.btn-hide-filters {
  height: 36px;
  padding: 0 10px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-hide-filters:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.map-filter-bar.is-hidden {
  display: none !important;
}

/* Floating "Pokaż filtry" button on map */
.btn-show-filters {
  display: none;
  position: absolute;
  top: 16px;
  left: 60px;
  z-index: 800;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-show-filters.visible {
  display: inline-flex !important;
}

.btn-show-filters:hover {
  background: #f0fdfa;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-show-filters i {
  color: var(--accent-primary);
  font-size: 14px;
}

.mini-count-badge {
  padding: 2px 8px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
}

/* Offer Card */
.ad-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  width: 100%;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.ad-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.ad-card.highlighted {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
  background: #f0fdf4;
}

.card-top {
  display: flex;
  min-height: 110px;
  position: relative;
}

.card-img-wrapper {
  width: 130px;
  min-height: 110px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-card:hover .card-img {
  transform: scale(1.05);
}

.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 28px;
}

.photo-count-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.card-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.location-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.card-footer {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.btn-card-action {
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.btn-card-action:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Custom Map Price Markers & Fanned Arrangement */
.custom-price-marker-wrapper,
.fanned-marker-wrapper {
  background: transparent !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  position: relative !important;
  pointer-events: none !important;
}

.marker-leader-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.marker-leader-svg .leader-line {
  stroke: var(--accent-primary);
  stroke-width: 1.75px;
  stroke-linecap: round;
  stroke-dasharray: 4, 3;
  opacity: 0.85;
}

.marker-leader-svg .origin-dot {
  fill: var(--accent-primary);
  stroke: #ffffff;
  stroke-width: 2.5px;
}

.custom-price-marker {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.75px solid var(--accent-primary);
  border-radius: 10px;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 8px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
  width: max-content;
  pointer-events: auto !important;
  z-index: 5;
  user-select: none;
}

/* Leader line connects directly to the bubble */
.custom-price-marker.single-bubble::after {
  display: none;
}

.custom-price-marker:hover, 
.custom-price-marker.active {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translate(calc(var(--offset-x, 0px) - 50%), calc(var(--offset-y, -28px) - 50%)) scale(1.12) !important;
  z-index: 1000 !important;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}

.custom-price-marker:hover::after,
.custom-price-marker.active::after {
  border-top-color: var(--accent-primary);
}

.fanned-marker-wrapper:hover .leader-line {
  stroke: #047857;
  stroke-width: 2.75px;
  stroke-dasharray: none;
  opacity: 1;
}

.fanned-marker-wrapper:hover .origin-dot {
  fill: #047857;
  r: 5.5;
}

/* Multi-Listing Badge (for 3+ offers at the same location) */
.custom-price-marker.multi-badge {
  background: #ffffff;
  border: 2px solid var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.25);
}

.multi-pill-tag {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.multi-pill-price {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.76rem;
}

.custom-price-marker.multi-badge:hover,
.custom-price-marker.multi-badge.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: #0f766e;
}

.custom-price-marker.multi-badge:hover .multi-pill-tag,
.custom-price-marker.multi-badge.active .multi-pill-tag {
  background: #ffffff;
  color: var(--accent-primary);
}

.custom-price-marker.multi-badge:hover .multi-pill-price,
.custom-price-marker.multi-badge.active .multi-pill-price {
  color: #ffffff;
}

/* Multi-Listing Popup Styling */
.multi-popup-content {
  width: 295px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.multi-popup-header {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px 12px 0 0;
}

.multi-popup-header i {
  color: var(--accent-primary);
}

.multi-popup-scroll {
  overflow-y: auto;
  max-height: 320px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.multi-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.multi-popup-item:hover {
  background: #f0fdfa;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.multi-popup-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.multi-popup-nothumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.multi-popup-info {
  flex: 1;
  min-width: 0;
}

.multi-popup-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.multi-popup-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-top: 2px;
}

.multi-popup-link {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.multi-popup-link:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip {
  background: #ffffff !important;
}

.popup-content {
  width: 260px;
  display: flex;
  flex-direction: column;
}

.popup-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.popup-body {
  padding: 12px;
}

.popup-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.popup-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.popup-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.popup-btn {
  width: 100%;
  padding: 6px;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--accent-rose);
}

.modal-gallery {
  width: 100%;
  height: 340px;
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  white-space: nowrap;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.param-tag {
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.param-tag strong {
  color: var(--text-main);
  margin-right: 4px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-line;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* Search lock (temporary) */
.search-container.locked .search-input,
.search-container.locked .btn-search {
  cursor: not-allowed;
}

.search-container.locked .search-input {
  background: #e2e8f0;
  color: var(--text-dim);
}

.search-container.locked .btn-search {
  background: #94a3b8;
  box-shadow: none;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Stary spinner OLX usuniety */

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border: 4px solid transparent;
  border-top-color: var(--accent-primary);
  border-bottom-color: #f59e0b;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes janusz-bounce-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.14);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  max-width: 520px;
  padding: 0 16px;
}

.loading-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.loading-title span {
  color: #ff5a36;
}

.loading-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.loading-detail-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Responsive design & Mobile Optimization */
@media (max-width: 1250px) {
  .url-guide-label {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    overflow: hidden;
  }

  .navbar {
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .brand {
    min-width: auto;
    gap: 8px;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .btn-contact,
  .btn-share {
    height: 34px;
    padding: 0 10px;
    font-size: 0.75rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--border-light);
  }

  .btn-contact span,
  .btn-share span {
    display: none;
  }

  .btn-share i {
    font-size: 14px;
    color: var(--accent-primary);
  }

  .navbar {
    flex-shrink: 0;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    order: 3;
  }

  .url-guide-label {
    display: none;
  }

  .main-container {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  /* Full screen map on mobile */
  .map-section {
    width: 100%;
    height: 100%;
    flex: 1;
  }

  .map-controls-overlay {
    top: 10px;
    right: 10px;
  }

  .control-btn {
    width: 34px;
    height: 34px;
  }

  /* Keep the stats below the filter toolbar on mobile. */
  .map-stats-banner {
    top: auto;
    left: 10px;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 4px 10px;
    gap: 8px;
    max-width: calc(100% - 64px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }

  .stat-val {
    font-size: 0.9rem;
  }

  .stat-lbl {
    font-size: 0.62rem;
  }

  .stat-divider {
    height: 16px;
  }

  .leaflet-control-attribution {
    font-size: 8px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    padding: 0 4px !important;
  }

  /* Mobile Filter Toolbar adjustments */
  .map-filter-bar {
    top: 8px;
    left: 8px;
    right: 52px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .filter-bar-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  /* Row 1: Search keyword + Offers count badge + Filter toggle icon */
  .filter-row-primary {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .filter-search-group {
    flex: 1;
    min-width: 0;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
  }

  .filter-search-group i {
    position: absolute;
    left: 8px;
    font-size: 11px;
    color: var(--text-dim);
  }

  .filter-input-search {
    height: 32px;
    font-size: 13px;
    padding: 0 8px 0 26px;
    width: 100% !important;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-color);
  }

  .filter-count-badge {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .filter-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
  }

  .filter-collapse-btn:hover,
  .filter-collapse-btn.active {
    background: #f0fdfa;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }

  .filter-collapse-btn.has-filters::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
  }

  /* Row 2: Price range Od-Do + Allegro Lokalnie toggle */
  .filter-row-secondary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    transition: all 0.2s ease;
  }

  .map-filter-bar.collapsed .filter-row-secondary {
    display: none !important;
  }

  .filter-price-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .filter-input-price {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
  }

  .filter-sep {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 2px;
    flex-shrink: 0;
  }

  .filter-toggle-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .source-filter-container {
    display: flex;
    width: 100%;
    margin-top: 1px;
  }

  .source-btn {
    width: 100%;
    justify-content: center;
    padding: 5px 10px;
    font-size: 11.5px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
  }

  .btn-hide-filters {
    height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
    gap: 4px;
  }

  .btn-show-filters {
    top: 8px;
    left: 8px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .leaflet-top.leaflet-left {
    top: 126px;
    transition: top 0.2s ease;
  }

  body.filters-collapsed .leaflet-top.leaflet-left {
    top: 52px;
  }

  body.filters-hidden .leaflet-top.leaflet-left {
    top: 48px;
  }

  .custom-price-marker,
  .custom-price-marker.multi-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: none;
  }

  .modal-content {
    width: 95%;
    max-height: 92vh;
    margin: 10px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-img-wrapper {
    height: 200px;
  }
}

@media (max-width: 400px) {
  .map-filter-bar {
    right: 48px;
    padding: 4px 6px;
    gap: 4px;
  }
  .filter-input-price {
    font-size: 12px;
    padding: 0 2px;
  }
  .filter-toggle-btn span {
    display: none;
  }
  .filter-toggle-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}

/* Notice / Voivodeship Limits Modal */
.notice-modal-card {
  max-width: 520px;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-light);
}

.notice-modal-content {
  display: flex;
  flex-direction: column;
}

.notice-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.notice-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.notice-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.notice-tips-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.notice-tips-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-tips-list {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 20px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-suggestions-container {
  margin-bottom: 18px;
}

.notice-suggestions-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  padding: 6px 12px;
  background: #f0fdfa;
  color: var(--accent-primary);
  border: 1.5px solid #99f6e4;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.suggestion-chip:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 94, 20, 0.25);
}

.notice-btn-ack {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: #34d399;
  font-size: 15px;
}



/* Stylizacje Bez Kuriera */
.badge-pickup-zero {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
}
.badge-pickup-zero i {
  color: #10b981;
}
.pickup-address-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 4px;
}
.pickup-address-row i {
  color: #ff5e14;
}
.brand-text span {
  color: #ff5e14 !important;
}


/* Nowoczesny Multi-part Search Bar dla Bez Kuriera */
.local-search-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 4px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  gap: 6px;
  flex: 1;
  max-width: 820px;
  transition: all 0.2s ease;
}

.local-search-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 6px 22px rgba(255, 94, 20, 0.16);
}

.search-query-wrapper {
  flex: 1.4;
  display: flex;
  align-items: center;
  position: relative;
}

.search-location-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
  flex-shrink: 0;
}

.search-query-wrapper input,
.search-location-wrapper input {
  border: none !important;
  background: transparent !important;
  padding-left: 36px !important;
  font-size: 0.92rem;
  font-weight: 500;
  width: 100%;
}

.search-query-wrapper > i,
.search-location-wrapper > i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-location-wrapper > i {
  color: var(--accent-primary);
}

.btn-geo-locate {
  background: #fff5ee;
  border: 1px solid rgba(255, 94, 20, 0.3);
  color: var(--accent-primary);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-geo-locate:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.05);
}

.radius-select-wrapper {
  flex-shrink: 0;
}

.radius-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.radius-select:focus {
  border-color: var(--accent-primary);
}

.search-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-collapse-search {
  display: none !important;
}

.btn-expand-search {
  display: none !important;
}

.btn-clear-location {
  right: 42px !important;
}

@media (max-width: 900px) {
  .navbar {
    height: auto;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 4px;
    transition: all 0.25s ease;
  }

  .brand-logo-img {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-text {
    font-size: 1.1rem !important;
  }

  .local-search-container {
    width: 100%;
    max-width: 100%;
    order: 3;
    display: flex;
    flex-direction: column;
    padding: 4px 6px;
    gap: 4px;
    border-radius: 12px;
  }

  .search-bar-divider {
    display: none;
  }

  /* Rząd 1 na mobile: Pole wyszukiwania (100% szerokości) */
  .search-query-wrapper {
    width: 100%;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
  }

  /* Rząd 2 na mobile: Lokalizacja (PEŁNA SZEROKOŚĆ - mnóstwo miejsca na miasto i przyciski) */
  .search-location-wrapper {
    width: 100%;
    flex: 1 1 100%;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 4px;
  }

  .search-query-wrapper input,
  .search-location-wrapper input {
    height: 36px;
    font-size: 15px !important;
    width: 100%;
  }

  .search-query-wrapper input {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .search-location-wrapper input {
    padding-left: 32px !important;
    padding-right: 76px !important;
  }

  .search-location-wrapper > i {
    left: 10px;
    font-size: 0.92rem;
  }

  .search-location-wrapper .btn-clear-location {
    right: 42px !important;
    width: 22px;
    height: 22px;
  }

  .btn-geo-locate {
    width: 32px;
    height: 32px;
    margin-right: 2px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .btn-geo-locate i {
    font-size: 13px;
  }

  /* Rząd 3 na mobile: Promień + Szukaj + Zwiń */
  .search-actions-row {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding-top: 4px;
  }

  .radius-select-wrapper {
    flex-shrink: 0;
  }

  .radius-select {
    height: 36px;
    font-size: 0.85rem;
    padding: 0 8px;
    border-radius: 8px;
  }

  .btn-search {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    border-radius: 8px;
    gap: 5px;
  }

  .btn-collapse-search {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .btn-collapse-search:hover {
    background: #e2e8f0;
    color: var(--accent-primary);
  }

  .btn-collapse-search i {
    font-size: 11px;
  }

  /* Stan zwinięty wyszukiwarki na mobile */
  .navbar.search-collapsed .local-search-container {
    display: none !important;
  }

  .btn-expand-search {
    display: none;
  }

  .navbar.search-collapsed .btn-expand-search {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    background: #fff7ed;
    border: 1.5px solid var(--accent-primary);
    border-radius: 16px;
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 94, 20, 0.15);
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar.search-collapsed .btn-expand-search:hover {
    background: var(--accent-primary);
    color: #ffffff;
  }

  .expand-search-arrow {
    font-size: 0.62rem;
    opacity: 0.75;
  }
}


.brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.brand-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
}
.brand-text {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.5px !important;
}
.brand-badge {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  padding: 1px 7px !important;
  border-radius: 6px !important;
  width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Nowoczesny, ładny selector KM */
.radius-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.radius-select {
  height: 40px !important;
  padding: 0 32px 0 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff5e14' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #1e293b !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.radius-select:hover {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
}

.radius-select:focus {
  border-color: #ff5e14 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.18) !important;
}

/* Animacja błędu braku lokalizacji */
.location-required-shake {
  animation: shakeLoc 0.45s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}

@keyframes shakeLoc {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}


/* Stylizacja modala Bez Kuriera */
.notice-icon-circle {
  background: #fff5ee !important;
  color: #ff5e14 !important;
  border: 2px solid rgba(255, 94, 20, 0.25) !important;
}

.notice-tips-box {
  background: #fafafa !important;
  border: 1px solid #f1f5f9 !important;
  border-left: 4px solid #ff5e14 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-top: 16px !important;
}

.notice-tips-title {
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.notice-tips-list li {
  font-size: 0.85rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin-bottom: 6px !important;
}

.btn-notice-confirm {
  background: linear-gradient(135deg, #ff5e14 0%, #e04b06 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.3) !important;
  font-weight: 700 !important;
}

.btn-notice-retry {
  background: #0284c7 !important;
  font-weight: 700 !important;
}


/* Minimalistyczny, czytelny logotyp literowy BK */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-logo-badge {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ff7a3d 0%, #ff5e14 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.5px !important;
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.32) !important;
  position: relative !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.brand:hover .brand-logo-badge {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(255, 94, 20, 0.45) !important;
}

.brand-logo-badge::after {
  content: '' !important;
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  border: 1.5px solid #ffffff !important;
}

.brand-text {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.6px !important;
  display: flex !important;
  align-items: center !important;
}

.brand-text span {
  color: var(--accent-primary) !important;
}

.brand-badge {
  display: none !important;
}


/* Stylizacje nowego spinnera BK */
.bk-spinner-container {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bk-spinner-badge {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7a3d 0%, #ff5e14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -1px;
  box-shadow: 0 8px 24px rgba(255, 94, 20, 0.4);
  animation: bk-pulse-scale 1.3s infinite ease-in-out;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border: 4px solid transparent;
  border-top-color: #ff5e14 !important;
  border-bottom-color: #10b981 !important;
  border-radius: 50%;
  animation: spin 0.9s infinite linear;
}

@keyframes bk-pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}


/* Ostateczne wygaszenie starych logotypow i elementow OLX/Janusz */
.janusz-spinner-container, .janusz-spinner-img, [src*="janusz_logo"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}


/* Badge odległości od użytkownika (np. 4.2 km) */
.distance-km-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 94, 20, 0.12);
  color: #ff5e14;
  font-weight: 700;
  font-size: 0.78rem;
  vertical-align: middle;
}

.multi-dist-badge {
  font-size: 0.72rem;
  color: #ff5e14;
  font-weight: 700;
  margin-left: 5px;
}

/* Location Input Clear & Active GPS Styling */
.search-location-wrapper input {
  padding-right: 78px !important;
}

.search-query-wrapper input {
  padding-right: 42px !important;
}

.btn-geo-locate.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.28) !important;
}

/* Stylizacje nowego maskotkowego spinnera i brand logo Bez Kuriera */
.brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--accent-primary) !important;
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: block !important;
}

.brand:hover .brand-logo-img {
  transform: scale(1.15) rotate(4deg) !important;
  box-shadow: 0 6px 20px rgba(255, 94, 20, 0.5) !important;
}

.bk-spinner-container {
  position: relative !important;
  width: 106px !important;
  height: 106px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bk-spinner-mascot {
  width: 78px !important;
  height: 78px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 8px 26px rgba(255, 94, 20, 0.42) !important;
  animation: bk-mascot-running 1.1s infinite ease-in-out !important;
  display: block !important;
}

@keyframes bk-mascot-running {
  0%, 100% {
    transform: scale(0.95) rotate(-4deg);
  }
  50% {
    transform: scale(1.06) rotate(4deg);
  }
}

/* Tagline pod logo BezKuriera */
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.2px;
  line-height: 1.15;
  white-space: nowrap;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .brand-tagline {
    display: none;
  }
}

/* Stylizacja przycisku siostrzanego serwisu JanuszMap.pl */
.btn-sister-project {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #0f766e;
  padding: 0 12px;
  height: 38px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-sister-project:hover {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.sister-tag-olx {
  background: #002f34;
  color: #23e5db;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-sister-project:hover .sister-tag-olx {
  background: #ffffff;
  color: #002f34;
}

.sister-icon {
  font-size: 0.72rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .btn-sister-project .sister-title {
    display: none;
  }
}

/* Pigułka ekosystemu w rogu mapy */
.map-ecosystem-pill {
  position: absolute;
  bottom: 22px;
  left: 14px;
  z-index: 800;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  user-select: none;
}

.map-ecosystem-pill .eco-link {
  color: #0d9488;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.map-ecosystem-pill .eco-link:hover {
  color: #047857;
  transform: translateY(-1px);
}

.map-ecosystem-pill .eco-badge {
  background: #002f34;
  color: #23e5db;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .map-ecosystem-pill {
    bottom: 60px;
    left: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
