/* Classic 66 world/map enhancement. Loaded after the existing play stylesheet. */
.c66-world-card {
  width: min(1380px, 100%);
  height: min(900px, 100%);
  overflow: hidden;
}

.c66-world-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(340px, auto) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0 0;
}

.c66-world-search input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--cream);
  background: #111a16;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
}

.c66-world-search input:focus {
  border-color: rgba(221, 255, 56, .72);
  box-shadow: 0 0 0 3px rgba(221, 255, 56, .1);
}

.c66-world-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.c66-filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  color: rgba(244, 241, 230, .72);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 11px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.c66-filter:hover,
.c66-filter:focus-visible { color: var(--cream); border-color: rgba(255, 255, 255, .35); }
.c66-filter.is-active { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.c66-filter--sites.is-active { color: var(--cream); background: #26352d; border-color: #7fa08c; }

.c66-map-provenance {
  max-width: 180px;
  color: rgba(244, 241, 230, .58);
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
}

.c66-world-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: rgba(244, 241, 230, .62);
  font-size: 11px;
}

.c66-world-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.c66-world-legend__item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 1px #071008;
}
.c66-world-legend__website i { background: transparent; box-shadow: 0 0 0 2px #fff; }

.c66-world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
}

.c66-map-stage {
  position: relative;
  align-self: center;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1400 / 1100;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  background: #aeb9a3;
}

.c66-map-stage #bigmap-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.c66-business-markers {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: manipulation;
}
.c66-business-markers.is-over-marker { cursor: pointer; }

/* A low-cost screen-space streetscape silhouette. It is deliberately labelled
   illustrative in the toolbar because the bundled OSM export has no surveyed
   streetlight/fence coordinates. */
.c66-streetscape {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  overflow: hidden;
  opacity: .42;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 11, 9, .5), transparent);
}
.c66-streetscape__fence {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 10px;
  border-top: 2px solid rgba(239, 229, 197, .55);
  border-bottom: 1px solid rgba(239, 229, 197, .38);
  background: repeating-linear-gradient(105deg, transparent 0 16px, rgba(239, 229, 197, .4) 17px 19px, transparent 20px 28px);
}
.c66-streetscape__lamp {
  --lamp-scale: 1;
  position: absolute;
  bottom: 3px;
  width: 2px;
  height: calc(27px * var(--lamp-scale));
  background: rgba(7, 11, 9, .78);
  transform-origin: bottom;
}
.c66-streetscape__lamp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 2px;
  background: rgba(7, 11, 9, .78);
}
.c66-streetscape__lamp::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 7px;
  width: 5px;
  height: 4px;
  border-radius: 1px 1px 4px 4px;
  background: rgba(255, 225, 149, .92);
  box-shadow: 0 1px 7px rgba(255, 216, 105, .65);
}

.c66-directory {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(7, 11, 9, .58);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.c66-directory__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px 9px;
  border-bottom: 1px solid var(--line);
}
.c66-directory__head h3 { margin: 0; font: 800 19px Barlow Condensed, sans-serif; }
.c66-directory__count { color: var(--dim); font-size: 11px; }
.c66-directory__list { min-height: 0; overflow: auto; padding: 5px; }
.c66-directory__empty,
.c66-directory__more { margin: 0; padding: 15px; color: var(--dim); font-size: 12px; }

.c66-business-row {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  border-radius: 7px;
}
.c66-business-row:hover,
.c66-business-row.is-selected { background: rgba(255, 255, 255, .06); }
.c66-business-row.is-selected { box-shadow: inset 3px 0 var(--acid); }
.c66-business-row__choose {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.c66-business-row__copy { display: block; min-width: 0; }
.c66-business-row__copy strong,
.c66-business-row__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c66-business-row__copy strong { font-size: 12px; }
.c66-business-row__copy small { margin-top: 2px; color: var(--dim); font-size: 10px; text-transform: capitalize; }
.c66-business-row__site { flex: 0 0 auto; margin-right: 7px; font-size: 10px; }

.c66-sign {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 42px;
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(160deg, #25322b, #111713);
  border: 2px solid #d5c7a4;
  border-radius: 4px;
  box-shadow: 0 3px 0 #463f31, 0 5px 12px rgba(0, 0, 0, .28);
  font: 900 16px Barlow Condensed, sans-serif;
  letter-spacing: .06em;
}
.c66-sign::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -8px;
  width: 2px;
  height: 9px;
  background: #95886a;
  box-shadow: -43px 0 #95886a;
}
.c66-sign img { display: none; width: 24px; height: 24px; object-fit: contain; border-radius: 3px; }
.c66-sign.has-icon img { display: block; }
.c66-sign.has-icon .c66-sign__initials { display: none; }
.c66-sign--compact { width: 36px; height: 28px; border-width: 1px; font-size: 12px; box-shadow: 0 2px 0 #463f31; }
.c66-sign--compact img { width: 18px; height: 18px; }
.c66-sign--compact::after { display: none; }

.c66-business-detail {
  margin: 8px;
  padding: 12px;
  background: #111a16;
  border: 1px solid rgba(221, 255, 56, .28);
  border-radius: 9px;
}
.c66-business-detail__top { position: relative; display: flex; gap: 11px; align-items: center; padding-right: 22px; }
.c66-business-detail__top h4 { margin: 2px 0 0; font: 900 21px/1 Barlow Condensed, sans-serif; }
.c66-business-detail__category { color: var(--acid); font: 700 10px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.c66-business-detail__close {
  position: absolute;
  top: -8px;
  right: -7px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--dim);
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}
.c66-business-detail__facts { display: grid; grid-template-columns: 58px 1fr; gap: 5px 8px; margin: 12px 0 0; }
.c66-business-detail__facts dt { color: var(--dim); font-size: 10px; }
.c66-business-detail__facts dd { margin: 0; font-size: 11px; text-transform: capitalize; }
.c66-business-detail__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.c66-site-link,
.c66-detail-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  border-radius: 7px;
  font: 800 11px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.c66-detail-action { color: var(--cream); background: #26352d; border: 1px solid rgba(255, 255, 255, .14); }
.c66-no-site { color: var(--dim); font-size: 10px; }
.c66-business-detail__source { margin: 9px 0 0; color: rgba(244, 241, 230, .48); font-size: 9px; line-height: 1.35; }

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

@media (max-width: 1050px) {
  .c66-world-controls { grid-template-columns: minmax(200px, .8fr) 1.2fr; }
  .c66-map-provenance { display: none; }
  .c66-world-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 760px) {
  .bigmap { padding: 8px; }
  .c66-world-card { padding: 10px; height: 100%; }
  .c66-world-card > header { min-height: 36px; }
  .c66-world-card > header .legend { display: none; }
  .c66-world-controls { grid-template-columns: 1fr; gap: 7px; }
  .c66-world-legend { display: none; }
  .c66-world-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(160px, 1fr); overflow: auto; }
  .c66-map-stage { width: 100%; max-height: none; }
  .c66-directory { min-height: 155px; max-height: 38vh; }
  .c66-world-card > .note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .c66-business-detail { scroll-behavior: auto; }
}
