:root {
  --bg: #f7faff;
  --card: #ffffff;
  --primary: #006bff;
  --primary-700: #0055d8;
  --primary-soft: #eaf3ff;
  --cyan: #00c7c7;
  --text: #101828;
  --muted: #667085;
  --border: #e4eaf3;
  --shadow: 0 9px 24px rgba(16, 24, 40, 0.075);
  --shadow-soft: 0 7px 20px rgba(16, 24, 40, 0.062);
  --radius: 10px;
  --radius-sm: 7px;
  --container-gap: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 310px minmax(420px, 1fr) 142px 225px auto;
  align-items: center;
  gap: 22px;
  height: 88px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 42px;
  color: transparent;
  font-weight: 900;
  font-size: 0;
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px 1px;
  background: linear-gradient(135deg, #01d2ff 0%, #006bff 52%, #1238ff 100%);
  clip-path: polygon(0 88%, 15% 10%, 31% 10%, 45% 55%, 58% 10%, 75% 10%, 100% 88%, 83% 88%, 70% 42%, 57% 88%, 43% 88%, 30% 42%, 17% 88%);
  filter: drop-shadow(0 7px 9px rgba(0, 107, 255, 0.24));
}

.brand-name {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.search-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  min-width: 0;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(16, 24, 40, 0.035);
  overflow: hidden;
}

.field-shell {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 22px;
  min-width: 0;
  color: var(--muted);
}

.global-search {
  border-right: 1px solid var(--border);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  font-weight: 600;
  background: transparent;
}

.global-search input::placeholder {
  color: #53627a;
  font-weight: 600;
}

.location-select {
  border: 0;
  background: #fff;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
}

.location-select svg:first-child {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0575ff 0%, #005fec 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 107, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #006bff 0%, #004fd1 100%);
  box-shadow: 0 16px 30px rgba(0, 107, 255, 0.28);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 7px 18px rgba(16, 24, 40, 0.035);
}

.btn-wide {
  width: 100%;
  margin-top: 14px;
}

.user-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
}

.icon-btn, .view-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover, .view-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.badge-holder .badge {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(0, 107, 255, 0.25);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
}

.category-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 9px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}

.category-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.category-item:hover, .category-item.active {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.category-item.active {
  color: var(--primary);
  background: #fff;
  border-color: #cde0ff;
  box-shadow: 0 8px 18px rgba(0, 107, 255, 0.10);
}

.category-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: inherit;
}

.category-icon svg {
  width: 17px;
  height: 17px;
}

.category-title {
  display: block;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
}

.category-count {
  display: block;
  margin-top: 2px;
  color: #41607f;
  font-size: 11px;
  font-weight: 650;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(720px, 1fr) 260px;
  gap: var(--container-gap);
  padding: 16px 28px 36px;
  align-items: start;
}

.filters-panel, .side-card, .map-card, .listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.filters-panel {
  position: sticky;
  top: 104px;
  border-radius: var(--radius);
  padding: 16px 14px;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.filters-panel::-webkit-scrollbar { width: 7px; }
.filters-panel::-webkit-scrollbar-thumb { background: #d4deee; border-radius: 99px; }

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row h2, .side-card h2, .promo-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 850;
  font-size: 13px;
  white-space: nowrap;
}

.text-btn svg { width: 15px; height: 15px; }

.filters-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.filter-group > label, .filter-group > span {
  display: block;
  margin-bottom: 7px;
  color: #172033;
  font-weight: 850;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-field {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #6c7b92;
  font-size: 13px;
  font-weight: 750;
  background: #fff;
}

.mini-field input, .mini-field select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  text-align: right;
  font-weight: 850;
  background: transparent;
}

.full-field, .results-tools select, .modal input, .modal select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  outline: none;
}


.save-search-btn, .promo-card button, .slider-nav button, .view-btn, .icon-btn, .location-select, .map-search-btn {
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.045);
}

.full-field:disabled {
  color: #8b9ab0;
  background: #f8fbff;
}

.full-field:focus, .results-tools select:focus, .mini-field:focus-within, .modal input:focus, .modal select:focus {
  border-color: rgba(0, 107, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 107, 255, 0.09);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.chip {
  min-height: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 11px rgba(16, 24, 40, 0.035);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 850;
  font-size: 13px;
}

.chip.active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 107, 255, 0.2);
}

.more-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f2a44;
  font-weight: 850;
  padding: 0;
}

.content-column {
  min-width: 0;
}

.map-card {
  position: relative;
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #eaf3ef;
}

.map-search-btn {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 501;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(0, 107, 255, 0.26);
}

.leaflet-control-zoom a {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 310px !important;
}

.cluster-marker {
  display: grid;
  place-items: center;
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(0, 107, 255, 0.28);
}

.single-marker {
  display: grid;
  place-items: center;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  border: 1px solid #dbe5f1;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16);
}

.single-marker svg {
  width: 17px;
  height: 17px;
}

.results-section {
  margin-top: 28px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.results-head h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.results-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.results-tools select {
  min-width: 210px;
  min-height: 44px;
}

.view-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: #fff;
}

.view-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #cde0ff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cards-grid.list-view {
  grid-template-columns: 1fr;
}

.listing-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: #cdddf1;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.1);
}

.listing-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #dce9f9, #f7fbff);
}

.cards-grid.list-view .listing-card {
  display: grid;
  grid-template-columns: 310px 1fr;
}

.cards-grid.list-view .listing-image-wrap {
  height: 190px;
  aspect-ratio: auto;
}

.listing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.listing-card:hover .listing-image-wrap img {
  transform: scale(1.035);
}

.label-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.label-new, .label-verified { background: var(--cyan); }
.label-featured { background: var(--primary); }

.favorite-btn {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #32435a;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
}

.favorite-btn.active {
  color: var(--primary);
  background: #fff;
}

.listing-body {
  padding: 12px 12px 14px;
}

.listing-body h3 {
  margin: 0 0 9px;
  font-size: 15px;
  line-height: 1.23;
  letter-spacing: -0.02em;
}

.meta-line {
  margin: 0;
  color: #53627a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.spec-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: #53627a;
  font-size: 12px;
  line-height: 1.25;
}

.spec-list span {
  flex: 0 0 auto;
  color: #7a8aa1;
  font-weight: 700;
}

.spec-list strong {
  min-width: 0;
  color: #253449;
  font-weight: 850;
  text-align: right;
  overflow-wrap: anywhere;
}

.price-line {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #53627a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.location-line span {
  display: grid;
  gap: 2px;
}

.location-line small {
  display: block;
  color: #8999ae;
  font-size: 11px;
  font-weight: 750;
}

.location-line svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 21px;
}

.slider-nav button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7991ad;
}

.slider-nav button.active {
  color: var(--primary);
  background: #edf5ff;
}

.right-panel {
  display: grid;
  gap: 14px;
}

.side-card {
  border-radius: var(--radius);
  padding: 16px 14px;
}

.saved-list {
  display: grid;
  margin: 14px -14px 12px;
}

.saved-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.saved-item:first-child {
  border-top: 1px solid var(--border);
}

.saved-item h3 {
  margin: 0 0 3px;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.saved-item p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}

.small-badge {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.save-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 146px;
  padding: 18px 15px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 82% 45%, rgba(255,255,255,0.22) 0 16%, transparent 17%), linear-gradient(135deg, #006bff 0%, #0b78ff 55%, #00c7c7 100%);
  box-shadow: 0 14px 34px rgba(0, 107, 255, 0.18);
  overflow: hidden;
}

.promo-card p {
  max-width: 170px;
  margin: 10px 0 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  font-weight: 650;
}

.promo-card button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
}

.rocket {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 28px;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.26);
}

.stats-card {
  display: grid;
  gap: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
}

.stat-row svg {
  color: var(--primary);
  width: 25px;
  height: 25px;
}

.stat-row strong, .stat-row span {
  display: block;
}

