.rom {
  --rom-ink: #173b2d; --rom-green: #285943; --rom-orange: #ad6539;
  --rom-muted: #617168; --rom-line: #dbe5d7; --rom-cream: #f4f9ec;
  color: var(--rom-ink); font-family: inherit; font-size: 16px; line-height: 1.5;
  min-width: 0; max-width: 100%; text-align: left; overflow-wrap: anywhere;
}
.rom *, .rom *::before, .rom *::after { box-sizing: border-box; }
.rom [hidden] { display: none !important; }
.rom .rom-icon { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; }
.rom .rom-icon svg { display: block; width: 100%; height: 100%; }
.rom :is(button, input, select, textarea) { font-family: inherit; }
.rom :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #cb8451; outline-offset: 3px; }
.rom-section { padding-block: 12px clamp(48px, 6vw, 86px); }
.rom .rom-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.rom .rom-heading > div { min-width: 0; }
.rom .rom-eyebrow { color: var(--rom-orange); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 800; margin: 0 0 12px; }
.rom .rom-heading h2 { color: var(--rom-ink); font-size: clamp(28px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; margin: 0; }
.rom .rom-lead { color: var(--rom-muted); font-size: 16px; margin: 14px 0 0; max-width: 680px; }
.rom .rom-label { flex-shrink: 0; font-size: 12px; font-weight: 700; border: 1px solid #cfdcc9; border-radius: 50px; padding: 10px 18px; color: var(--rom-green); }
.rom .rom-card { background: #fff; border: 1px solid var(--rom-line); border-radius: 26px; box-shadow: 0 18px 54px #173b2d0d; overflow: hidden; }
.rom .rom-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px; border-bottom: 1px solid var(--rom-line); }
.rom .rom-chip, .rom .rom-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--rom-line); border-radius: 12px; padding: 10px 15px; min-height: 44px;
  background: #fff; color: var(--rom-ink); font-size: 13px; font-weight: 650; line-height: 1.35;
  text-decoration: none; cursor: pointer; box-shadow: none; white-space: normal; margin: 0;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.rom .rom-chip { border-radius: 50px; padding: 9px 14px; }
.rom .rom-chip > .rom-icon { color: var(--pin-color); }
.rom .rom-chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; border-radius: 50px; background: #173b2d0a; }
.rom .rom-chip:hover, .rom .rom-btn:hover { background: #edf4e6; border-color: #9cad9c; color: var(--rom-ink); }
.rom .rom-chip[aria-pressed="true"], .rom .rom-btn[aria-pressed="true"], .rom .rom-btn-primary { background: var(--rom-green); border-color: var(--rom-green); color: #fff; }
.rom .rom-chip[aria-pressed="true"] > .rom-icon { color: #fff; }
.rom .rom-chip[aria-pressed="true"] .rom-chip-count { background: #ffffff24; }
.rom .rom-btn-primary:hover { background: #173b2d; color: #fff; }
.rom .rom-btn:disabled { cursor: default; opacity: .45; }
.rom .rom-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); min-width: 0; }
.rom .rom-stage { position: relative; min-width: 0; isolation: isolate; }
.rom .rom-canvas { width: 100%; height: 590px; max-width: 100%; min-width: 0; z-index: 0; background: #e7eedd; font-family: inherit; color: var(--rom-ink); }
.rom .rom-fit { position: absolute; top: 14px; right: 14px; z-index: 500; background: #fffffff5; box-shadow: 0 3px 14px #173b2d14; }
.rom .rom-sidebar { max-height: 590px; min-width: 0; overflow-y: auto; scrollbar-width: thin; padding: 22px 18px; border-left: 1px solid var(--rom-line); background: #fbfcf8; }
.rom .rom-side-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rom .rom-side-heading h3 { color: var(--rom-ink); font-size: 15px; font-weight: 750; margin: 0; line-height: 1.3; letter-spacing: -.01em; }
.rom .rom-count { font-size: 11px; padding: 3px 8px; border-radius: 50px; background: #eaf0e2; }
.rom .rom-route-section + .rom-point-section { margin-top: 28px; }
.rom .rom-route-all { width: 100%; margin-bottom: 10px; min-height: 38px; }
.rom .rom-route-card { display: block; width: 100%; text-align: left; border: 1px solid var(--rom-line); border-radius: 16px; padding: 17px; margin: 0 0 10px; background: #fff; color: var(--rom-ink); cursor: pointer; line-height: 1.4; box-shadow: none; }
.rom .rom-route-card:hover { border-color: #859c80; }
.rom .rom-route-card[aria-pressed="true"] { background: #eaf2e2; border-color: #b2c8a7; }
.rom .rom-route-name { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rom .rom-route-name > .rom-icon { color: var(--route-color); }
.rom .rom-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.rom .rom-stats > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rom .rom-stats strong { font-size: 19px; font-weight: 750; letter-spacing: -.03em; line-height: 1.2; }
.rom .rom-stats small { font-size: 10px; color: #5b6d5e; }
.rom .rom-route-note { display: block; font-size: 12px; color: var(--rom-muted); margin-top: 12px; white-space: pre-line; }
.rom .rom-point-list { display: flex; flex-direction: column; gap: 7px; }
.rom .rom-point-card { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 12px; margin: 0; padding: 10px 8px; background: transparent; color: var(--rom-ink); text-align: left; cursor: pointer; box-shadow: none; }
.rom .rom-point-card:hover, .rom .rom-point-card.is-active { background: #fff; border-color: var(--rom-line); }
.rom .rom-point-badge { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dce6d7; border-radius: 12px; background: #fff; color: var(--pin-color); }
.rom .rom-point-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rom .rom-point-text strong { font-size: 12px; line-height: 1.4; }
.rom .rom-point-text small { color: var(--rom-muted); font-size: 10px; line-height: 1.5; }
.rom .rom-point-card > .rom-icon { width: 16px; height: 16px; flex-basis: 16px; }
.rom .rom-empty { color: var(--rom-muted); font-size: 13px; margin: 0; }
.rom .rom-footer { display: flex; align-items: center; gap: 9px; padding: 13px 20px; color: var(--rom-muted); font-size: 11px; line-height: 1.6; border-top: 1px solid var(--rom-line); background: #fff; }
.rom .rom-footer > .rom-icon { width: 16px; height: 16px; flex-basis: 16px; }
.rom .rom-loading { padding: 24px; }
.rom .rom-map-notice { position: absolute; z-index: 500; bottom: 26px; left: 12px; right: 12px; border-radius: 8px; background: #fff7e7; color: #714016; font-size: 12px; padding: 10px; }
/* Keep theme image rules away from tiles. Attribution stays visible. */
.rom .rom-canvas img.leaflet-tile { max-width: none !important; max-height: none !important; width: 256px !important; height: 256px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; object-fit: fill !important; }
.rom .leaflet-control-attribution { font: 10px/1.5 Arial, sans-serif; color: #333; background: #fffffff0; max-width: 100%; }
.rom .leaflet-control-attribution a { color: #285943; text-decoration: underline; }
.rom .leaflet-bar { border: 1px solid #d1ddca; box-shadow: 0 4px 14px #173b2d17; border-radius: 10px; overflow: hidden; }
.rom .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; background: #fff; color: var(--rom-ink); text-decoration: none; }
.rom .leaflet-popup-content-wrapper { border-radius: 16px; padding: 3px; }
.rom .leaflet-popup-content { width: min(245px, 65vw) !important; margin: 16px; font: inherit; }
.rom .rom-popup { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--rom-ink); }
.rom .rom-popup strong { font-size: 16px; font-weight: 750; }
.rom .rom-popup p { margin: 0; font-size: 13px; white-space: pre-line; }
.rom .rom-popup-category { color: var(--rom-orange); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.rom .rom-popup-alt { font-size: 12px; color: var(--rom-muted); }
.rom .rom-pin { display: grid; place-items: center; position: relative; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: var(--pin-color); color: #fff; box-shadow: 0 3px 9px #173b2d45; }
.rom .rom-pin::after { content: ''; position: absolute; bottom: -8px; left: 10px; width: 0; height: 0; border-top: 8px solid var(--pin-color); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.rom .rom-vertex { border: 2px solid #285943; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #173b2d35; }
.rom .rom-midpoint { background: #285943; color: #fff; font: 15px/14px sans-serif; text-align: center; border-color: #fff; }
/* Editor. All rules stay inside the map box. */
.rom-editor { padding: 8px 2px 14px; font-size: 13px; }
.rom-editor .rom-editor-intro { margin: 0 0 18px; color: var(--rom-muted); font-size: 13px; max-width: 960px; }
.rom .rom-editor-settings { padding: 15px 18px; background: var(--rom-cream); border: 1px solid var(--rom-line); border-radius: 12px; margin-bottom: 18px; }
.rom .rom-enable { display: flex; align-items: center; gap: 9px; }
.rom .rom-enable input { flex-shrink: 0; }
.rom .rom-settings-details { margin-top: 12px; }
.rom summary { cursor: pointer; color: var(--rom-green); font-weight: 650; padding-block: 6px; }
.rom .rom-settings-details[open] summary { margin-bottom: 12px; }
.rom .rom-settings-details .rom-field { max-width: 700px; }
.rom .rom-search { display: flex; gap: 8px; margin-bottom: 10px; }
.rom .rom-search > input { flex: 1; min-width: 0; width: 100%; border: 1px solid #b9c9b5; border-radius: 12px; padding: 12px 14px; font-size: 14px; background: #fff; color: var(--rom-ink); }
.rom .rom-search-results { border: 1px solid var(--rom-line); border-radius: 12px; background: #fff; padding: 10px; margin-bottom: 12px; }
.rom .rom-search-result { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; color: var(--rom-ink); border: 0; border-radius: 8px; padding: 12px; width: 100%; min-height: 44px; cursor: pointer; }
.rom .rom-search-result:hover { background: var(--rom-cream); }
.rom .rom-found-place { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rom .rom-found-place strong { flex: 1; min-width: 160px; }
.rom .rom-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 8px; }
.rom .rom-editor-status { padding: 10px 12px; margin: 0 0 12px; background: #edf4e6; border-radius: 10px; color: var(--rom-green); font-size: 12px; }
.rom .rom-editor-status.is-error { background: #fff0ea; color: #8c3825; }
.rom .rom-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; border: 1px solid var(--rom-line); border-radius: 16px; overflow: hidden; }
.rom .rom-canvas-editor { height: 520px; }
.rom .rom-canvas.is-drawing { cursor: crosshair; }
.rom .rom-inspector { padding: 20px; border-left: 1px solid var(--rom-line); background: #f7faf3; max-height: 520px; overflow: auto; min-width: 0; }
.rom .rom-inspector > .rom-icon { width: 32px; height: 32px; margin-bottom: 12px; color: var(--rom-orange); }
.rom .rom-inspector h3 { margin: 0 0 18px; color: var(--rom-ink); font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
.rom .rom-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.rom .rom-field > span { color: #3c5542; font-size: 12px; font-weight: 650; }
.rom .rom-field :is(input, select, textarea) { min-height: 38px; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 7px 10px; color: var(--rom-ink); background: #fff; border: 1px solid #becdb8; border-radius: 8px; box-shadow: none; font-size: 13px; line-height: 1.4; }
.rom .rom-field input[type="color"] { padding: 4px; cursor: pointer; }
.rom .rom-field textarea { resize: vertical; }
.rom .rom-coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rom .rom-help { font-size: 12px; color: var(--rom-muted); line-height: 1.7; margin: 10px 0; }
.rom .rom-draft-stats { padding: 10px; border-radius: 8px; background: #e4eedb; font-size: 14px; font-weight: 750; }
.rom .rom-inspector > .rom-btn { width: 100%; margin-top: 8px; }
.rom .rom-btn-danger { color: #923e2f; background: #fff; border-color: #e6cec4; }
.rom .rom-btn-danger:hover { background: #fff0ea; color: #923e2f; }
.rom .rom-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.rom .rom-collection { min-width: 0; max-height: 330px; overflow-y: auto; padding: 15px; border: 1px solid var(--rom-line); border-radius: 12px; background: #fff; }
.rom .rom-collection h3 { margin: 0 0 12px; font-size: 15px; }
.rom .rom-list-button { width: 100%; text-align: left; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; background: transparent; border: 1px solid transparent; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--rom-ink); font-size: 12px; line-height: 1.4; }
.rom .rom-list-button small { grid-column: 2; color: var(--rom-muted); font-size: 11px; }
.rom .rom-list-button[aria-pressed="true"], .rom .rom-list-button:hover { background: #edf4e6; border-color: #cadbbf; }
.rom .rom-categories-editor { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--rom-line); border-radius: 12px; }
.rom .rom-category-row { display: grid; grid-template-columns: minmax(100px, 2fr) minmax(80px, 1fr) 70px auto; align-items: end; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rom-line); }
.rom .rom-category-row .rom-field { margin: 0; }
.rom .rom-category-row > .rom-btn { min-height: 38px; }
.rom .rom-categories-editor > .rom-btn { margin-top: 14px; }
@media (max-width: 1100px) {
  .rom .rom-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .rom .rom-inspector { border-left: 0; border-top: 1px solid var(--rom-line); max-height: none; }
  .rom .rom-canvas-editor { height: 460px; }
}
@media (max-width: 780px) {
  .rom .rom-heading { align-items: flex-start; }
  .rom .rom-label { display: none; }
  .rom .rom-layout { grid-template-columns: minmax(0, 1fr); }
  .rom .rom-canvas { height: 400px; }
  .rom .rom-sidebar { border-left: 0; border-top: 1px solid var(--rom-line); max-height: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .rom .rom-route-section + .rom-point-section { margin-top: 0; }
  .rom .rom-point-list { max-height: 330px; overflow-y: auto; }
  .rom .rom-filters { padding: 14px; gap: 7px; }
  .rom .rom-chip { font-size: 12px; padding-inline: 11px; }
  .rom .rom-card { border-radius: 20px; }
}
@media (max-width: 480px) {
  .rom .rom-heading h2 { font-size: 30px; }
  .rom .rom-lead { font-size: 14px; }
  .rom .rom-canvas { height: 370px; }
  .rom .rom-sidebar { display: block; padding: 18px 14px; }
  .rom .rom-route-section + .rom-point-section { margin-top: 24px; }
  .rom .rom-chip .rom-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .rom .rom-chip-count { min-width: 18px; height: 18px; }
  .rom .rom-fit { font-size: 11px; right: 10px; top: 10px; min-height: 40px; padding-inline: 10px; }
  .rom .rom-footer { padding-inline: 14px; font-size: 10px; }
  .rom .rom-point-text strong { font-size: 13px; }
  .rom .rom-point-text small { font-size: 11px; }
  .rom .rom-search > input, .rom .rom-field :is(input, select, textarea) { font-size: 16px; }
  .rom .rom-search > .rom-btn { padding-inline: 12px; }
  .rom .rom-search > .rom-btn .rom-icon { display: none; }
  .rom .rom-toolbar { gap: 6px; }
  .rom .rom-toolbar .rom-btn { font-size: 11px; padding-inline: 10px; }
  .rom .rom-collections { grid-template-columns: 1fr; }
  .rom .rom-category-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .rom .rom-category-row > .rom-field:first-child { grid-column: 1 / -1; }
  .rom .rom-category-row > .rom-btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .rom *, .rom *::before, .rom *::after { transition: none !important; animation: none !important; } }
