/* ==========================================================================
   carni-explore.css — interactive replica of carni.world/explore, embedded in
   the Carni showcase's browser frame (section 05). Markup is built by
   carni-explore.js; every class is prefixed `cx-` and scoped under `.cx`.

   Tokens mirror carni's client/src/index.css (oklch, DM Sans + Sora, red-600
   primary). The replica carries its own light/dark theme (data-cx-theme) so a
   visitor can flip the app's mode exactly like the real header toggle,
   independent of the showcase's page theme.
   ========================================================================== */

.cx {
  /* --- carni light theme (default; matches the desktop-explore screenshot) */
  --cx-bg: oklch(1 0 0);
  --cx-fg: oklch(0.15 0.01 30);
  --cx-card: oklch(1 0 0);
  --cx-secondary: oklch(0.96 0 0);
  --cx-muted: oklch(0.95 0 0);
  --cx-muted-fg: oklch(0.55 0.01 30);
  --cx-border: oklch(0.9 0 0);
  --cx-red: #dc2626;
  --cx-red-hover: #ef4444;
  --cx-red-text: #ef4444;
  --cx-red-soft: rgba(220, 38, 38, 0.05);
  --cx-red-tint: rgba(220, 38, 38, 0.15);
  --cx-red-line: rgba(220, 38, 38, 0.1);
  --cx-red-hover-line: rgba(220, 38, 38, 0.3);
  --cx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --cx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --cx-glass: rgba(255, 255, 255, 0.85);
  --cx-pill-bg: #fffaf3;
  --cx-pill-border: #e4e4e7;
  --cx-pill-fg: #09090b;
  --cx-scroll-thumb: rgba(0, 0, 0, 0.18);
  --cx-map-bg: #eef0f2;
  --cx-display: "Sora", "DM Sans", system-ui, sans-serif;
  --cx-body: "DM Sans", system-ui, -apple-system, sans-serif;

  container-type: inline-size;
  container-name: cx;
  position: relative;
  color-scheme: light;
  background: var(--cx-bg);
  color: var(--cx-fg);
  font-family: var(--cx-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}

.cx[data-cx-theme="dark"] {
  --cx-bg: oklch(0.13 0.01 30);
  --cx-fg: oklch(0.92 0.01 80);
  --cx-card: oklch(0.17 0.01 30);
  --cx-secondary: oklch(0.22 0.01 30);
  --cx-muted: oklch(0.22 0.01 30);
  --cx-muted-fg: oklch(0.6 0.01 80);
  --cx-border: oklch(0.28 0.01 30);
  --cx-red-soft: rgba(220, 38, 38, 0.1);
  --cx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --cx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --cx-glass: oklch(0.13 0.01 30 / 0.85);
  --cx-pill-bg: #09090b;
  --cx-pill-border: #27272a;
  --cx-pill-fg: #fafafa;
  --cx-scroll-thumb: rgba(255, 255, 255, 0.2);
  --cx-map-bg: #1b1b1f;
  color-scheme: dark;
}

.cx *,
.cx *::before,
.cx *::after {
  box-sizing: border-box;
}

/* :where() keeps these resets at zero extra specificity so component rules
   below (.cx-chip, .cx-nav-item, …) win by source order. */
.cx :where(button, input) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.cx :where(button) {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  text-align: inherit;
}

.cx button:focus-visible,
.cx a:focus-visible,
.cx input:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  outline-offset: 1px;
}

.cx svg {
  display: block;
  flex: none;
}