.stat-row strong {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-row span {
  color: #667085;
  font-weight: 700;
}

.popup-card {
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}

.popup-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.popup-card-body {
  padding: 12px 14px 13px;
}

.popup-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.popup-card .price-line {
  font-size: 20px;
  margin: 9px 0;
}

.popup-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popup-bottom a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.modal {
  width: min(920px, calc(100vw - 40px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 26px 80px rgba(16, 24, 40, 0.24);
}

.modal::backdrop {
  background: rgba(7, 18, 34, 0.52);
  backdrop-filter: blur(5px);
}

.modal-card {
  margin: 0;
  padding: 28px;
  background: #fff;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.modal-head h2 {
  margin: 0 0 7px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.modal label {
  display: grid;
  gap: 7px;
  color: #1f2a44;
  font-weight: 850;
}

.modal input, .modal select {
  min-height: 46px;
}

.full-row {
  grid-column: 1 / -1;
}

.form-note {
  min-height: 20px;
  color: var(--muted);
  font-weight: 750;
}

.form-note.error {
  color: #d92d20;
}

.form-note.success {
  color: #078567;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2000;
  max-width: 360px;
  transform: translateY(24px);
  padding: 14px 17px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed #cad7e8;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  color: #667085;
  font-weight: 750;
}

@media (max-width: 1320px) {
  body { min-width: 1080px; }
  .topbar { grid-template-columns: 255px minmax(360px, 1fr) 132px 205px auto; gap: 14px; }
  .category-bar { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .layout { grid-template-columns: 250px minmax(570px, 1fr); }
  .right-panel { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  body { min-width: 0; }
  .topbar { grid-template-columns: 1fr; height: auto; padding: 18px; }
  .search-wrap { grid-template-columns: 1fr; height: auto; }
  .global-search { border-right: 0; border-bottom: 1px solid var(--border); min-height: 54px; }
  .location-select { min-height: 54px; }
  .user-actions { justify-content: flex-start; }
  .category-bar, .layout { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .filters-panel { position: static; max-height: none; }
  .right-panel { grid-column: auto; grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid.list-view .listing-card { grid-template-columns: 1fr; }
}


/* ===== v3 refinements ===== */
:root {
  --shadow: 0 16px 42px rgba(16, 24, 40, 0.115);
  --shadow-soft: 0 11px 28px rgba(16, 24, 40, 0.092);
  --radius: 8px;
  --radius-sm: 6px;
  --container-gap: 14px;
}

body {
  min-width: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  height: 78px;
  padding: 0 24px;
}

.brand-name {
  font-size: 27px;
}

.btn {
  min-height: 48px;
  border-radius: 8px;
}

.user-actions {
  gap: 12px;
}

.category-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 24px;
}

.category-item {
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 8px;
}

.category-icon {
  width: 18px;
  height: 18px;
}

.category-title {
  font-size: 12px;
}

.category-count {
  font-size: 10px;
}

.layout {
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 14px;
  padding: 14px 24px 36px;
}

.filters-panel, .side-card, .promo-card, .listing-card {
  box-shadow: var(--shadow-soft);
}

.map-card {
  height: 620px;
  box-shadow: 0 22px 56px rgba(16, 24, 40, 0.13);
}

.filters-panel {
  position: sticky;
  top: 92px;
  padding: 14px 12px;
  max-height: none;
  overflow: visible;
}

.filters-panel::-webkit-scrollbar {
  display: none;
}

.right-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.panel-title-row h2, .side-card h2, .promo-card h2 {
  font-size: 17px;
}

.filters-form {
  gap: 12px;
  margin-top: 14px;
}

.filter-group > label, .filter-group > span {
  margin-bottom: 6px;
  font-size: 13px;
}

.full-field, .results-tools select, .modal input, .modal select {
  min-height: 35px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
}

.mini-field {
  min-height: 35px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12px;
}

.chip-grid {
  gap: 6px;
}

.chip {
  min-height: 30px;
  border-radius: 7px;
  font-size: 12px;
}

.more-options {
  font-size: 13px;
}

.map-search-btn {
  top: 18px;
  left: 18px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

.results-section {
  margin-top: 22px;
}

.results-head {
  margin-bottom: 14px;
}

.results-head h1 {
  font-size: 17px;
}

.results-tools {
  gap: 10px;
}

.results-tools select {
  min-width: 190px;
  min-height: 40px;
}

.view-btn, .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.listing-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.listing-image-wrap {
  aspect-ratio: 1 / 1;
}

.listing-body {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(46px, auto) 34px auto auto;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.listing-body h3 {
  margin: 0;
  min-height: 46px;
  font-size: 14px;
  line-height: 1.3;
}

.listing-meta {
  margin: 0;
  min-height: 34px;
  color: #6c7b92;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.spec-list {
  display: none;
}

.price-line {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.location-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  color: #52647d;
  font-size: 13px;
}

.location-line span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.location-line small {
  display: block;
  margin-top: 0;
  color: #8797ab;
  font-size: 11px;
}

.saved-item h3, .saved-item p {
  overflow-wrap: anywhere;
}

.popup-card .price-line {
  font-size: 18px;
}

.cards-grid.list-view .listing-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.cards-grid.list-view .listing-image-wrap {
  height: 180px;
}

.cards-grid.list-view .listing-body {
  grid-template-rows: auto auto auto auto;
}

@media (max-width: 1450px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ===== v4 fixes: filters layout + category sizing + image markers ===== */
.filters-panel,
.right-panel,
.content-column,
.filters-form,
.filter-group,
.two-cols,
.chip-grid,
.full-field,
.mini-field {
  min-width: 0;
}

.filters-panel {
  overflow: hidden;
  padding: 16px 14px;
}

.filters-panel .panel-title-row {
  align-items: center;
}

.filters-panel .panel-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
}

.filters-panel .text-btn {
  flex: 0 0 auto;
  font-size: 12px;
}

.filters-form {
  width: 100%;
}

.filter-group {
  width: 100%;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gearbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.full-field,
.results-tools select,
.modal input,
.modal select,
.mini-field {
  width: 100%;
  max-width: 100%;
}

.mini-field input,
.mini-field select {
  font-size: 12px;
}

.more-options {
  padding-right: 4px;
}

.btn-wide {
  min-height: 46px;
}

.category-bar {
  gap: 10px;
}

.category-item {
  min-height: 50px;
  padding: 6px 10px;
}

.category-title {
  font-size: 16px;
  line-height: 1.02;
}

.category-count {
  font-size: 12px;
  margin-top: 3px;
}

.category-icon {
  width: 22px;
  height: 22px;
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.single-marker-image {
  width: 68px !important;
  height: 68px !important;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(16, 24, 40, 0.22);
}

.single-marker-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1450px) {
  .category-title {
    font-size: 14px;
  }

  .category-count {
    font-size: 11px;
  }
}


/* ===== v7: background, deeper panel shadows and Google banner slots ===== */
:root {
  --bg: #fafbfc;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
  --shadow-soft: 0 18px 48px rgba(16, 24, 40, 0.135);
  --shadow-deep: 0 26px 74px rgba(16, 24, 40, 0.18);
}

body {
  background: #fafbfc;
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.category-item:hover,
.category-item.active {
  box-shadow: var(--shadow-soft);
}

.map-card {
  box-shadow: 0 32px 86px rgba(16, 24, 40, 0.18);
}

.listing-card:hover {
  box-shadow: var(--shadow-deep);
}

.google-ad-slot {
  grid-column: 1 / -1;
  min-height: 124px;
  display: grid;
  place-items: center;
  border: 1px dashed #c8d5e6;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.google-ad-inner {
  display: grid;
  place-items: center;
  gap: 5px;
  color: #667085;
  text-align: center;
}

.google-ad-inner strong {
  color: #182235;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.google-ad-inner small {
  font-size: 12px;
  font-weight: 700;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cards-grid.list-view .google-ad-slot {
  min-height: 110px;
}


/* ===== v8: compact deeper shadows + select filters ===== */
:root {
  --shadow: 0 8px 18px rgba(16, 24, 40, 0.145);
  --shadow-soft: 0 6px 14px rgba(16, 24, 40, 0.125);
  --shadow-deep: 0 10px 22px rgba(16, 24, 40, 0.16);
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.google-ad-slot,
.category-item:hover,
.category-item.active {
  box-shadow: var(--shadow-soft);
}

.map-card {
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.15);
}

.listing-card:hover {
  box-shadow: var(--shadow-deep);
}

.leaflet-popup-content-wrapper {
  box-shadow: var(--shadow-deep) !important;
}

.full-field {
  appearance: auto;
}


/* ===== v9: offer card rhythm, compact darker shadows, shorter map ===== */
:root {
  --shadow: 0 4px 9px rgba(16, 24, 40, 0.18);
  --shadow-soft: 0 3px 7px rgba(16, 24, 40, 0.156);
  --shadow-deep: 0 5px 11px rgba(16, 24, 40, 0.20);
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.google-ad-slot,
.category-item:hover,
.category-item.active,
.save-search-btn,
.view-btn,
.icon-btn {
  box-shadow: var(--shadow-soft);
}

.map-card {
  height: 496px;
  box-shadow: 0 6px 13px rgba(16, 24, 40, 0.19);
}

.listing-card:hover {
  box-shadow: var(--shadow-deep);
}

.btn-primary,
.map-search-btn {
  background: linear-gradient(135deg, #0a7cff 0%, #006bff 48%, #004fd1 100%);
  box-shadow: 0 5px 12px rgba(0, 107, 255, 0.20);
}

.btn-primary:hover,
.map-search-btn:hover {
  background: linear-gradient(135deg, #1685ff 0%, #0064ef 48%, #0049c4 100%);
  box-shadow: 0 6px 14px rgba(0, 107, 255, 0.24);
}

.listing-body {
  grid-template-rows: auto auto auto auto;
  gap: 5px;
  padding: 11px 12px 12px;
}

.listing-body h3 {
  min-height: 34px;
  margin: 0;
  line-height: 1.18;
}

.listing-meta {
  min-height: 18px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.price-line {
  margin: 3px 0 2px;
  font-size: 20px;
  line-height: 1.15;
}

.location-line {
  margin-top: 2px;
  white-space: nowrap;
}

.location-line span {
  display: inline;
}

.location-line small {
  display: inline;
  margin: 0;
}

@media (max-width: 1450px) {
  .map-card {
    height: 480px;
  }

  .listing-meta {
    font-size: 11px;
  }

  .price-line {
    font-size: 18px;
  }
}

/* ===== v10: tighter darker shadows, square map markers, smaller badges/icons ===== */
:root {
  --shadow: 0 2px 5px rgba(16, 24, 40, 0.225);
  --shadow-soft: 0 2px 4px rgba(16, 24, 40, 0.195);
  --shadow-deep: 0 3px 6px rgba(16, 24, 40, 0.25);
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.google-ad-slot,
.category-item:hover,
.category-item.active,
.save-search-btn,
.view-btn,
.icon-btn {
  box-shadow: var(--shadow-soft);
}

.map-card {
  box-shadow: 0 3px 7px rgba(16, 24, 40, 0.235);
}

.listing-card:hover {
  box-shadow: var(--shadow-deep);
}

.leaflet-popup-content-wrapper {
  box-shadow: var(--shadow-deep) !important;
}

.cluster-marker {
  width: 54px !important;
  height: 54px !important;
  border-radius: 13px;
  border-width: 3px;
}

.single-marker-image {
  width: 68px !important;
  height: 68px !important;
  border-radius: 12px;
  border-width: 3px;
}

.single-marker-image img {
  border-radius: 9px;
}

.listing-body h3 {
  min-height: 30px;
  font-size: 13.5px;
}

.listing-meta {
  min-height: 16px;
  font-size: 10.5px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.location-line {
  font-weight: 500;
  font-size: 12px;
}

.location-line span,
.location-line small {
  font-weight: 500;
}

.label-badge {
  top: 9px;
  left: 9px;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.015em;
}

.favorite-btn {
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
}

.favorite-btn svg {
  width: 15px;
  height: 15px;
}

.favorite-btn.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

@media (max-width: 1450px) {
  .listing-body h3 {
    font-size: 13px;
  }

  .listing-meta {
    font-size: 9.8px;
    letter-spacing: -0.065em;
  }
}


/* ===== v11: lighter compact shadows, filled square map photos, tighter offer cards ===== */
:root {
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.1125);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.0975);
  --shadow-deep: 0 2px 4px rgba(16, 24, 40, 0.125);
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.google-ad-slot,
.category-item:hover,
.category-item.active,
.save-search-btn,
.view-btn,
.icon-btn {
  box-shadow: var(--shadow-soft);
}

.map-card {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.118);
}

.listing-card:hover,
.leaflet-popup-content-wrapper {
  box-shadow: var(--shadow-deep) !important;
}

.single-marker-image,
.leaflet-div-icon.single-marker-image {
  width: 68px !important;
  height: 68px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  line-height: 0 !important;
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.18) !important;
}

.single-marker-image img,
.leaflet-div-icon.single-marker-image img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 12px !important;
}

.listing-body {
  gap: 2px;
  padding: 10px 11px 11px;
}

.listing-body h3 {
  min-height: 26px;
  line-height: 1.12;
  margin-bottom: 0;
}

.listing-meta {
  min-height: 13px;
  font-size: 10px;
  line-height: 1.05;
  margin-top: 0;
}

.price-line {
  margin: 4px 0 2px;
  font-size: 22px;
  line-height: 1.08;
}

.location-line {
  font-weight: 400;
}

.location-line span,
.location-line small {
  font-weight: 400;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  min-height: 24px;
  padding: 0 7px;
  font-size: 9.5px;
  line-height: 1;
  border-radius: 5px;
}

.label-featured::before {
  content: '👑';
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  transform-origin: center bottom;
  animation: crown-sparkle 1.25s ease-in-out infinite;
}

@keyframes crown-sparkle {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); filter: brightness(1); }
  45% { transform: translateY(-1px) rotate(5deg) scale(1.12); filter: brightness(1.45) saturate(1.35); }
}

.favorite-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255,255,255,0.94);
}

.favorite-btn svg {
  width: 13px;
  height: 13px;
}

.favorite-btn.active {
  background: #fff;
}

.favorite-btn.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

@media (max-width: 1450px) {
  .listing-meta {
    font-size: 9.5px;
    letter-spacing: -0.07em;
  }

  .price-line {
    font-size: 20px;
  }
}


/* ===== v12: map outline, favorite drawer, stronger gradients, calmer map ===== */
:root {
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.056);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.049);
  --shadow-deep: 0 2px 4px rgba(16, 24, 40, 0.0625);
}

.filters-panel,
.side-card,
.promo-card,
.listing-card,
.google-ad-slot,
.category-item:hover,
.category-item.active,
.save-search-btn,
.view-btn,
.icon-btn {
  box-shadow: var(--shadow-soft);
}

.map-card {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.059);
}

.single-marker-image,
.leaflet-div-icon.single-marker-image {
  box-shadow: 0 0 0 4px #fff, var(--shadow-soft) !important;
  border-radius: 12px !important;
}

.single-marker-image img,
.leaflet-div-icon.single-marker-image img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

.listing-body {
  gap: 1px;
}

.listing-body h3 {
  min-height: 25px;
  margin-bottom: 0;
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 15px;
  margin-top: -1px;
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: -0.06em;
  white-space: nowrap;
  overflow: hidden;
}

.meta-dot {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #98a6ba;
}

.price-line {
  margin-top: 5px;
  font-size: 23px;
}

.btn-primary,
.map-search-btn {
  background: linear-gradient(135deg, #12a0ff 0%, #006bff 42%, #003ecb 100%);
  box-shadow: 0 5px 12px rgba(0, 107, 255, 0.24);
}

.btn-primary:hover,
.map-search-btn:hover {
  background: linear-gradient(135deg, #2eb0ff 0%, #0062ee 42%, #0034ae 100%);
}

.category-item {
  position: relative;
  overflow: hidden;
}

.category-item::after {
  content: '';
  position: absolute;
  inset: auto auto 50% 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(0, 107, 255, 0.12);
  transform: translate(-50%, 50%);
  opacity: 0;
}

.category-item.category-clicked::after,
.category-item.active::after {
  animation: categoryRipple 0.46s ease-out;
}

.category-item.active {
  animation: categoryLift 0.32s ease-out;
}

@keyframes categoryRipple {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 180px; height: 180px; opacity: 0; }
}

@keyframes categoryLift {
  0% { transform: translateY(0) scale(0.985); }
  60% { transform: translateY(-2px) scale(1.012); }
  100% { transform: translateY(-1px) scale(1); }
}

.favorites-badge {
  top: -2px;
  right: -2px;
}

.favorites-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1390;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(2px);
}

.favorites-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1400;
  width: min(390px, calc(100vw - 28px));
  height: 100vh;
  padding: 22px;
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(16, 24, 40, 0.10);
  transform: translateX(104%);
  transition: transform 0.26s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}

.favorites-drawer.open {
  transform: translateX(0);
}

.favorites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.favorites-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.favorites-list {
  display: grid;
  gap: 10px;
}

.favorite-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.favorite-row:hover {
  transform: translateY(-1px);
  border-color: #bdd3f0;
}

.favorite-row img {
  width: 76px;
  height: 76px;
  border-radius: 7px;
  object-fit: cover;
}

.favorite-row span {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.favorite-row strong {
  font-size: 14px;
  line-height: 1.18;
}

.favorite-row small {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.favorites-empty {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 220px;
  padding: 24px;
  color: #667085;
  text-align: center;
  border: 1px dashed #ccd8e8;
  border-radius: 10px;
  background: #f8fbff;
}

.favorites-empty svg {
  color: var(--primary);
}

.favorites-empty strong {
  color: var(--text);
}

@media (max-width: 1450px) {
  .listing-meta {
    gap: 4px;
    font-size: 10.4px;
    letter-spacing: -0.072em;
  }
  .price-line {
    font-size: 21px;
  }
}

/* v12 tiny marker positioning fix */
.single-marker-image,
.leaflet-div-icon.single-marker-image {
  position: relative !important;
}

/* ===== v17: compact square popup, hidden active marker and live map refresh visual polish ===== */
.leaflet-popup {
  animation: popupReveal 0.22s cubic-bezier(.2,.8,.2,1);
}

@keyframes popupReveal {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  width: 286px !important;
}

.popup-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.popup-card .popup-main-image,
.popup-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: cover;
  object-position: center;
}

.popup-card-body {
  padding: 12px 14px 14px;
}

.popup-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.popup-card .meta-line {
  margin: 0;
  color: #516178;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.popup-card .price-line {
  margin: 10px 0 8px;
  font-size: 27px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.popup-location {
  margin-bottom: 12px;
  color: #56677f;
  font-size: 13px;
  font-weight: 500;
}

.popup-offer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #12a0ff 0%, #006bff 48%, #0044c9 100%);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(0, 107, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.popup-offer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 107, 255, 0.27);
}

.single-marker-image,
.leaflet-div-icon.single-marker-image {
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.single-marker-image.marker-hidden,
.leaflet-div-icon.single-marker-image.marker-hidden {
  opacity: 0 !important;
  transform: scale(0.82) !important;
  pointer-events: none !important;
}

.results-section.map-live-updating .results-head h1::after {
  content: ' · aktualizuję mapę';
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* ===== v19: map popup 1/3 smaller ===== */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
}

.leaflet-popup-content {
  width: 192px !important;
}

.popup-card {
  border-radius: 10px;
}

.popup-card .popup-main-image,
.popup-card > img {
  aspect-ratio: 1 / 1;
  height: auto !important;
}

.popup-card-body {
  padding: 8px 9px 10px;
}

.popup-card h3 {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.popup-card .meta-line {
  font-size: 10.2px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.popup-card .price-line {
  margin: 7px 0 6px;
  font-size: 20px;
  line-height: 1.05;
}

.popup-location {
  margin-bottom: 8px;
  font-size: 10.8px;
  line-height: 1.2;
}

.popup-location svg {
  width: 12px;
  height: 12px;
}

.popup-offer-btn {
  min-height: 34px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 107, 255, 0.18);
}


/* ===== v20: keep map marker visible and use uploaded category photos ===== */
.category-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

.category-item.active .category-icon img {
  transform: scale(1.04);
}

.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-coupe img,
.category-icon-kabriolet img {
  width: 28px;
  height: 20px;
}

/* keep square markers visible while popup is open */
.single-marker-image.marker-hidden,
.leaflet-div-icon.single-marker-image.marker-hidden {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* ===== v21: larger uploaded category icons ===== */
.category-icon {
  flex: 0 0 62px;
  width: 62px !important;
  height: 44px !important;
  display: grid;
  place-items: center;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-coupe img,
.category-icon-kabriolet img {
  width: 60px !important;
  height: 42px !important;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.category-item {
  min-height: 62px;
  gap: 12px;
  padding: 7px 11px;
}

.category-item.active .category-icon img {
  transform: scale(1.06);
}

@media (max-width: 1450px) {
  .category-icon {
    flex-basis: 52px;
    width: 52px !important;
    height: 38px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-coupe img,
  .category-icon-kabriolet img {
    width: 50px !important;
    height: 36px !important;
  }

  .category-item {
    min-height: 58px;
    gap: 9px;
  }
}


/* ===== v22: category icons 2x larger + transparent cabriolet asset ===== */
.category-bar {
  align-items: stretch;
}

.category-item {
  min-height: 112px;
  gap: 16px;
  padding: 10px 13px;
}

.category-icon {
  flex: 0 0 124px;
  width: 124px !important;
  height: 88px !important;
  display: grid;
  place-items: center;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-coupe img,
.category-icon-kabriolet img {
  width: 120px !important;
  height: 84px !important;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
  background: transparent !important;
}

.category-icon svg {
  width: 48px !important;
  height: 48px !important;
}

.category-item.active .category-icon img {
  transform: scale(1.03);
}

@media (max-width: 1450px) {
  .category-item {
    min-height: 96px;
    gap: 11px;
    padding: 8px 10px;
  }

  .category-icon {
    flex-basis: 96px;
    width: 96px !important;
    height: 70px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-coupe img,
  .category-icon-kabriolet img {
    width: 92px !important;
    height: 64px !important;
  }

  .category-icon svg {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ===== v23: category icons reduced by 1/3 ===== */
.category-item {
  min-height: 82px;
  gap: 12px;
  padding: 8px 11px;
}

.category-icon {
  flex: 0 0 84px;
  width: 84px !important;
  height: 60px !important;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-coupe img,
.category-icon-kabriolet img {
  width: 80px !important;
  height: 56px !important;
  object-fit: contain;
  object-position: center;
}

.category-icon svg {
  width: 34px !important;
  height: 34px !important;
}

@media (max-width: 1450px) {
  .category-item {
    min-height: 72px;
    gap: 9px;
    padding: 7px 9px;
  }

  .category-icon {
    flex-basis: 64px;
    width: 64px !important;
    height: 48px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-coupe img,
  .category-icon-kabriolet img {
    width: 61px !important;
    height: 43px !important;
  }

  .category-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ===== v24: category icons closer to labels + smaller cabriolet icon ===== */
.category-item {
  gap: 4px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.category-icon {
  flex: 0 0 80px !important;
  width: 80px !important;
  margin-right: 0 !important;
}

.category-icon-kabriolet {
  flex-basis: 66px !important;
  width: 66px !important;
}

.category-icon-kabriolet img {
  width: 64px !important;
  height: 45px !important;
}

@media (max-width: 1450px) {
  .category-item {
    gap: 4px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .category-icon {
    flex-basis: 61px !important;
    width: 61px !important;
  }

  .category-icon-kabriolet {
    flex-basis: 50px !important;
    width: 50px !important;
  }

  .category-icon-kabriolet img {
    width: 49px !important;
    height: 34px !important;
  }
}


/* v25 hatchback category icon */
.category-icon-hatchback img {
  width: 54px;
  height: 38px;
  object-fit: contain;
}

@media (max-width: 1400px) {
  .category-icon-hatchback img {
    width: 46px;
    height: 32px;
  }
}


/* v26 uploaded logo and electric category icon */
.brand {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.category-icon-elektryczny img {
  width: 54px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

@media (max-width: 1400px) {
  .brand-logo {
    width: 230px;
  }

  .category-icon-elektryczny img {
    width: 46px;
    height: 32px;
  }
}


/* v27 fixes: transparent electric icon, hatchback label, new logo */
.category-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.category-item {
  gap: 5px;
  padding: 6px 8px;
}

.category-item > span:last-child {
  min-width: 0;
}

.category-title,
.category-count {
  white-space: nowrap;
}

.category-title {
  font-size: 12px;
}

.category-count {
  font-size: 10px;
}

.category-icon {
  flex: 0 0 auto;
}

.category-icon-hatchback img {
  width: 46px;
  height: 32px;
}

.category-icon-elektryczne img {
  width: 54px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-logo {
  width: 300px;
}

@media (max-width: 1400px) {
  .category-title {
    font-size: 11px;
  }

  .category-count {
    font-size: 9px;
  }

  .category-icon-hatchback img {
    width: 40px;
    height: 28px;
  }

  .category-icon-elektryczne img {
    width: 46px;
    height: 32px;
  }

  .brand-logo {
    width: 260px;
  }
}


/* v28 clear buttons for filters and map reset */
.filters-panel .panel-title-row {
  justify-content: flex-start;
}

.filters-clear-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9e3f1;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
  color: #1f2a44;
  box-shadow: 0 3px 8px rgba(16, 24, 40, 0.055);
}

.filters-clear-btn:hover {
  background: linear-gradient(135deg, #f9fbff 0%, #edf4ff 100%);
  color: var(--primary);
  border-color: #c8dcff;
}

.map-actions {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 501;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-actions .map-search-btn {
  position: static;
  top: auto;
  left: auto;
}

.map-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  color: #1f2a44;
  font-weight: 850;
  box-shadow: 0 5px 12px rgba(16, 24, 40, 0.11);
  backdrop-filter: blur(10px);
}

.map-clear-btn:hover {
  color: var(--primary);
  background: #fff;
  border-color: #cde0ff;
}

.map-clear-btn svg {
  width: 17px;
  height: 17px;
}


/* v30 favorites remove button + slimmer category bar */
.category-bar {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  gap: 5px !important;
}

.category-item {
  min-height: 46px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  align-items: center !important;
}

.category-icon {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 34px !important;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img {
  max-width: 54px !important;
  max-height: 34px !important;
  width: 54px !important;
  height: 34px !important;
  object-fit: contain !important;
}

.category-icon-kabriolet {
  flex-basis: 46px !important;
  width: 46px !important;
}

.category-icon-kabriolet img {
  width: 44px !important;
  height: 30px !important;
}

.category-title {
  font-size: 11.5px !important;
  line-height: 1 !important;
}

.category-count {
  margin-top: 2px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
}

.favorite-row {
  position: relative;
  grid-template-columns: 76px 1fr 32px !important;
  align-items: center;
  cursor: pointer;
}

.favorite-remove {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  box-shadow: 0 3px 9px rgba(16, 24, 40, 0.06);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.favorite-remove:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: #ff4d4f;
  background: #ff4d4f;
}

.favorite-remove svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1400px) {
  .category-item {
    min-height: 42px !important;
  }

  .category-icon {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 30px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-hatchback img,
  .category-icon-coupe img,
  .category-icon-kabriolet img,
  .category-icon-elektryczny img {
    max-width: 46px !important;
    max-height: 30px !important;
    width: 46px !important;
    height: 30px !important;
  }

  .category-icon-kabriolet {
    flex-basis: 39px !important;
    width: 39px !important;
  }

  .category-icon-kabriolet img {
    width: 38px !important;
    height: 26px !important;
  }
}

/* v31 category menu enlarged 1.5x after previous slim version */
.category-bar {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  gap: 7px !important;
}

.category-item {
  min-height: 69px !important;
  padding: 6px 10px !important;
  gap: 7px !important;
}

.category-icon {
  flex: 0 0 81px !important;
  width: 81px !important;
  height: 51px !important;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img,
.category-icon-elektryczne img {
  max-width: 81px !important;
  max-height: 51px !important;
  width: 81px !important;
  height: 51px !important;
  object-fit: contain !important;
}

.category-icon-kabriolet {
  flex-basis: 69px !important;
  width: 69px !important;
}

.category-icon-kabriolet img {
  width: 66px !important;
  height: 45px !important;
}

.category-title {
  font-size: 15px !important;
  line-height: 1.05 !important;
}

.category-count {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.05 !important;
}

@media (max-width: 1400px) {
  .category-item {
    min-height: 62px !important;
    padding: 5px 8px !important;
    gap: 6px !important;
  }

  .category-icon {
    flex-basis: 69px !important;
    width: 69px !important;
    height: 45px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-hatchback img,
  .category-icon-coupe img,
  .category-icon-kabriolet img,
  .category-icon-elektryczny img,
  .category-icon-elektryczne img {
    max-width: 69px !important;
    max-height: 45px !important;
    width: 69px !important;
    height: 45px !important;
  }

  .category-icon-kabriolet {
    flex-basis: 58px !important;
    width: 58px !important;
  }

  .category-icon-kabriolet img {
    width: 57px !important;
    height: 39px !important;
  }

  .category-title {
    font-size: 13px !important;
  }

  .category-count {
    font-size: 10.5px !important;
  }
}

/* v32 compact category menu without clipped labels */
.category-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.category-item {
  min-height: 56px !important;
  padding: 4px 6px !important;
  gap: 3px !important;
  overflow: visible !important;
}

.category-item > span:last-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.category-icon {
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 38px !important;
  margin: 0 !important;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img,
.category-icon-elektryczne img {
  width: 58px !important;
  max-width: 58px !important;
  height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
}

.category-icon-kabriolet {
  flex-basis: 48px !important;
  width: 48px !important;
}

.category-icon-kabriolet img {
  width: 46px !important;
  max-width: 46px !important;
  height: 32px !important;
  max-height: 32px !important;
}

.category-title {
  font-size: 12.4px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.category-count {
  margin-top: 2px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

@media (max-width: 1400px) {
  .category-bar {
    gap: 4px !important;
  }

  .category-item {
    min-height: 52px !important;
    padding: 4px 5px !important;
    gap: 2px !important;
  }

  .category-icon {
    flex-basis: 52px !important;
    width: 52px !important;
    height: 34px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-hatchback img,
  .category-icon-coupe img,
  .category-icon-kabriolet img,
  .category-icon-elektryczny img,
  .category-icon-elektryczne img {
    width: 52px !important;
    max-width: 52px !important;
    height: 34px !important;
    max-height: 34px !important;
  }

  .category-icon-kabriolet {
    flex-basis: 42px !important;
    width: 42px !important;
  }

  .category-icon-kabriolet img {
    width: 40px !important;
    max-width: 40px !important;
    height: 28px !important;
    max-height: 28px !important;
  }

  .category-title {
    font-size: 11.4px !important;
    letter-spacing: -0.055em !important;
  }

  .category-count {
    font-size: 9.2px !important;
  }
}

/* v33 bigger centered category buttons */
.category-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.category-item {
  min-height: 88px !important;
  padding: 6px 5px !important;
  gap: 4px !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: visible !important;
}

.category-item > span:last-child {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}

.category-icon {
  flex: 0 0 56px !important;
  width: 88px !important;
  height: 56px !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
}

.category-icon img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img,
.category-icon-elektryczne img {
  width: 88px !important;
  max-width: 88px !important;
  height: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.category-title {
  display: block !important;
  width: 100% !important;
  font-size: 17px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.category-count {
  display: block !important;
  width: 100% !important;
  margin-top: 1px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (max-width: 1400px) {
  .category-bar {
    gap: 5px !important;
  }

  .category-item {
    min-height: 82px !important;
    padding: 5px 4px !important;
    gap: 3px !important;
  }

  .category-icon {
    flex-basis: 52px !important;
    width: 80px !important;
    height: 52px !important;
  }

  .category-icon img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-hatchback img,
  .category-icon-coupe img,
  .category-icon-kabriolet img,
  .category-icon-elektryczny img,
  .category-icon-elektryczne img {
    width: 80px !important;
    max-width: 80px !important;
    height: 52px !important;
    max-height: 52px !important;
  }

  .category-title {
    font-size: 15.5px !important;
    letter-spacing: -0.055em !important;
  }

  .category-count {
    font-size: 11px !important;
  }
}


/* v34 new uploaded category icons + icon for Wszystkie */
.category-icon-all img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img,
.category-icon-elektryczne img {
  object-fit: contain !important;
  object-position: center !important;
}

.category-icon-all img {
  width: 90px !important;
  max-width: 90px !important;
  height: 56px !important;
  max-height: 56px !important;
}

@media (max-width: 1400px) {
  .category-icon-all img {
    width: 82px !important;
    max-width: 82px !important;
    height: 52px !important;
    max-height: 52px !important;
  }
}


/* v35 category icon fixes: smaller icons, centered content, clipped ripple */
.category-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.category-item {
  position: relative !important;
  min-height: 64px !important;
  padding: 4px 6px !important;
  gap: 2px !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
  isolation: isolate !important;
  contain: paint !important;
}

.category-item > span {
  position: relative !important;
  z-index: 1 !important;
}

.category-item > span:last-child {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.category-icon {
  flex: 0 0 34px !important;
  width: 56px !important;
  height: 34px !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
}

.category-icon img,
.category-icon-all img,
.category-icon-suv img,
.category-icon-kombi img,
.category-icon-sedan img,
.category-icon-hatchback img,
.category-icon-coupe img,
.category-icon-kabriolet img,
.category-icon-elektryczny img,
.category-icon-elektryczne img {
  display: block !important;
  width: 54px !important;
  max-width: 54px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.category-title {
  display: block !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.category-count {
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.category-item::after {
  z-index: 0 !important;
  pointer-events: none !important;
}

.category-item.active::after {
  animation: none !important;
}

.category-item.category-clicked::after {
  animation: categoryRippleV35 0.44s ease-out !important;
}

@keyframes categoryRippleV35 {
  0% { width: 0; height: 0; opacity: 0.34; }
  100% { width: 118px; height: 118px; opacity: 0; }
}

@media (max-width: 1400px) {
  .category-bar {
    gap: 5px !important;
  }

  .category-item {
    min-height: 59px !important;
    padding: 4px 4px !important;
    gap: 1px !important;
  }

  .category-icon {
    flex-basis: 30px !important;
    width: 50px !important;
    height: 30px !important;
  }

  .category-icon img,
  .category-icon-all img,
  .category-icon-suv img,
  .category-icon-kombi img,
  .category-icon-sedan img,
  .category-icon-hatchback img,
  .category-icon-coupe img,
  .category-icon-kabriolet img,
  .category-icon-elektryczny img,
  .category-icon-elektryczne img {
    width: 48px !important;
    max-width: 48px !important;
    height: 30px !important;
    max-height: 30px !important;
  }

  .category-title {
    font-size: 12.7px !important;
    letter-spacing: -0.035em !important;
  }

  .category-count {
    font-size: 9px !important;
  }
}


/* v36: AI assistant panel + filter search button + category tweaks */
.layout {
  grid-template-columns: 250px minmax(650px, 1fr) 320px !important;
  gap: 16px !important;
}

.filters-heading-row {
  align-items: center !important;
  gap: 10px !important;
}

.filters-heading-row h2 {
  font-size: 19px !important;
  letter-spacing: -0.035em !important;
}

.filter-search-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #006bff 0%, #00c8ff 100%);
  box-shadow: 0 12px 24px rgba(0, 107, 255, 0.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.filter-search-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 107, 255, 0.28);
}

.filter-search-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.8;
}

.category-icon-all {
  width: 68px !important;
  height: 40px !important;
  flex-basis: 40px !important;
}

.category-icon-all img {
  width: 68px !important;
  max-width: 68px !important;
  height: 40px !important;
  max-height: 40px !important;
}

.ai-assistant-card {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(96, 226, 255, .45) 0 16%, transparent 32%),
    linear-gradient(145deg, #1034d5 0%, #006dff 46%, #02d1c2 100%);
  box-shadow: 0 28px 70px rgba(0, 82, 204, .25), inset 0 1px 0 rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.18);
}

.ai-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(16px);
  opacity: .4;
}

.ai-glow-one {
  width: 160px;
  height: 160px;
  right: -52px;
  top: 4px;
  background: rgba(255,255,255,.55);
}

.ai-glow-two {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -120px;
  background: rgba(0,255,215,.38);
}

.ai-card-head,
.ai-section-label,
.ai-question-list,
.ai-input-shell,
.ai-benefits {
  position: relative;
  z-index: 1;
}

.ai-card-head {
  display: grid;
  grid-template-columns: 1fr 88px;
  align-items: start;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-title-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.ai-sparkles {
  margin-top: 3px;
  color: #56fff0;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(86,255,240,.7);
}

.ai-card-head h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 27px;
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.ai-card-head p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 780;
}

.ai-robot {
  width: 94px;
  height: 94px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.18));
  transform: translate(8px, -8px);
}

.ai-section-label {
  margin: 0 0 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .065em;
  text-transform: uppercase;
  font-weight: 900;
}

.ai-question-list {
  display: grid;
  gap: 10px;
}

.ai-question-chip {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 20px;
  padding: 12px 14px;
  text-align: left;
  color: #091426;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(234,250,255,.96));
  box-shadow: 0 14px 26px rgba(0, 38, 96, .18), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.ai-question-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 38, 96, .22), inset 0 1px 0 rgba(255,255,255,.95);
}

.ai-question-chip svg {
  width: 25px;
  height: 25px;
  color: #006bff;
  stroke-width: 2.4;
}

.ai-question-chip span {
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.ai-input-shell {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  margin-top: 16px;
  padding: 0 10px 0 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 28px rgba(0, 38, 96, .16);
}

.ai-input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 750;
}

.ai-input-shell input::placeholder {
  color: #98a2b3;
}

.ai-input-shell button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #006bff;
  background: transparent;
  cursor: pointer;
}

.ai-input-shell button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
}

.ai-benefits {
  margin: 20px -18px -20px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(90deg, rgba(0,101,255,.16), rgba(0,255,213,.18));
}

.ai-benefits h3 {
  margin: 0 0 13px;
  color: rgba(255,255,255,.94);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 900;
}

.ai-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-benefit-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 4px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
}

.ai-benefit-item svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.14));
}

@media (max-width: 1450px) {
  .layout {
    grid-template-columns: 230px minmax(610px, 1fr) 300px !important;
    gap: 14px !important;
  }

  .ai-assistant-card {
    border-radius: 24px;
    padding: 20px 14px 16px;
  }

  .ai-card-head {
    grid-template-columns: 1fr 76px;
  }

  .ai-robot {
    width: 82px;
    height: 82px;
  }

  .ai-card-head h2 {
    font-size: 24px;
  }

  .ai-card-head p {
    font-size: 15px;
  }

  .ai-question-chip {
    min-height: 52px;
    border-radius: 17px;
    padding: 10px 12px;
  }

  .ai-question-chip span {
    font-size: 14.2px;
  }

  .ai-benefit-item {
    font-size: 10px;
  }

  .category-icon-all,
  .category-icon-all img {
    width: 62px !important;
    max-width: 62px !important;
    height: 36px !important;
    max-height: 36px !important;
  }
}

@media (max-width: 1320px) {
  .layout {
    grid-template-columns: 250px minmax(570px, 1fr) !important;
  }

  .right-panel {
    grid-column: 1 / -1 !important;
  }

  .ai-assistant-card {
    position: relative;
    top: auto;
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr !important;
  }
}

/* v37: AI panel refinement */
.layout {
  grid-template-columns: 250px minmax(650px, 1fr) 250px !important;
  gap: 16px !important;
}

.right-panel {
  min-width: 0 !important;
}

.ai-assistant-card {
  width: 100% !important;
  border-radius: var(--radius) !important;
  padding: 18px 14px 16px !important;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid var(--border) !important;
  isolation: isolate;
}

.ai-assistant-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 52px;
  height: 52px;
  right: 26px;
  top: 74px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.92) 0 10%, rgba(80,255,245,.48) 22%, rgba(0,107,255,0) 72%);
  filter: blur(.2px);
  opacity: .62;
  animation: aiFloatingDot 4.8s ease-in-out infinite;
  pointer-events: none;
}

.ai-glow-one {
  animation: aiGlowDrift 6.5s ease-in-out infinite;
}

.ai-glow-two {
  animation: aiGlowDriftTwo 7.2s ease-in-out infinite;
}

.ai-sparkles {
  font-size: 27px !important;
  animation: aiSparkPulse 2.4s ease-in-out infinite;
}

.ai-card-head {
  grid-template-columns: 1fr 98px !important;
  gap: 2px !important;
  margin-bottom: 12px !important;
}

.ai-card-head h2 {
  font-size: 24px !important;
  line-height: 1 !important;
}

.ai-card-head p {
  font-size: 15px !important;
  line-height: 1.16 !important;
}

.ai-robot {
  width: 126px !important;
  height: 126px !important;
  transform: translate(20px, -22px) !important;
  animation: aiRobotFloat 4.2s ease-in-out infinite;
}

.ai-section-label {
  margin-bottom: 9px !important;
  font-size: 10.8px !important;
  letter-spacing: .055em !important;
}

.ai-question-list {
  gap: 7px !important;
}

.ai-question-chip {
  min-height: 44px !important;
  grid-template-columns: 23px 1fr !important;
  gap: 8px !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-shadow: 0 7px 18px rgba(0, 38, 96, .14), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.ai-question-chip:hover {
  box-shadow: 0 10px 22px rgba(0, 38, 96, .17), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.ai-question-chip svg {
  width: 19px !important;
  height: 19px !important;
}

.ai-question-chip span {
  font-size: 14.4px !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
}

.ai-input-shell {
  min-height: 52px !important;
  margin-top: 11px !important;
  padding: 0 8px 0 13px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(0, 38, 96, .14) !important;
}

.ai-input-shell input {
  font-size: 14.4px !important;
}

.ai-input-shell button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
}

.ai-input-shell button svg {
  width: 20px !important;
  height: 20px !important;
}

.ai-benefits {
  margin: 15px -14px -16px !important;
  padding: 13px 14px 14px !important;
}

.ai-benefits h3 {
  margin-bottom: 10px !important;
  font-size: 13.5px !important;
}

.ai-benefit-grid {
  gap: 5px !important;
}

.ai-benefit-item {
  gap: 5px !important;
  padding: 0 2px !important;
  font-size: 9.9px !important;
  line-height: 1.12 !important;
}

.ai-benefit-item svg {
  width: 25px !important;
  height: 25px !important;
}

@keyframes aiRobotFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes aiSparkPulse {
  0%, 100% { opacity: .82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.16) rotate(8deg); }
}

@keyframes aiFloatingDot {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.86); opacity: .42; }
  50% { transform: translate3d(-18px, 16px, 0) scale(1.08); opacity: .76; }
}

@keyframes aiGlowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, 12px, 0) scale(1.08); }
}

@keyframes aiGlowDriftTwo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -8px, 0) scale(.96); }
}

@media (max-width: 1450px) {
  .layout {
    grid-template-columns: 230px minmax(610px, 1fr) 230px !important;
    gap: 14px !important;
  }

  .ai-assistant-card {
    border-radius: var(--radius) !important;
    padding: 16px 12px 14px !important;
  }

  .ai-card-head {
    grid-template-columns: 1fr 86px !important;
    margin-bottom: 10px !important;
  }

  .ai-robot {
    width: 112px !important;
    height: 112px !important;
    transform: translate(18px, -18px) !important;
  }

  .ai-card-head h2 {
    font-size: 21.6px !important;
  }

  .ai-card-head p {
    font-size: 13.5px !important;
  }

  .ai-section-label {
    font-size: 9.8px !important;
  }

  .ai-question-chip {
    min-height: 40px !important;
    padding: 7px 9px !important;
  }

  .ai-question-chip span {
    font-size: 12.8px !important;
  }

  .ai-benefits {
    margin: 13px -12px -14px !important;
    padding: 12px !important;
  }

  .ai-benefit-item {
    font-size: 9px !important;
  }
}


/* v38: AI header spacing + advanced options drawer */
.category-icon-all,
.category-icon-all img {
  width: 82px !important;
  max-width: 82px !important;
  height: 48px !important;
  max-height: 48px !important;
}

.filters-form .btn-wide {
  order: 20;
}

.more-options {
  order: 30;
  min-height: 42px;
  justify-content: center !important;
  border: 1px solid #cde0ff !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 18px rgba(0, 107, 255, .08) !important;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.more-options:hover {
  background: var(--primary-soft) !important;
  transform: translateY(-1px);
}

.advanced-options-backdrop {
  z-index: 1390;
}

.advanced-options-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1400;
  width: min(390px, calc(100vw - 28px));
  height: 100vh;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 30px rgba(16, 24, 40, 0.10);
  transform: translateX(-104%);
  transition: transform 0.26s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}

.advanced-options-drawer.open {
  transform: translateX(0);
}

.advanced-options-head {
  margin-bottom: 18px;
}

.advanced-options-content {
  display: grid;
  gap: 14px;
}

.advanced-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.advanced-chip-grid button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(16, 24, 40, .04);
}

.advanced-chip-grid button:hover {
  border-color: #cde0ff;
  color: var(--primary);
  background: var(--primary-soft);
}

.ai-assistant-card {
  overflow: hidden !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft) !important;
}

.ai-card-head {
  position: relative !important;
  display: block !important;
  min-height: 102px !important;
  margin-bottom: 0 !important;
  padding-right: 86px !important;
}

.ai-title-wrap {
  gap: 8px !important;
}

.ai-card-head h2 {
  font-size: 23.5px !important;
}

.ai-card-head p {
  font-size: 13.5px !important;
  max-width: 135px;
}

.ai-robot {
  position: absolute !important;
  top: 4px !important;
  right: 2px !important;
  width: 138px !important;
  height: 138px !important;
  max-width: 56% !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.ai-section-label {
  margin-top: -2px !important;
  margin-bottom: 7px !important;
  font-size: 9.8px !important;
}

.ai-question-list {
  gap: 6px !important;
}

.ai-question-chip {
  min-height: 36px !important;
  grid-template-columns: 20px 1fr !important;
  gap: 7px !important;
  padding: 6px 9px !important;
  border-radius: 13px !important;
}

.ai-question-chip svg {
  width: 17px !important;
  height: 17px !important;
}

.ai-question-chip span {
  font-size: 12.2px !important;
  line-height: 1.1 !important;
}

.ai-input-shell {
  min-height: 46px !important;
  margin-top: 9px !important;
}

.ai-benefits {
  margin-top: 12px !important;
}

@media (max-width: 1450px) {
  .category-icon-all,
  .category-icon-all img {
    width: 72px !important;
    max-width: 72px !important;
    height: 42px !important;
    max-height: 42px !important;
  }

  .ai-card-head {
    min-height: 94px !important;
    padding-right: 76px !important;
  }

  .ai-robot {
    width: 126px !important;
    height: 126px !important;
    right: 0 !important;
  }

  .ai-card-head h2 {
    font-size: 21px !important;
  }

  .ai-card-head p {
    font-size: 12.5px !important;
  }

  .ai-question-chip span {
    font-size: 11.5px !important;
  }
}


/* v39: advanced search panel same width as left filter column, no page blur */
.advanced-options-backdrop {
  display: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.advanced-options-drawer {
  width: 250px !important;
  max-width: 250px !important;
  box-sizing: border-box !important;
  padding: 16px 14px !important;
  box-shadow: 10px 0 26px rgba(16, 24, 40, 0.08) !important;
  transform: translateX(-108%) !important;
}

.advanced-options-drawer.open {
  transform: translateX(0) !important;
}

.advanced-options-head {
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.advanced-options-head h2 {
  font-size: 19px !important;
  letter-spacing: -0.035em !important;
}

.advanced-options-content {
  gap: 12px !important;
}

.advanced-options-drawer .filter-group {
  gap: 6px !important;
}

.advanced-options-drawer .full-field {
  min-height: 42px !important;
}

.advanced-chip-grid {
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

.advanced-chip-grid button {
  min-height: 32px !important;
  font-size: 11.5px !important;
  border-radius: 9px !important;
}

@media (max-width: 1450px) {
  .advanced-options-drawer {
    width: 230px !important;
    max-width: 230px !important;
    padding: 14px 12px !important;
  }

  .advanced-options-head h2 {
    font-size: 18px !important;
  }
}

@media (max-width: 1180px) {
  .advanced-options-drawer {
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: min(320px, calc(100vw - 28px)) !important;
  }
}

/* v40: advanced drawer equal to search panel + fuller filters + AI header fixes */
:root {
  --advanced-options-left: 28px;
  --advanced-options-top: 148px;
  --advanced-options-width: 250px;
  --advanced-options-height: calc(100vh - 148px - 16px);
}

.advanced-options-drawer {
  left: var(--advanced-options-left) !important;
  top: var(--advanced-options-top) !important;
  width: var(--advanced-options-width) !important;
  max-width: var(--advanced-options-width) !important;
  height: var(--advanced-options-height) !important;
  max-height: var(--advanced-options-height) !important;
  padding: 16px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft) !important;
  transform: translateX(calc(-100% - 20px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.advanced-options-drawer.open {
  transform: translateX(0) !important;
}

.advanced-options-head {
  position: sticky;
  top: -16px;
  z-index: 3;
  padding: 0 0 11px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.96) 100%);
  border-bottom: 1px solid rgba(222, 231, 244, .72);
}

.advanced-options-head h2 {
  font-size: 18px !important;
}

.advanced-section-title {
  margin-top: 2px;
  color: #6b7b91;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.advanced-options-content {
  gap: 10px !important;
}

.advanced-options-drawer .filter-group {
  gap: 5px !important;
}

.advanced-options-drawer .filter-group > label,
.advanced-options-drawer .filter-group > span {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.advanced-options-drawer .full-field,
.advanced-options-drawer .mini-field,
.advanced-options-drawer .mini-field input,
.advanced-options-drawer .mini-field select {
  min-height: 38px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.advanced-options-drawer .two-cols {
  gap: 7px !important;
}

.advanced-chip-grid {
  grid-template-columns: 1fr !important;
}

.advanced-chip-grid button {
  min-height: 30px !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

.advanced-options-drawer .btn-wide {
  position: sticky;
  bottom: -2px;
  z-index: 4;
  min-height: 48px !important;
  margin-top: 4px;
  box-shadow: 0 14px 30px rgba(0, 107, 255, .18) !important;
}

.ai-card-head {
  min-height: 118px !important;
  padding-right: 88px !important;
}

.ai-title-wrap > div {
  min-width: 0 !important;
}

.ai-card-head h2 {
  white-space: nowrap !important;
  font-size: 21px !important;
  letter-spacing: -0.05em !important;
}

.ai-card-head p {
  font-size: 12.5px !important;
  max-width: 120px !important;
}

.ai-robot {
  top: -28px !important;
  right: -7px !important;
  width: 146px !important;
  height: 146px !important;
  max-width: 58% !important;
  z-index: 1 !important;
}

.ai-section-label {
  position: relative;
  z-index: 2;
  margin-top: -9px !important;
}

@media (max-width: 1450px) {
  .advanced-options-drawer {
    width: var(--advanced-options-width) !important;
    max-width: var(--advanced-options-width) !important;
    padding: 14px 12px !important;
  }

  .ai-card-head {
    min-height: 110px !important;
    padding-right: 82px !important;
  }

  .ai-card-head h2 {
    font-size: 19px !important;
  }

  .ai-card-head p {
    font-size: 12px !important;
    max-width: 112px !important;
  }

  .ai-robot {
    top: -24px !important;
    right: -9px !important;
    width: 136px !important;
    height: 136px !important;
  }
}

@media (max-width: 1180px) {
  .advanced-options-drawer {
    left: 14px !important;
    top: 14px !important;
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: min(320px, calc(100vw - 28px)) !important;
    height: calc(100vh - 28px) !important;
    max-height: calc(100vh - 28px) !important;
  }
}


/* v41 font test
   Aktualna czcionka: Manrope.
   Poprzednia czcionka do ewentualnego powrotu: Inter.
*/


/* v43: AI actions, centered benefits, no agent icon, more listings */
.filter-search-icon-btn {
  display: none !important;
}

.ai-robot {
  display: none !important;
}

.ai-card-head {
  min-height: auto !important;
  padding-right: 0 !important;
  margin-bottom: 12px !important;
}

.ai-title-wrap {
  align-items: center !important;
}

.ai-card-head h2 {
  white-space: nowrap !important;
  font-size: 23px !important;
}

.ai-card-head p {
  max-width: none !important;
}

.ai-question-chip.active {
  border-color: rgba(0, 107, 255, .95) !important;
  background: linear-gradient(180deg, #ffffff, #eaf6ff) !important;
  box-shadow: 0 12px 28px rgba(0, 107, 255, .24), inset 0 0 0 1px rgba(0,107,255,.16) !important;
  transform: translateY(-1px);
}

.ai-benefits h3 {
  text-align: center !important;
}

@media (max-width: 1450px) {
  .ai-card-head {
    min-height: auto !important;
    padding-right: 0 !important;
  }

  .ai-card-head h2 {
    font-size: 20px !important;
  }
}


/* v44: internetowe zdjęcia, popup centralnie nad miniaturą i większy odstęp w panelu AI */
.leaflet-div-icon.single-marker-image,
.single-marker-image {
  transform-origin: 50% 100% !important;
}

.leaflet-popup {
  margin-bottom: 0 !important;
}

.leaflet-popup-tip-container {
  left: 50% !important;
  margin-left: -20px !important;
}

.ai-card-head {
  margin-bottom: 26px !important;
}

.ai-section-label {
  margin-top: 0 !important;
}

@media (max-width: 1450px) {
  .ai-card-head {
    margin-bottom: 22px !important;
  }
}


/* v45: exact Leaflet marker/popup alignment */
.leaflet-marker-icon.single-marker-image,
.leaflet-div-icon.single-marker-image {
  width: 68px !important;
  height: 68px !important;
  margin-left: -34px !important;
  margin-top: -34px !important;
}

.leaflet-popup {
  margin-bottom: 0 !important;
  animation: mapPopupFadeOnly 0.16s ease-out !important;
}

@keyframes mapPopupFadeOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

.leaflet-popup-tip-container {
  left: 50% !important;
  margin-left: -20px !important;
}

/* v46: panel wystawiania ogłoszeń + strona dla firm */
.right-panel {
  align-content: start;
}

.seller-cta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.seller-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 209, 194, .20), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(0, 107, 255, .14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.seller-cta-orb {
  position: absolute;
  top: -34px;
  right: -36px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 107, 255, .25), rgba(0, 209, 194, .28));
  filter: blur(.2px);
  animation: sellerOrbFloat 4.8s ease-in-out infinite;
}

@keyframes sellerOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  50% { transform: translate3d(-8px, 10px, 0) scale(1.06); opacity: .72; }
}

.seller-cta-head {
  position: relative;
  z-index: 1;
}

.seller-cta-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #005ee5;
  background: #edf5ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.seller-cta-head h2 {
  margin: 11px 0 7px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 920;
}

.seller-cta-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 720;
}

.seller-zero-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  margin: 16px 0 13px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 107, 255, .10), rgba(0, 209, 194, .14)),
    #ffffff;
  border: 1px solid #d9e8ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 32px rgba(0, 107, 255, .10);
}

.seller-zero-price {
  position: relative;
  display: inline-block;
  color: #005eff;
  font-size: 54px;
  line-height: .92;
  letter-spacing: -0.08em;
  font-weight: 950;
  text-shadow: 0 10px 24px rgba(0, 107, 255, .20);
  animation: zeroPricePulse 2.2s ease-in-out infinite;
}

.seller-zero-price::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.85) 44%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: zeroPriceShine 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.seller-zero-label {
  margin-top: -4px;
  color: #41607f;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.zero-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00d1c2;
  box-shadow: 0 0 0 7px rgba(0,209,194,.12), 0 0 22px rgba(0,209,194,.45);
  animation: zeroSpark 2.4s ease-in-out infinite;
}

.zero-spark-one { left: 22px; top: 24px; }
.zero-spark-two { right: 24px; bottom: 24px; animation-delay: .55s; background: #006bff; box-shadow: 0 0 0 7px rgba(0,107,255,.12), 0 0 22px rgba(0,107,255,.40); }

@keyframes zeroPricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes zeroPriceShine {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

@keyframes zeroSpark {
  0%, 100% { transform: translateY(0) scale(1); opacity: .7; }
  50% { transform: translateY(-8px) scale(1.25); opacity: 1; }
}

.seller-cta-actions {
  display: grid;
  gap: 9px;
}

.seller-primary-btn,
.seller-secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.seller-primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  box-shadow: 0 15px 30px rgba(0, 107, 255, .24);
}

.seller-secondary-btn {
  color: #005ee5;
  background: #eef6ff;
  border: 1px solid #cfe1ff;
}

.seller-primary-btn:hover,
.seller-secondary-btn:hover {
  transform: translateY(-1px);
}

.seller-cta-note {
  margin: 10px 0 0;
  color: #6f8198;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 650;
  text-align: center;
}

/* business subpage */
.business-page {
  min-height: 100vh;
  background: #f7faff;
  color: var(--text);
  font-family: var(--font-family, 'Manrope', system-ui, sans-serif);
}

.business-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.business-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.business-topbar-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.business-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.business-logo img {
  width: 260px;
  max-width: 45vw;
  height: auto;
  display: block;
}

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

.business-nav a {
  color: #1d2b42;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.business-nav .nav-cta {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  display: inline-flex;
  align-items: center;
}

.business-hero {
  position: relative;
  overflow: hidden;
  margin: 22px auto 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 48px;
  background:
    radial-gradient(circle at 85% 18%, rgba(0,209,194,.34), transparent 28%),
    radial-gradient(circle at 18% 25%, rgba(0,107,255,.20), transparent 26%),
    linear-gradient(135deg, #ffffff, #eff7ff);
  box-shadow: var(--shadow-soft);
}

.business-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,107,255,.18), rgba(0,209,194,.28));
  animation: businessOrb 6s ease-in-out infinite;
}

@keyframes businessOrb {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-24px, 26px,0) scale(1.08); }
}

.business-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 34px;
  align-items: center;
}

.business-kicker {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  color: #005ee5;
  background: #eaf4ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.business-hero h1 {
  margin: 18px 0 14px;
  color: #0c1729;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .92;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.business-hero p {
  max-width: 660px;
  margin: 0;
  color: #50657f;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 720;
}

.business-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.business-btn-primary,
.business-btn-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 950;
}

.business-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  box-shadow: 0 18px 34px rgba(0,107,255,.24);
}

.business-btn-secondary {
  color: #005ee5;
  background: #fff;
  border: 1px solid #cfe1ff;
}

.business-visual-card {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid #dbe8f7;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .10);
}

.business-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  color: #52677f;
}

.business-chart {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 11px;
  height: 198px;
  padding: 22px 6px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f4f9ff, #ffffff);
}

.business-chart span {
  display: block;
  min-height: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #00d1c2, #006bff);
  box-shadow: 0 12px 24px rgba(0,107,255,.18);
  transform-origin: bottom;
  animation: barGrow 1.15s cubic-bezier(.2,.9,.2,1) both;
}

.business-chart span:nth-child(1) { height: 38%; animation-delay: .05s; }
.business-chart span:nth-child(2) { height: 54%; animation-delay: .1s; }
.business-chart span:nth-child(3) { height: 46%; animation-delay: .15s; }
.business-chart span:nth-child(4) { height: 68%; animation-delay: .2s; }
.business-chart span:nth-child(5) { height: 72%; animation-delay: .25s; }
.business-chart span:nth-child(6) { height: 84%; animation-delay: .3s; }
.business-chart span:nth-child(7) { height: 96%; animation-delay: .35s; }

@keyframes barGrow {
  from { transform: scaleY(.08); opacity: .4; }
  to { transform: scaleY(1); opacity: 1; }
}

.business-floating-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #006bff, #00bfc0);
  box-shadow: 0 20px 40px rgba(0,107,255,.25);
  animation: badgeFloat 4s ease-in-out infinite;
}

.business-floating-badge strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.business-floating-badge span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 850;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.business-section {
  margin: 24px auto;
}

.business-section-head {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 720px;
}

.business-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.business-section-head p {
  margin: 0;
  color: #60748f;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.business-value-grid,
.business-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.business-value-card,
.business-price-card,
.business-contact-card,
.business-mini-chart-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.business-value-card i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: #006bff;
  background: #edf5ff;
  font-style: normal;
  font-weight: 950;
}

.business-value-card h3,
.business-price-card h3,
.business-contact-card h2,
.business-mini-chart-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.business-value-card p,
.business-price-card p {
  margin: 0;
  color: #5e718a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 690;
}

.business-price-card {
  position: relative;
  overflow: hidden;
}

.business-price-card.highlight {
  border-color: #b7d3ff;
  box-shadow: 0 24px 60px rgba(0,107,255,.13);
}

.business-price-card.highlight::before {
  content: "Najczęściej wybierany";
  position: absolute;
  top: 16px;
  right: -44px;
  width: 180px;
  padding: 7px 0;
  transform: rotate(35deg);
  text-align: center;
  color: #fff;
  background: #006bff;
  font-size: 10px;
  font-weight: 900;
}

.business-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 16px 0;
}

.business-price strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.business-price span {
  color: #60748f;
  font-size: 13px;
  font-weight: 800;
}

.business-price-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  color: #30445f;
  font-size: 14px;
  font-weight: 760;
}

.business-price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #00a89d;
  font-weight: 950;
}

