:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --text: #151823;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --accent: #111827;
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.25);
  --topbar-height: 180px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100dvh;
  height: 100dvh;
  display: block;
  overflow: hidden;
}

body.place-page {
  min-height: 100vh;
  height: auto;
  overflow: auto;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(246, 247, 249, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 24px 16px;
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.primary-filters {
  flex-wrap: nowrap;
}

.filters,
.header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters {
  align-items: center;
}

.header-buttons {
  flex-wrap: nowrap;
}

select,
input[type="search"],
.secondary-btn,
.status-btn {
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
  transition: 0.18s ease;
  box-shadow: none;
}

select:hover,
input[type="search"]:hover,
.secondary-btn:hover,
.status-btn:hover {
  border-color: #d5d9e0;
  background: #fcfcfd;
}

input[type="search"] {
  min-width: 220px;
}

.filters input[type="search"]::placeholder {
  color: #9ca3af;
}


.status-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.personal-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.status-filter-tab {
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
}

.personal-filter-tab {
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-filter-tab.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.personal-filter-tab.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.secondary-btn {
  cursor: pointer;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  line-height: 1;
  font-size: 1rem;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.monochrome-icon {
  font-size: 1.02rem;
  color: #111827;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stats-strip {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: block;
}

.secondary-controls {
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.secondary-controls.is-collapsed {
  display: none;
}

.secondary-controls-header {
  display: none;
}

.secondary-controls-close {
  display: none;
}

.filters-backdrop {
  display: none;
}

.mobile-filters-actions {
  display: none;
}

.secondary-filters {
  margin-bottom: 10px;
}

.category-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-filter-chip,
.personal-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #253046;
}

.category-filter-chip input,
.personal-toggle-chip input {
  margin: 0;
}

.category-filter-chip:has(input:checked),
.personal-toggle-chip.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.personal-toggle-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.filters-toggle {
  display: none;
}

.stat-number {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-filter-btn {
  height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-filter-label {
  font-size: 0.83rem;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.layout {
  max-width: 1480px;
  margin: var(--topbar-height) auto 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
  height: calc(100dvh - var(--topbar-height));
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.sidebar-section {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-header,
.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sidebar-header h2,
.map-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.sidebar-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}


.card-list {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: #d6dae1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card.card-map-active {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.18), 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef2f6, #e4e9f0);
  overflow: hidden;
}

.card-image-link {
  cursor: pointer;
}

.card-image-link:focus-visible {
  outline: 3px solid #9fc3ff;
  outline-offset: -3px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-body {
  padding: 18px;
}

.card-topline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-topline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 180px;
}

.card-visited-chip {
  min-width: 32px;
  justify-content: center;
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.card-copy-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.card-copy-btn:hover {
  background: rgba(229, 234, 240, 0.38);
}

.card-category {
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  justify-content: flex-start;
}

.personal-rating-chip {
  background: #f0f5ff;
  border-color: #dbe6ff;
  color: #243b6b;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #344054;
  font-size: 0.9rem;
  border: 1px solid #e8ebf0;
}

.chip.is-muted {
  opacity: 0.5;
}

.summary {
  margin: 0 0 14px;
  color: #3f4653;
  line-height: 1.5;
  font-size: 0.96rem;
}

.transit-row {
  margin-bottom: 12px;
}

.external-row {
  margin: -4px 0 14px;
}

.meta-details {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.meta-item {
  display: grid;
  gap: 6px;
}

.meta-item-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-item-value {
  width: fit-content;
}

.meta-text {
  color: #3f4653;
  font-size: 0.95rem;
}

.address-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f2f67;
  background: #eef3ff;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.address-btn:hover {
  background: #e6edff;
}

.external-btn {
  color: #2c3e66;
  background: #f3f6fd;
  border-color: #dee6f6;
}

.mta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cfd6de;
  color: #111827;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f3f5f8;
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.status-row-title {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
}

.card-status-select {
  min-width: 160px;
  height: 36px;
  border-radius: 10px;
  margin-left: auto;
}

.card-status-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.status-chip-btn {
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 0.82rem;
}

.status-chip-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.status-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-footer-actions {
  display: flex;
  gap: 8px;
}

.primary-link-btn,
.copy-btn {
  border: none;
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
  font: inherit;
  transition: 0.18s ease;
  text-decoration: none;
}

.primary-link-btn {
  background: #111827;
  color: white;
}


.primary-link-btn:hover {
  background: #1f2937;
}

.copy-btn {
  background: #eef2f6;
  color: #1f2937;
}

.copy-btn:hover {
  background: #e5eaf0;
}

.copy-btn,
.primary-link-btn,
.header-buttons .secondary-btn {
  min-width: 40px;
  min-height: 40px;
}

.header-buttons .secondary-btn {
  padding: 0 12px;
}

.icon-only-btn {
  width: 40px;
}

.map-card {
  position: sticky;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-section {
  min-height: 0;
}

.map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.map-locate-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 401;
  background: rgba(255, 255, 255, 0.94);
}

.map-legend {
  margin-top: 10px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.map-legend-title {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.map-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.map-legend-item {
  display: inline-flex;
}

.map-legend-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.map-legend-item.active .map-legend-btn {
  border-color: #111827;
  background: #fff;
}


.map-legend-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color, #64748b);
  border: 1px solid rgba(15, 23, 42, 0.25);
}

#map {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  filter: saturate(1.03) contrast(1.01);
}

.leaflet-container {
  background: linear-gradient(180deg, #dde9f8 0%, #eef3fb 100%);
}

.leaflet-control-zoom a {
  border-radius: 10px !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  border: 1px solid #dce3ef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.map-popup {
  display: grid;
  gap: 8px;
}

.map-popup-title {
  font-size: 1rem;
  line-height: 1.25;
}

.map-popup-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.map-popup-btn {
  height: 34px;
  min-height: 34px;
  justify-content: center;
  padding: 0 12px;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(17, 24, 39, 0.16);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-weight: 700;
}

.mobile-map-toggle {
  display: none;
}

.mobile-tabs {
  display: none;
}

.mobile-filter-summary {
  display: none;
}

.empty-state-card {
  border: 1px dashed #cfd8e5;
  background: #f9fbff;
  border-radius: 14px;
  padding: 18px;
}

.empty-state-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state-card p {
  margin: 0;
  color: #4b5563;
}

.empty-state-card.is-loading {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.68; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.page-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-info {
  color: var(--muted);
  font-size: 0.84rem;
}

.hidden {
  display: none;
}

.mobile-hidden {
  display: none;
}


@media (max-width: 1100px) {
  body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - var(--topbar-height));
    overflow-y: auto;
  }

  .sidebar-section {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .map-card {
    position: static;
    height: auto;
  }

  #map {
    height: 420px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    padding: 12px 14px 10px;
    align-items: center;
    gap: 10px;
    flex-direction: row;
  }

  .brand {
    display: none;
  }

  .brand h1 {
    font-size: 1.32rem;
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .brand p {
    font-size: 0.82rem;
    margin-top: 4px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .primary-filters {
    flex: 1;
    display: flex;
    gap: 6px;
  }

  .filters input[type="search"] {
    min-width: 0;
  }

  .header-buttons .secondary-btn {
    height: 34px;
    min-height: 34px;
    min-width: 34px;
    padding: 0 10px;
  }

  .header-buttons button[onclick='copySummary()'],
  .header-buttons button[onclick='toggleLang()'] {
    display: none;
  }

  .primary-filters input[type="search"] {
    height: 34px;
    font-size: 0.82rem;
    padding: 0 9px;
    border-radius: 10px;
  }

  .filters-toggle {
    display: inline-flex;
    order: -1;
  }

  .secondary-controls {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    max-height: none;
    opacity: 1;
    transform: translateY(100%);
    background: #fff;
    z-index: 2105;
    border-left: 0;
    box-shadow: none;
    transition: transform 0.2s ease;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }

  .secondary-controls.is-open {
    transform: translateY(0);
  }

  .secondary-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .secondary-controls-close {
    display: inline-flex;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
  }

  .filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2100;
  }

  .filters-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-panel-open {
    overflow: hidden;
  }

  .category-filter-group {
    width: 100%;
  }

  .category-filter-chip {
    font-size: 0.76rem;
    height: 30px;
    padding: 0 10px;
  }

  .status-filter-tab {
    height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .btn-icon {
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
  }

  .stats-strip {
    padding: 14px;
    overflow: visible;
  }

  .mobile-filters-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-filters-actions--cta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: sticky;
    bottom: 0;
    padding: 10px 0 0;
    background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0));
  }

  .mobile-filters-actions .secondary-btn {
    height: 38px;
    border-radius: 10px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .mobile-filters-actions .mobile-apply-btn {
    background: #111827;
    border-color: #111827;
    color: #fff;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 14px 10px;
  }

  .mobile-filter-summary {
    display: block;
    margin: 0 14px 10px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-tab {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 5px 8px;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .mobile-tab.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
  }

  .place-page .topbar-inner {
    padding: 12px 14px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .layout {
    padding: 16px;
    gap: 16px;
  }

  .place-page .brand h1 {
    font-size: 1.1rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .place-page .brand p {
    margin-top: 3px;
    font-size: 0.8rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .mobile-map-toggle {
    display: none;
    align-items: center;
  }

  #map {
    height: 360px;
    min-height: 320px;
  }
}

.place-layout {
  grid-template-columns: minmax(320px, 860px);
  justify-content: center;
  overflow: visible;
}

.place-main {
  display: grid;
  gap: 10px;
}

.place-nav-row {
  display: flex;
  justify-content: flex-start;
}

.place-breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 2px 4px;
}

.place-breadcrumbs a {
  color: #0f2f67;
  text-decoration: none;
}

.place-breadcrumbs a:hover {
  text-decoration: underline;
}

.place-card {
  border-radius: 18px;
}

.place-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef2f6, #e4e9f0);
  overflow: hidden;
}

.place-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-body {
  padding: 16px;
}

.place-page .card-topline {
  align-items: flex-start;
}

.place-page .card-category {
  padding-top: 0;
}

.place-page .meta-row {
  margin-top: 0;
  justify-content: flex-end;
}



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

  .map-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .place-page .topbar-inner {
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .place-page .topbar-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .place-page .filters,
  .place-page .header-buttons {
    width: auto;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
  }

  .place-page .filters select,
  .place-page .header-buttons button,
  .place-page .header-buttons a {
    width: auto;
    min-width: 0;
  }

  .place-page .brand p {
    display: none;
  }

  .stats-strip {
    padding: 0 14px 10px;
    gap: 6px;
  }

  .stat-number {
    font-size: 0.88rem;
  }

  .stat-filter-label {
    font-size: 0.76rem;
  }

  .layout {
    padding: 12px;
    gap: 12px;
  }

  .sidebar-header,
  .map-card-header {
    margin-bottom: 10px;
  }

  .card-title {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .card-category {
    font-size: 0.82rem;
  }

  .card-list {
    gap: 12px;
  }

  .card {
    border-radius: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .meta-row {
    margin: 10px 0;
    gap: 6px;
  }

  .chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .summary {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.44;
  }

  .transit-row {
    margin-bottom: 10px;
    font-size: 0.88rem;
  }

  .meta-details {
    gap: 8px;
    margin-bottom: 12px;
  }

  .meta-item-label {
    font-size: 0.76rem;
  }

  .address-btn {
    font-size: 0.86rem;
    padding: 6px 8px;
  }

  .status-row {
    gap: 6px;
    margin-bottom: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .status-actions-wrap {
    justify-content: flex-end;
  }

  .status-btn {
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .card-footer {
    gap: 8px;
    margin-top: 4px;
  }

  .status-label {
    font-size: 0.84rem;
  }

  .place-page .card-footer-actions {
    width: auto;
    display: flex;
    gap: 8px;
  }

  .place-page .copy-btn,
  .place-page .primary-link-btn {
    width: auto;
    text-align: left;
    min-height: 40px;
    padding: 0 10px;
  }

  .place-page .card-footer-actions {
    flex-wrap: wrap;
  }

  .icon-btn {
    gap: 0;
  }

  #map {
    height: 280px;
    min-height: 280px;
  }

}
