/* Self contained styles for the listing page */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --fg: #1f2937;
  --muted-fg: #6b7280;
  --muted: #f1f5f9;
  --primary: #0d9488;
  --secondary: #2563eb;
  --accent: #8b2c9e;
  --destructive: #ef4444;
  --border: #e5e7eb;
  --radius: 10px;
  --radius-lg: 14px;
  --font-display: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 180ms ease;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  margin: 0;
}
/* ===== Listing Page Layout ===== */
.listing-page {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 64px);
}
.listing-main {
  flex: 1;
  min-width: 0;
}
.listing-sidebar {
  width: 320px;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px; /* below fixed navbar */
  align-self: flex-start;
  max-height: calc(100vh - 140px); /* stop before footer */
  padding-right: 4px;
}

/* ===== Top Bar ===== */
.listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.listing-count {
  font-size: 16px;
  color: var(--muted-fg);
  text-align: center;
  margin: 10px 10px 20px 10px;
}
.listing-count strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  margin-right: 4px;
}
.listing-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-fg);
}
.listing-sort-select {
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Mobile Map Preview ===== */
.listing-mobile-map {
  display: none; /* Hidden by default */
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-map-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: none;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.mobile-map-expand:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.mobile-map-expand svg {
  width: 20px;
  height: 20px;
}

/* Show mobile map only on mobile devices */
@media (max-width: 768px) {
  .listing-mobile-map {
    display: block;
  }
}

/* ===== Search Bar ===== */
.listing-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}
.applied-filters {
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}
.applied-filters-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-fg);
}
.applied-filters-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.applied-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--muted);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}
.applied-filter-remove {
  border: none;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.applied-filter-remove:hover { color: var(--destructive); }
.applied-filters-clear {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.search-field svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted-fg);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--card);
  outline: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.listing-locate-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-fg);
  transition: all var(--transition);
}
.listing-locate-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.listing-locate-btn svg { width: 20px; height: 20px; }
.listing-search-btn {
  height: 48px;
  padding: 0 20px;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.listing-search-btn svg { width: 16px; height: 16px; }

/* ===== Grid ===== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Listing Card ===== */
.listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 250ms ease, transform 250ms ease;
  cursor: pointer;
  animation: fadeIn 300ms ease;
  text-decoration: none;
  color: inherit;
}
.listing-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Promoted Card - prosta złota ramka */
.listing-card--promoted {
  border: 2px solid #fbbf24;
  position: relative;
}

.listing-card--promoted:hover {
  box-shadow: 
    0 8px 32px rgba(251, 191, 36, 0.25),
    0 4px 16px rgba(251, 191, 36, 0.15);
  transform: translateY(-3px);
  border-color: #f59e0b;
}


/* Card Image */
.listing-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.listing-card:hover .listing-card-img img {
  transform: scale(1.05);
}

/* Image Overlays */
.listing-badge-city {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.listing-badge-city::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.listing-badge-distance {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.listing-badge-distance svg { width: 12px; height: 12px; color: var(--destructive); }

.listing-img-bottom {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.listing-views {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
}
.listing-views svg { width: 14px; height: 14px; }

.listing-badge-date {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--secondary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.listing-badge-date svg { width: 12px; height: 12px; }

.listing-badge-time {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.listing-badge-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: white;
}
.listing-badge-status--open { background: hsl(142 71% 45%); }
.listing-badge-status--closed { background: var(--destructive); }

/* Card Body */
.listing-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px 16px 16px;
}
.listing-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card-organizer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted-fg);
  margin-bottom: 8px;
}
.listing-card-organizer svg { width: 12px; height: 12px; flex-shrink: 0; }
.listing-card-desc {
  font-size: 13px;
  color: var(--muted-fg);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.listing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: auto;
}
.listing-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.listing-tag--free {
  background: hsl(142 71% 45%);
  color: white;
}
.listing-tag--paid {
  background: var(--destructive);
  color: white;
}
.listing-tag--category {
  background: var(--muted);
  color: var(--fg);
  font-weight: 500;
  border: 1px solid var(--border);
}
.listing-tag--hash {
  background: transparent;
  color: var(--muted-fg);
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ===== Map Placeholder ===== */
.listing-map {
  min-height: 300px;
  height: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.map-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  z-index: 10;
}
.map-fullscreen-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.map-fullscreen-btn svg { width: 18px; height: 18px; }
.map-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-fg);
  opacity: 0.5;
}
.map-placeholder-inner svg { width: 36px; height: 36px; }
.map-placeholder-inner span { font-size: 13px; font-weight: 500; }

/* Leaflet cluster badges */
.marker-cluster-custom {
  background: none;
  border: none;
  box-shadow: none;
}
.marker-cluster-custom div {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Promowany pin na mapie */
.promoted-pin-wrapper svg {
  filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.6)) drop-shadow(0 1px 3px rgba(0,0,0,0.25));
  animation: promoted-pulse 2s ease-in-out infinite;
}
@keyframes promoted-pulse {
  0%, 100% { filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.6)) drop-shadow(0 1px 3px rgba(0,0,0,0.25)); }
  50%       { filter: drop-shadow(0 3px 12px rgba(245, 158, 11, 0.9)) drop-shadow(0 1px 3px rgba(0,0,0,0.25)); }
}

/* Leaflet popup — styl karty */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}
.leaflet-popup-content {
  margin: 0;
  line-height: normal;
  width: auto !important;
}
.leaflet-popup-tip-container {
  margin-top: -1px;
}

