/* ─────────────────────────────────────────
   base.css  —  reset + shared components
   Used by: all pages
───────────────────────────────────────── */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Chips ── */

.chip.active,
.search-chip.active {
  background: #2C2C2A;
  color: #F1EFE8;
  border-color: #2C2C2A;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #1a1a1a;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.search-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #1a1a1a;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.chip-icon {
  font-size: 15px;
  line-height: 1;
}

.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chips-reset {
  font-size: 12px;
  font-weight: 500;
  color: #888780;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.chips-reset:hover {
  color: #1a1a1a;
}

/* ── Search bar ── */

.search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 32px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.search-ico {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #888;
  padding: 2px 4px;
  line-height: 1;
  display: none;
}

.search-clear:hover {
  color: #333;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 10;
  overflow: hidden;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.1s;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background: rgba(0, 0, 0, 0.04);
}

.search-suggestion-icon {
  font-size: 15px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.search-suggestion-text {
  flex: 1;
}

.search-suggestion-label {
  font-size: 13px;
  color: #111;
}

.search-suggestion-label strong {
  font-weight: 600;
}

.search-suggestion-meta {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

/* ── Card ── */

.card {
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.img-wrap img,
.img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: #ffffff;
}

.card-body {
  padding: 0;
}

.title {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #717171;
  margin-bottom: 4px;
}

.info-row .ico {
  font-size: 13px;
}

.badges-row {
  display: flex;
  gap: 6px;
  margin: 8px 0 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: #F1EFE8;
  color: #444441;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge .ico {
  font-size: 12px;
}

.divider {
  height: 0.5px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 0 10px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-left {
  font-size: 13px;
  color: #717171;
}

.cta-btn {
  background: #222222;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.cta-btn:hover .cta-icon {
  transform: translateX(4px);
}

.cta-btn:hover {
  background: #000000;
}

a.cta-btn {
  color: #fff;
}

a.cta-btn:visited {
  color: #fff;
}

/* ── Labels ── */

.filter-label {
  font-size: 11px;
  color: #888780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* ── Zoom ── */

.leaflet-control-zoom a {
  border-radius: 100px !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
  border: 0.5px solid rgba(0,0,0,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  border-radius: 100px !important;
}