/* ─── Bilnörden App Styles ─── */

/* Leaflet overrides */
.leaflet-container {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: .75rem;
}
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
  padding: 2px !important;
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: .78rem;
  line-height: 1.5;
}
.leaflet-control-zoom a {
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
  color: #374151 !important;
  background: #fff !important;
  border: 1px solid #e2e5ea !important;
  transition: all .15s !important;
}
.leaflet-control-zoom a:hover {
  background: #f3f4f6 !important;
  color: #059669 !important;
}
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
@keyframes skeletonPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Skeleton loading */
.skeleton {
  background: var(--un-preset-bg, #e8eaee);
  border-radius: 4px;
  animation: skeletonPulse 1.5s ease infinite;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .85rem;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
#toast.show {
  opacity: 1;
}

/* Info tooltip */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cfd3d9;
  color: #fff;
  font-size: .52rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  flex-shrink: 0;
}
.info-tip:hover {
  background: #059669;
}
.info-tip .tip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f1219;
  color: #fff;
  font-size: .68rem;
  font-weight: 400;
  padding: 8px 11px;
  border-radius: 6px;
  width: 220px;
  text-align: left;
  line-height: 1.4;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  white-space: normal;
}
.info-tip .tip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #0f1219;
}
.info-tip:hover .tip-text {
  display: block;
}

/* Score ring */
.score-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}

/* Category filter chip */
.filter-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  background: transparent;
  border: 1px solid #e2e5ea;
  color: #6b7280;
}
.filter-chip:hover {
  border-color: #9ca3af;
  color: #0f1219;
}
.filter-chip.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
  font-weight: 600;
}

/* Map+List layout — MOBILE FIRST */
.map-list-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  position: relative;
  min-height: 0;
}
.map-list-wrap .map-container {
  flex: 1;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e5ea;
}

/* Deal list panel — MOBILE FIRST */
.list-panel {
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.list-panel-header {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e5ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.list-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
}
.list-panel-body::-webkit-scrollbar {
  width: 3px;
}
.list-panel-body::-webkit-scrollbar-thumb {
  background: #e2e5ea;
  border-radius: 3px;
}

.deal-list-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; transition: all .15s; margin-bottom: 6px; background: #fff; border: 1px solid #e5e7eb; min-height: 72px; -webkit-tap-highlight-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.deal-list-item:hover { border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.deal-list-item:active { background: #f8f9fb; border-color: #d1d5db; }
.deal-list-img { width: 84px; height: 63px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; background-color: #f0f2f5; overflow: hidden; position: relative; }

/* Tablet+ : side by side map+list */
@media (min-width: 768px) {
  .map-list-wrap {
    flex-direction: row;
    gap: 8px;
    height: calc(100vh - 210px);
    min-height: 480px;
  }
  .map-list-wrap .map-container {
    flex: 1;
    height: auto;
    min-height: 400px;
    border-radius: 12px;
  }
  .list-panel {
    width: 380px;
    max-height: none;
    margin-right: 0;
    border-radius: 12px;
  }
  .list-panel-header {
    padding: 10px 14px;
  }
  .list-panel-body {
    padding: 6px 8px;
  }
  .deal-list-item {
    padding: 12px;
    min-height: auto;
  }
  .deal-list-img {
    width: 90px;
    height: 67px;
  }
  .deal-list-score {
    width: 30px;
    height: 30px;
    font-size: .7rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .list-panel {
    width: 400px;
  }
}

/* Mobile view toggle (hidden on tablet+) */
.mv-bar {
  display: flex;
  gap: 6px;
  padding: 6px 0 2px;
  flex-shrink: 0;
}
.mv-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e2e5ea;
  background: #fff;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  font-family: inherit;
  color: #6b7280;
}
.mv-btn.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
  font-weight: 600;
}
.mv-hide { display: none !important; }
@media (min-width: 768px) {
  .mv-bar { display: none !important; }
}

/* Onboarding overlay */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  padding: 20px;
}
.ob-overlay.open {
  display: flex;
}
.ob-box {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

/* Deal modal — MOBILE FIRST */
.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;  /* Bottom sheet on mobile */
  justify-content: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  padding: 0;
  overflow-y: auto;
}
.dm-overlay.open {
  display: flex;
}
.dm-box {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
}