.business-price-card a {
  min-height: 48px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  font-weight: 950;
}

.business-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}

.business-contact-card form {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.business-contact-card input,
.business-contact-card textarea,
.business-contact-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  padding: 0 14px;
  color: #132036;
  background: #fff;
  font: inherit;
  font-weight: 720;
  outline: none;
}

.business-contact-card textarea {
  min-height: 108px;
  padding-top: 13px;
  resize: vertical;
}

.business-contact-card button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.business-mini-chart-card {
  overflow: hidden;
}

.business-rings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.business-ring {
  --percent: 72;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#006bff calc(var(--percent) * 1%), #e8f1fb 0);
  animation: ringSpin 1.2s ease-out both;
}

.business-ring:nth-child(2) { --percent: 84; }
.business-ring:nth-child(3) { --percent: 63; }
.business-ring:nth-child(4) { --percent: 91; }

.business-ring span {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: #0d1b2f;
  font-size: 22px;
  font-weight: 950;
}

@keyframes ringSpin {
  from { transform: rotate(-20deg) scale(.85); opacity: .45; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

.business-footer {
  padding: 26px 0 38px;
  color: #71849d;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .business-hero-grid,
  .business-contact-grid {
    grid-template-columns: 1fr;
  }

  .business-value-grid,
  .business-pricing-grid {
    grid-template-columns: 1fr;
  }

  .business-hero {
    padding: 28px;
  }

  .business-nav a:not(.nav-cta) {
    display: none;
  }
}

/* v47: rozszerzony Asystent AI, panel pytań i dynamiczny prawy sidebar */
.right-panel {
  position: sticky !important;
  top: 104px !important;
  align-self: start !important;
  display: grid !important;
  gap: 14px !important;
  z-index: 30;
}

.ai-more-questions-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: 2px 0 12px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 24px rgba(0, 45, 140, .12);
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ai-more-questions-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255,255,255,.28) 42%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: aiMoreBtnShine 4.2s ease-in-out infinite;
}

