/* jig.lt fishing rules map. Leaflet core rules (Leaflet is BSD-2-Clause, (c) Vladimir Agafonkin) + map UI. */

/* ---------- Leaflet core ---------- */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container,
.leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; -webkit-tap-highlight-color: transparent; background: #e9e5dc; outline: 0; font: 13px/1.45 var(--jig-font-body, Inter, sans-serif); }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.leaflet-tile::selection { background: transparent; }
.leaflet-container .leaflet-overlay-pane svg, .leaflet-container .leaflet-marker-pane img, .leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer, .leaflet-container .leaflet-tile { max-width: none !important; max-height: none !important; width: auto; padding: 0; }
.leaflet-container .leaflet-tile-pane img { box-shadow: none; border-radius: 0; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag { touch-action: none; touch-action: pinch-zoom; }
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-container { -webkit-touch-callout: none; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-box { width: 0; height: 0; box-sizing: border-box; z-index: 800; border: 2px dotted #38f; background: rgba(255, 255, 255, .5); }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-control { position: relative; z-index: 800; pointer-events: visiblePainted; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; } .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; } .leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-fade-anim .leaflet-tile { will-change: opacity; }
.leaflet-fade-anim .leaflet-popup { opacity: 0; transition: opacity .2s linear; }
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup { opacity: 1; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { will-change: transform; transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-grab .leaflet-interactive { cursor: grabbing; }
.leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive { pointer-events: visiblePainted; pointer-events: auto; }
.leaflet-bar { box-shadow: 0 1px 5px rgba(0, 0, 0, .25); border-radius: 6px; }
.leaflet-bar a, .leaflet-bar a:hover { background: #fff; border-bottom: 1px solid #ddd; width: 34px; height: 34px; line-height: 34px; display: block; text-align: center; text-decoration: none; color: #1c1917; }
.leaflet-bar a:first-child { border-top-left-radius: 6px; border-top-right-radius: 6px; }
.leaflet-bar a:last-child { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-bottom: none; }
.leaflet-bar a:hover { background: #f5f2ed; }
.leaflet-bar a.leaflet-disabled { cursor: default; background: #f4f4f4; color: #bbb; }
.leaflet-control-zoom-in, .leaflet-control-zoom-out { font: bold 20px/34px Arial, sans-serif; text-indent: 1px; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .8); margin: 0; padding: 0 6px; color: #333; font-size: 11px; line-height: 1.6; }
.leaflet-control-attribution a { color: #0b6e99; text-decoration: none; }
.leaflet-container .leaflet-control-attribution { margin: 0; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper { padding: 1px; text-align: left; border-radius: 10px; background: #fff; color: #1c1917; box-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.leaflet-popup-tip-container { width: 40px; height: 20px; position: absolute; left: 50%; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; transform: rotate(45deg); background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.leaflet-container a.leaflet-popup-close-button { position: absolute; top: 4px; right: 4px; padding: 0; border: none; text-align: center; width: 28px; height: 28px; font: 22px/26px Arial, sans-serif; color: #78716c; text-decoration: none; background: transparent; }
.leaflet-container a.leaflet-popup-close-button:hover { color: #1c1917; }
.leaflet-popup-scrolled { overflow: auto; }
.leaflet-control-layers { box-shadow: 0 1px 5px rgba(0, 0, 0, .25); background: #fff; border-radius: 6px; color: #1c1917; }
.leaflet-control-layers-toggle { position: relative; display: block; width: 36px; height: 36px; background: none; }
.leaflet-control-layers-toggle::before { content: ""; position: absolute; left: 9px; top: 9px; width: 18px; height: 18px;
  background: no-repeat center / 18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 8l10 5 10-5-10-5z'/%3E%3Cpath d='m2 13 10 5 10-5'/%3E%3Cpath d='m2 17.5 10 5 10-5' opacity='.5'/%3E%3C/svg%3E"); }
.leaflet-control-layers-expanded .leaflet-control-layers-toggle, .leaflet-control-layers .leaflet-control-layers-list { display: none; }
.leaflet-control-layers-expanded .leaflet-control-layers-list { display: block; position: relative; }
.leaflet-control-layers-expanded { padding: 8px 12px 8px 8px; }
.leaflet-control-layers-scrollbar { overflow-y: scroll; overflow-x: hidden; padding-right: 5px; }
.leaflet-control-layers label { display: block; margin: 2px 0; font-size: 13px; cursor: pointer; }
.leaflet-control-layers-selector { margin: 0 6px 0 0; position: relative; top: 1px; }
.leaflet-control-layers-separator { height: 0; border-top: 1px solid #ddd; margin: 5px -10px 5px -6px; }
.leaflet-control-layers-base:empty, .leaflet-control-layers-base:empty + .leaflet-control-layers-separator { display: none; }
.leaflet-control-scale-line { border: 2px solid #777; border-top: none; line-height: 1.1; padding: 2px 5px 1px; font-size: 11px; white-space: nowrap; overflow: hidden; box-sizing: border-box; background: rgba(255, 255, 255, .6); }

/* ---------- page UI ---------- */
.jig-fmap { --fm-red: #d14b45; --fm-orange: #e3922b; --fm-green: #3f9a62; --fm-grey: #9a9ea4; margin: 0 0 40px; color: var(--jig-text, #1c1917); }
.jig-fmap *, .jig-fmap *::before, .jig-fmap *::after { box-sizing: border-box; }
.jig-fmap__proto { display: inline-block; margin: 0 0 12px; padding: 3px 10px; border-radius: 999px; background: #1c1917; color: #fff; font-size: 12px; letter-spacing: .02em; }
.jig-fmap__intro { margin: 0 0 14px; color: var(--jig-muted, #78716c); max-width: 760px; }
.jig-fmap__warn { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(209, 75, 69, .35); border-left: 4px solid var(--fm-red); border-radius: 8px; background: #fff6f5; font-size: 14px; line-height: 1.5; }
.jig-fmap__warn a { color: #9b2c27; text-decoration: underline; white-space: nowrap; }
.jig-fmap__warn--full { margin: 18px 0 0; }
.jig-fmap__warn--full strong { display: block; margin-bottom: 2px; }
.jig-fmap__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 10px; }
.jig-fmap__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--jig-muted, #78716c); }
.jig-fmap__field input { height: 40px; padding: 0 10px; border: 1px solid rgba(28, 25, 23, .18); border-radius: 8px; background: #fff; color: #1c1917; font: 15px var(--jig-font-body, Inter, sans-serif); }
.jig-fmap__field input:focus { outline: 2px solid var(--jig-gold, #b8954e); outline-offset: 1px; border-color: transparent; }
.jig-fmap__field--search { flex: 1 1 220px; }
.jig-fmap__field--search input { width: 100%; }
.jig-fmap__field select { height: 40px; padding: 0 32px 0 10px; border: 1px solid rgba(28, 25, 23, .18); border-radius: 8px; background: #fff; color: #1c1917; font: 15px var(--jig-font-body, Inter, sans-serif); max-width: 100%; }
.jig-fmap__field select:focus { outline: 2px solid var(--jig-gold, #b8954e); outline-offset: 1px; border-color: transparent; }
.jig-fmap__field--sel { flex: 1 1 220px; min-width: 0; }
.jig-fmap__field--sel select { width: 100%; }
.jig-fmap__list { margin: 14px 0 0; padding: 16px 18px; border: 1px solid var(--jig-border, rgba(28, 25, 23, .08)); border-radius: 12px; background: #fff; }
.jig-fmap__list h3 { margin: 0 0 6px; font-size: 20px; }
.jig-fmap__list-intro { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--jig-muted, #78716c); }
.jig-fmap__a7 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.jig-fmap__a7 li { margin: 0; }
.jig-fmap__a7-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid rgba(227, 146, 43, .45); border-left: 4px solid var(--fm-orange); border-radius: 8px; background: #fffaf3; color: #1c1917; font: 14px var(--jig-font-body, Inter, sans-serif) !important; text-align: left; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; }
.jig-fmap__a7-btn, .jig-fmap__a7-btn:focus { background: #fffaf3 !important; color: #1c1917 !important; }
/* the theme turns button text white on hover: keep the lake name dark on the pale card */
.jig-fmap__a7-btn:hover, .jig-fmap__a7-btn:focus-visible, .jig-fmap__a7-btn:active { background: #fff3e2 !important; color: #1c1917 !important; transform: none !important; }
.jig-fmap__a7-btn::before { display: none !important; }
.jig-fmap__a7-btn strong { font-weight: 600; color: #1c1917 !important; }
.jig-fmap__a7-btn span { font-size: 12px; color: var(--jig-muted, #78716c) !important; }
.jig-fmap__results { margin: 0 0 12px; border: 1px solid var(--jig-border, rgba(28, 25, 23, .12)); border-radius: 10px; background: #fff; overflow: hidden; }
.jig-fmap__results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; font-size: 14px; color: #1c1917; border-bottom: 1px solid rgba(28, 25, 23, .08); }
.jig-fmap__results-close { width: 32px; height: 32px; padding: 0 !important; border: 0 !important; border-radius: 6px; background: transparent !important; color: #78716c !important; font-size: 22px !important; line-height: 1; cursor: pointer; box-shadow: none !important; transform: none !important; }
.jig-fmap__results-close::before, .jig-fmap__results-btn::before { display: none !important; }
.jig-fmap__results-close:hover { background: #f5f2ed !important; color: #1c1917 !important; }
.jig-fmap__results-list { max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; }
.jig-fmap__results-list li { margin: 0; }
.jig-fmap__results-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px !important; border: 0 !important; border-radius: 6px; background: #fff !important; color: #1c1917 !important; font: 14px var(--jig-font-body, Inter, sans-serif) !important; text-align: left; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; transform: none !important; cursor: pointer; }
.jig-fmap__results-btn:hover, .jig-fmap__results-btn:focus-visible { background: #faf6ef !important; color: #1c1917 !important; }
.jig-fmap__results-btn.is-on { background: #f3ead9 !important; }
.jig-fmap__results-btn strong { font-weight: 600; color: #1c1917 !important; }
.jig-fmap__results-btn span { font-size: 12px; color: var(--jig-muted, #78716c) !important; }
.jig-fmap__btn { height: 40px; padding: 0 14px; border: 1px solid rgba(28, 25, 23, .18); border-radius: 8px; background: #fff; color: #1c1917; font: 500 14px var(--jig-font-body, Inter, sans-serif); cursor: pointer; white-space: nowrap; }
.jig-fmap__btn:hover { border-color: var(--jig-gold, #b8954e); }
.jig-fmap__btn:focus-visible { outline: 2px solid var(--jig-gold, #b8954e); outline-offset: 1px; }
.jig-fmap__btn[disabled] { opacity: .5; cursor: default; }
.jig-fmap__status { min-height: 20px; margin: 0 0 8px; font-size: 13px; color: var(--jig-muted, #78716c); }
.jig-fmap__status--err { color: var(--fm-red); }
.jig-fmap__wrap { position: relative; }
.jig-fmap__map { position: relative; z-index: 0; isolation: isolate; width: 100%; height: 70vh; min-height: 420px; max-height: 820px; border-radius: 12px; border: 1px solid rgba(28, 25, 23, .12); }
.jig-fmap__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.jig-fmap__legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.jig-fmap__sw { flex: 0 0 auto; width: 22px; height: 12px; border-radius: 3px; }
.jig-fmap__sw--red { background: var(--fm-red); } .jig-fmap__sw--orange { background: var(--fm-orange); }
.jig-fmap__sw--green { background: var(--fm-green); } .jig-fmap__sw--grey { background: var(--fm-grey); }
.jig-fmap__sw--outline { height: 0; border-top: 2px dashed var(--jig-gold, #b8954e); border-radius: 0; }
.jig-fmap__sw--reserve { background: rgba(209, 75, 69, .22); border: 1px dashed rgba(209, 75, 69, .6); }
.jig-fmap__sw--water { width: auto; height: auto; padding: 0 5px; border-radius: 9px; background: #2b6cb0; color: #fff; font: 600 11px/16px var(--jig-font-body, Inter, sans-serif); }
.jig-fmap-water { background: none; border: 0; }
.jig-fmap-water span { position: absolute; transform: translate(-50%, -50%); padding: 0 6px; border: 1.5px solid #fff; border-radius: 10px; background: #2b6cb0; color: #fff; font: 600 11px/17px var(--jig-font-body, Inter, sans-serif); white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer; }
.jig-fmap-water.is-old span { background: #8a8f98; }
.jig-fmap-water__row { margin: 6px 0 0; }
.jig-fmap-water__val { margin: 0; font-size: 14px; }
.jig-fmap-water__trend { margin: 0; font-size: 12px; color: var(--jig-muted, #78716c); }
.jig-fmap-spark { display: block; width: 100%; max-width: 240px; height: 34px; margin: 2px 0 0; }
.jig-fmap-water__wx { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(28, 25, 23, .1); font-size: 13px; }
.jig-fmap-water__wx p { margin: 0; }
.jig-fmap-water__wxhead { font-weight: 600; }
.jig-fmap-water__note { margin: 8px 0 0; font-size: 12px; color: var(--jig-muted, #78716c); }
.jig-fmap__sw--dam { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--fm-red); background: rgba(209, 75, 69, .25); }
.jig-fmap__legend-note { margin: 6px 0 0; font-size: 13px; color: var(--jig-muted, #78716c); }
.jig-fmap__panel { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--jig-border, rgba(28, 25, 23, .08)); border-radius: 12px; background: #fff; }
.jig-fmap__panel h2 { margin: 0 0 10px; font-size: 24px; }
.jig-fmap__panel h3 { margin: 16px 0 6px; font: 600 15px var(--jig-font-body, Inter, sans-serif); }
.jig-fmap__panel p, .jig-fmap__panel li { font-size: 14px; line-height: 1.55; }
.jig-fmap__panel ul { margin: 0 0 0 18px; padding: 0; }
.jig-fmap__closed { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.jig-fmap__closed li { margin: 0; padding: 3px 10px; border-radius: 999px; background: #fdecea; color: #9b2c27; font-size: 13px; }
.jig-fmap__closed--none li { background: #e8f4ec; color: #24643c; }
.jig-fmap__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jig-fmap__table th, .jig-fmap__table td { padding: 6px 8px; border-bottom: 1px solid var(--jig-border, rgba(28, 25, 23, .08)); text-align: left; vertical-align: top; }
.jig-fmap__table tr.is-closed td { background: #fff6f5; }
.jig-fmap__src li { margin-bottom: 4px; }

/* popup */
.jig-fmap-pop { min-width: 220px; max-width: 300px; font-size: 13px; }
.jig-fmap-pop h4 { margin: 0 26px 2px 0; font: 600 16px/1.3 var(--jig-font-body, Inter, sans-serif); }
.jig-fmap-pop__meta { margin: 0 0 8px; color: #78716c; font-size: 12px; }
.jig-fmap-pop__chip { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; }
.jig-fmap-pop__chip--red { background: var(--fm-red, #d14b45); } .jig-fmap-pop__chip--orange { background: var(--fm-orange, #e3922b); }
.jig-fmap-pop__chip--green { background: var(--fm-green, #3f9a62); } .jig-fmap-pop__chip--grey { background: var(--fm-grey, #9a9ea4); }
.jig-fmap-pop h5 { margin: 8px 0 4px; font: 600 12px var(--jig-font-body, Inter, sans-serif); text-transform: uppercase; letter-spacing: .04em; color: #78716c; }
.jig-fmap-pop ul { margin: 0; padding: 0; list-style: none; }
.jig-fmap-pop li { margin: 0 0 6px; padding-left: 10px; border-left: 3px solid #ddd; }
.jig-fmap-pop li.k-ban { border-color: var(--fm-red, #d14b45); } .jig-fmap-pop li.k-card, .jig-fmap-pop li.k-cond { border-color: var(--fm-orange, #e3922b); }
.jig-fmap-pop li.k-unclear { border-color: var(--fm-grey, #9a9ea4); }
.jig-fmap-pop li.is-off { opacity: .72; }
.jig-fmap-pop__src { display: block; margin-top: 2px; color: #78716c; font-size: 11px; }
.jig-fmap-pop__src a { color: #0b6e99; }
.jig-fmap-pop__foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; font-size: 12px; }
.jig-fmap-pop__foot a { color: #0b6e99; }
.jig-fmap .leaflet-popup-content { max-height: 360px; overflow-y: auto; }

@media (max-width: 640px) {
  .jig-fmap__map { height: 62vh; min-height: 360px; border-radius: 10px; }
  .jig-fmap__bar { gap: 8px; }
  .jig-fmap__field--date { flex: 1 1 140px; }
  .jig-fmap__field--date input { width: 100%; }
  .jig-fmap__btn { flex: 0 0 auto; padding: 0 12px; }
  .jig-fmap__field--search { flex: 1 1 150px; min-width: 0; }
  .jig-fmap__intro { font-size: 15px; line-height: 1.5; }
  .jig-fmap__panel { padding: 14px; }
  .jig-fmap-pop { max-width: 250px; }
}
.leaflet-tooltip { position: absolute; padding: 4px 8px; background: #fff; border-radius: 6px; color: #1c1917; white-space: nowrap; font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); pointer-events: none; }
.leaflet-tooltip-top::before { display: none; }
