:root {
  --bg: #f4f0e8;
  --panel: #fffaf2;
  --ink: #171413;
  --muted: rgba(23, 20, 19, 0.62);
  --line: rgba(23, 20, 19, 0.2);
  --line-strong: rgba(23, 20, 19, 0.54);
  --accent: #e8df70;
  --dark: #211d1f;
  --good: #1c6f42;
  --gap: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: var(--dark);
  color: #fffaf2;
}

.admin-page {
  --admin-header-height: 64px;
}

.admin-page .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--admin-header-height);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.82;
  text-decoration: none;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.page {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 22px 14px 34px;
}

.admin-page .page {
  padding-top: calc(var(--admin-header-height) + 22px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.preview-column {
  position: sticky;
  top: 18px;
  align-self: start;
}

.admin-page .preview-column {
  top: calc(var(--admin-header-height) + 18px);
}

.panel,
.listing-card,
.gate {
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.panel {
  padding: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.listing-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 86px);
}

.admin-title {
  font-size: clamp(34px, 4vw, 56px);
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline: none;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.button.primary,
button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.media-fields,
.map-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.video-link-field {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.media-fields h2,
.map-fields h2,
.floor-plan-fields h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.map-picker {
  display: grid;
  gap: 10px;
}

.map-picker-status {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.map-picker-status.is-visible {
  display: block;
}

.map-picker-map {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d7d1c8;
}

.map-picker-map--loading,
.map-picker-map--fallback {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.map-picker-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.mapboxgl-ctrl-geocoder {
  width: min(360px, calc(100vw - 92px)) !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "Courier New", Courier, monospace !important;
}

.mapboxgl-ctrl-geocoder input {
  height: 44px !important;
  padding: 10px 40px !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 14px !important;
}

.mapboxgl-ctrl-geocoder--suggestion-title,
.mapboxgl-ctrl-geocoder--suggestion-address {
  font-family: "Courier New", Courier, monospace !important;
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl {
  margin: 0 10px 10px 0;
}

.photo-upload-zone {
  border: 1px solid rgba(23, 20, 19, 0.24);
  background: rgba(255, 255, 255, 0.72);
  transition: background 120ms ease, border-color 120ms ease;
}

.photo-upload-zone.is-dragging {
  border-color: var(--ink);
  background: rgba(232, 223, 112, 0.18);
}

.photo-upload {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 24px;
  text-align: center;
  cursor: pointer;
}

.photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 26px;
  line-height: 1;
}

.photo-upload strong,
.photo-upload span {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.photo-upload span:not(.photo-upload-icon) {
  color: var(--muted);
}

.photo-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.floor-plan-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.floor-plan-list {
  margin-top: 14px;
}

.floor-plan-preview-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  border: 1px solid rgba(23, 20, 19, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.floor-plan-preview-media img,
.floor-plan-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: #d7d1c8;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.photo-list-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px 14px;
  align-items: start;
  border: 1px solid rgba(23, 20, 19, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.photo-list-item.is-dragging {
  opacity: 0.62;
}

.photo-list-item.is-drop-target {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: rgba(232, 223, 112, 0.16);
}

.photo-order-tools {
  display: grid;
  gap: 10px;
  width: 44px;
}

.photo-step-buttons {
  display: grid;
  gap: 8px;
}

.photo-drag-handle,
.photo-order-button,
.photo-delete-button {
  width: 44px;
  min-width: 44px;
  border: 1px solid rgba(23, 20, 19, 0.2);
  background: #fffaf2;
  color: var(--ink);
  padding: 0;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.photo-drag-handle:hover,
.photo-order-button:hover,
.photo-delete-button:hover {
  border-color: rgba(23, 20, 19, 0.44);
  background: #ffffff;
}

.photo-drag-handle:focus-visible,
.photo-order-button:focus-visible,
.photo-delete-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.photo-drag-handle {
  height: 66px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 17px;
  letter-spacing: 0;
}

.photo-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.photo-order-button,
.photo-delete-button {
  height: 44px;
  cursor: pointer;
  font-size: 15px;
}

.photo-delete-button {
  grid-column: 1;
  grid-row: 2;
  font-size: 24px;
}

.floor-plan-delete-button {
  grid-column: 1;
  grid-row: 1;
}

.photo-list-preview {
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #d7d1c8;
}

.photo-list-preview img,
.photo-list-preview .photo-list-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #d7d1c8;
}

.photo-list-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.photo-caption-bar {
  grid-column: 2;
  min-height: 58px;
  height: 58px;
  resize: vertical;
  padding: 12px 14px;
}

.preview-shell {
  --listing-ink: #0a0a0a;
  --listing-paper: #ffffff;
  --listing-soft: #f4f4f1;
  --listing-soft-2: #e9e9e4;
  --listing-muted: #666666;
  --listing-line: #d7d7d0;
  --listing-radius: 8px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--listing-soft);
  color: var(--listing-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.preview-column .preview-shell {
  height: calc(100vh - 36px);
  min-height: 560px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--listing-line);
}

.preview-shell figure {
  margin: 0;
}

.preview-shell .button,
.preview-shell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--listing-ink);
  border-radius: 999px;
  padding: 0 17px;
  background: var(--listing-paper);
  color: var(--listing-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.preview-shell .button.primary,
.preview-shell button.primary {
  background: var(--listing-ink);
  color: var(--listing-paper);
}

.preview-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.96);
  color: var(--listing-paper);
}

.topbar-return {
  color: var(--listing-paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar-return:hover {
  text-decoration: underline;
}

.preview-page-frame {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px 24px 34px;
}

.preview-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  gap: 20px;
  align-items: start;
}

.preview-main-stack {
  display: grid;
  gap: 20px;
}

.listing-surface,
.specs-panel,
.contact-panel {
  border: 1px solid var(--listing-line);
  border-radius: var(--listing-radius);
  background: var(--listing-paper);
}

.listing-surface {
  padding: 24px;
}

.listing-overview {
  padding: 28px 34px 32px;
}

.overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--listing-line);
  padding-bottom: 18px;
}

.listing-kicker {
  margin: 0 0 12px;
  color: var(--listing-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-shell .listing-title {
  margin: 0;
  max-width: 100%;
  color: var(--listing-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.address-bar {
  width: fit-content;
  margin: 13px 0 0;
  padding: 8px 11px;
  background: var(--listing-ink);
  color: var(--listing-paper);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.copy-text {
  max-width: 1000px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--listing-line);
  padding-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.section-heading span {
  color: var(--listing-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eeeeea, #dcdcd6);
  color: var(--listing-muted);
  font-size: 14px;
  font-weight: 900;
}

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

.media-frame img + span {
  display: none;
}

.media-frame.is-empty span {
  display: block;
}

.media-frame.is-empty::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(10, 10, 10, 0.12);
}

.caption-bar {
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--listing-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

.carousel-shell {
  display: grid;
  gap: 0;
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  background: var(--listing-soft-2);
}

.carousel-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.carousel-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #f7f7f4;
}

.carousel-frame.is-portrait img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  justify-self: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--listing-ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  transform: translateY(-50%);
}

.carousel-control:hover {
  background: var(--listing-paper);
  border-color: rgba(10, 10, 10, 0.36);
}

.carousel-control-prev {
  left: 14px;
}

.carousel-control-next {
  right: 14px;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
}

.carousel-stage + .carousel-thumbs {
  margin-top: 14px;
}

.preview-shell .carousel-thumb {
  display: block;
  box-sizing: border-box;
  min-height: 0;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.preview-shell .carousel-thumb.is-active {
  border-color: var(--listing-ink);
}

.thumb-frame {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 3 / 2;
  font-size: 11px;
}

.thumb-frame.is-empty {
  display: grid;
  place-items: center;
}

.thumb-frame::before {
  display: none;
}

.thumb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.floor-plan-frame {
  overflow: hidden;
  border: 1px solid var(--listing-line);
  background: var(--listing-paper);
}

.floor-plan-media {
  display: block;
  min-height: 0;
  background: var(--listing-paper);
}

.floor-plan-media img {
  width: 100%;
  height: auto;
  background: var(--listing-paper);
}

.floor-plan-media.is-empty {
  min-height: 260px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--listing-radius);
  background: #000000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--listing-radius);
  background: var(--listing-soft-2);
}

.map-frame img {
  display: block;
  width: 100%;
  filter: contrast(0.94) opacity(0.88);
}

.map-zone {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(10, 10, 10, 0.42);
  background: rgba(10, 10, 10, 0.08);
  box-shadow: 0 0 0 20px rgba(10, 10, 10, 0.04);
  pointer-events: none;
}

.sidebar-stack {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
}

.specs-panel,
.contact-panel {
  padding: 22px;
}

.specs-panel h2,
.contact-panel h2 {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-panel p {
  margin: 0 0 18px;
  color: var(--listing-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
}

.listing-updated {
  margin: 0;
  color: var(--listing-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.listing-updated-bottom {
  margin: 20px 0 0;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-actions .button {
  width: 100%;
}

.contact-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-secondary-actions button {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  font-size: 11px;
  background: var(--listing-paper);
  color: var(--listing-ink);
}

.mobile-contact-bar {
  display: none;
}

.sidebar-specs {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--listing-line);
}

.sidebar-spec {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--listing-line);
  font-size: 14px;
  font-weight: 800;
}

.sidebar-spec span:first-child {
  color: var(--listing-muted);
}

.listing-disclaimer {
  margin: 22px 0 0;
  color: var(--listing-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

body:not(.admin-page) {
  background: #f4f4f1;
}

body:not(.admin-page) .preview-shell {
  padding-top: 50px;
  overflow-x: visible;
  font-size: 17px;
}

body:not(.admin-page) .preview-topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 50px;
  box-sizing: border-box;
}

body:not(.admin-page) .preview-page-frame {
  width: min(1180px, calc(100% - 32px));
  padding: 24px 0 44px;
}

body:not(.admin-page) .preview-content-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

body:not(.admin-page) .listing-overview {
  padding: 30px 34px 34px;
}

body:not(.admin-page) .preview-shell .listing-title {
  font-size: clamp(44px, 5vw, 68px);
}

body:not(.admin-page) .address-bar {
  font-size: 18px;
}

body:not(.admin-page) .copy-text {
  font-size: 20px;
  line-height: 1.42;
}

body:not(.admin-page) .section-heading h2,
body:not(.admin-page) .specs-panel h2,
body:not(.admin-page) .contact-panel h2 {
  font-size: 26px;
}

body:not(.admin-page) .caption-bar {
  font-size: 18px;
}

body:not(.admin-page) .sidebar-stack {
  top: 74px;
}

body:not(.admin-page) .specs-panel,
body:not(.admin-page) .contact-panel {
  padding: 24px;
}

body:not(.admin-page) .sidebar-spec {
  font-size: 16px;
  padding: 14px 0;
}

body:not(.admin-page) .contact-panel p {
  font-size: 16px;
}

body:not(.admin-page) .listing-updated {
  font-size: 13px;
}

body:not(.admin-page) .preview-shell .button,
body:not(.admin-page) .preview-shell button {
  min-height: 46px;
  font-size: 13px;
}

body:not(.admin-page) .listing-disclaimer {
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.listing-card {
  display: grid;
  min-height: 100%;
  text-decoration: none;
}

.thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #d7d1c8;
  color: rgba(23, 20, 19, 0.58);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.pill {
  width: fit-content;
  border: 1px solid var(--line);
  padding: 5px 8px;
  background: rgba(232, 223, 112, 0.28);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gate {
  width: min(460px, 100%);
  margin: 70px auto;
  padding: 26px;
}

.home-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.route-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.route-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  text-decoration: none;
}

@media (max-width: 980px) {
  .workspace,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: static;
  }

  .preview-column .preview-shell {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .preview-content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

  .map-picker-map {
    height: 300px;
  }

  .mapboxgl-ctrl-geocoder {
    width: calc(100vw - 88px) !important;
  }

  .toolbar,
  .listing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .admin-page {
    --admin-header-height: 96px;
  }

  .photo-list-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .photo-order-tools,
  .photo-drag-handle,
  .photo-order-button {
    width: 40px;
    min-width: 40px;
  }

  .topbar {
    display: grid;
    padding: 14px 20px;
  }

  .nav {
    gap: 12px;
  }

  .page {
    padding: 26px 20px 38px;
  }

  .panel,
  .gate {
    padding: 20px;
  }

  .preview-topbar {
    position: static;
  }

  .preview-page-frame {
    padding: 12px;
  }

  .listing-overview,
  .listing-surface,
  .specs-panel,
  .contact-panel {
    padding: 18px;
  }

  .overview-heading {
    display: grid;
    gap: 14px;
  }

  .preview-shell .listing-title {
    font-size: clamp(40px, 13vw, 62px);
  }

  .copy-text {
    font-size: 18px;
  }

  .actions,
  .actions button,
  .actions .button,
  .preview-shell button,
  .preview-shell .button {
    width: 100%;
  }

  .preview-shell .carousel-control {
    width: 42px;
  }
}

body:not(.admin-page) .preview-topbar {
  position: fixed;
  inset: 0 0 auto;
}

@media (min-width: 761px) {
  body:not(.admin-page) .sidebar-stack {
    position: sticky;
    top: 74px;
  }
}

@media (max-width: 760px) {
  body:not(.admin-page) {
    padding-bottom: 76px;
  }

  body:not(.admin-page) .preview-content-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-page) .sidebar-stack {
    position: static;
  }

  body:not(.admin-page) .preview-page-frame {
    width: min(100% - 24px, 1180px);
    padding: 12px 0 90px;
  }

  body:not(.admin-page) .preview-main-stack {
    display: contents;
  }

  body:not(.admin-page) .preview-main-stack > * {
    order: 3;
  }

  body:not(.admin-page) .preview-main-stack > .listing-overview {
    order: 1;
  }

  body:not(.admin-page) .sidebar-stack {
    order: 2;
  }

  body:not(.admin-page) .sidebar-stack .contact-panel {
    display: none;
  }

  body:not(.admin-page) .mobile-contact-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--listing-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(10, 10, 10, 0.16);
  }

  body:not(.admin-page) .mobile-contact-bar .button,
  body:not(.admin-page) .mobile-contact-bar button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }
}
