/* Interactive River Map v1.0.0 — plugin styles. All rules namespaced .rm- */
/* Interactive River Map — core styles
   Plugin-ready: all rules namespaced under .rm- */

:root{
  --rm-navy:#14384f;
  --rm-navy-2:#0f2c3e;
  --rm-blue:#1a7fb5;
  --rm-blue-dark:#146a99;
  --rm-water:#1f8fc4;
  --rm-facility:#3f8f63;
  --rm-amenity:#d1622e;
  --rm-line:rgba(255,255,255,.14);
  --rm-text:#22333d;
  --rm-muted:#6d818c;
  --rm-card:#fff;
  --rm-shadow:0 6px 24px rgba(12,35,50,.18);
  --rm-radius:6px;
  --rm-rail:#b8c8d6;
  --rm-status:#1a7fb5;
  --rm-sidebar-w:220px;
  --rm-font:"Tirra",system-ui,-apple-system,"Segoe UI",sans-serif;
  --rm-font-head:"Barlow",var(--rm-font);
}

.rm-wrap *,.rm-wrap *::before,.rm-wrap *::after{box-sizing:border-box}

.rm-wrap{
  position:relative;display:flex;width:100%;
  height:var(--rm-height,530px);min-height:480px;max-height:var(--rm-height,530px);align-items:stretch;
  font-family:var(--rm-font);color:var(--rm-text);background:#e9edef;
  overflow:hidden;
}

/* ---------- Sidebar ---------- */
.rm-sidebar{
  position:relative;flex:0 0 var(--rm-sidebar-w);width:var(--rm-sidebar-w);
  background:var(--rm-navy);color:#fff;display:flex;flex-direction:row;
  height:100%;min-height:0;overflow:hidden;
  transition:margin-left .32s cubic-bezier(.4,0,.2,1);z-index:5;
}
.rm-wrap.is-collapsed .rm-sidebar{margin-left:calc(-1 * var(--rm-sidebar-w))}

.rm-sidebar-scroll{
  position:relative;order:1;flex:1;min-width:0;min-height:0;height:100%;overflow-y:auto;padding:26px 14px 30px 22px;
  scrollbar-width:none;
}
.rm-sidebar-scroll::-webkit-scrollbar{width:0;height:0;display:none}

/* custom rail: arrow + scroll thumb share one 26px column */
.rm-rail{
  order:2;position:relative;flex:0 0 26px;width:26px;background:var(--rm-rail);
  display:flex;flex-direction:column;
}
.rm-rail-track{position:relative;flex:1;margin:0}
.rm-rail-thumb{
  position:absolute;left:7px;right:7px;top:0;height:60px;min-height:34px;
  background:var(--rm-navy);border-radius:20px;cursor:grab;
}
.rm-rail-thumb:active{cursor:grabbing;background:var(--rm-navy-2)}
.rm-rail.is-idle .rm-rail-thumb{display:none}