/* Fullscreen map modal */
.map-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.map-modal-content {
  position: relative;
  width: min(1100px, 90vw);
  height: min(750px, 80vh);
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}
.map-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.map-modal-close:hover {
  transform: scale(1.04);
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.map-modal-close svg { width: 18px; height: 18px; }

/* ===== Filters Panel ===== */
.filters-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.filter-group {
  margin-bottom: 14px;
}
.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  margin-bottom: 6px;
}
.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="number"] {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.filter-row {
  display: flex;
  gap: 8px;
}
.filter-row > * { flex: 1; }
.listing-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.listing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.listing-btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.listing-btn--primary:hover { filter: brightness(0.95); }
.listing-btn--ghost {
  background: transparent;
  color: var(--muted-fg);
  border-color: var(--border);
}
.listing-btn--ghost:hover { color: var(--fg); border-color: var(--muted-fg); }
.listing-btn--full { width: 100%; }


/* ===== Map Placeholder ===== */
.listing-map {
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
}
.map-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-fg);
  opacity: 0.5;
}
.map-placeholder-inner svg { width: 36px; height: 36px; }
.map-placeholder-inner span { font-size: 13px; font-weight: 500; }

/* ===== Filters Panel ===== */
.filters-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.filter-group {
  margin-bottom: 14px;
}
.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-fg);
  margin-bottom: 6px;
}
.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="number"] {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.filter-row {
  display: flex;
  gap: 8px;
}
.filter-row > * { flex: 1; }
.filter-apply { margin-top: 8px; }
.filter-clear { margin-top: 6px; }

/* ===== Mobile Tabs Bar ===== */
.mob-tabs-bar {
  display: none;
  position: fixed;
  top: 64px;
  z-index: 90;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  width: 100vw;
  transform: translateX(-5%);
}
.mob-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-fg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
}
.mob-tab:hover, .mob-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.mob-tab svg { width: 16px; height: 16px; }
.mob-tab-count {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.mob-active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mob-active-filters:empty { display: none !important; }
.mob-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  animation: mobBadgeIn 200ms ease;
}
@keyframes mobBadgeIn { from { opacity:0; transform: scale(0.8); } to { opacity:1; transform: scale(1); } }
.mob-filter-badge button {
  background: none; border: none; color: white; font-size: 14px;
  line-height: 1; cursor: pointer; opacity: 0.8; padding: 0; margin-left: 2px;
}
.mob-filter-badge button:hover { opacity: 1; }
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 200;
}
.mob-overlay.open { display: block; }
.mob-sort-popup {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-radius: 16px 16px 0 0; z-index: 201;
  transform: translateY(100%); animation: mobSlideUp 250ms ease forwards;
}
.mob-sort-popup.open { display: block; }
@keyframes mobSlideUp { to { transform: translateY(0); } }
.mob-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
}
.mob-popup-header h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.mob-popup-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--muted); border: none; font-size: 18px;
  color: var(--fg); cursor: pointer; transition: background 200ms;
}
.mob-popup-close:hover { background: var(--border); }
.mob-sort-options { padding: 8px 12px 16px; }
.mob-sort-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px;
  border-radius: 10px; cursor: pointer; transition: background 150ms;
  font-size: 14px; color: var(--fg);
}
.mob-sort-option:hover { background: var(--muted); }
.mob-sort-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.mob-sort-option span { font-weight: 500; }
.mob-filter-modal {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 85vh; background: var(--card); border-radius: 16px 16px 0 0;
  z-index: 201; flex-direction: column;
  transform: translateY(100%); animation: mobSlideUp 250ms ease forwards;
}
.mob-filter-modal.open { display: flex; }
.mob-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mob-modal-header h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.mob-modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.mob-filter-section { margin-bottom: 16px; }
.mob-filter-section label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted-fg);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.mob-filter-section select,
.mob-filter-section input {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 14px;
  background: var(--bg); color: var(--fg); outline: none;
  font-family: var(--font-body); transition: border-color 200ms;
}
.mob-filter-section select:focus,
.mob-filter-section input:focus { border-color: var(--primary); }
.mob-filter-row { display: flex; gap: 8px; }
.mob-filter-row > * { flex: 1; }
.mob-modal-footer {
  display: flex; gap: 10px; padding: 12px 20px 20px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.mob-modal-footer .btn { flex: 1; height: 44px; border-radius: 10px; font-weight: 600; }
.mob-map-fullscreen {
  display: none; position: fixed; inset: 0; background: var(--card);
  z-index: 201; flex-direction: column;
}
.mob-map-fullscreen.open { display: flex; }
.mob-map-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mob-map-header h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.mob-map-body {
  flex: 1; display: flex; align-items: center; justify-content: center; background: var(--muted);
}


/* ===== Responsive ===== */
@media (max-width: 1280px) {
  .listing-sidebar { width: 280px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .listing-sidebar { display: none; }
  .listing-main { margin-right: 0; }
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .mob-tabs-bar { display: flex; }
  .mob-active-filters { display: flex; }
  .listing-page { padding: 16px; }
  .listing-main{ padding-top: 64px;}
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  /* Hide desktop search/filter elements on mobile */
  .listing-top,
  .listing-search,
  .applied-filters {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .listing-grid { grid-template-columns: 1fr; }
}

/* Desktop: Hide mobile components */
@media (min-width: 769px) {
  .mob-tabs-bar,
  .mob-active-filters,
  .mob-overlay,
  .mob-sort-popup,
  .mob-filter-modal,
  .mob-map-fullscreen {
    display: none !important;
  }
}