.cx .cx-i {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ------------------------------------------------------------- header */

.cx-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 4rem;
  border-bottom: 1px solid var(--cx-border);
  background: var(--cx-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.cx-header-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.cx-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.cx-logo-mark {
  display: grid;
  place-items: center;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: var(--cx-red);
  color: #fff;
}

.cx-logo-mark .cx-i {
  width: 1.25rem;
  height: 1.25rem;
}

.cx-logo-word {
  font-family: var(--cx-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--cx-fg);
}

.cx-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cx-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cx-muted-fg);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cx-nav-item:hover {
  color: var(--cx-fg);
  background: var(--cx-secondary);
}

.cx-nav-item.is-active {
  color: var(--cx-red-text);
  background: var(--cx-red-tint);
}

.cx-nav-item.is-active:hover {
  color: var(--cx-red-text);
}

.cx-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cx-theme-btn {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--cx-muted-fg);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cx-theme-btn:hover {
  color: var(--cx-fg);
  background: var(--cx-secondary);
}

.cx-theme-btn .cx-i-sun {
  display: none;
}

.cx[data-cx-theme="dark"] .cx-theme-btn .cx-i-sun {
  display: block;
}

.cx[data-cx-theme="dark"] .cx-theme-btn .cx-i-moon {
  display: none;
}

.cx-signin {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: var(--cx-red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cx-signin:hover {
  background: var(--cx-red-hover);
}

/* Small notice when a non-Explore nav item is clicked. */
.cx-nav-note {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--cx-border);
  background: var(--cx-card);
  color: var(--cx-muted-fg);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--cx-shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cx-nav-note.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------- page */

.cx-page {
  min-height: 100%;
  padding-bottom: 2rem;
}

.cx-container {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0 1.5rem 2rem;
}

.cx-hero {
  padding: 2rem 0;
}

.cx-title {
  margin: 0 0 0.5rem;
  font-family: var(--cx-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--cx-fg);
}

.cx-sub {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--cx-muted-fg);
}

/* --------------------------------------------------------------- search */

.cx-search-wrap {
  position: relative;
  z-index: 20;
  margin-bottom: 1rem;
}

.cx-search-card {
  border: 1px solid var(--cx-border);
  border-radius: 18px;
  background: var(--cx-card);
  padding: 0.75rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cx-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cx-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.cx-search-field .cx-i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cx-muted-fg);
  pointer-events: none;
}

.cx-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem 0 2.5rem;
  border: 1px solid var(--cx-border);
  border-radius: 14px;
  background: var(--cx-bg);
  color: var(--cx-fg);
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cx-input::placeholder {
  color: var(--cx-muted-fg);
}

.cx-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.cx-search-btn {
  flex: none;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 14px;
  background: var(--cx-red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cx-search-btn:hover {
  background: var(--cx-red-hover);
}

.cx-search-btn:active {
  transform: scale(0.97);
}

/* Category chips: pinned "All" + masked horizontal scroller (mirrors
   .category-chip-mask-row in carni). */
.cx-chips {
  --cx-pinned: 3.15rem;
  position: relative;
  margin-top: 0.75rem;
}

.cx-chip-pinned {
  position: absolute;
  left: 0;
  top: 0.5rem;
  z-index: 2;
}

.cx-chip-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
  cursor: grab;
  scrollbar-width: none;
  -webkit-clip-path: inset(0 0 0 0 round 9999px 0 0 9999px);
  clip-path: inset(0 0 0 0 round 9999px 0 0 9999px);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.cx-chip-scroller::-webkit-scrollbar {
  display: none;
}

.cx-chip-scroller.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.cx-chip-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  padding-left: var(--cx-pinned);
  padding-right: 0.5rem;
}

.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--cx-secondary);
  color: var(--cx-muted-fg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cx-chip .cx-i {
  width: 0.875rem;
  height: 0.875rem;
}

.cx-chip:hover {
  color: var(--cx-fg);
}

.cx-chip:active {
  transform: scale(0.94);
}

.cx-chip.is-active,
.cx-chip.is-active:hover {
  background: var(--cx-red);
  color: #fff;
}

.cx-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.25rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--cx-muted-fg);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.cx-status.is-on {
  opacity: 1;
  transform: none;
}

.cx-spin {
  animation: cx-spin 0.9s linear infinite;
  color: var(--cx-red-hover);
}

@keyframes cx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------- map + list */

.cx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cx-map-card {
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--cx-border);
  border-radius: 24px;
  background: var(--cx-card);
  box-shadow: var(--cx-shadow-sm);
}