.ai-more-questions-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 30px rgba(0, 45, 140, .18);
}

.ai-more-questions-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@keyframes aiMoreBtnShine {
  0%, 58% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

.ai-questions-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1600;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(390px, calc(100vw - 18px));
  height: 100vh;
  padding: 18px 16px 16px;
  color: #ffffff;
  background: linear-gradient(155deg, #0b35f0 0%, #087ff7 52%, #06d1c6 100%);
  border-left: 1px solid rgba(255,255,255,.32);
  box-shadow: -22px 0 44px rgba(0, 32, 96, .20);
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  isolation: isolate;
  overflow: hidden;
}

.ai-questions-drawer.open {
  transform: translateX(0);
}

.ai-questions-drawer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 14%, rgba(255,255,255,.22), transparent 23%),
    radial-gradient(circle at 76% 22%, rgba(114, 246, 255, .24), transparent 24%),
    radial-gradient(circle at 20% 82%, rgba(255,255,255,.13), transparent 28%);
  animation: aiDrawerGradientMove 8s ease-in-out infinite;
}

@keyframes aiDrawerGradientMove {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  50% { transform: translate3d(-8px, 10px, 0) scale(1.04); opacity: 1; }
}

.ai-questions-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 2px 2px 14px;
}

.ai-drawer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #063a8e;
  background: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-questions-head h2 {
  margin: 10px 0 5px;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.ai-questions-head p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 750;
}

