:root {
  --jyc-g2-ink: #0d2f48;
  --jyc-g2-muted: #446176;
  --jyc-g2-coral: #d9563f;
  --jyc-g2-coral-dark: #a63c2c;
  --jyc-g2-teal: #117f8f;
  --jyc-g2-soft: #f2f8f9;
  --jyc-g2-border: rgba(13, 47, 72, 0.17);
}

.jyc-g2-shell { color: var(--jyc-g2-ink); margin: 2rem 0; }
.jyc-g2-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.jyc-g2-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jyc-g2-card {
  background: #fff;
  border: 1px solid var(--jyc-g2-border);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(8, 35, 55, 0.08);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.jyc-g2-card h2, .jyc-g2-card h3, .jyc-g2-card h4 { color: var(--jyc-g2-ink); margin-top: 0; }
.jyc-g2-kicker {
  color: var(--jyc-g2-coral-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 .55rem;
  text-transform: uppercase;
}
.jyc-g2-location-form { display: grid; gap: .85rem; margin-top: 1.1rem; }
.jyc-g2-location-form label { font-weight: 800; }
.jyc-g2-location-form select, .jyc-g2-location-form input {
  background: #fff;
  border: 1px solid rgba(13, 47, 72, .35);
  border-radius: 8px;
  color: var(--jyc-g2-ink);
  display: block;
  margin-top: .35rem;
  min-height: 46px;
  padding: .7rem .8rem;
  width: 100%;
}
.jyc-g2-location-form button, .jyc-g2-header-form button, .jyc-g2-button, .jyc-g2-map-controls button {
  align-items: center;
  background: var(--jyc-g2-coral);
  border: 2px solid var(--jyc-g2-coral);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: .68rem 1rem;
  text-decoration: none;
}
.jyc-g2-location-form button:hover, .jyc-g2-location-form button:focus, .jyc-g2-header-form button:hover, .jyc-g2-header-form button:focus, .jyc-g2-button:hover, .jyc-g2-button:focus { background: var(--jyc-g2-coral-dark); border-color: var(--jyc-g2-coral-dark); color: #fff; }
.jyc-g2-location-form button:disabled, .jyc-g2-header-form button:disabled { cursor: wait; opacity: .68; }
.jyc-g2-location-form .jyc-g2-button-secondary, .jyc-g2-header-form .jyc-g2-button-secondary { background: #fff; border-color: var(--jyc-g2-teal); color: var(--jyc-g2-teal); }
.jyc-g2-location-form .jyc-g2-button-secondary:hover, .jyc-g2-location-form .jyc-g2-button-secondary:focus, .jyc-g2-header-form .jyc-g2-button-secondary:hover, .jyc-g2-header-form .jyc-g2-button-secondary:focus { background: #eaf7f8; border-color: var(--jyc-g2-teal); color: var(--jyc-g2-ink); }
.jyc-g2-location-form :where(select,input,button):focus-visible, .jyc-g2-pin:focus-visible, .jyc-g2-map-controls button:focus-visible { outline: 3px solid #18a4b6; outline-offset: 3px; }
.jyc-g2-fineprint { color: var(--jyc-g2-muted); font-size: .9rem; line-height: 1.55; }
.jyc-g2-results { background: var(--jyc-g2-soft); border: 1px solid var(--jyc-g2-border); border-radius: 12px; margin-top: 1rem; padding: 1rem; }
.jyc-g2-results > :last-child { margin-bottom: 0; }
.jyc-g2-time-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .8rem 0; }
.jyc-g2-time-grid article { background: #fff; border: 1px solid var(--jyc-g2-border); border-radius: 10px; padding: .8rem; }
.jyc-g2-time-grid span, .jyc-g2-date { color: var(--jyc-g2-muted); display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.jyc-g2-time-grid strong { display: block; font-size: 1.3rem; margin: .15rem 0; }
.jyc-g2-time-grid small { color: var(--jyc-g2-muted); }
.jyc-g2-nearby-list { display: grid; gap: .7rem; }
.jyc-g2-nearby-list article { background: #fff; border-left: 4px solid var(--jyc-g2-teal); border-radius: 8px; padding: .8rem .9rem; }
.jyc-g2-nearby-list h4 { margin-bottom: .25rem; }
.jyc-g2-nearby-list p { margin: .25rem 0; }
.jyc-g2-map-section { overflow: hidden; }
.jyc-g2-map-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.jyc-g2-map-controls button { background: #fff; border-color: var(--jyc-g2-teal); color: var(--jyc-g2-teal); min-height: 40px; padding: .55rem .85rem; }
.jyc-g2-map-controls button.is-active { background: var(--jyc-g2-teal); color: #fff; }
.jyc-g2-map-layout { display: grid; gap: 1rem; grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .8fr); }
.jyc-g2-map { background: linear-gradient(150deg,#dff1f4,#f5fbfc); border: 1px solid var(--jyc-g2-border); border-radius: 14px; min-height: 520px; overflow: hidden; position: relative; }
.jyc-g2-nj { height: 90%; left: 50%; max-width: 60%; position: absolute; top: 5%; transform: translateX(-50%); width: auto; }
.jyc-g2-nj path { fill: #eef6e8; stroke: #84a97f; stroke-width: 6; }
.jyc-g2-pin { background: transparent; border: 0; height: 30px; margin: -15px 0 0 -15px; padding: 0; position: absolute; width: 30px; z-index: 3; }
.jyc-g2-pin span { border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 3px 8px rgba(0,0,0,.25); display: block; height: 20px; margin: 3px; transform: rotate(-45deg); width: 20px; }
.jyc-g2-pin-event span { background: var(--jyc-g2-coral); }
.jyc-g2-pin-hub span { background: var(--jyc-g2-teal); border-radius: 50%; transform: none; }
.jyc-g2-pin:hover span, .jyc-g2-pin.is-selected span { box-shadow: 0 0 0 5px rgba(17,127,143,.25), 0 3px 8px rgba(0,0,0,.3); transform: rotate(-45deg) scale(1.12); }
.jyc-g2-pin-hub:hover span, .jyc-g2-pin-hub.is-selected span { transform: scale(1.15); }
.jyc-g2-map-legend { background: rgba(255,255,255,.93); border-radius: 8px; bottom: .7rem; display: flex; font-size: .8rem; gap: .8rem; left: .7rem; padding: .45rem .6rem; position: absolute; }
.jyc-g2-map-legend i { border-radius: 50%; display: inline-block; height: 10px; margin-right: .25rem; width: 10px; }
.jyc-g2-map-legend i.event { background: var(--jyc-g2-coral); }
.jyc-g2-map-legend i.hub { background: var(--jyc-g2-teal); }
.jyc-g2-map-detail { align-self: stretch; background: var(--jyc-g2-soft); border: 1px solid var(--jyc-g2-border); border-radius: 14px; padding: 1.2rem; }
.jyc-g2-event-list { margin-top: 1.3rem; }
.jyc-g2-event-list ul { display: grid; gap: .55rem; list-style: none; margin-left: 0; padding-left: 0; }
.jyc-g2-event-list li { border-bottom: 1px solid var(--jyc-g2-border); padding: .5rem 0; }
.jyc-g2-event-list li span { color: var(--jyc-g2-muted); display: block; font-size: .9rem; }
.jyc-g2-rejection { background: #fff4e8; border: 1px solid rgba(166,60,44,.28); border-left: 5px solid var(--jyc-g2-coral-dark); border-radius: 9px; margin-top: 1.3rem; padding: .9rem 1rem; }
.jyc-g2-event-header { background: #eef8f9; border: 1px solid var(--jyc-g2-border); border-left: 5px solid var(--jyc-g2-teal); border-radius: 12px; color: var(--jyc-g2-ink); display: grid; gap: .8rem 1.2rem; grid-template-columns: minmax(210px,.7fr) minmax(320px,1.3fr); margin: 1rem 0 1.4rem; padding: 1rem; }
.jyc-g2-event-header span { color: var(--jyc-g2-muted); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .11em; }
.jyc-g2-event-header strong { display: block; }
.jyc-g2-event-header p { margin: 0 0 .55rem; }
.jyc-g2-event-venue { align-self: start; }
.jyc-g2-event-header-body { min-width: 0; }
.jyc-g2-header-form { align-items: end; display: grid; gap: .5rem; grid-template-columns: minmax(150px,1fr) minmax(120px,.75fr) auto auto; margin: .6rem 0; }
.jyc-g2-header-form label { font-weight: 800; }
.jyc-g2-header-form select, .jyc-g2-header-form input { background: #fff; border: 1px solid rgba(13,47,72,.35); border-radius: 7px; color: var(--jyc-g2-ink); display: block; min-height: 42px; padding: .55rem .65rem; width: 100%; }
.jyc-g2-header-form button { min-height: 42px; padding: .55rem .75rem; }
.jyc-g2-header-results { background: #fff; border: 1px solid var(--jyc-g2-border); border-radius: 9px; margin-top: .7rem; padding: .75rem; }
.jyc-g2-header-times { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .45rem 0; }
.jyc-g2-header-times span { color: var(--jyc-g2-ink); font-size: .9rem; letter-spacing: 0; }
.jyc-g2-header-times b { display: inline; }
.jyc-g2-header-distance { font-size: .9rem; }
.jyc-g2-event-map-link { font-size: .88rem; }

@media (max-width: 820px) {
  .jyc-g2-grid-2, .jyc-g2-map-layout, .jyc-g2-event-header { grid-template-columns: 1fr; }
  .jyc-g2-header-form { grid-template-columns: 1fr 1fr; }
  .jyc-g2-map { min-height: 440px; }
}
@media (max-width: 520px) {
  .jyc-g2-time-grid { grid-template-columns: 1fr; }
  .jyc-g2-map { min-height: 400px; }
  .jyc-g2-map-controls button { width: 100%; }
  .jyc-g2-header-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .jyc-g2-shell *, .jyc-g2-event-header * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