.rm-title{
  font-family:"Oswald",var(--rm-font-head);font-size:22px;font-weight:500;letter-spacing:.01em;
  margin:0 0 14px;color:#fff;
}
.rm-hint{margin:0 0 22px;font-size:13px;line-height:1.5;color:#a9bcc7}

/* collapse handle */
.rm-collapse{
  flex:0 0 42px;width:26px;height:42px;
  display:flex;align-items:center;justify-content:center;
  background:var(--rm-rail);border:0;border-radius:0;color:var(--rm-navy);
  cursor:pointer;z-index:6;transition:background .2s;
}
.rm-collapse:hover{background:#b2c2cd}
.rm-collapse{padding:0}
.rm-collapse svg{width:21px;height:21px;stroke-width:2.3}

/* ---------- Filter groups ---------- */
.rm-group{margin-bottom:26px}
.rm-group-head{
  display:flex;align-items:center;gap:9px;width:100%;padding:0 0 12px;
  background:none;border:0;color:#fff;cursor:pointer;text-align:left;
  font-family:var(--rm-font-head);font-size:11px;font-weight:600;letter-spacing:.01em;
}
.rm-group-dot{
  flex:0 0 16px;width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.rm-group-dot svg{width:9px;height:9px;fill:#fff}
.rm-group[data-group="water"] .rm-group-dot{background:var(--rm-water)}
.rm-group[data-group="facility"] .rm-group-dot{background:var(--rm-facility)}
.rm-group[data-group="amenity"] .rm-group-dot{background:var(--rm-amenity)}
.rm-group[data-group="status"] .rm-group-dot{background:var(--rm-status)}
.rm-group-chev{margin-left:auto;width:11px;height:11px;transition:transform .25s;opacity:.7}
.rm-group.is-closed .rm-group-chev{transform:rotate(-90deg)}
.rm-group.is-closed .rm-group-list{display:none}

.rm-group-list{display:flex;flex-direction:column;gap:2px}
.rm-check{
  display:flex;align-items:center;gap:10px;padding:2px;cursor:pointer;
  font-size:11px;color:#dfe8ed;border-radius:3px;transition:color .15s;
}
.rm-check:hover{color:#fff}
.rm-check input{position:absolute;opacity:0;pointer-events:none}
.rm-box{
  flex:0 0 10px;width:10px;height:10px;border:1px solid #fff;background:#fff;
  display:flex;align-items:center;justify-content:center;transition:.15s;
}
.rm-box svg{width:7px;height:7px;opacity:0;stroke:#14384f;stroke-width:3.5;fill:none}
.rm-check input:checked + .rm-box{background:#fff;border-color:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.rm-check input:checked + .rm-box svg{opacity:1}
.rm-check input:focus-visible + .rm-box{outline:2px solid var(--rm-water);outline-offset:2px}

/* ---------- Map area ---------- */
.rm-mapwrap{position:relative;flex:1;min-width:0;height:100%;min-height:0;align-self:stretch}
.rm-map{position:absolute;inset:0}

/* Filters re-open pill */
.rm-filters-btn{
  position:absolute;top:16px;left:16px;display:none;align-items:center;gap:8px;
  padding:8px 12px;background:var(--rm-blue);color:#fff;border:0;border-radius:var(--rm-radius);
  font-family:var(--rm-font);font-size:14px;font-weight:600;cursor:pointer;
  box-shadow:var(--rm-shadow);z-index:4;
}
.rm-wrap.is-collapsed .rm-filters-btn{display:flex}
.rm-filters-btn svg{width:15px;height:15px;fill:#fff}
.rm-filters-btn .rm-chev{width:10px;height:10px;fill:none;stroke:#fff;stroke-width:2.5}

/* ---------- Top-right action buttons ---------- */
.rm-actions{
  position:absolute;top:16px;right:16px;display:flex;flex-direction:column;
  align-items:flex-end;gap:8px;z-index:4;
}
.rm-action{
  display:flex;align-items:center;gap:10px;min-width:150px;
  padding:7px 16px 7px 8px;border:0;border-radius:var(--rm-radius);
  background:var(--rm-blue);color:#fff;cursor:pointer;box-shadow:var(--rm-shadow);
  font-family:var(--rm-font);font-size:14px;font-weight:600;
  transition:background .18s,transform .18s;
}
.rm-action:hover{background:var(--rm-blue-dark);transform:translateY(-1px)}
.rm-action.is-active{background:var(--rm-navy)}
.rm-action-ico{
  flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;
}
.rm-action-ico svg{width:13px;height:13px;fill:#fff}
.rm-action--icon{min-width:0;padding:7px;border-radius:var(--rm-radius)}

/* Access Points listing — kept in the build, hidden until the design calls for it.
   Remove this block (or drop .rm-is-hidden) to switch it back on. */
.rm-is-hidden{display:none !important}

/* ---------- Panels (Safety / Flows / Launches) ---------- */
.rm-panel{
  position:absolute;top:16px;right:180px;width:300px;max-height:calc(100% - 32px);
  background:var(--rm-card);border-radius:var(--rm-radius);box-shadow:var(--rm-shadow);
  display:none;flex-direction:column;overflow:hidden;z-index:6;
}
.rm-panel.is-open{display:flex;animation:rm-pop .22s ease-out}
@keyframes rm-pop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.rm-panel-head{
  display:flex;align-items:center;gap:10px;padding:14px 16px;
  background:var(--rm-navy);color:#fff;
}
.rm-panel-head h3{margin:0;font-family:var(--rm-font-head);font-size:15px;font-weight:600;color:#fff}
.rm-panel-body{padding:16px;overflow-y:auto;font-size:13.5px;line-height:1.6;color:var(--rm-text)}
.rm-panel-body p{margin:0 0 12px}
.rm-panel-body p:last-child{margin-bottom:0}

.rm-close{
  margin-left:auto;width:22px;height:22px;display:flex;align-items:center;justify-content:center;
  background:none;border:0;cursor:pointer;color:inherit;opacity:.75;
}
.rm-close:hover{opacity:1}
.rm-close svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.2}

/* rows inside panels */
.rm-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:9px 0;border-bottom:1px solid #e7ecef;
}
.rm-row:last-child{border-bottom:0}
.rm-row-label{font-weight:600;font-size:13.5px}
.rm-row-sub{display:block;font-weight:400;font-size:12px;color:var(--rm-muted)}
.rm-row-val{font-family:var(--rm-font-head);font-size:14px;font-weight:600;color:var(--rm-blue);white-space:nowrap}
.rm-panel-link{margin-top:10px}
.rm-panel-link a{font-size:12.5px;font-weight:600;color:var(--rm-blue);text-decoration:none}
.rm-panel-link a:hover{text-decoration:underline}
.rm-tag{
  display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600;
  background:#eaf4fa;color:var(--rm-blue-dark);
}
.rm-tag--warn{background:#fdf0e6;color:#b5551f}

/* launch items inside the Launches panel */
.rm-launch-item{padding:10px 0;border-bottom:1px solid #e7ecef}
.rm-launch-item:last-child{border-bottom:0}
.rm-launch-name{margin:0;font-family:var(--rm-font-head);font-size:13.5px;font-weight:600;color:var(--rm-text);display:inline-block;text-decoration:none}
a.rm-launch-name{color:var(--rm-blue-dark)}
a.rm-launch-name:hover{text-decoration:underline}
.rm-launch-amenities{margin-top:4px;font-size:12px;line-height:1.5;color:var(--rm-muted)}
.rm-launch-amenities ul{list-style:none;margin:0;padding:0}
.rm-launch-amenities li{display:inline}
.rm-launch-amenities li:not(:last-child)::after{content:", "}
.rm-launch-amenities p{margin:0}

/* ---------- Listing popup ---------- */
.rm-listing{
  position:absolute;top:16px;right:16px;bottom:16px;width:330px;
  background:var(--rm-card);border-radius:var(--rm-radius);box-shadow:var(--rm-shadow);
  display:none;flex-direction:column;overflow:hidden;z-index:7;
}
.rm-listing.is-open{display:flex;animation:rm-slide .26s cubic-bezier(.4,0,.2,1)}
@keyframes rm-slide{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.rm-listing-head{padding:16px 16px 12px;background:var(--rm-navy);color:#fff}
.rm-listing-head .rm-top{display:flex;align-items:center;gap:10px}
.rm-listing-head h3{margin:0;font-family:var(--rm-font-head);font-size:16px;font-weight:600}
.rm-listing-count{margin:6px 0 0;font-size:12px;color:#a9bcc7}
.rm-search{
  display:flex;align-items:center;gap:8px;margin-top:12px;padding:7px 10px;
  background:rgba(255,255,255,.12);border-radius:4px;
}
.rm-search svg{width:13px;height:13px;fill:#a9bcc7;flex:0 0 13px}
.rm-search input{
  flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font-family:var(--rm-font);font-size:13px;
}
.rm-search input::placeholder{color:#8fa3ae}

.rm-listing-body{flex:1;overflow-y:auto;padding:8px}
.rm-item{
  display:flex;gap:12px;padding:12px;border-radius:5px;cursor:pointer;
  border-bottom:1px solid #eef2f4;transition:background .15s;
}
.rm-item:hover{background:#f4f8fa}
.rm-item-bar{flex:0 0 3px;border-radius:3px;background:var(--rm-water)}
.rm-item[data-group="facility"] .rm-item-bar{background:var(--rm-facility)}
.rm-item[data-group="amenity"] .rm-item-bar{background:var(--rm-amenity)}
.rm-item-main{min-width:0;flex:1}
.rm-item-name{margin:0;font-family:var(--rm-font-head);font-size:14px;font-weight:600}
.rm-item-meta{margin:2px 0 7px;font-size:12px;color:var(--rm-muted)}
.rm-status{
  display:inline-block;margin-left:6px;padding:1px 7px;border-radius:20px;
  font-size:10.5px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;
  background:#eaf4fa;color:#146a99;
}
.rm-status--open{background:#e8f4ec;color:#2f7a4f}
.rm-status--closed{background:#f6e9e7;color:#a8402f}
.rm-status--coming-soon{background:#eef1f5;color:#4a626f}
.rm-status--temporarily-closed{background:#fdf0e6;color:#b5551f}

.rm-chips{display:flex;flex-wrap:wrap;gap:5px}
.rm-chip{
  padding:2px 8px;border-radius:20px;background:#eef3f6;color:#4a626f;
  font-size:11px;line-height:1.5;white-space:nowrap;
}
.rm-empty{padding:28px 16px;text-align:center;color:var(--rm-muted);font-size:13px}

/* ---------- Map info card (pin click) ---------- */
.rm-info{
  position:absolute;top:0;left:0;width:276px;
  padding:16px 18px 18px;
  background:var(--rm-card);border-radius:12px;
  box-shadow:0 14px 34px rgba(12,35,50,.22);
  display:none;z-index:8;
}
.rm-info::after{
  content:"";position:absolute;left:var(--rm-arrow-x,50%);top:100%;
  width:0;height:0;margin-left:-8px;
  border:8px solid transparent;border-top-color:var(--rm-card);
  filter:drop-shadow(0 2px 2px rgba(12,35,50,.12));
}
.rm-info.is-below::after{
  top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:var(--rm-card);
}
.rm-info.is-open{display:block;animation:rm-pop .2s ease-out}
.rm-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 6px}
.rm-info-head h4{margin:0;padding-right:14px;font-family:var(--rm-font-head);font-size:16px;font-weight:700;line-height:1.3}
.rm-info-head .rm-status{margin:2px 0 0;flex:0 0 auto;white-space:nowrap}
.rm-info-amenities{margin:6px 0 14px;padding-top:12px;border-top:1px solid #eef1f3}
.rm-info-label{
  margin:0 0 8px;font-size:10.5px;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;color:var(--rm-muted);
}
.rm-info-amenities ul{
  list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;
}
.rm-info-amenities li{
  position:relative;padding:1px 0 1px 17px;font-size:12px;line-height:1.4;color:var(--rm-text);
}
.rm-info-amenities li::before{
  content:"\2713";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:10px;height:10px;border-radius:50%;
  background:#14384f;color:#fff;font-size:6.5px;font-weight:700;
  line-height:10px;text-align:center;
}
.rm-info-amenities p{margin:0 0 6px;font-size:12px;line-height:1.5;color:var(--rm-text)}
.rm-info-amenities p:last-child{margin-bottom:0}
.rm-info a.rm-info-link{
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 14px;border-radius:999px;background:#14384f;
  font-size:12.5px;color:#fff;text-decoration:none;font-weight:700;letter-spacing:.01em;
  transition:filter .15s ease;
}
.rm-info a.rm-info-link:hover{filter:brightness(1.08);color:#fff;text-decoration:none}
.rm-info .rm-close{position:absolute;top:10px;right:10px;color:var(--rm-muted)}

/* ---------- Bottom summary toast ---------- */
.rm-toast{
  position:absolute;left:50%;bottom:22px;transform:translateX(-50%);
  max-width:430px;padding:16px 40px 16px 22px;
  background:var(--rm-blue);color:#fff;border-radius:var(--rm-radius);
  box-shadow:var(--rm-shadow);font-size:14px;line-height:1.5;z-index:5;display:none;
}
.rm-toast.is-open{display:block;animation:rm-pop .2s ease-out}
.rm-toast .rm-close{position:absolute;top:12px;right:12px;color:#fff}

@media (max-width:768px){
  .rm-wrap{height:var(--rm-height,530px);min-height:480px}

  /* mobile: sidebar starts hidden; the Filters button reveals it as an overlay */
  .rm-sidebar{
    position:absolute;top:0;bottom:0;left:0;margin-left:calc(-1 * var(--rm-sidebar-w));
    box-shadow:var(--rm-shadow);z-index:9;
  }
  .rm-wrap.is-open .rm-sidebar{margin-left:0}
  .rm-wrap.is-collapsed .rm-sidebar{margin-left:calc(-1 * var(--rm-sidebar-w))}

  .rm-filters-btn{display:flex}
  .rm-wrap.is-open .rm-filters-btn{display:none}

  .rm-scrim{
    position:absolute;inset:0;background:rgba(12,35,50,.45);
    opacity:0;pointer-events:none;transition:opacity .25s;z-index:8;
  }
  .rm-wrap.is-open .rm-scrim{opacity:1;pointer-events:auto}

  .rm-listing{left:16px;width:auto}
  .rm-panel{right:16px;top:64px;left:16px;width:auto}
  .rm-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:62%}
  .rm-action{min-width:0}
}