.ai-questions-close {
  width: 38px !important;
  height: 38px !important;
  color: #ffffff !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow: none !important;
}

.ai-questions-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 2px 2px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.ai-questions-list::-webkit-scrollbar { width: 7px; }
.ai-questions-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.36); border-radius: 99px; }

.ai-drawer-question {
  display: grid;
  grid-template-columns: 32px 1fr 22px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 14px;
  color: #0f1b2d;
  background: rgba(255,255,255,.90);
  box-shadow: 0 12px 24px rgba(0, 45, 140, .12);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ai-drawer-question:hover {
  transform: translateX(-2px);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 45, 140, .18);
}

.ai-drawer-question > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  font-size: 10px;
  font-weight: 950;
}

.ai-drawer-question strong {
  font-size: 12.4px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.ai-drawer-question svg {
  width: 17px;
  height: 17px;
  color: #006bff;
}

.ai-drawer-input-area {
  padding: 13px 2px 0;
  border-top: 1px solid rgba(255,255,255,.22);
}

.ai-drawer-input-area label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-drawer-input-shell {
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 28px rgba(0, 45, 140, .16);
}

.ai-drawer-input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 11px;
  color: #142033;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.ai-drawer-input-shell input::placeholder {
  color: #8b99ac;
}

.ai-drawer-input-shell button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #16b7ff, #004eea);
  box-shadow: 0 10px 20px rgba(0, 107, 255, .24);
  cursor: pointer;
}

