.sf-wrap {
    max-width: 1280px;
    margin: 0px;
    padding: 10px 0px;
}
.sf-widget {
  background: transparent;
  border-radius: 20px;
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sf-header { display: none; }
.sf-sub-bar { display: none; }

.sf-map-title {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-size: 22px; font-weight: bold; color: #fff; z-index: 10;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  transition: opacity 0.4s;
}
.sf-map-title span { color: #ff0000; }

.sf-content {
  position: relative;
  animation: sfFadeIn 0.25s ease;
}
.sf-content[style*="display: none"] { animation: none; }
@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#sf-map { height: 450px; }
.sf-map-actions {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 10;
}
.sf-map-actions .sf-btn {
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.sf-city-count {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; color: #ddd; z-index: 10; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.sf-panel-inner {
  padding: 24px 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px;
}

.sf-overlay {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(8,8,12,0.75); backdrop-filter: blur(2px);
  animation: sfFadeIn 0.25s ease;
}
.sf-category-row {
  display: flex; align-items: center; gap: 14px;
}
.sf-category-card {
  width: 180px; height: 260px; position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; cursor: pointer; transition: all 0.25s ease;
  overflow: hidden;
}
.sf-category-card:hover {
  border-color: rgba(255,0,0,0.4);
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,0,0,0.15), 0 2px 8px rgba(0,0,0,0.4);
}
.sf-cat-collage {
  position: absolute; inset: 0; display: flex; gap: 0;
}
.sf-cat-collage img {
  flex: 1 1 0; min-width: 0; width: 0;
  height: 100%; object-fit: cover;
  opacity: 0.5; transition: opacity 0.25s;
}

#sf-cat-mode .sf-cat-collage img {
  height: 220%;
  align-self: flex-start;
  margin-top: -22px;
  opacity: 0.7;
}
#sf-cat-mode:hover .sf-cat-collage img { opacity: 0.9; }

#sf-cat-mode { border-color: transparent; }
#sf-cat-mode:hover { border-color: rgba(255, 0, 0, 0.4); }
.sf-category-card:hover .sf-cat-collage img { opacity: 0.7; }
.sf-cat-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%);
  padding: 30px 12px 14px; text-align: center;
}
.sf-category-card .sf-cat-label { font-size: 14px; color: #eee; font-weight: bold; letter-spacing: 0.5px; }
.sf-skip-btn {
  width: 180px; height: 50px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.12);
  color: #777; font-size: 12px; cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px; line-height: 1.3;
}
.sf-skip-btn:hover { background: rgba(255,255,255,0.06); color: #ccc; border-color: rgba(255,0,0,0.3); }
.sf-card-grid {
  display: flex; flex-wrap: wrap;
  row-gap: 0; column-gap: 16px;
  justify-content: center;
  max-width: 750px; padding: 4px 10px 0;
}

.sf-card-grid.sf-mode-grid { max-width: 900px; }
.sf-filter-card {
  width: 105px; cursor: pointer;
  position: relative; transition: all 0.25s ease;
}
.sf-filter-card:hover { transform: translateY(-2px) scale(1.05); }

.sf-filter-card.sf-mode-card { width: 130px; }

.sf-card-bg {
  width: 100%; height: 195px; overflow: hidden; position: relative;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
}
.sf-filter-card:hover .sf-card-bg { border-color: rgba(255,255,255,0.2); }
.sf-filter-card.active .sf-card-bg {
  box-shadow: 0 0 0 3px rgba(255,0,0,0.8), 0 0 14px rgba(255,0,0,0.3), 0 4px 12px rgba(0,0,0,0.3);
}
.sf-card-bg img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: 0.6; transition: opacity 0.25s;
}
.sf-filter-card:hover .sf-card-bg img,
.sf-filter-card.active .sf-card-bg img { opacity: 0.85; }
.sf-card-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  border-radius: 6px;
}