.cx-map {
  width: 100%;
  height: 430px;
  background: var(--cx-map-bg);
  font-family: var(--cx-body);
}

/* "Search this area" pill — Google Maps style, top center. */
.cx-area-btn {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--cx-pill-border);
  background: var(--cx-pill-bg);
  color: var(--cx-pill-fg);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cx-area-btn .cx-i {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--cx-red);
}

.cx-area-btn.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.cx-area-btn:hover {
  box-shadow: 0 4px 10px rgba(60, 64, 67, 0.26);
}

/* Touch hint (one-finger touch on the map): pan with two fingers. */
.cx-touch-hint {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.32);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cx-touch-hint.is-on {
  opacity: 1;
}

.cx-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cx-scroll-thumb) transparent;
}

.cx-list::-webkit-scrollbar {
  width: 6px;
}

.cx-list::-webkit-scrollbar-thumb {
  background: var(--cx-scroll-thumb);
  border-radius: 999px;
}

.cx-list > * + * {
  margin-top: 0.75rem;
}

.cx-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cx-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cx-count {
  margin: 0;
  font-family: var(--cx-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cx-fg);
}

.cx-updating {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--cx-secondary);
  color: var(--cx-muted-fg);
  font-size: 11px;
  font-weight: 600;
}

.cx-updating .cx-i {
  width: 0.75rem;
  height: 0.75rem;
}

.cx.is-loading .cx-updating {
  display: inline-flex;
}

/* --- result card (mirrors motion.button.interactive-card in Explore.tsx) */

.cx-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--cx-border);
  border-radius: 0.75rem;
  background: var(--cx-card);
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cx-card:hover {
  border-color: var(--cx-red-hover-line);
  box-shadow: var(--cx-shadow-sm);
}

.cx-card:active {
  transform: scale(0.985);
}

.cx-card.is-selected {
  border-color: var(--cx-red);
  background: var(--cx-red-soft);
  box-shadow: var(--cx-shadow-md);
}

.cx-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cx-card-pin {
  flex: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--cx-secondary);
  color: var(--cx-muted-fg);
}

.cx-card-pin .cx-i {
  width: 1.25rem;
  height: 1.25rem;
}

.cx-card.is-selected .cx-card-pin {
  background: rgba(220, 38, 38, 0.2);
  color: var(--cx-red-hover);
}

.cx-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cx-card-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cx-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-card-addr {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cx-muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cx-card-sum {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--cx-muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cx-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--cx-muted-fg);
}

.cx-card-meta strong {
  font-weight: 500;
  color: var(--cx-fg);
}

.cx-card-details {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cx-border);
}

.cx-card.is-selected .cx-card-details {
  display: block;
  animation: cx-details-in 0.22s ease;
}

@keyframes cx-details-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cx-fit {
  padding: 0.625rem;
  border-radius: 0.5rem;
  background: var(--cx-red-soft);
  border: 1px solid var(--cx-red-line);
}

.cx-fit-label {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--cx-red);
}

.cx-fit-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.625;
  color: var(--cx-muted-fg);
}

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

.cx-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--cx-secondary);
  color: var(--cx-fg);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.cx-action:hover {
  filter: brightness(0.96);
}

.cx-action .cx-i {
  width: 0.75rem;
  height: 0.75rem;
}

.cx-action-primary {
  background: var(--cx-red);
  color: #fff;
}

.cx-action-primary:hover {
  filter: none;
  background: var(--cx-red-hover);
}

/* --- empty state */

.cx-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--cx-muted-fg);
}

.cx-empty .cx-i {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  opacity: 0.3;
}