.ai-drawer-input-shell button svg {
  width: 18px;
  height: 18px;
}

.ai-assistant-card {
  transition: padding .24s ease, transform .24s ease, box-shadow .24s ease;
}

.ai-assistant-card.ai-compact {
  padding-top: 15px !important;
  padding-bottom: 14px !important;
}

.ai-assistant-card.ai-compact .ai-card-head {
  margin-bottom: 12px !important;
}

.ai-assistant-card.ai-compact .ai-section-label,
.ai-assistant-card.ai-compact .ai-question-list,
.ai-assistant-card.ai-compact .ai-more-questions-btn,
.ai-assistant-card.ai-compact .ai-benefits {
  display: none !important;
}

.ai-assistant-card.ai-compact .ai-card-head h2 {
  font-size: 20px !important;
}

.ai-assistant-card.ai-compact .ai-card-head p {
  font-size: 12px !important;
}

.ai-assistant-card.ai-compact .ai-input-shell {
  min-height: 48px !important;
}

@media (max-width: 1180px) {
  .right-panel {
    position: static !important;
  }

  .ai-questions-drawer {
    width: min(360px, calc(100vw - 16px));
  }
}


/* v48: AI drawer narrower + animated background + smoother map-edge collapse */
.ai-questions-drawer {
  width: min(312px, calc(100vw - 14px)) !important;
  padding: 16px 13px 14px !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.24), transparent 22%),
    linear-gradient(155deg, #0b35f0 0%, #087ff7 54%, #06d1c6 100%) !important;
}