.sf-card-overlay {
  position: absolute; top: 0; left: 0; right: 0; height: 195px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; pointer-events: none;
}
.sf-pin-badge {
  width: 60px; height: 60px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
  transition: all 0.25s;
}
.sf-pin-badge.sf-pin-large { width: 75px; height: 75px; }
.sf-pin-badge.sf-pin-warmup { border-radius: 50%; }
.sf-filter-card:hover .sf-pin-badge {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.8));
}
.sf-filter-card.active .sf-pin-badge {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255,0,0,0.35)) drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

.sf-filter-card .sf-card-name {
  padding: 2px 2px; text-align: center; font-size: 9px; color: #999;
  transition: color 0.2s;
}
.sf-filter-card:hover .sf-card-name { color: #ccc; }
.sf-filter-card.active .sf-card-name { color: #fff; font-weight: bold; }

.sf-filter-card > img {
  width: 100%; height: auto; display: block;
  opacity: 0.8; transition: opacity 0.25s;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.06);
}
.sf-filter-card:hover > img, .sf-filter-card.active > img { opacity: 1; }
.sf-filter-card.active > img {
  box-shadow: 0 0 0 3px rgba(255,0,0,0.8), 0 0 14px rgba(255,0,0,0.3), 0 4px 12px rgba(0,0,0,0.3);
}
.sf-overlay-actions {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; z-index: 16;
}

.sf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 8px;
}
.sf-btn {
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  min-height: 44px;
  white-space: nowrap;
}
.sf-btn-primary { background: rgba(255,0,0,0.7); border: 1px solid #dc3545; color: #fff; }
.sf-btn-primary:hover { background: rgba(255,0,0,0.85); }
.sf-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.sf-btn-ghost { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #aaa; }
.sf-btn-ghost:hover { color: #ccc; border-color: rgba(255,255,255,0.2); }

.sf-results-title {
  text-align: center;
  font-size: 22px; font-weight: bold; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin: 18px 0 14px;
  padding: 0 16px;
}
.sf-results-title span { color: #ff0000; }
.sf-result-summary { display: none; }



.sf-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 12px 0; }

@media (max-width: 600px) {
  .sf-wrap { padding: 0 8px; margin: 16px auto; }
  #sf-map { height: 280px; }
  .sf-map-title { font-size: 16px; top: 10px; }
  .sf-results-title { font-size: 16px; margin: 12px 0 10px; }
  .sf-map-actions { bottom: 8px; left: 8px; right: 8px; }
  .sf-map-actions .sf-btn { font-size: 11px; padding: 6px 10px; min-height: 36px; }
  .sf-panel-inner { padding: 16px 14px; }
  .sf-actions { gap: 6px; }
  .sf-btn { font-size: 12px; padding: 8px 12px; min-height: 38px; }
  .sf-city-count { font-size: 10px; padding: 4px 10px; }
  .sf-tooltip { font-size: 10px; padding: 4px 8px; }
  .sf-category-row { flex-direction: column; gap: 10px; }
  .sf-category-card { width: 180px; height: 80px; flex-direction: row; padding: 0 16px; }
  .sf-skip-btn { width: 180px; height: 36px; font-size: 10px; }
  .sf-filter-card { width: 60px; }

  .sf-filter-card.sf-mode-card { width: 60px; }
  .sf-card-grid.sf-mode-grid { max-width: 100%; }
  .sf-card-bg, .sf-card-overlay { height: 110px; }
  .sf-pin-badge { width: 36px; height: 36px; }
  .sf-pin-badge.sf-pin-large { width: 45px; height: 45px; }
}

.sf-results-grid { margin-top: 15px; margin-bottom: 20px; }
.sf-no-results { text-align: center; color: #fff; padding: 30px; font-size: 1.1rem; }
.sf-actions { display: flex; align-items: center; }
.sf-action-left { flex: 1; text-align: left; }
.sf-action-center { flex: 1; text-align: center; }
.sf-action-right { flex: 1; text-align: right; }
.sf-results-grid .wsc-card.active { outline: 2px solid #ff0000; outline-offset: 2px; border-radius: 6px; }