/* Hero image — MOBILE FIRST */
.dm-hero {
  width: 100%;
  height: 160px;
  border-radius: 16px 16px 0 0;
  background-size: cover;
  background-position: center;
  background-color: #f1f3f5;
  position: relative;
}

/* Tablet+ modal */
@media (min-width: 768px) {
  .dm-overlay {
    align-items: center;
    backdrop-filter: blur(8px);
    padding: 16px;
  }
  .dm-box {
    max-width: 520px;
    max-height: 90vh;
    border-radius: 16px;
  }
  .dm-hero {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }
}

.dm-hero-pl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f1f3f5, #e8eaee);
  border-radius: 16px 16px 0 0;
}
.dm-sc-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.4);
}
.dm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.dm-close:hover { background: rgba(0,0,0,.65); }

/* Content area — MOBILE FIRST */
.dm-content { padding: 14px; }
.dm-heading { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0; color: #0f1219; }
.dm-meta-row { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: .82rem; color: #6b7280; margin-top: 6px; }
.dm-meta strong { color: #0f1219; font-weight: 600; }
.dm-meta-price strong { color: #059669; }

.dm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.dm-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 500;
  border: 1px solid;
}
.dm-tag-green { background: rgba(5,150,105,.08); color: #059669; border-color: rgba(5,150,105,.2); }
.dm-tag-neutral { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

/* Sections */
/* Sections — compact */
/* (see compact definition below — removing duplicate here) */

/* Mobile: compact deal modal */
.dm-content { padding: 12px; }
.dm-heading { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.dm-meta-row { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .8rem; color: #6b7280; margin-top: 4px; }

/* Tablet+ modal */
@media (min-width: 768px) {
  .dm-hero { height: 180px; }
  .dm-content { padding: 16px; }
  .dm-heading { font-size: 1.1rem; }
}
.dm-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.dm-chart-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
}
.dm-chart-title {
  font-size: .6rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.dm-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 80px;        /* Fixed height — chart fills via maintainAspectRatio:false */
  display: flex;
  justify-content: center;
}
.dm-chart-score .dm-chart-canvas-wrap { height: 90px; }
.dm-chart-canvas-wrap canvas {
  max-width: 100%;
  max-height: 100%;
}
.dm-chart-sub {
  font-size: .58rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 1px;
  line-height: 1.2;
}

/* Profit section — compact */
.dm-section-prof .dm-section-body {
  height: 110px;  /* Fix height for waterfall chart */
  padding: 4px 8px;
}

/* Factors section — compact */
.dm-section-factors .dm-section-body {
  height: 100px;  /* Fix height for factor bars */
  padding: 4px 8px;
}

/* Profit summary bar — horizontal inline calculation */
.dm-profit-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.dm-pb-item {
  text-align: center;
  flex-shrink: 0;
}
.dm-pb-label {
  display: block;
  font-size: .55rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.dm-pb-val {
  font-size: .78rem;
  font-weight: 700;
  color: #0f1219;
  white-space: nowrap;
}
.dm-pb-op, .dm-pb-arrow {
  font-size: .7rem;
  color: #d1d5db;
  flex-shrink: 0;
  margin: 0 1px;
}
.dm-pb-arrow { font-size: .75rem; }
.dm-pb-highlight .dm-pb-label { color: #059669; }
.dm-pb-roi {
  display: block;
  font-size: .55rem;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 1px;
}

/* Sections */
.dm-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.dm-section-title {
  padding: 6px 10px;
  font-size: .7rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.dm-section-sub {
  font-weight: 400;
  color: #9ca3af;
  font-size: .62rem;
}
.dm-section-body { padding: 6px 10px; }

/* Analysis list */
.dm-rs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dm-rs-list li {
  font-size: .72rem;
  color: #4b5563;
  line-height: 1.4;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
}

/* Actions */
.dm-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.dm-actions .btn { flex: 1; justify-content: center; font-size: .78rem; }

/* Footer */
.dm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 10px;
  font-size: .65rem;
}
.dm-footer-score {
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .68rem;
}
.dm-sc-high { background: rgba(5,150,105,.1); color: #059669; }
.dm-sc-med { background: rgba(217,119,6,.1); color: #d97706; }
.dm-sc-low { background: rgba(220,38,38,.1); color: #dc2626; }
.dm-footer-id { color: #d1d5db; font-family: monospace; font-size: .6rem; }

/* Mobile: single column charts */
@media (max-width: 440px) {
  .dm-chart-grid { grid-template-columns: 1fr; }
  .dm-profit-bar { gap: 2px; padding: 5px 8px; overflow-x: auto; }
  .dm-pb-val { font-size: .7rem; }
}

/* Lucide icon helpers — minimal, professional */
.icon-sm { width: 16px; height: 16px; stroke-width: 1.5; display: inline-block; vertical-align: middle; }
.icon-md { width: 18px; height: 18px; stroke-width: 1.5; display: inline-block; vertical-align: middle; }
.icon-lg { width: 20px; height: 20px; stroke-width: 1.5; display: inline-block; vertical-align: middle; }
.icon-inline { display: inline; vertical-align: middle; margin-right: 2px; }
button .icon-sm, button .icon-md, button .icon-lg { pointer-events: none; }
.nav-icon { width: 14px; height: 14px; stroke-width: 1.5; display: inline-block; vertical-align: middle; margin-right: 3px; }
.nav-icon-only { width: 16px; height: 16px; stroke-width: 1.5; display: inline-block; vertical-align: middle; }
/* Meta card icons inline */
.mc-icon { width: 12px; height: 12px; stroke-width: 1.5; display: inline; vertical-align: middle; margin-right: 2px; color: #9ca3af; }
.dl-card-profit .mc-icon { color: inherit; }
.dl-card-meta .mc-icon:not(:first-child) { margin-left: 4px; }

/* Marker cluster custom colors — match emerald theme */
.marker-cluster-small { background: rgba(5,150,105,.25) !important; }
.marker-cluster-small div { background: rgba(5,150,105,.6) !important; color:#fff !important; font-weight:700; font-size:.75rem; }
.marker-cluster-medium { background: rgba(5,150,105,.3) !important; }
.marker-cluster-medium div { background: rgba(5,150,105,.7) !important; color:#fff !important; font-weight:700; font-size:.8rem; }
.marker-cluster-large { background: rgba(5,150,105,.35) !important; }
.marker-cluster-large div { background: #059669 !important; color:#fff !important; font-weight:700; font-size:.85rem; }

/* Deal card styles — must be unscoped for JS-created elements */
.dl-card{display:flex;gap:12px;padding:12px;border-radius:10px;cursor:pointer;transition:all .15s;margin-bottom:6px;background:#fff;border:1px solid #e5e7eb;min-height:72px;-webkit-tap-highlight-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.dl-card:hover{border-color:#05966940;box-shadow:0 2px 10px rgba(5,150,105,.08);border-color:rgba(5,150,105,.2)}
.dl-card:active{background:#f8f9fb;border-color:#d1d5db}
.dl-card-img{width:84px;height:63px;border-radius:8px;flex-shrink:0;background-size:cover;background-position:center;background-color:#f0f2f5;overflow:hidden;position:relative}
.dl-card-pl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.3rem;background:linear-gradient(135deg,#f0f2f5,#e5e7eb)}
.dl-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dl-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.dl-card-price{font-size:.85rem;font-weight:700;color:#0f1219;line-height:1.2}
.dl-card-score{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 7px;border-radius:6px;font-size:.65rem;font-weight:700;flex-shrink:0;line-height:1;color:#fff;border:none}
.dl-card-title{font-size:.7rem;font-weight:500;color:#4b5563;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}
.dl-card-meta{display:flex;gap:4px 10px;font-size:.62rem;color:#9ca3af;flex-wrap:wrap;line-height:1.4}
.dl-card-profit{font-size:.65rem;font-weight:600;line-height:1.3}
.dl-stats{display:flex;align-items:center;gap:8px;font-size:.65rem;color:#9ca3af;flex:1;min-width:0}
.dl-stat{white-space:nowrap}
.dl-stat span{font-weight:600;color:#0f1219}
.dl-sort{display:flex;gap:2px;flex-shrink:0}
.sort-btn{width:26px;height:26px;border-radius:6px;border:1px solid #e2e5ea;background:transparent;font-size:.7rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;line-height:1;padding:0}
.sort-btn:hover{border-color:#cfd3d9;background:#f0f2f5}
.sort-btn.active{background:rgba(5,150,105,.1);border-color:rgba(5,150,105,.25)}
.pri-info{font-size:.6rem;color:#9ca3af;padding:3px 8px;background:#f8f9fb;margin:0;border-bottom:1px solid #e2e5ea;display:none;align-items:center;gap:3px;flex-wrap:wrap;flex-shrink:0}
.pri-info strong{color:#6b7280;font-weight:500}
.pri-info.visible{display:flex}
.cf-wrap{padding:4px 6px 2px;flex-shrink:0;border-bottom:1px solid #e2e5ea;background:#fff}
.cf-wrap #cat-filters{margin-bottom:4px}
.cf-wrap #lan-bar .filter-chip{font-size:.58rem}
.lan-icon{font-size:.65rem;vertical-align:middle;margin-right:1px}
.filter-chip{padding:3px 9px;border-radius:100px;font-size:.6rem;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit;white-space:nowrap;background:transparent;border:1px solid #e2e5ea;color:#9ca3af;flex-shrink:0;line-height:1.4}
.filter-chip:hover{border-color:#05966960;color:#6b7280}
.filter-chip.active{background:rgba(5,150,105,.1);border-color:rgba(5,150,105,.3);color:#059669;font-weight:600}
.lan-bar-label{display:inline-flex;align-items:center;gap:3px;font-size:.6rem;color:#9ca3af;font-weight:500;white-space:nowrap;flex-shrink:0;margin-right:4px;line-height:1.4}
#d-nav{display:flex;gap:2px;align-items:center;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-shrink:0;max-width:calc(100vw - 100px)}
#d-nav::-webkit-scrollbar{display:none}
#d-nav button{flex-shrink:0}
.stab.visible{padding:0 0 12px}
#tab-check.visible{padding:12px}
#tab-mycar.visible{padding:12px}
#tab-tradeup.visible{padding:12px}
@media(min-width:768px){
.dl-card{padding:12px}
.dl-card-img{width:90px;height:67px}
#d-nav{overflow-x:visible;max-width:none}
}
@media(min-width:1024px){
.list-panel{width:400px}
}

/* Search bar */
.search-wrap{display:flex;align-items:center;gap:6px;padding:6px 8px 2px;position:relative;flex-shrink:0}
.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:#9ca3af;pointer-events:none}
.search-input{width:100%;padding:7px 10px 7px 30px;border:1px solid #e2e5ea;border-radius:8px;font-size:.75rem;background:#f8f9fb;color:#0f1219;outline:none;transition:all .15s;font-family:inherit}
.search-input:focus{border-color:#059669;background:#fff;box-shadow:0 0 0 2px rgba(5,150,105,.12)}
.search-input::placeholder{color:#9ca3af}
/* Favorite heart */
.fav-btn{position:absolute;top:6px;right:6px;z-index:5;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.85);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;opacity:0;pointer-events:none;backdrop-filter:blur(2px)}
.dl-card:hover .fav-btn,.dl-card:focus-within .fav-btn{opacity:1;pointer-events:auto}
.fav-btn:hover{background:#fff;transform:scale(1.1)}
.fav-btn.active svg{fill:#dc2626;stroke:#dc2626;color:#dc2626}
.fav-btn svg{width:14px;height:14px;stroke:#374151;stroke-width:2;transition:all .15s}