.ai-questions-drawer::before,
.ai-questions-drawer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.ai-questions-drawer::before {
  width: 210px;
  height: 210px;
  top: 96px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.34), rgba(99,235,255,.20) 35%, transparent 68%);
  filter: blur(2px);
  animation: aiDrawerOrbFloat 6.6s ease-in-out infinite;
}

.ai-questions-drawer::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.20) 43%, transparent 54% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 54px);
  opacity: .62;
  transform: translateX(-36%);
  animation: aiDrawerLightSweep 7.8s ease-in-out infinite;
}

.ai-questions-drawer-bg {
  background:
    radial-gradient(circle at 14% 16%, rgba(255,255,255,.20), transparent 22%),
    radial-gradient(circle at 77% 28%, rgba(99, 246, 255, .32), transparent 25%),
    radial-gradient(circle at 22% 84%, rgba(255,255,255,.13), transparent 28%) !important;
  animation: aiDrawerGradientMove 7.2s ease-in-out infinite, aiDrawerPulse 3.8s ease-in-out infinite !important;
}

@keyframes aiDrawerOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .74; }
  45% { transform: translate3d(-24px, 28px, 0) scale(1.09); opacity: 1; }
  72% { transform: translate3d(-8px, -14px, 0) scale(.96); opacity: .86; }
}

@keyframes aiDrawerLightSweep {
  0%, 48% { transform: translateX(-62%); opacity: .25; }
  75% { transform: translateX(62%); opacity: .74; }
  100% { transform: translateX(62%); opacity: .25; }
}

@keyframes aiDrawerPulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.18) brightness(1.06); }
}

.ai-questions-head {
  gap: 8px !important;
  padding-bottom: 11px !important;
}

.ai-questions-head h2 {
  font-size: 20px !important;
  line-height: 1.04 !important;
}

.ai-questions-head p {
  font-size: 11.6px !important;
}

.ai-questions-close {
  width: 34px !important;
  height: 34px !important;
}

.ai-questions-list {
  gap: 7px !important;
}

.ai-drawer-question {
  grid-template-columns: 28px 1fr 18px !important;
  min-height: 44px !important;
  gap: 7px !important;
  padding: 7px 8px !important;
  border-radius: 13px !important;
}

.ai-drawer-question > span {
  width: 25px !important;
  height: 25px !important;
  font-size: 9px !important;
}

.ai-drawer-question strong {
  font-size: 11.7px !important;
}

.ai-drawer-input-shell {
  grid-template-columns: 1fr 42px !important;
  min-height: 48px !important;
  border-radius: 15px !important;
}

.ai-drawer-input-shell input {
  font-size: 12.2px !important;
  padding: 0 9px !important;
}

.ai-drawer-input-shell button {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

.ai-assistant-card {
  transform-origin: top center;
  transition:
    max-height .48s cubic-bezier(.16, 1, .3, 1),
    padding .38s cubic-bezier(.16, 1, .3, 1),
    transform .38s cubic-bezier(.16, 1, .3, 1),
    box-shadow .30s ease !important;
}

.ai-assistant-card .ai-section-label,
.ai-assistant-card .ai-question-list,
.ai-assistant-card .ai-more-questions-btn,
.ai-assistant-card .ai-benefits {
  overflow: hidden !important;
  transition:
    max-height .42s cubic-bezier(.16, 1, .3, 1),
    opacity .24s ease,
    transform .34s cubic-bezier(.16, 1, .3, 1),
    margin .34s ease,
    padding .34s ease !important;
}

.ai-assistant-card .ai-section-label {
  display: block !important;
  max-height: 36px !important;
}

.ai-assistant-card .ai-question-list {
  display: grid !important;
  max-height: 250px !important;
}

.ai-assistant-card .ai-more-questions-btn {
  display: inline-flex !important;
  max-height: 58px !important;
}

.ai-assistant-card .ai-benefits {
  display: block !important;
  max-height: 130px !important;
}

.ai-assistant-card.ai-compact {
  max-height: 184px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  transform: translateY(-2px) scale(.992);
  box-shadow: 0 12px 30px rgba(0, 107, 255, .14) !important;
}

.ai-assistant-card.ai-compact .ai-card-head {
  margin-bottom: 10px !important;
  transform: translateY(0) !important;
}

.ai-assistant-card.ai-compact .ai-section-label,
.ai-assistant-card.ai-compact .ai-question-list,
.ai-assistant-card.ai-compact .ai-more-questions-btn,
.ai-assistant-card.ai-compact .ai-benefits {
  display: grid !important;
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-10px) scale(.98) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none !important;
}

.ai-assistant-card.ai-compact .ai-section-label {
  display: block !important;
}

.ai-assistant-card.ai-compact .ai-more-questions-btn {
  display: inline-flex !important;
}

.ai-assistant-card.ai-compact .ai-benefits {
  display: block !important;
}

.ai-assistant-card.ai-compact .ai-input-shell {
  min-height: 46px !important;
  margin-top: 0 !important;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .ai-questions-drawer {
    width: min(312px, calc(100vw - 14px)) !important;
  }
}


