:root {
  color-scheme: dark;
  --navy: #091f2d;
  --panel: #112e3d;
  --ink: #f3f1e9;
  --muted: #bbbbbb;
  --gold: #e6c992;
  --line: #ffffff20;
  --inv: 1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--navy);
  color: var(--ink);
}

button,
input {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 12px;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button:hover {
  background: #ffffff0c;
}

button[aria-pressed="true"] {
  background: #e6c99220;
  border-color: #e6c99290;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* App Layout */
.app {
  --sidebar-w: min(330px, 88vw);
  --offcanvas-w: min(650px, 100%);
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  touch-action: manipulation;
}

header,
aside,
.legend-top,
.legend-bottom,
.legend-tools,
.zoom-tools,
.selected-card,
.development,
.property,
.lightbox,
summary,
label {
  touch-action: manipulation;
}

.legend-content,
.development-panel,
.property-panel,
.development-copy-wrap {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

header {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: #080808;
}

.brand {
  min-width: 0;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.subtitle {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.header-actions span {
  color: var(--muted);
  font-size: 13px;
}

/* Sidebar / Legend */
aside {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  z-index: 45;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ffffff1a;
  min-height: 0;
  min-width: 0;
  background: #00000099;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 10px 0 36px #0006;
}

.legend-top {
  padding: 20px 18px 14px;
}

.legend-top h1 {
  font: 25px "Cormorant Garamond", Georgia, serif;
  margin: 0 0 5px;
}

.legend-top p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 15px;
}

.search {
  width: 100%;
  background: #1414148c;
  color: var(--ink);
  border: 1px solid #ffffff30;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 16px;
}

.search::placeholder {
  color: #a8bcc7;
}

.legend-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.legend-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  min-height: 0;
  padding: 2px 0;
  background: none;
  color: var(--gold);
  font-size: 13px;
  opacity: 0.55;
}

.legend-link span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legend-link svg {
  flex: none;
}

.legend-link:hover {
  background: none;
  opacity: 1;
}

.legend-content {
  overflow: auto;
  flex: 1;
  padding: 0 10px 12px;
  scrollbar-color: #ffffff55 transparent;
}

details {
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  cursor: pointer;
  padding: 8px;
}

summary::-webkit-details-marker {
  display: none;
}

.chevron {
  display: inline-flex;
  width: 15px;
  justify-content: center;
  flex: none;
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.2s;
}

details[open] .chevron {
  transform: rotate(90deg);
}

.cat-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--category);
}

.count {
  font-size: 12px;
  color: #b8ccd5;
}

.cat-check {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid #96a9b1;
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.cat-check:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.cat-check:checked:after {
  content: '✓';
  display: block;
  color: #142d3b;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
}

.entries {
  display: grid;
  gap: 2px;
  padding: 0 4px 10px 48px;
}

.entry {
  text-align: left;
  border: 0;
  border-radius: 4px;
  min-height: 36px;
  padding: 7px 10px;
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 14px;
}

.entry.active {
  background: #e6c9921c;
  color: #ffe1aa;
}

.legend-bottom {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legend-bottom p {
  margin: 0;
}

.app.sidebar-hidden aside {
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  border-right-width: 0;
}

/* Stage & Map Canvas */
.stage {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  overflow: hidden;
  background: #074155;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 0;
  outline-offset: -4px;
}

.stage.is-flying {
  cursor: progress;
}

.ocean-surround {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.world {
  position: absolute;
  width: 2000px;
  height: 1556px;
  transform-origin: 0 0;
  user-select: none;
  will-change: transform;
  contain: strict;
}

.art {
  position: absolute;
  inset: 0;
  width: 2000px;
  height: 1556px;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  width: 2000px;
  height: 1556px;
  overflow: visible;
  pointer-events: none;
}

.overlay.ocean {
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.ocean image {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.routes path {
  fill: none;
  stroke: #ffe4b0;
  stroke-width: 2;
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.routes path.selected {
  opacity: 0.95;
  stroke-width: 3;
  filter: drop-shadow(0 0 3px #173332);
}

/* Map Pins */
.pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.pin {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  width: 32px;
  height: 32px;
  padding: 0;
  min-height: 0;
  border: 0;
  margin: -16px 0 0 -16px;
  display: grid;
  place-items: center;
  background: transparent !important;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  pointer-events: auto;
}

.pin:before {
  content: '';
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--category);
  border: 1.5px solid #092432;
  box-shadow: 0 0 0 1px #ffffffb0, 0 1px 5px #0008;
  transition: width 0.15s, height 0.15s;
}

.pin:hover,
.pin:focus-visible {
  z-index: 20;
}

.pin:hover:before,
.pin:focus-visible:before {
  width: 21px;
  height: 21px;
  z-index: 21;
}

.pin.selected {
  z-index: 30;
}

.pin.selected:before {
  width: 21px;
  height: 21px;
  z-index: 21;
}

.pin.selected:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px #eddbad77;
}

.pin.arrived:after {
  animation: arrival-ring 1.25s ease-out;
}

.pin.route-pin:before {
  width: 10.5px;
  height: 10.5px;
  border-radius: 1px;
  transform: rotate(45deg);
}

.pin-label {
  position: absolute;
  z-index: 10;
  left: 27px;
  top: 2px;
  white-space: nowrap;
  background: #08202fea;
  border: 1px solid #d9c99e80;
  box-shadow: 0 2px 8px #0005;
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  display: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.pin.label-left .pin-label {
  left: auto;
  right: 27px;
}

.pin:hover .pin-label,
.pin:focus-visible .pin-label {
  display: block;
  z-index: 25;
}

.pin.selected .pin-label {
  display: block;
  z-index: 35;
}

.labels-on .pin-label {
  display: block;
  font-size: 11px;
}

/* Floating Controls & Overlays */
.zoom-tools {
  position: absolute;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 6px;
  z-index: 40;
}

.zoom-tools button {
  background: #0b2537ed;
  border-color: #ffffff45;
  box-shadow: 0 2px 12px #0002;
  display: grid;
  place-items: center;
  font-size: 21px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.12s ease;
}

.zoom-tools button:active:not(:disabled) {
  background: #113854;
  transform: scale(0.92);
}

.zoom-tools svg {
  display: block;
}

.zoom-label {
  background: #0b2537ed;
  padding: 4px;
  text-align: center;
  font-size: 12px;
  border-radius: 3px;
}

.show-sidebar {
  position: absolute;
  left: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 41;
  width: 43px;
  min-height: 43px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #0b2537ed;
  border-color: #ffffff45;
  box-shadow: 0 2px 12px #0002;
}

.show-sidebar svg {
  display: block;
}

.journey {
  position: absolute;
  top: 24px;
  left: calc(var(--sidebar-w) + 24px);
  z-index: 34;
  max-width: calc(100% - var(--sidebar-w) - 250px);
  padding: 8px 13px;
  background: #082432dc;
  border: 1px solid #e6c99265;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  color: #f2dfb8;
  font-size: 12px;
  letter-spacing: 0.6px;
  pointer-events: none;
}

.journey:before {
  content: '◈';
  margin-right: 8px;
}

.app.sidebar-hidden .journey {
  left: 24px;
  max-width: calc(100% - 250px);
}

.empty-filter {
  position: absolute;
  top: 70px;
  right: 18px;
  max-width: 260px;
  background: #0b2537ed;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  z-index: 40;
}

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #092432;
  z-index: 50;
}

.no-results {
  font-size: 14px;
  padding: 15px;
  color: var(--muted);
}

/* Selected Place Card */
.selected-card {
  position: absolute;
  left: calc(var(--sidebar-w) + 18px);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: min(370px, calc(100% - var(--sidebar-w) - 100px));
  z-index: 35;
  background: #00000099;
  backdrop-filter: blur(8px);
  border: 1px solid #ddc49699;
  border-radius: 9px;
  box-shadow: 0 10px 35px #0006;
  padding: 15px 43px 15px 17px;
}

.selected-card[hidden] {
  display: none !important;
}

.selected-card.is-open {
  animation: cardSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.selected-card.is-closing {
  animation: cardSlideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

.selected-card h2 {
  font: 23px/1.2 "Cormorant Garamond", Georgia, serif;
  margin: 5px 0 8px;
}

.selected-category {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.selected-card p {
  font-size: 12px;
  margin: 5px 0;
  color: #ffffff;
}

.selected-card .close {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 0;
  width: 30px;
  min-height: 30px;
  border: 0;
  font-size: 22px;
}

.app.sidebar-hidden .selected-card {
  left: 74px;
  width: min(370px, calc(100% - 100px));
}

/* Offcanvas Drawer Animations */
@keyframes drawerSlideIn {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes drawerSlideOut {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes arrival-ring {
  0% {
    transform: scale(1.9);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Development Offcanvas */
.development {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--offcanvas-w, min(650px, 100%));
  z-index: 70;
  pointer-events: none;
  will-change: transform;
}

.development[hidden] {
  display: none !important;
}

.development.is-open {
  animation: drawerSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.development.is-closing {
  animation: drawerSlideOut 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.development.has-child .development-panel {
  pointer-events: none;
}

.development-panel {
  pointer-events: auto;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: linear-gradient(
    to bottom,
    #0c0c0ce6 0px,
    #0c0c0ce6 520px,
    #0c0c0c 600px,
    #0c0c0c 100%
  );
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-left: 1px solid #ffffff1a;
  box-shadow: -16px 0 40px #0006;
  padding: 28px 28px 48px;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), filter 0.36s ease;
}

.stage.is-panning .development-panel,
.stage.is-flying .development-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #0c0c0cfa;
}

.stage.is-panning aside,
.stage.is-flying aside {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #000000bb;
}

.development-panel h2 {
  font: 32px/1.15 "Cormorant Garamond", Georgia, serif;
  margin: 8px 48px 16px 0;
}

.development-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 26px;
  border: 0;
}

.development-copy-wrap {
  position: relative;
}

.development-copy {
  font-size: 15px;
  line-height: 1.55;
  color: #e7e2d6;
}

.development-copy p {
  margin: 0 0 12px;
}

.development-copy-wrap.is-clipped .development-copy {
  max-height: 250px;
  overflow: hidden;
}

.development-fade {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #0c0c0c);
  pointer-events: none;
}

.development-copy-wrap.is-clipped .development-fade {
  display: block;
}

.development-expand {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold);
  border: 1px solid #e6c99244;
  border-radius: 6px;
  background: #ffffff06;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.development-expand:hover {
  background: #e6c99218;
  border-color: var(--gold);
  color: #f7ede0;
}

.development-status {
  color: var(--muted);
  margin: 24px 0;
}

/* Gallery */
.development-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 132px 132px;
  gap: 8px;
  margin: 0 0 22px;
}

.development-gallery[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 250px;
}

.development-gallery[data-count="2"] {
  grid-template-rows: 250px;
}

.development-gallery[data-count="2"] .development-photo,
.development-gallery[data-count="3"] .development-photo:first-child {
  grid-row: 1 / span 2;
}

.development-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.development-photo:hover {
  background: #000;
}

.development-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.development-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0009;
  color: #fff;
  font: 600 22px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.02em;
}

/* Skeleton Loading States */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  animation: skeletonFadeIn 0.22s ease;
}

.skeleton-wrap[hidden] {
  display: none !important;
}

@keyframes skeletonFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.skeleton-box {
  background: linear-gradient(
    90deg,
    #ffffff0a 0%,
    #ffffff1c 50%,
    #ffffff0a 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s infinite ease-in-out;
  border-radius: 6px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 132px 132px;
  gap: 8px;
  margin: 0 0 22px;
}

.skeleton-gallery .skeleton-photo:first-child {
  grid-row: 1 / span 2;
}

.skeleton-photo {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.skeleton-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 20px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.skeleton-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #141414a6;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
}

.skeleton-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-listings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.skeleton-listings[hidden] {
  display: none !important;
}

.skeleton-listing-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #070707;
  border: 1px solid #ffffff14;
}

.skeleton-card-thumb {
  width: 100%;
  height: 148px;
  border-radius: 0;
}

.skeleton-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Development Listings */
.development-listings {
  margin-top: 28px;
}

.development-listings h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font: 12px/1 system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#developmentListingCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.listing-card {
  display: block;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #070707;
  color: inherit;
  text-decoration: none;
}

button.listing-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 0;
  border: 1px solid #ffffff14;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

button.listing-card:hover {
  border-color: var(--gold);
  background: #0e0e0e;
  transform: translateY(-2px);
}

.listing-card img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: #111;
}

.listing-body {
  padding: 12px 12px 14px;
}

.listing-type {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.listing-price {
  margin: 0;
  font: 600 17px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
}

.listing-mxn {
  margin: 4px 0 12px;
  color: #c5c1b6;
}

.listing-card h4 {
  margin: 0 0 12px;
  font: 18px/1.3 system-ui, sans-serif;
  font-weight: 650;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}

.listing-meta b {
  color: var(--gold);
  font-weight: 650;
}

/* Property Offcanvas */
.property {
  position: fixed;
  inset: 0;
  width: 100%;
  z-index: 80;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  animation: none !important;
}

.property[hidden] {
  display: none !important;
}

.property-panel {
  position: relative;
  width: var(--offcanvas-w, min(650px, 100%));
  height: 100%;
  pointer-events: auto;
  box-shadow: -28px 0 60px #000d, -1px 0 0 #ffffff1f;
  will-change: transform;
}

.property.is-open .property-panel {
  animation: drawerSlideIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.property.is-closing .property-panel {
  animation: drawerSlideOut 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.property-price {
  font: 600 22px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  margin: 0 0 16px;
}

.property-price-mxn {
  font-weight: 400;
  color: var(--muted);
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #141414a6;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
}

.property-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.property-meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.property-meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.property-actions {
  margin-top: 28px;
}

.property-website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 50%;
  min-height: 44px;
  padding: 12px 20px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.03em;
  color: #0c0c0c;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px #00000040;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.property-website-btn:hover {
  background: #f0d5a3;
  border-color: #f0d5a3;
  color: #0c0c0c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px #00000060;
}

.property-website-btn:active {
  transform: translateY(0);
}

.property-website-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Development Meta (no card, no border, no padding) */
.development-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  background: none;
  border: none;
}

.development-meta-prices,
.development-meta-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}

.development-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.development-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.development-meta-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.development-meta-value {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}

.development-meta-price {
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
}

.development-description:empty {
  display: none;
}

.development-panel .skeleton-meta {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-meta-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

@media (max-width: 480px) {
  .development-meta-prices,
  .development-meta-top,
  .skeleton-meta-prices {
    gap: 12px 16px;
  }
  .development-meta-price {
    font-size: 16px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  touch-action: none;
  overscroll-behavior: none;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.lightbox-stage:active {
  cursor: grabbing;
}

.lightbox-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.lightbox-slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 52px 12px 72px;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: #0008;
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  min-height: 64px;
  padding: 0;
  font-size: 34px;
  line-height: 1;
  border: 0;
  background: #0006;
  color: #fff;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  color: #fff;
  font: 500 13px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* Settings Menu */
.settings {
  position: relative;
}

.icon-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.icon-btn svg {
  display: block;
}

.icon-btn[aria-expanded="true"] {
  background: #ffffff14;
  border-color: #ffffff55;
}

.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 248px;
  padding: 6px;
  background: #161616;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  box-shadow: 0 12px 32px #000a;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: #3a3a3a;
  border: 1px solid #ffffff2e;
}

.switch-track:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3f1e9;
}

.switch input:checked + .switch-track {
  background: #e6c992;
  border-color: #e6c992;
}

.switch input:checked + .switch-track:before {
  transform: translateX(18px);
  background: #1a1a1a;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Responsive & Accessibility Media Queries */
@media (max-width: 900px) {
  .logo {
    height: 34px;
  }
  header {
    padding: 12px 16px;
  }
  .legend-top {
    padding: 17px 14px;
  }
}

@media (max-width: 650px) {
  .journey {
    top: 62px;
    left: 12px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app {
    --sidebar-w: min(330px, 90vw);
    min-height: 0;
  }
  .subtitle {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .logo {
    height: 28px;
  }
  header {
    padding: 10px 12px;
    gap: 9px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions button {
    font-size: 12px;
    padding: 7px 9px;
    min-height: 37px;
  }
  .header-actions .icon-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .show-sidebar {
    left: 10px;
    bottom: 14px;
  }
  .zoom-tools {
    right: 10px;
    bottom: 14px;
  }
  .app.sidebar-hidden .selected-card {
    left: 64px;
  }
  .selected-card {
    left: 10px;
    bottom: 42px;
  }
  .selected-card h2 {
    font-size: 20px;
  }
  .legend-bottom {
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .development.is-open,
  .development.is-closing,
  .property.is-open .property-panel,
  .property.is-closing .property-panel,
  .selected-card.is-open,
  .selected-card.is-closing,
  .development.has-child .development-panel,
  .skeleton-box {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