.cx-empty p {
  margin: 0;
  font-size: 0.875rem;
}

.cx-empty .cx-empty-sub {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.cx-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cx-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--cx-border);
  background: var(--cx-bg);
  color: var(--cx-fg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.cx-empty-btn:hover {
  background: var(--cx-secondary);
}

.cx-empty-btn.cx-empty-primary {
  border-color: transparent;
  background: var(--cx-red);
  color: #fff;
}

.cx-empty-btn.cx-empty-primary:hover {
  background: var(--cx-red-hover);
}

.cx-empty-btn .cx-i {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------- map markers */

.cx-marker {
  background: none;
  border: 0;
}

.cx-marker-in {
  position: relative;
  width: 28px;
  height: 36px;
  transform-origin: 50% 100%;
  transition: transform 0.18s ease, filter 0.18s ease;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
  will-change: transform;
}

.cx-marker-in svg {
  width: 100%;
  height: 100%;
}

.cx-marker:hover .cx-marker-in {
  transform: scale(1.08);
}

.cx-marker.is-selected .cx-marker-in {
  transform: scale(1.3);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

/* Leaflet chrome tuned to the Carni look. */
.cx .leaflet-container {
  font-family: var(--cx-body);
  background: var(--cx-map-bg);
  outline: none;
}

.cx .leaflet-control-zoom {
  border: 1px solid var(--cx-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.2) !important;
}

.cx .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 18px;
  font-weight: 500;
  color: var(--cx-fg) !important;
  background: var(--cx-card) !important;
  border-bottom-color: var(--cx-border) !important;
}

.cx .leaflet-control-zoom a:hover {
  background: var(--cx-secondary) !important;
}

.cx .leaflet-control-zoom a.leaflet-disabled {
  color: var(--cx-muted-fg) !important;
  opacity: 0.5;
}

.cx .leaflet-control-attribution {
  padding: 2px 6px;
  border-radius: 8px 0 0 0;
  background: var(--cx-glass) !important;
  color: var(--cx-muted-fg) !important;
  font-size: 10px;
  line-height: 1.4;
}

.cx .leaflet-control-attribution a {
  color: var(--cx-muted-fg) !important;
  text-decoration: none;
}

.cx .leaflet-control-attribution a:hover {
  text-decoration: underline;
}

.cx .leaflet-bar a,
.cx .leaflet-bar a:hover {
  border-bottom: 1px solid var(--cx-border);
}

.cx .leaflet-bar a:last-child {
  border-bottom: none;
}

.cx[data-cx-theme="dark"] .leaflet-layer {
  filter: none;
}

/* Tiles fade in — Leaflet does this itself, but the first paint from a light
   frame background needs the map bg to match. */
.cx .leaflet-tile-pane {
  filter: saturate(0.98);
}

/* -------------------------------------------------------- responsive */

@container cx (min-width: 900px) {
  .cx-grid {
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
  }

  .cx-map {
    height: 580px;
  }

  .cx-list {
    max-height: 580px;
  }
}

@container cx (max-width: 899px) {
  .cx-list {
    max-height: 420px;
  }
}

@container cx (max-width: 820px) {
  .cx-nav {
    display: none;
  }
}

@container cx (max-width: 640px) {
  .cx-header-in,
  .cx-container {
    padding-inline: 1rem;
  }

  .cx-hero {
    padding: 1.5rem 0;
  }

  .cx-title {
    font-size: 1.5rem;
  }

  .cx-sub {
    font-size: 0.875rem;
  }

  .cx-map {
    height: 380px;
  }

  .cx-card {
    padding: 0.75rem;
  }

  .cx-card-pin .cx-i {
    width: 1rem;
    height: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-card,
  .cx-chip,
  .cx-marker-in,
  .cx-area-btn,
  .cx-status {
    transition: none;
  }

  .cx-card.is-selected .cx-card-details {
    animation: none;
  }
}