/* v49: AI drawer width, button placement and velocity-based compact animation */
.ai-questions-drawer {
  width: min(281px, calc(100vw - 14px)) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.ai-more-questions-btn {
  margin: 10px 0 12px !important;
  justify-content: flex-start !important;
  padding: 0 13px !important;
  text-align: left !important;
}

.ai-more-questions-btn svg {
  order: 0 !important;
  margin-right: 2px !important;
}

.ai-more-questions-btn span {
  order: 1 !important;
  position: relative;
  z-index: 1;
}

.ai-assistant-card {
  --ai-collapse-ms: 380ms;
  --ai-collapse-lift: 8px;
  overflow: hidden !important;
  will-change: max-height, padding, transform, box-shadow !important;
  transition:
    max-height var(--ai-collapse-ms) cubic-bezier(.22, 1, .24, 1),
    padding var(--ai-collapse-ms) cubic-bezier(.22, 1, .24, 1),
    transform var(--ai-collapse-ms) cubic-bezier(.22, 1, .24, 1),
    box-shadow calc(var(--ai-collapse-ms) + 40ms) ease !important;
}

.ai-assistant-card:not(.ai-compact) {
  max-height: 940px !important;
  transform: translateY(0) scale(1) !important;
}

.ai-assistant-card .ai-section-label,
.ai-assistant-card .ai-question-list,
.ai-assistant-card .ai-more-questions-btn,
.ai-assistant-card .ai-benefits {
  will-change: max-height, opacity, transform, margin, padding !important;
  transition:
    max-height var(--ai-collapse-ms) cubic-bezier(.22, 1, .24, 1),
    opacity calc(var(--ai-collapse-ms) * .72) ease,
    transform var(--ai-collapse-ms) cubic-bezier(.22, 1, .24, 1),
    margin var(--ai-collapse-ms) ease,
    padding var(--ai-collapse-ms) ease !important;
}

.ai-assistant-card:not(.ai-compact) .ai-more-questions-btn {
  display: inline-flex !important;
  max-height: 54px !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.ai-assistant-card.ai-is-switching {
  filter: saturate(1.04) brightness(1.02);
}

.ai-assistant-card.ai-compact {
  max-height: 176px !important;
  padding-top: 14px !important;
  padding-bottom: 13px !important;
  transform: translateY(calc(var(--ai-collapse-lift) * -0.25)) scale(.992) !important;
}

.ai-assistant-card.ai-compact .ai-card-head {
  margin-bottom: 10px !important;
}

.ai-assistant-card.ai-compact .ai-section-label,
.ai-assistant-card.ai-compact .ai-question-list,
.ai-assistant-card.ai-compact .ai-more-questions-btn,
.ai-assistant-card.ai-compact .ai-benefits {
  display: grid !important;
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(calc(var(--ai-collapse-lift) * -1)) scale(.965) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none !important;
}

.ai-assistant-card.ai-compact .ai-more-questions-btn {
  display: inline-flex !important;
}

.ai-assistant-card.ai-compact .ai-input-shell {
  min-height: 46px !important;
  margin-top: 0 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 1180px) {
  .ai-questions-drawer {
    width: min(281px, calc(100vw - 14px)) !important;
  }
}

/* v50: active map marker as blue circle + popup favorite + favorites cache note */
.leaflet-marker-icon.single-marker-car,
.leaflet-div-icon.single-marker-car {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  margin-left: -26px !important;
  margin-top: -26px !important;
  border: 3px solid #fff !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #19b8ff 0%, #006bff 52%, #063dc4 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(0, 107, 255, 0.36), 0 0 0 8px rgba(0, 107, 255, 0.12) !important;
  animation: activeMapMarkerPop 0.22s cubic-bezier(.2,.9,.18,1.25) both;
}

.leaflet-marker-icon.single-marker-car svg,
.leaflet-div-icon.single-marker-car svg {
  width: 27px !important;
  height: 27px !important;
  display: block !important;
}

@keyframes activeMapMarkerPop {
  from { transform: scale(0.7); opacity: 0.65; }
  to { transform: scale(1); opacity: 1; }
}

.leaflet-popup {
  margin-bottom: 0 !important;
}

.leaflet-popup-tip-container {
  left: 50% !important;
  margin-left: -20px !important;
}

.popup-card {
  position: relative !important;
}

.popup-favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #61738a;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.popup-favorite-btn:hover {
  transform: translateY(-1px) scale(1.04);
  color: #006bff;
  box-shadow: 0 10px 22px rgba(0, 107, 255, 0.18);
}

.popup-favorite-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.popup-favorite-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff3d7f 0%, #e60046 100%);
  border-color: rgba(255, 255, 255, 0.92);
}

.popup-favorite-btn.active svg {
  fill: currentColor;
}

.favorites-drawer {
  display: flex;
  flex-direction: column;
}

.favorites-list {
  flex: 1 1 auto;
}

.favorites-login-note {
  flex: 0 0 auto;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d8e6f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

.favorites-login-note p {
  margin: 0 0 12px;
  color: #53657c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.favorites-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #12a0ff 0%, #006bff 54%, #0044c9 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 107, 255, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.favorites-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 24px rgba(0, 107, 255, 0.28);
}

.favorites-login-btn svg {
  width: 18px;
  height: 18px;
}

/* v51: stabilna mapa - markery bez transformowania kontenera Leaflet */
.leaflet-marker-icon.map-marker-shell,
.leaflet-div-icon.map-marker-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  animation: none !important;
}

.leaflet-marker-icon.single-marker-image.map-marker-shell,
.leaflet-div-icon.single-marker-image.map-marker-shell {
  width: 72px !important;
  height: 72px !important;
  margin-left: -36px !important;
  margin-top: -36px !important;
  border-radius: 0 !important;
}

.map-photo-marker {
  display: block;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.24), 0 2px 5px rgba(16, 24, 40, 0.10);
  box-sizing: border-box;
  cursor: pointer;
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.map-photo-marker:hover {
  filter: saturate(1.05);
  box-shadow: 0 18px 38px rgba(0, 107, 255, 0.26), 0 2px 5px rgba(16, 24, 40, 0.10);
}

.map-photo-marker img,
.single-marker-image .map-photo-marker img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.leaflet-marker-icon.single-marker-car.map-marker-shell,
.leaflet-div-icon.single-marker-car.map-marker-shell {
  width: 72px !important;
  height: 72px !important;
  margin-left: -36px !important;
  margin-top: -36px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  animation: none !important;
}

.map-active-marker-inner {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #1cc2ff 0%, #006bff 54%, #073fbf 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 107, 255, 0.40), 0 0 0 8px rgba(0, 107, 255, 0.13);
  box-sizing: border-box;
  animation: mapActiveInnerPop 0.18s cubic-bezier(.2,.9,.18,1.2) both;
}

.map-active-marker-inner svg,
.single-marker-car .map-active-marker-inner svg {
  display: block !important;
  width: 35px !important;
  height: 35px !important;
}

@keyframes mapActiveInnerPop {
  from { transform: scale(0.82); opacity: 0.72; }
  to { transform: scale(1); opacity: 1; }
}

.leaflet-popup {
  margin-bottom: 0 !important;
}

.leaflet-popup-content-wrapper {
  transform: translateX(0) !important;
}

.leaflet-popup-tip-container {
  left: 50% !important;
  margin-left: -20px !important;
}

@media (max-width: 1450px) {
  .leaflet-marker-icon.single-marker-image.map-marker-shell,
  .leaflet-div-icon.single-marker-image.map-marker-shell,
  .leaflet-marker-icon.single-marker-car.map-marker-shell,
  .leaflet-div-icon.single-marker-car.map-marker-shell {
    width: 66px !important;
    height: 66px !important;
    margin-left: -33px !important;
    margin-top: -33px !important;
  }

  .map-photo-marker {
    width: 62px;
    height: 62px;
    border-radius: 13px;
  }

  .map-active-marker-inner {
    width: 62px;
    height: 62px;
  }

  .map-active-marker-inner svg,
  .single-marker-car .map-active-marker-inner svg {
    width: 32px !important;
    height: 32px !important;
  }
}


/* v52: photo markers restored + custom floating popup above the map */
.map-card {
  overflow: visible !important;
  z-index: 20;
}

.map {
  overflow: hidden !important;
  border-radius: inherit;
}

.leaflet-container {
  overflow: hidden !important;
}

.leaflet-marker-icon.single-marker-image.map-marker-shell,
.leaflet-div-icon.single-marker-image.map-marker-shell {
  width: 72px !important;
  height: 72px !important;
  margin-left: -36px !important;
  margin-top: -36px !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.single-marker-image .map-photo-marker,
.map-photo-marker {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  overflow: hidden !important;
  border: 3px solid rgba(255,255,255,0.98) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.24), 0 2px 5px rgba(16, 24, 40, 0.10) !important;
  box-sizing: border-box !important;
}

.single-marker-image .map-photo-marker img,
.map-photo-marker img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 10px !important;
}

.map-floating-popup {
  position: absolute;
  z-index: 2500;
  width: 286px;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 18px));
  animation: mapFloatingPopupIn 0.18s cubic-bezier(.2,.9,.22,1) both;
}

.map-floating-popup[hidden] {
  display: none !important;
}

.map-floating-popup .popup-card {
  width: 286px;
  border-radius: 13px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.20), 0 5px 14px rgba(16, 24, 40, 0.12);
  border: 1px solid rgba(226, 234, 246, 0.96);
}

.map-floating-popup::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1px solid rgba(226, 234, 246, 0.96);
  border-bottom: 1px solid rgba(226, 234, 246, 0.96);
  box-shadow: 5px 5px 12px rgba(16, 24, 40, 0.06);
}

.map-floating-popup .popup-card .popup-main-image,
.map-floating-popup .popup-card > img {
  aspect-ratio: 1 / 1;
  height: auto !important;
}

@keyframes mapFloatingPopupIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 8px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 18px)) scale(1);
  }
}

@media (max-width: 1450px) {
  .leaflet-marker-icon.single-marker-image.map-marker-shell,
  .leaflet-div-icon.single-marker-image.map-marker-shell {
    width: 66px !important;
    height: 66px !important;
    margin-left: -33px !important;
    margin-top: -33px !important;
  }

  .single-marker-image .map-photo-marker,
  .map-photo-marker {
    width: 62px !important;
    height: 62px !important;
    border-radius: 13px !important;
  }

  .map-floating-popup {
    width: 270px;
  }

  .map-floating-popup .popup-card {
    width: 270px;
  }
}


/* v54: popup close button, styled save action, close on map click + compact popup */
.map-floating-popup {
  width: 216px !important;
  z-index: 3600 !important;
  transform: translate(-50%, calc(-100% - 14px)) !important;
}

.map-floating-popup .popup-card {
  width: 216px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.map-floating-popup::after {
  bottom: -7px !important;
  width: 14px !important;
  height: 14px !important;
}

.map-floating-popup .popup-card .popup-main-image,
.map-floating-popup .popup-card > img {
  aspect-ratio: 1 / 0.78 !important;
  height: auto !important;
}

.map-floating-popup .popup-card-body {
  padding: 9px 10px 10px !important;
}

.map-floating-popup .popup-card h3 {
  margin-bottom: 4px !important;
  font-size: 12px !important;
  line-height: 1.16 !important;
}

.map-floating-popup .popup-card .meta-line {
  font-size: 9.5px !important;
  line-height: 1.25 !important;
}

.map-floating-popup .popup-card .price-line {
  margin: 7px 0 6px !important;
  font-size: 20px !important;
  line-height: 1.02 !important;
}

.map-floating-popup .popup-location {
  margin-bottom: 8px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.popup-close-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #20334d;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.popup-close-btn:hover {
  transform: translateY(-1px) scale(1.04);
  color: #006bff;
  box-shadow: 0 10px 22px rgba(0, 107, 255, 0.18);
}

.popup-close-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.popup-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  margin-bottom: 7px;
  border: 1px solid #d8e7ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #006bff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 107, 255, 0.10);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.popup-save-btn:hover {
  transform: translateY(-1px);
  border-color: #b8d4ff;
  box-shadow: 0 9px 18px rgba(0, 107, 255, 0.16);
}

.popup-save-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.7;
}

.popup-save-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, #ff3d7f 0%, #e60046 100%);
  box-shadow: 0 9px 18px rgba(230, 0, 70, 0.20);
}

.popup-save-btn.active svg {
  fill: currentColor;
}

.map-floating-popup .popup-offer-btn {
  min-height: 34px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  box-shadow: 0 6px 14px rgba(0, 107, 255, 0.20) !important;
}

@keyframes mapFloatingPopupIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 6px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 14px)) scale(1);
  }
}

@media (max-width: 1450px) {
  .map-floating-popup,
  .map-floating-popup .popup-card {
    width: 206px !important;
  }
}

/* v55 product page navigation affordance */
.listing-card {
  cursor: pointer;
}

.listing-card .favorite-btn,
.listing-card button,
.listing-card a {
  cursor: pointer;
}

.popup-offer-btn {
  text-decoration: none;
}


/* v57: heart favorite button moved to popup image corner */
.popup-map-fav-btn {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #20334d;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.popup-map-fav-btn:hover {
  transform: translateY(-1px) scale(1.04);
  color: #e60046;
  box-shadow: 0 10px 22px rgba(230, 0, 70, 0.18);
}

.popup-map-fav-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.8;
}

.popup-map-fav-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, #ff3d7f 0%, #e60046 100%);
  box-shadow: 0 10px 22px rgba(230, 0, 70, 0.24);
}

.popup-map-fav-btn.active svg {
  fill: currentColor;
}

.map-floating-popup .popup-save-btn {
  display: none !important;
}

.map-floating-popup .popup-location {
  margin-bottom: 8px !important;
}
