{"id":1655,"date":"2026-10-25T19:11:16","date_gmt":"2026-10-25T12:11:16","guid":{"rendered":"https:\/\/shfishing.vn\/?page_id=1655"},"modified":"2026-11-06T03:15:21","modified_gmt":"2026-11-05T20:15:21","slug":"con-nuoc-gio-cau","status":"publish","type":"page","link":"https:\/\/shfishing.vn\/en\/con-nuoc-gio-cau\/","title":{"rendered":"Tides &amp; fishing times"},"content":{"rendered":"<style>#shmap{--green:#073e32;--gold:#b98b32;--cream:#faf7ef;background:var(--cream);color:var(--green);padding:28px;border-radius:20px;max-width:1320px;margin:8px auto 30px;font:15px\/1.55 Arial,sans-serif;isolation:isolate}#shmap *{box-sizing:border-box}#shmap h1,#shmap h2,#shmap h3{color:var(--green);text-transform:none;letter-spacing:0;margin:0 0 12px}#shmap h1{font:700 38px\/1.1 Arial,sans-serif}#shmap h2{font:700 22px\/1.3 Arial,sans-serif}#shmap h3{font:700 17px\/1.4 Arial,sans-serif}#shmap p{margin:0 0 10px}#shmap button,#shmap input,#shmap select,#shmap .sm-button{font:600 14px\/1.4 Arial,sans-serif;text-transform:none;letter-spacing:0;border:1px solid #d6dccf;border-radius:9px;min-height:44px;padding:10px 14px;margin:0;background:#fff;color:var(--green);box-shadow:none}#shmap button{cursor:pointer}#shmap input,#shmap select{width:100%}#shmap button:hover{background:#f5edda}#shmap button:disabled{opacity:.6;cursor:wait}#shmap :focus-visible{outline:3px solid #b98b32;outline-offset:3px}#shmap [hidden]{display:none!important}#shmap .sm-primary{background:var(--green);border-color:var(--green);color:white}#shmap .sm-primary:hover{background:#205c47}#shmap .sm-button{display:inline-flex;text-decoration:none;align-items:center}#shmap .sm-brand{display:flex;align-items:center;gap:16px}#shmap .sm-brand img{width:70px;height:70px;object-fit:contain}#shmap .sm-brand p{margin:0;color:#5f7063}#shmap .sm-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}#shmap .sm-top-actions{display:flex;gap:8px}#shmap .sm-top-actions button:last-child{border-color:#c6a45d;background:#fcf5e5}#shmap .sm-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}#shmap .sm-search{display:flex;gap:8px;flex:1;min-width:230px}#shmap .sm-datebar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:16px 0 22px}#shmap .sm-datebar button[aria-pressed=true]{background:var(--green);color:#fff}#shmap .sm-datebar input{width:155px}#shmap .sm-datebar small{margin-left:auto;color:#6c786a}#shmap .sm-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}#shmap .sm-main,#shmap .sm-sidebar{display:grid;gap:18px;min-width:0}#shmap .sm-card{padding:24px;background:#fff;border:1px solid #e3e2d5;border-radius:16px;box-shadow:0 4px 18px #073e3205;min-width:0}#shmap .sm-activity{background:linear-gradient(135deg,#fff,#fbf6e8);position:relative}#shmap .sm-activity h2{font:700 clamp(22px,2.7vw,33px)\/1.2 Georgia,serif;text-transform:uppercase;margin:7px 0 10px;max-width:82%}#shmap .sm-activity .sm-watermark{position:absolute;right:20px;top:24px;width:90px;opacity:.12;pointer-events:none}#shmap .sm-eyebrow{font-size:12px;color:#657762}#shmap .sm-selected{font-size:25px;font-weight:700;color:#8c641f;margin-bottom:12px}#shmap .sm-text-1{color:#57705e}#shmap .sm-text-2{color:#235641}#shmap .sm-bars{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));align-items:end;gap:5px;height:165px;margin:22px 0 0;border-bottom:1px solid #ccd8cb;background:repeating-linear-gradient(to top,transparent 0,transparent 53px,#e8e8df 54px,#e8e8df 55px)}#shmap button.sm-bar{height:100%;min-height:0;min-width:0;border:0;border-radius:5px 5px 0 0;padding:0;display:flex;align-items:end;background:transparent;position:relative}#shmap .sm-bar-fill{display:block;width:100%;height:26%;background:#8fb79d;border-radius:4px 4px 0 0;border:1px solid #83aa91}#shmap .sm-level-2 .sm-bar-fill{height:55%;background:#34745b;border-color:#2b664e}#shmap .sm-level-3 .sm-bar-fill{height:90%;background:linear-gradient(#e1bd67,#b98b32);border-color:#bb923d}#shmap .sm-bar[aria-pressed=true]{background:#caa24328;outline:2px solid #bb923d;outline-offset:2px}#shmap .sm-axis{display:flex;justify-content:space-between;font-size:11px;color:#647366;margin:7px 0 14px}#shmap .sm-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px}#shmap .sm-dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:5px;background:#8fb79d}#shmap .sm-dot.medium{background:#34745b}#shmap .sm-dot.high{background:#c49941}#shmap .sm-hint{color:#677563;font-size:12px;margin-top:10px}#shmap .sm-hour-control{display:flex;gap:12px;align-items:center;margin-top:16px}#shmap input[type=range]{padding:0;min-height:28px;accent-color:#b98b32;flex:1}#shmap .sm-periods{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}#shmap .sm-period{font-size:12px;min-height:34px;padding:6px 9px;background:#edf3ed}#shmap .sm-period.major{border-color:#d7be80;background:#fff5df}#shmap .sm-muted{font-size:12px;color:#657365}#shmap .sm-why-items{display:grid;grid-template-columns:1fr 1fr;gap:16px}#shmap .sm-why-items>div{border-left:2px solid #d6b873;padding-left:12px}#shmap .sm-why-items p{font-size:13px;color:#4d6658}#shmap .sm-why-items>div:first-child{grid-column:1\/-1}#shmap .sm-tidechart svg{width:100%;height:auto;display:block}#shmap .sm-events{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#shmap .sm-events span{font-size:12px;background:#eef4ef;border-radius:7px;padding:6px 9px}#shmap #sm-tide-detail{padding:10px;background:#f5f1e4;border-radius:8px;font-weight:700}#shmap details{margin-top:16px}#shmap summary{font-weight:700;cursor:pointer;min-height:36px}#shmap #sm-map{height:280px;border-radius:10px;z-index:0}#shmap .sm-coords{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-top:16px}#shmap label{font-size:12px;display:block;font-weight:600}#shmap .sm-saved-item{border:1px solid #e1ddce;border-radius:10px;padding:10px;margin:12px 0;background:#fffdfa;display:flex;gap:5px;flex-wrap:wrap}#shmap .sm-saved-name{width:100%;text-align:left;border:0;background:transparent;padding:0 4px;overflow-wrap:anywhere}#shmap .sm-link{border:0;min-height:32px;padding:5px;font-size:12px;text-decoration:underline;background:transparent}#shmap .sm-weather{display:grid;gap:8px}#shmap .sm-metric{background:#f3f5ee;border-radius:8px;padding:12px;display:flex;justify-content:space-between;gap:8px;font-size:12px}#shmap .sm-metric strong{font-size:15px}#shmap .sm-status{font-size:13px;min-height:20px;color:#46624f}#shmap .sm-error{color:#b52435}#shmap .sm-save-panel{background:#fff8e8;border:1px solid #d6b873;border-radius:12px;padding:18px;margin:12px 0}#shmap .sm-save-panel form{display:flex;gap:10px;flex-wrap:wrap;margin:0}#shmap .sm-save-panel label{width:100%}#shmap .sm-save-panel input{flex:1;min-width:160px}#shmap .sm-results{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#shmap .sm-table-wrap{max-height:360px;overflow:auto}#shmap table{width:100%;border-collapse:collapse;font-size:13px;margin:0}#shmap th,#shmap td{padding:10px 6px;border-bottom:1px solid #e5e9df;white-space:nowrap;text-transform:none;color:#31533f;letter-spacing:0}#shmap th{position:sticky;top:0;background:#f2f4ed}#shmap tr.selected{background:#fff2d3}#shmap .sm-foot{font-size:12px;color:#657365;margin-top:20px}#shmap .sm-foot a{color:#28624b;text-decoration:underline}\r\n@media(max-width:1000px){#shmap .sm-grid{grid-template-columns:minmax(0,1fr) 235px}#shmap{padding:20px}#shmap .sm-card{padding:18px}}\r\n@media(max-width:800px){#shmap{padding:16px 12px;margin:0 -5px 20px;border-radius:12px;font-size:14px}#shmap .sm-grid{grid-template-columns:1fr}#shmap .sm-top{flex-wrap:wrap;gap:12px}#shmap h1{font-size:30px}#shmap .sm-brand img{width:56px;height:56px}#shmap .sm-top-actions{width:100%}#shmap .sm-top-actions button{flex:1}#shmap .sm-card{padding:17px}#shmap .sm-activity h2{font-size:23px}#shmap .sm-selected{font-size:22px}#shmap .sm-bars{height:140px;gap:3px}#shmap .sm-datebar{gap:6px;margin:12px 0}#shmap .sm-datebar input{width:139px}#shmap .sm-datebar button{padding:9px}#shmap .sm-datebar small{width:100%;margin:0}#shmap .sm-coords{grid-template-columns:1fr 1fr}#shmap .sm-coords button{grid-column:1\/-1}#shmap .sm-why-items{grid-template-columns:1fr}#shmap .sm-search{min-width:0;width:100%}#shmap .sm-sidebar{grid-template-columns:1fr}#shmap .sm-watermark{max-width:70px}#shmap .sm-legend{gap:12px}}\r\n\r\n#shmap .sm-search{margin:0}#shmap .sm-picker{margin:0 0 10px;background:#fff;border:1px solid #d6dccf;border-radius:10px;padding:0 14px}#shmap .sm-picker summary{padding:12px 0;margin:0}#shmap .sm-picker summary span{font-size:12px;color:#687866;float:right}#shmap .sm-picker .sm-controls{padding-top:6px}#shmap .sm-status:empty{display:none}#shmap .sm-saved-shortcut{display:inline-block;font-size:13px;color:#486b52;text-decoration:underline;margin-bottom:4px}#shmap .sm-top{margin-bottom:16px}#shmap .sm-top-actions{flex-shrink:0}#shmap .sm-datebar{margin-top:8px}.page-id-1655 .float-call,.page-id-1655>jdiv,.page-id-1655 #jivo-iframe-container{display:none!important}\r\n@media(max-width:800px){#shmap{margin:0 0 20px}#shmap .sm-top{flex-wrap:nowrap;gap:8px}#shmap .sm-top-actions{width:auto}#shmap .sm-top-actions button{font-size:12px;padding:9px}#shmap .sm-brand{gap:8px}#shmap .sm-brand img{width:48px;height:48px}#shmap .sm-brand p{font-size:12px}#shmap .sm-brand h1{font-size:27px}#shmap .sm-controls{flex-wrap:wrap}#shmap .sm-search{flex-basis:100%}#shmap .sm-activity h2{max-width:90%}#shmap .sm-activity .sm-watermark{width:55px;right:12px;top:15px}}\r\n\r\n\/* SH Map 2.1: detailed search, compact calendar, contextual hour analysis. *\/\r\n#shmap [hidden]{display:none!important}\r\n#shmap .sm-search-note{font-size:13px;color:#63796c;margin:12px 0}\r\n#shmap .sm-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}\r\n#shmap .sm-result{text-align:left;white-space:normal;line-height:1.5;padding:12px 16px;height:auto;display:flex;flex-direction:column;gap:4px}\r\n#shmap .sm-result span{font-size:12px;font-weight:400;color:#63796c}\r\n#shmap .sm-calendar{position:relative;z-index:5;margin:0}\r\n#shmap .sm-calendar>summary{display:flex;align-items:center;gap:12px;list-style:none;border:1px solid #cfdbd0;background:#fff;border-radius:12px;padding:11px 16px;font-size:16px;min-height:48px;color:#164638;cursor:pointer}\r\n#shmap .sm-calendar>summary::-webkit-details-marker{display:none}\r\n#shmap .sm-calendar-panel{position:absolute;top:calc(100% + 8px);left:0;width:290px;max-width:calc(100vw - 48px);background:#fff;padding:16px;box-shadow:0 12px 36px #143f3420;border:1px solid #d6dfd5;border-radius:16px}\r\n#shmap .sm-calendar-panel p{font-size:12px;margin:4px 0 12px;color:#63796c}\r\n#shmap #sm-date-options{display:grid;gap:5px}\r\n#shmap #sm-date-options button{text-align:left;font-size:14px;padding:8px 12px;min-height:40px;border-radius:8px;margin:0}\r\n#shmap #sm-date-options button[aria-pressed=true]{background:#164638;color:#fff;border-color:#164638}\r\n#shmap .sm-plan{background:#eff6f0;border:1px solid #d8e5d8;border-radius:14px;padding:18px 20px;margin:18px 0 24px}\r\n#shmap .sm-plan strong{display:block;font-size:26px;color:#164638;line-height:1.35;margin:8px 0}\r\n#shmap .sm-plan p{margin:0;line-height:1.7;color:#476758}\r\n#shmap .sm-why-items p{line-height:1.8}\r\n@media(max-width:600px){#shmap .sm-results{grid-template-columns:1fr}#shmap .sm-calendar-panel{left:auto;right:0}#shmap .sm-plan{padding:16px}#shmap .sm-plan strong{font-size:23px}#shmap .sm-datebar{gap:8px}#shmap .sm-calendar>summary{padding:10px 12px}}\r\n\/* Keep the floating raffle launcher clear of the map calendar and hour controls. *\/\r\nbody.page-id-1655 #shmd-launch{display:none!important}\r\n\r\n#shmap #sm-map-panel{margin-top:16px;padding-top:16px;border-top:1px solid #e3e9df}\r\n#shmap .sm-tide-hours{display:flex;overflow-x:auto;gap:7px;padding:10px 1px 14px;scroll-snap-type:x proximity}\r\n#shmap .sm-tide-hours button{flex:0 0 82px;display:flex;flex-direction:column;gap:5px;align-items:center;padding:10px 4px;margin:0;line-height:1.4;white-space:nowrap;border-radius:12px;scroll-snap-align:start}\r\n#shmap .sm-tide-hours button span{font-size:14px}#shmap .sm-tide-hours button small{font-size:11px;font-weight:400}\r\n#shmap .sm-tide-hours button[aria-pressed=true]{background:#164638;color:white;border-color:#164638}\r\n#shmap .sm-tide-reading{padding:14px;background:#f6f0df;border-radius:12px;color:#164638;font-weight:700;line-height:1.7}\r\n\r\n\/* Illustrated carp and proportional fish schools: decorative Solunar levels. *\/\r\n#shmap .sm-fish-heading{display:flex;align-items:center;gap:14px;margin:8px 0 12px;padding-right:30px}#shmap .sm-fish-heading h2{margin:0;max-width:none;flex:1}#shmap .sm-fish-art{display:block;flex:0 0 124px;width:124px;height:92px;background:radial-gradient(ellipse,#f8eac7 0%,#eff5ec 58%,transparent 72%)}#shmap .sm-fish-art svg{display:block;width:100%;height:100%}\r\n#shmap .sm-chart-scroll{overflow-x:auto;overflow-y:hidden;padding:5px 4px 0;margin:0 -4px;scrollbar-width:thin;scrollbar-color:#c4a55e #f4f1e6}#shmap .sm-bars{min-width:600px;height:200px;gap:6px;background:repeating-linear-gradient(to top,transparent 0,transparent 64px,#e8e8df 65px,#e8e8df 66px)}#shmap .sm-axis{min-width:600px}#shmap .sm-bar-fill{position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(#c5d9c5,#8fb79d);border-radius:8px 8px 0 0}#shmap .sm-level-2 .sm-bar-fill{background:linear-gradient(#6d9e7e,#34745b)}#shmap .sm-level-3 .sm-bar-fill{background:linear-gradient(#f1d991,#b98b32)}#shmap .sm-fish-school{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;width:100%;pointer-events:none}#shmap .sm-chart-fish{display:block;width:85%;max-width:32px;aspect-ratio:1.8;background:#244f3a;mask:url(\"data:image\/svg+xml,%3Csvg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 60 34'%3E%3Cpath d='M15 17C25 2 44 3 58 17C44 31 25 32 15 17L2 29L5 17L2 5ZM27 7L35 1L42 7ZM28 27L35 33L42 27Z'\/%3E%3Ccircle cx='48' cy='14' r='2' fill='white' style='mix-blend-mode:destination-out'\/%3E%3C\/svg%3E\") center\/contain no-repeat;opacity:.85}#shmap .sm-level-2 .sm-chart-fish{background:#fff6d8}#shmap .sm-level-3 .sm-chart-fish{background:#624918}#shmap .sm-fish-school .sm-chart-fish:nth-child(2){transform:scaleX(-1)}#shmap .sm-bar[aria-pressed=true] .sm-bar-fill{box-shadow:0 0 0 2px #846225}\r\n@media(max-width:800px){#shmap .sm-fish-heading{gap:8px;padding-right:0}#shmap .sm-fish-art{flex-basis:92px;width:92px;height:76px}#shmap .sm-fish-heading h2{font-size:22px}#shmap .sm-activity .sm-watermark{display:none}#shmap .sm-bars{height:185px;gap:6px}#shmap .sm-legend{margin-top:10px}}\r\n\r\n\/* Official SH Map shark mark replaces the decorative carp. *\/\r\n#shmap .sm-fish-art{flex:0 0 86px;width:86px;height:86px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:linear-gradient(145deg,#fffdf6,#f1e4bd);border:1px solid #dbc78e;box-shadow:0 4px 12px #073e3210;padding:8px}#shmap .sm-fish-art img.sm-activity-shark{display:block;width:100%;height:100%;object-fit:contain;margin:0;filter:drop-shadow(0 2px 1px #073e3215)}#shmap .sm-fish-heading{padding-right:0;gap:16px}@media(max-width:800px){#shmap .sm-fish-art{flex-basis:66px;width:66px;height:66px;border-radius:17px;padding:6px}#shmap .sm-fish-heading{gap:12px}}\r\n\r\n\/* Approved realistic barramundi artwork. *\/\r\n#shmap .sm-fish-heading{gap:18px}#shmap .sm-fish-art{order:2;flex:0 0 220px;width:220px;height:146px;padding:0;border:0;border-radius:18px;background:none;box-shadow:none;overflow:hidden}#shmap .sm-fish-art img.sm-activity-bass{display:block;width:100%;height:100%;object-fit:contain;margin:0}#shmap .sm-fish-heading h2{order:1}@media(max-width:800px){#shmap .sm-fish-heading{flex-direction:column;align-items:flex-start;gap:8px}#shmap .sm-fish-heading h2{width:100%;font-size:22px}#shmap .sm-fish-art{flex:0 0 auto;width:240px;max-width:100%;height:160px;align-self:center;border-radius:14px;padding:0}}\r\n\r\n\/* Compact mobile activity heading: retain chart space. *\/\r\n@media(max-width:600px){#shmap .sm-fish-heading{flex-direction:row;align-items:center;gap:8px;margin:4px 0 8px}#shmap .sm-fish-heading h2{width:auto;flex:1;font-size:20px;line-height:1.2}#shmap .sm-fish-art{flex:0 0 82px;width:82px;height:56px;max-width:82px;align-self:center;border-radius:6px}#shmap .sm-activity{padding:14px}#shmap .sm-activity .sm-eyebrow{font-size:10px}#shmap .sm-selected{font-size:20px;margin-bottom:6px}#shmap .sm-bars{margin-top:12px;height:140px;min-width:0;gap:2px}#shmap .sm-axis{min-width:0;font-size:10px}#shmap .sm-chart-scroll{overflow-x:hidden}#shmap .sm-fish-school{gap:5px}#shmap .sm-top{margin-bottom:12px}#shmap .sm-datebar{margin:10px 0 12px}}\r\n<\/style>\r\n<style>#shmap .sm-source-fallback{padding:16px;border:1px solid #dedbc9;border-radius:14px;background:#faf7ee}#shmap .sm-source-fallback .sm-button,#shmap .sm-source-fallback button{margin:6px 8px 0 0;white-space:normal;max-width:100%}@media(max-width:600px){#shmap .sm-source-fallback .sm-button{display:block;margin-right:0}}<\/style><section data-tide-release=\"fallback-1\" id=\"shmap\" aria-label=\"SH Map \u2014 Con n\u01b0\u1edbc v\u00e0 gi\u1edd c\u00e2u\">\r\n<header class=\"sm-top\"><div class=\"sm-brand\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"798\" src=\"https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-798x798.webp\" class=\"\" alt=\"SH Map \u2014 c\u00e1 m\u1eadp SH Group\" sizes=\"auto, 70px\" srcset=\"https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-798x798.webp 798w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-800x800.webp 800w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-280x280.webp 280w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-768x768.webp 768w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-12x12.webp 12w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-600x600.webp 600w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126-100x100.webp 100w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/sh-map-shark-logo-shf20261126.webp 1254w\" \/><div><h1>SH Map \u2013 Xem con n\u01b0\u1edbc v\u00e0 gi\u1edd c\u00e2u c\u00e1<\/h1><p>Con n\u01b0\u1edbc &amp; gi\u1edd c\u00e2u<\/p><\/div><\/div><div class=\"sm-top-actions\"><button id=\"sm-save\" type=\"button\">L\u01b0u \u0111i\u1ec3m c\u00e2u<\/button><\/div><\/header>\r\n<details id=\"sm-picker\" class=\"sm-picker\"><summary>\u2316 <strong id=\"sm-place\">V\u0169ng T\u00e0u<\/strong> <span>\u0110\u1ed5i \u0111i\u1ec3m c\u00e2u<\/span><\/summary><div class=\"sm-controls\"><form id=\"sm-search-form\" class=\"sm-search\"><label for=\"sm-search\" class=\"screen-reader-text\">T\u00ecm \u0111i\u1ec3m c\u00e2u<\/label><input type=\"search\" id=\"sm-search\" placeholder=\"Nh\u1eadp x\u00e3, ph\u01b0\u1eddng, s\u00f4ng, h\u1ed3\u2026 VD: Long Xuy\u00ean\" maxlength=\"80\"><button type=\"submit\">T\u00ecm<\/button><\/form><button id=\"sm-locate\" type=\"button\">\u25ce V\u1ecb tr\u00ed c\u1ee7a t\u00f4i<\/button><button type=\"button\" id=\"sm-map-toggle\" aria-expanded=\"false\" aria-controls=\"sm-map-panel\">Ch\u1ecdn tr\u00ean b\u1ea3n \u0111\u1ed3<\/button><\/div>\r\n<p class=\"sm-search-note\">Nh\u1eadp t\u00ean \u0111\u1ecba \u0111i\u1ec3m v\u00e0 b\u1ea5m T\u00ecm. C\u00f3 th\u1ec3 th\u00eam t\u1ec9nh\/th\u00e0nh \u0111\u1ec3 thu h\u1eb9p k\u1ebft qu\u1ea3. \u0110\u1ecba danh ph\u1ed5 bi\u1ebfn &amp; danh m\u1ee5c \u0111i\u1ec3m c\u00e2u SH Fishing \u00b7 <a href=\"https:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\" rel=\"noopener\">\u00a9 OpenStreetMap<\/a> \u00b7 Photon.<\/p><div id=\"sm-results\" class=\"sm-results\" aria-live=\"polite\"><\/div><span id=\"sm-coord\" class=\"sm-muted\"><\/span><div id=\"sm-map-panel\" hidden><p class=\"sm-muted\">T\u00ecm t\u00ean khu v\u1ef1c trong g\u1ee3i \u00fd ho\u1eb7c ch\u1ea1m b\u1ea3n \u0111\u1ed3, nh\u1eadp t\u1ecda \u0111\u1ed9. Ch\u1ec9 \u0111\u1ecbnh v\u1ecb khi b\u1ea1n cho ph\u00e9p.<\/p><div id=\"sm-map\"><\/div><form id=\"sm-coord-form\" class=\"sm-coords\"><label>V\u0129 \u0111\u1ed9<input id=\"sm-lat\" type=\"number\" min=\"7\" max=\"24\" step=\"any\" required><\/label><label>Kinh \u0111\u1ed9<input id=\"sm-lon\" type=\"number\" min=\"102\" max=\"118\" step=\"any\" required><\/label><button type=\"submit\">Ch\u1ecdn \u0111i\u1ec3m<\/button><\/form><\/div><\/details><p id=\"sm-status\" class=\"sm-status\" role=\"status\" aria-live=\"polite\"><\/p>\r\n<div id=\"sm-save-panel\" class=\"sm-save-panel\" hidden><form id=\"sm-save-form\"><label for=\"sm-spot-name\">\u0110\u1eb7t t\u00ean \u0111i\u1ec3m c\u00e2u<\/label><input id=\"sm-spot-name\" maxlength=\"80\" required><button id=\"sm-save-confirm\" class=\"sm-primary\" type=\"submit\">L\u01b0u \u0111\u1ecba \u0111i\u1ec3m<\/button><button id=\"sm-save-cancel\" type=\"button\">H\u1ee7y<\/button><\/form><\/div>\r\n<a class=\"sm-saved-shortcut\" href=\"#sm-saved-panel\">\u2667 \u0110i\u1ec3m c\u00e2u \u0111\u00e3 l\u01b0u<\/a><div class=\"sm-datebar\"><button type=\"button\" data-sm-day=\"0\">H\u00f4m nay<\/button><button type=\"button\" data-sm-day=\"1\">Ng\u00e0y mai<\/button><label class=\"screen-reader-text\" for=\"sm-date\">Ch\u1ecdn ng\u00e0y<\/label><input type=\"hidden\" id=\"sm-date\"><details id=\"sm-calendar\" class=\"sm-calendar\"><summary aria-label=\"Ch\u1ecdn ng\u00e0y d\u1ef1 b\u00e1o\"><span aria-hidden=\"true\">\u25a6<\/span> <span id=\"sm-date-label\"><\/span><span aria-hidden=\"true\">\u2304<\/span><\/summary><div class=\"sm-calendar-panel\"><strong>Ch\u1ecdn ng\u00e0y \u0111i c\u00e2u<\/strong><p>D\u1ef1 b\u00e1o 7 ng\u00e0y \u00b7 gi\u1edd Vi\u1ec7t Nam<\/p><div id=\"sm-date-options\"><\/div><\/div><\/details><small>Gi\u1edd Vi\u1ec7t Nam \u00b7 UTC+7<\/small><\/div>\r\n<div class=\"sm-grid\"><div class=\"sm-main\">\r\n<article class=\"sm-card sm-activity\"><div class=\"sm-eyebrow\">D\u1ef0 B\u00c1O SOLUNAR \u00b7 SH MAP<\/div><div class=\"sm-fish-heading\"><span class=\"sm-fish-art\" aria-hidden=\"true\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"512\" src=\"https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-768x512.webp\" class=\"sm-activity-bass\" alt=\"\" sizes=\"auto, (max-width:800px) 240px, 220px\" srcset=\"https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-768x512.webp 768w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-800x533.webp 800w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-1200x800.webp 1200w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-280x187.webp 280w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-18x12.webp 18w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126-600x400.webp 600w, https:\/\/shfishing.vn\/wp-content\/uploads\/2026\/10\/ca-chem-sh-map-shf20261126.webp 1536w\"><\/span><h2>Ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u00e1<\/h2><\/div><div id=\"sm-selected\" class=\"sm-selected\" aria-live=\"polite\">\u0110ang t\u00ednh theo \u0111i\u1ec3m c\u00e2u\u2026<\/div><p class=\"sm-muted\">M\u1ee9c tham kh\u1ea3o theo v\u1ecb tr\u00ed M\u1eb7t Tr\u0103ng, kh\u00f4ng ph\u1ea3i x\u00e1c su\u1ea5t c\u00e1 c\u1eafn c\u00e2u.<\/p><div class=\"sm-chart-scroll\" tabindex=\"0\" aria-label=\"Bi\u1ec3u \u0111\u1ed3 24 gi\u1edd, k\u00e9o ngang \u0111\u1ec3 xem th\u00eam\"><div id=\"sm-bars\" class=\"sm-bars\" role=\"group\" aria-label=\"Ho\u1ea1t \u0111\u1ed9ng c\u00e1 theo 24 gi\u1edd\"><\/div><div class=\"sm-axis\"><span>00h<\/span><span>04h<\/span><span>08h<\/span><span>12h<\/span><span>16h<\/span><span>20h<\/span><span>24h<\/span><\/div><\/div><div class=\"sm-legend\"><span><i class=\"sm-dot\"><\/i>Th\u1ea5p<\/span><span><i class=\"sm-dot medium\"><\/i>V\u1eeba<\/span><span><i class=\"sm-dot high\"><\/i>Cao<\/span><\/div><div class=\"sm-hour-control\"><label for=\"sm-hour\">Ch\u1ecdn gi\u1edd<\/label><input id=\"sm-hour\" type=\"range\" min=\"0\" max=\"23\" step=\"1\"><strong id=\"sm-hour-text\"><\/strong><\/div><p class=\"sm-hint\">1 c\u00e1: th\u1ea5p \u00b7 2 c\u00e1: v\u1eeba \u00b7 3 c\u00e1: cao. H\u00ecnh c\u00e1 minh h\u1ecda m\u1ee9c Solunar. K\u00e9o ngang bi\u1ec3u \u0111\u1ed3 ho\u1eb7c ch\u1ecdn gi\u1edd \u0111\u1ec3 xem ph\u00e2n t\u00edch.<\/p><div id=\"sm-periods\" class=\"sm-periods\" aria-label=\"Khung gi\u1edd Solunar\"><\/div><\/article>\r\n<article class=\"sm-card\"><h2 id=\"sm-why-title\">V\u00ec sao gi\u1edd n\u00e0y?<\/h2><div id=\"sm-plan\" class=\"sm-plan\"><\/div><div class=\"sm-why-items\"><div><h3>\u263e C\u01a1 s\u1edf d\u1ef1 b\u00e1o<\/h3><p id=\"sm-why-main\"><\/p><\/div><div><h3>\u2600 \u00c1nh s\u00e1ng trong ng\u00e0y<\/h3><p id=\"sm-why-sun\"><\/p><\/div><div><h3>\u2601 Th\u1eddi ti\u1ebft tham kh\u1ea3o<\/h3><p id=\"sm-why-weather\"><\/p><\/div><\/div><details><summary>C\u00e1ch SH Map x\u1ebfp m\u1ee9c ho\u1ea1t \u0111\u1ed9ng<\/summary><p class=\"sm-muted\">SH Map d\u00f9ng Astronomy Engine \u0111\u1ec3 t\u00ednh tr\u0103ng qua kinh tuy\u1ebfn v\u00e0 tr\u0103ng m\u1ecdc\/l\u1eb7n. Gi\u1edd giao v\u1edbi khung ch\u00ednh \u00b160 ph\u00fat \u0111\u01b0\u1ee3c x\u1ebfp Cao; khung ph\u1ee5 \u00b130 ph\u00fat \u0111\u01b0\u1ee3c x\u1ebfp V\u1eeba; ngo\u00e0i khung x\u1ebfp Th\u1ea5p. \u0110\u00e2y l\u00e0 quy t\u1eafc Solunar tham kh\u1ea3o c\u1ee7a SH Map, kh\u00f4ng ph\u1ea3i m\u00f4 h\u00ecnh h\u1ecdc t\u1eeb s\u1ea3n l\u01b0\u1ee3ng c\u00e1 v\u00e0 ch\u01b0a ph\u00e2n bi\u1ec7t lo\u00e0i c\u00e1. Th\u1eddi ti\u1ebft, l\u1ecbch cho c\u00e1 \u0103n v\u00e0 m\u00f4i tr\u01b0\u1eddng c\u00f3 th\u1ec3 l\u00e0m k\u1ebft qu\u1ea3 th\u1ef1c t\u1ebf kh\u00e1c d\u1ef1 b\u00e1o. C\u1ed9t bi\u1ec3u \u0111\u1ed3 th\u1ec3 hi\u1ec7n ba m\u1ee9c, kh\u00f4ng ph\u1ea3i ph\u1ea7n tr\u0103m.<\/p><\/details><\/article>\r\n<article class=\"sm-card\"><h2>\u2248 Con n\u01b0\u1edbc trong ng\u00e0y<\/h2><p id=\"sm-tide-status\" class=\"sm-muted\"><\/p><div id=\"sm-tidechart\" class=\"sm-tidechart\"><\/div><div id=\"sm-tide-hours\" class=\"sm-tide-hours\" aria-label=\"Ch\u1ecdn gi\u1edd con n\u01b0\u1edbc v\u00e0 gi\u00f3 t\u1eeb 0 \u0111\u1ebfn 24 gi\u1edd\"><\/div><p id=\"sm-tide-detail\" class=\"sm-tide-reading\" aria-live=\"polite\"><\/p><div id=\"sm-tide-events\" class=\"sm-events\"><\/div><p class=\"sm-muted\">K\u00e9o ngang \u0111\u1ec3 xem 00\u201324h \u00b7 Ch\u1ea1m m\u1ed9t gi\u1edd \u0111\u1ec3 xem con n\u01b0\u1edbc v\u00e0 gi\u00f3.<\/p><\/article>\r\n\r\n<\/div><aside class=\"sm-sidebar\" id=\"sm-saved-panel\"><article class=\"sm-card\"><h2>\u0110i\u1ec3m c\u00e2u \u0111\u00e3 l\u01b0u<\/h2><p id=\"sm-sync-note\" class=\"sm-muted\">\u0110ang ki\u1ec3m tra \u0111\u1ed3ng b\u1ed9\u2026<\/p><a id=\"sm-login\" class=\"sm-button\" href=\"https:\/\/shfishing.vn\/en\/tai-khoan\/\" hidden>\u0110\u0103ng nh\u1eadp \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9<\/a><div id=\"sm-saved\"><\/div><button type=\"button\" id=\"sm-refresh-saved\" class=\"sm-link\">\u21bb C\u1eadp nh\u1eadt danh s\u00e1ch<\/button><\/article><article class=\"sm-card\"><h2>Th\u1eddi ti\u1ebft trong ng\u00e0y<\/h2><div id=\"sm-weather\" class=\"sm-weather\"><\/div><p id=\"sm-weather-updated\" class=\"sm-muted\" style=\"margin-top:12px\"><\/p><\/article><\/aside><\/div>\r\n<footer class=\"sm-foot\"><details><summary>Ngu\u1ed3n d\u1eef li\u1ec7u &amp; quy\u1ec1n ri\u00eang t\u01b0<\/summary><p>\u0110i\u1ec3m c\u00e2u ch\u1ec9 l\u01b0u v\u00e0o t\u00e0i kho\u1ea3n khi b\u1ea1n b\u1ea5m l\u01b0u. Kh\u00e1ch ch\u01b0a \u0111\u0103ng nh\u1eadp l\u01b0u tr\u00ean tr\u00ecnh duy\u1ec7t; kh\u00f4ng t\u1ef1 \u0111\u1ed3ng b\u1ed9 sang t\u00e0i kho\u1ea3n. Th\u1eddi ti\u1ebft d\u00f9ng t\u1ecda \u0111\u1ed9 l\u00e0m tr\u00f2n 0,01\u00b0 g\u1eedi qua SH Fishing \u0111\u1ebfn <a href=\"https:\/\/www.met.no\/\" target=\"_blank\" rel=\"noopener\">MET Norway<\/a> (CC BY 4.0). T\u00ean \u0111\u1ecba \u0111i\u1ec3m b\u1ea1n t\u00ecm \u0111\u01b0\u1ee3c g\u1eedi t\u1edbi Photon (Komoot), k\u1ebft qu\u1ea3 l\u01b0u \u0111\u1ec7m t\u1ed1i \u0111a 7 ng\u00e0y. Kh\u00f4ng nh\u1eadp th\u00f4ng tin c\u00e1 nh\u00e2n v\u00e0o \u00f4 t\u00ecm \u0111\u1ecba danh. B\u1ea3n \u0111\u1ed3: <a href=\"https:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\" rel=\"noopener\">OpenStreetMap contributors<\/a>.<\/p><p>Solunar: <a href=\"https:\/\/github.com\/cosinekitty\/astronomy\" target=\"_blank\" rel=\"noopener\">Astronomy Engine 2.1.19<\/a> (MIT). T\u00ednh tri\u1ec1u: <a href=\"https:\/\/github.com\/openwatersio\/slackwater\" target=\"_blank\" rel=\"noopener\">Slackwater engine<\/a> (MIT). H\u1eb1ng s\u1ed1 tr\u1ea1m: Hart-Davis, M., Dettmering, D., Seitz, F. (2025), <a href=\"https:\/\/doi.org\/10.17882\/109129\" target=\"_blank\" rel=\"noopener\">TICON-4 \/ GESLA-4<\/a>, \u0111\u01b0\u1ee3c chuy\u1ec3n \u0111\u1ed5i qua <a href=\"https:\/\/github.com\/openwatersio\/slackwater-database\" target=\"_blank\" rel=\"noopener\">Slackwater database<\/a>, <a href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\" target=\"_blank\" rel=\"noopener\">CC BY 4.0<\/a>. SH Map t\u00ednh \u0111\u01b0\u1eddng tri\u1ec1u t\u1eeb h\u1eb1ng s\u1ed1, hi\u1ec3n th\u1ecb theo m\u1ef1c n\u01b0\u1edbc trung b\u00ecnh (MSL) v\u00e0 gi\u1edd Vi\u1ec7t Nam. D\u1ef1 b\u00e1o thi\u00ean v\u0103n; m\u01b0a, n\u01b0\u1edbc d\u00e2ng v\u00e0 \u0111i\u1ec1u ti\u1ebft h\u1ed3 c\u00f3 th\u1ec3 l\u00e0m thay \u0111\u1ed5i m\u1ef1c n\u01b0\u1edbc th\u1ef1c t\u1ebf. Gi\u00f3 l\u00e0 d\u1ef1 b\u00e1o \u1edf \u0111\u1ed9 cao 10 m t\u1eeb MET Norway. Danh m\u1ee5c \u0111i\u1ec3m c\u00e2u SH Fishing \u0111\u01b0\u1ee3c b\u1ed5 sung sau khi \u0111\u1ed1i chi\u1ebfu \u0111\u1ecba \u0111i\u1ec3m c\u00f4ng khai; t\u00ecm ki\u1ebfm \u0111\u1ecba danh kh\u00e1c d\u00f9ng Photon. D\u1eef li\u1ec7u tr\u1ea1m ch\u1ed1t 25\/10\/2026.<\/p><\/details><p>D\u1ef1 b\u00e1o tham kh\u1ea3o, kh\u00f4ng b\u1ea3o \u0111\u1ea3m c\u00e1 c\u1eafn c\u00e2u. Xem <a href=\"https:\/\/nchmf.gov.vn\/\" target=\"_blank\" rel=\"noopener\">c\u1ea3nh b\u00e1o th\u1eddi ti\u1ebft ch\u00ednh th\u1ee9c<\/a> tr\u01b0\u1edbc khi \u0111i c\u00e2u.<\/p><\/footer>\r\n<script type=\"application\/json\" id=\"sm-config\">{\"api\":\"https:\\\/\\\/shfishing.vn\\\/wp-admin\\\/admin-ajax.php\",\"stations\":{\"vungtau\":{\"latitude\":10.34,\"longitude\":107.072,\"harmonic_constituents\":[{\"name\":\"M2\",\"amplitude\":0.77332117,\"phase\":193.768905},{\"name\":\"N2\",\"amplitude\":0.16268783,\"phase\":174.073506},{\"name\":\"S2\",\"amplitude\":0.30205555,\"phase\":228.570807},{\"name\":\"K2\",\"amplitude\":0.09415102,\"phase\":239.860744},{\"name\":\"2N2\",\"amplitude\":0.02124785,\"phase\":149.127859},{\"name\":\"S1\",\"amplitude\":0.00501498,\"phase\":90.77843},{\"name\":\"K1\",\"amplitude\":0.59482924,\"phase\":206.635444},{\"name\":\"P1\",\"amplitude\":0.1890901,\"phase\":203.085502},{\"name\":\"O1\",\"amplitude\":0.44681264,\"phase\":164.936441},{\"name\":\"Q1\",\"amplitude\":0.08470843,\"phase\":147.803452},{\"name\":\"M1\",\"amplitude\":0.02086263,\"phase\":103.748102},{\"name\":\"M4\",\"amplitude\":0.0101736,\"phase\":216.225222},{\"name\":\"MM\",\"amplitude\":0.00204091,\"phase\":163.629321},{\"name\":\"MF\",\"amplitude\":0.00153048,\"phase\":44.276805},{\"name\":\"SA\",\"amplitude\":0.21243292,\"phase\":278.076396},{\"name\":\"SSA\",\"amplitude\":0.05710198,\"phase\":95.379502},{\"name\":\"T2\",\"amplitude\":0.01134579,\"phase\":215.444776},{\"name\":\"J1\",\"amplitude\":0.02201666,\"phase\":240.470096},{\"name\":\"L2\",\"amplitude\":0.02136545,\"phase\":216.592384},{\"name\":\"R2\",\"amplitude\":0.00357743,\"phase\":319.432153},{\"name\":\"2Q1\",\"amplitude\":0.01101638,\"phase\":140.130052},{\"name\":\"MSF\",\"amplitude\":0.01484908,\"phase\":199.479132},{\"name\":\"MSQM\",\"amplitude\":0.00315504,\"phase\":316.8485},{\"name\":\"EP2\",\"amplitude\":0.00299492,\"phase\":101.353431},{\"name\":\"M3\",\"amplitude\":0.00367523,\"phase\":10.747557},{\"name\":\"MU2\",\"amplitude\":0.02490278,\"phase\":129.312278},{\"name\":\"MTM\",\"amplitude\":0.00302329,\"phase\":348.35698},{\"name\":\"NU2\",\"amplitude\":0.02807779,\"phase\":178.690733},{\"name\":\"LAMBDA2\",\"amplitude\":0.00900559,\"phase\":203.713539},{\"name\":\"MN4\",\"amplitude\":0.00501148,\"phase\":203.927903},{\"name\":\"MS4\",\"amplitude\":0.00761913,\"phase\":258.740625},{\"name\":\"MKS2\",\"amplitude\":0.00986369,\"phase\":249.953062},{\"name\":\"N4\",\"amplitude\":0.00124372,\"phase\":181.246969},{\"name\":\"M6\",\"amplitude\":0.00421643,\"phase\":269.732967},{\"name\":\"M8\",\"amplitude\":0.00048563,\"phase\":293.509555},{\"name\":\"S4\",\"amplitude\":0.00270402,\"phase\":333.363295},{\"name\":\"OO1\",\"amplitude\":0.01793209,\"phase\":268.678725},{\"name\":\"S3\",\"amplitude\":0.00393725,\"phase\":209.311928},{\"name\":\"MA2\",\"amplitude\":0.0226553,\"phase\":85.119279},{\"name\":\"MB2\",\"amplitude\":0.01833729,\"phase\":326.253241},{\"name\":\"T3\",\"amplitude\":0.00567756,\"phase\":205.237802},{\"name\":\"R3\",\"amplitude\":0.00996871,\"phase\":320.067659},{\"name\":\"RHO1\",\"amplitude\":0.01667132,\"phase\":145.52229},{\"name\":\"SGM\",\"amplitude\":0.01068443,\"phase\":177.331483},{\"name\":\"3L2\",\"amplitude\":0.00343556,\"phase\":188.384391},{\"name\":\"3N2\",\"amplitude\":0.00408045,\"phase\":60.820138},{\"name\":\"2SM2\",\"amplitude\":0.00523181,\"phase\":63.795586},{\"name\":\"2MS6\",\"amplitude\":0.00395804,\"phase\":311.35793},{\"name\":\"2MK5\",\"amplitude\":0.00166116,\"phase\":275.852517},{\"name\":\"2MO5\",\"amplitude\":0.00221013,\"phase\":250.694135}],\"license\":{\"type\":\"cc-by-4.0\",\"commercial_use\":true,\"url\":\"https:\\\/\\\/creativecommons.org\\\/licenses\\\/by\\\/4.0\\\/\"},\"epoch\":{\"start\":\"2007-10-15\",\"end\":\"2025-06-30\"},\"displayName\":\"V\\u0169ng T\\u00e0u\"},\"quynhon\":{\"latitude\":13.767,\"longitude\":109.25,\"harmonic_constituents\":[{\"name\":\"M2\",\"amplitude\":0.1722583,\"phase\":86.168141},{\"name\":\"N2\",\"amplitude\":0.03561018,\"phase\":72.47589},{\"name\":\"S2\",\"amplitude\":0.06992975,\"phase\":119.703908},{\"name\":\"K2\",\"amplitude\":0.02075002,\"phase\":114.055377},{\"name\":\"2N2\",\"amplitude\":0.00489581,\"phase\":53.918284},{\"name\":\"S1\",\"amplitude\":0.00508951,\"phase\":129.850699},{\"name\":\"K1\",\"amplitude\":0.32819402,\"phase\":192.895498},{\"name\":\"P1\",\"amplitude\":0.10145935,\"phase\":189.337744},{\"name\":\"O1\",\"amplitude\":0.27761686,\"phase\":152.986742},{\"name\":\"Q1\",\"amplitude\":0.05448654,\"phase\":135.117909},{\"name\":\"M1\",\"amplitude\":0.01244878,\"phase\":81.691923},{\"name\":\"M4\",\"amplitude\":0.00155007,\"phase\":161.326933},{\"name\":\"MM\",\"amplitude\":0.00636323,\"phase\":23.463221},{\"name\":\"MF\",\"amplitude\":0.00724338,\"phase\":12.198246},{\"name\":\"SA\",\"amplitude\":0.14856647,\"phase\":247.569179},{\"name\":\"SSA\",\"amplitude\":0.06194057,\"phase\":89.31828},{\"name\":\"T2\",\"amplitude\":0.00386325,\"phase\":98.571802},{\"name\":\"J1\",\"amplitude\":0.01168757,\"phase\":212.213137},{\"name\":\"L2\",\"amplitude\":0.00390806,\"phase\":94.361875},{\"name\":\"R2\",\"amplitude\":0.00064156,\"phase\":236.576307},{\"name\":\"2Q1\",\"amplitude\":0.00737482,\"phase\":119.834101},{\"name\":\"MSF\",\"amplitude\":0.00642026,\"phase\":124.532831},{\"name\":\"MSQM\",\"amplitude\":0.00132828,\"phase\":283.607956},{\"name\":\"EP2\",\"amplitude\":0.0020957,\"phase\":43.906907},{\"name\":\"M3\",\"amplitude\":0.00150832,\"phase\":186.167318},{\"name\":\"MU2\",\"amplitude\":0.00817592,\"phase\":54.476748},{\"name\":\"MTM\",\"amplitude\":0.00103447,\"phase\":31.708826},{\"name\":\"NU2\",\"amplitude\":0.00572002,\"phase\":75.895025},{\"name\":\"LAMBDA2\",\"amplitude\":0.00103517,\"phase\":68.995749},{\"name\":\"MN4\",\"amplitude\":0.00051642,\"phase\":130.72512},{\"name\":\"MS4\",\"amplitude\":0.00101724,\"phase\":210.388433},{\"name\":\"MKS2\",\"amplitude\":0.00145582,\"phase\":358.885617},{\"name\":\"N4\",\"amplitude\":0.00011656,\"phase\":162.181845},{\"name\":\"M6\",\"amplitude\":0.00282966,\"phase\":279.070176},{\"name\":\"M8\",\"amplitude\":0.00013414,\"phase\":23.439805},{\"name\":\"S4\",\"amplitude\":0.00015411,\"phase\":253.399402},{\"name\":\"OO1\",\"amplitude\":0.00594203,\"phase\":265.334044},{\"name\":\"S3\",\"amplitude\":0.00058258,\"phase\":250.942969},{\"name\":\"MA2\",\"amplitude\":0.0038147,\"phase\":342.434684},{\"name\":\"MB2\",\"amplitude\":0.00267704,\"phase\":129.575436},{\"name\":\"T3\",\"amplitude\":0.0004338,\"phase\":343.997783},{\"name\":\"R3\",\"amplitude\":0.00032699,\"phase\":176.166985},{\"name\":\"RHO1\",\"amplitude\":0.01082296,\"phase\":134.045856},{\"name\":\"SGM\",\"amplitude\":0.00715959,\"phase\":137.266587},{\"name\":\"3L2\",\"amplitude\":0.00047092,\"phase\":89.305792},{\"name\":\"3N2\",\"amplitude\":0.00098566,\"phase\":300.394154},{\"name\":\"2SM2\",\"amplitude\":0.00029016,\"phase\":162.412267},{\"name\":\"2MS6\",\"amplitude\":0.00260648,\"phase\":328.670269},{\"name\":\"2MK5\",\"amplitude\":0.00078502,\"phase\":281.878006},{\"name\":\"2MO5\",\"amplitude\":0.00078367,\"phase\":241.858765}],\"license\":{\"type\":\"cc-by-4.0\",\"commercial_use\":true,\"url\":\"https:\\\/\\\/creativecommons.org\\\/licenses\\\/by\\\/4.0\\\/\"},\"epoch\":{\"start\":\"2007-10-19\",\"end\":\"2025-06-30\"},\"displayName\":\"Quy Nh\\u01a1n\"}}}<\/script>\r\n<\/section><script data-no-optimize=\"1\" data-no-defer=\"1\" data-no-delay=\"1\">(function(){function init(){'use strict';\r\nconst root=document.getElementById('shmap');if(!root)return;const $=id=>document.getElementById('sm-'+id),cfg=JSON.parse($('config').textContent),DAY=86400000,HOUR=3600000;\r\nconst day=d=>new Intl.DateTimeFormat('en-CA',{timeZone:'Asia\/Ho_Chi_Minh',year:'numeric',month:'2-digit',day:'2-digit'}).format(d),clock=d=>new Intl.DateTimeFormat('vi-VN',{timeZone:'Asia\/Ho_Chi_Minh',hour:'2-digit',minute:'2-digit',hourCycle:'h23'}).format(d);\r\nlet today=day(new Date()),point={name:'V\u0169ng T\u00e0u',lat:10.34,lon:107.072,station:'vungtau'},selected=Number(clock(new Date()).slice(0,2)),events=[],sun=[],levels=[],tide=[],extremes=[],weather=null,forecastRequest=0,map,marker,auth=null,saved=[],version=0,busy=false,tideEngine=null,tideHour=selected,tideScale=null;\r\nconst places=[['V\u0169ng T\u00e0u',10.34,107.072,'vungtau'],['Quy Nh\u01a1n',13.775,109.255,'quynhon'],['C\u1ea7n Gi\u1edd',10.4113,106.9547,''],['H\u1ed3 Tr\u1ecb An',11.13,107.08,''],['H\u1ed3 D\u1ea7u Ti\u1ebfng',11.36,106.35,''],['Long Xuy\u00ean, An Giang',10.3904,105.4344,''],['C\u1ea7n Th\u01a1',10.045,105.747,''],['TP. H\u1ed3 Ch\u00ed Minh',10.7769,106.7009,''],['Nha Trang',12.238,109.196,''],['\u0110\u00e0 N\u1eb5ng',16.054,108.202,''],['H\u1ea3i Ph\u00f2ng',20.845,106.688,''],['H\u00e0 N\u1ed9i',21.028,105.834,''],['Ph\u00fa Qu\u1ed1c',10.216,103.959,'']];\r\nconst el=(tag,text,cls)=>{let e=document.createElement(tag);if(text!==undefined)e.textContent=text;if(cls)e.className=cls;return e};\r\nconst message=(text,error=false)=>{$('status').textContent=text;$('status').classList.toggle('sm-error',error)};\r\nconst valid=(lat,lon)=>Number.isFinite(lat)&&Number.isFinite(lon)&&lat>=7&&lat<=24&&lon>=102&&lon<=118;\r\nconst start=()=>new Date($('date').value+'T00:00:00+07:00');\r\nfunction dates(){today=day(new Date());$('date').min=today;$('date').max=day(new Date(Date.now()+6*DAY));if(!$('date').value||$('date').value<today||$('date').value>$('date').max)$('date').value=today;document.querySelectorAll('[data-sm-day]').forEach(b=>b.setAttribute('aria-pressed',String($('date').value===day(new Date(Date.now()+Number(b.dataset.smDay)*DAY)))));$('date-label').textContent=$('date').value.split('-').reverse().join('\/');$('date-options').replaceChildren();for(let i=0;i<7;i++){let d=day(new Date(Date.now()+i*DAY)),label=(i===0?'H\u00f4m nay':i===1?'Ng\u00e0y mai':new Intl.DateTimeFormat('vi-VN',{timeZone:'Asia\/Ho_Chi_Minh',weekday:'long'}).format(new Date(d+'T12:00:00+07:00')))+' \u00b7 '+d.split('-').reverse().join('\/');let b=el('button',label);b.type='button';b.setAttribute('aria-pressed',String(d===$('date').value));b.addEventListener('click',()=>{$('date').value=d;$('calendar').open=false;dates();calculate();weatherView();$('calendar').querySelector('summary').focus()});$('date-options').append(b)}}\r\nfunction classify(h){let a=+start()+h*HOUR,b=a+HOUR;let major=events.find(e=>e.kind==='major'&&a<e.t+HOUR&&b>e.t-HOUR),minor=events.find(e=>e.kind==='minor'&&a<e.t+HOUR\/2&&b>e.t-HOUR\/2);return {value:major?3:minor?2:1,event:major||minor}}\r\nfunction calculate(){events=[];sun=[];levels=[];if(!window.Astronomy){$('bars').textContent='Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c c\u00f4ng c\u1ee5 thi\u00ean v\u0103n. Vui l\u00f2ng t\u1ea3i l\u1ea1i trang.';renderTides();return}const A=window.Astronomy,obs=new A.Observer(point.lat,point.lon,0),s=+start(),end=s+DAY;try{for(const ha of [0,12]){let cursor=new Date(s-2*HOUR);for(let i=0;i<3;i++){let r=A.SearchHourAngle('Moon',obs,ha,cursor);let t=+r.time.date;if(t>end+2*HOUR)break;events.push({t,kind:'major',label:ha===0?'Tr\u0103ng qua kinh tuy\u1ebfn tr\u00ean':'Tr\u0103ng qua kinh tuy\u1ebfn d\u01b0\u1edbi'});cursor=new Date(t+HOUR)}}for(const dir of [1,-1]){let cursor=new Date(s-HOUR);for(let i=0;i<3;i++){let r=A.SearchRiseSet('Moon',obs,dir,cursor,2);if(!r||+r.date>end+HOUR)break;events.push({t:+r.date,kind:'minor',label:dir===1?'Tr\u0103ng m\u1ecdc':'Tr\u0103ng l\u1eb7n'});cursor=new Date(+r.date+HOUR)}let sr=A.SearchRiseSet('Sun',obs,dir,start(),1);if(sr)sun.push({t:+sr.date,label:dir===1?'B\u00ecnh minh':'Ho\u00e0ng h\u00f4n'})}events.sort((a,b)=>a.t-b.t);for(let h=0;h<24;h++)levels.push(classify(h));renderActivity();renderTides();}catch(e){$('bars').textContent='Ch\u01b0a t\u00ednh \u0111\u01b0\u1ee3c khung gi\u1edd t\u1ea1i \u0111i\u1ec3m n\u00e0y.';message('Kh\u00f4ng th\u1ec3 t\u00ednh d\u1ef1 b\u00e1o. Vui l\u00f2ng th\u1eed l\u1ea1i.',true);renderTides()}}\r\nfunction renderActivity(){const bars=$('bars');bars.replaceChildren();levels.forEach((v,h)=>{let b=el('button',undefined,'sm-bar sm-level-'+v.value);b.type='button';b.setAttribute('aria-label',String(h).padStart(2,'0')+':00 \u2014 '+['','Th\u1ea5p','V\u1eeba','Cao'][v.value]);b.setAttribute('aria-pressed',String(h===selected));let fill=el('span',undefined,'sm-bar-fill'),school=el('span',undefined,'sm-fish-school');school.setAttribute('aria-hidden','true');for(let n=0;n<v.value;n++){let fish=el('span',undefined,'sm-chart-fish');school.append(fish)}fill.append(school);b.append(fill);b.addEventListener('click',()=>selectHour(h));bars.append(b)});$('periods').replaceChildren();events.filter(e=>e.t+HOUR>+start()&&e.t-HOUR<+start()+DAY).forEach(e=>{let half=e.kind==='major'?HOUR:HOUR\/2;let b=el('button',eventWindow(e),e.kind==='major'?'sm-period major':'sm-period');b.title=e.label;b.type='button';b.addEventListener('click',()=>selectHour(Math.max(0,Math.min(23,Math.floor((e.t-+start())\/HOUR)))));$('periods').append(b)});selectHour(selected)}\r\nfunction selectHour(h){selected=h;tideHour=h;let c=levels[h];if(!c)return;const txt=['','Th\u1ea5p','V\u1eeba','Cao'][c.value];root.querySelector('.sm-activity').dataset.fishLevel=String(c.value);$('selected').textContent=String(h).padStart(2,'0')+':00 \u00b7 Ho\u1ea1t \u0111\u1ed9ng '+txt.toLowerCase();$('selected').className='sm-selected sm-text-'+c.value;Array.from($('bars').children).forEach((b,i)=>b.setAttribute('aria-pressed',String(i===h)));$('hour').value=h;$('hour-text').textContent=String(h).padStart(2,'0')+':00';$('why-title').textContent='Ph\u00e2n t\u00edch gi\u1edd c\u00e2u '+String(h).padStart(2,'0')+':00';renderReason(c,h);renderHourWeather();renderTideDetail();}\r\nfunction eventWindow(e){let half=e.kind==='major'?HOUR:HOUR\/2;return clock(new Date(e.t-half))+'\u2013'+clock(new Date(e.t+half))+(day(new Date(e.t-half))<$('date').value?' (t\u1eeb h\u00f4m tr\u01b0\u1edbc)':day(new Date(e.t+half))>$('date').value?' (qua ng\u00e0y k\u1ebf ti\u1ebfp)':'')}\r\nfunction renderReason(c,h){let at=+start()+h*HOUR,finish=at+HOUR;let next=events.find(e=>e.kind==='major'&&e.t+HOUR>at&&e.t-HOUR<+start()+DAY);let main=c.event;\r\n$('why-main').textContent=main?'Khung '+(main.kind==='major'?'ch\u00ednh':'ph\u1ee5')+' '+eventWindow(main)+' giao v\u1edbi gi\u1edd '+clock(new Date(at))+'\u2013'+clock(new Date(finish))+'. '+main.label+' l\u00fac '+clock(new Date(main.t))+'. SH Map x\u1ebfp '+(main.kind==='major'?'cao trong kho\u1ea3ng 60 ph\u00fat tr\u01b0\u1edbc v\u00e0 sau s\u1ef1 ki\u1ec7n n\u00e0y':'v\u1eeba trong kho\u1ea3ng 30 ph\u00fat tr\u01b0\u1edbc v\u00e0 sau s\u1ef1 ki\u1ec7n n\u00e0y')+'. Gi\u1edd \u0111\u01b0\u1ee3c ch\u1ecdn n\u1eb1m trong kho\u1ea3ng \u01b0u ti\u00ean theo l\u1ecbch Solunar t\u1ea1i '+point.name+'.':'Gi\u1edd '+clock(new Date(at))+'\u2013'+clock(new Date(finish))+' n\u1eb1m gi\u1eefa c\u00e1c c\u1eeda s\u1ed5 Solunar. Ho\u1ea1t \u0111\u1ed9ng \u0111\u01b0\u1ee3c x\u1ebfp th\u1ea5p theo l\u1ecbch thi\u00ean v\u0103n c\u1ee7a \u0111i\u1ec3m c\u00e2u; \u01b0u ti\u00ean \u0111\u1ed1i chi\u1ebfu v\u1edbi khung ch\u00ednh ti\u1ebfp theo b\u00ean tr\u00ean.';\r\nlet plan=$('plan');plan.replaceChildren();plan.append(el('span',next?(next.t-HOUR<=at?'KHUNG CH\u00cdNH \u0110ANG DI\u1ec4N RA':'KHUNG CH\u00cdNH TI\u1ebeP THEO'):'G\u1ee2I \u00dd CHO BU\u1ed4I C\u00c2U','sm-eyebrow'));plan.append(el('strong',next?eventWindow(next):'Theo d\u00f5i t\u00edn hi\u1ec7u t\u1ea1i \u0111i\u1ec3m c\u00e2u'));plan.append(el('p',next?'\u0110\u1ec9nh khung ch\u00ednh l\u00fac '+clock(new Date(next.t))+'. '+(next.t-HOUR>at?'Khung b\u1eaft \u0111\u1ea7u sau kho\u1ea3ng '+Math.round((next.t-HOUR-at)\/60000)+' ph\u00fat k\u1ec3 t\u1eeb gi\u1edd \u0111ang xem.':'Gi\u1edd \u0111ang xem n\u1eb1m trong c\u1eeda s\u1ed5 ch\u00ednh.'):'Ch\u1ecdn Ng\u00e0y mai \u0111\u1ec3 xem c\u00e1c khung ch\u00ednh k\u1ebf ti\u1ebfp t\u1ea1i '+point.name+'.'));\r\nlet rise=sun.find(e=>e.label==='B\u00ecnh minh'),set=sun.find(e=>e.label==='Ho\u00e0ng h\u00f4n');let phase=rise&&at<rise.t?'Tr\u01b0\u1edbc b\u00ecnh minh':set&&at>=set.t?'Sau ho\u00e0ng h\u00f4n':'Ban ng\u00e0y';let nearest=[...sun].sort((a,b)=>Math.abs(a.t-at)-Math.abs(b.t-at))[0];let minutes=nearest?Math.round(Math.abs(nearest.t-at)\/60000):0;let elapsed=(minutes>=60?Math.floor(minutes\/60)+' gi\u1edd ':'')+(minutes%60||minutes<60?minutes%60+' ph\u00fat':'');\r\n$('why-sun').textContent=phase+' t\u1ea1i '+point.name+'. '+sun.map(e=>e.label+' '+clock(new Date(e.t))).join(' \u00b7 ')+'. '+(nearest?('Gi\u1edd ch\u1ecdn '+(at<nearest.t?'c\u00f2n '+elapsed+' \u0111\u1ebfn ':'\u0111\u00e3 qua '+elapsed+' k\u1ec3 t\u1eeb ')+nearest.label.toLowerCase()+'. '):'')+(nearest&&minutes<=60?'Gi\u1edd n\u00e0y g\u1ea7n th\u1eddi \u0111i\u1ec3m chuy\u1ec3n s\u00e1ng; \u0111i\u1ec1u ki\u1ec7n quan s\u00e1t m\u1eb7t n\u01b0\u1edbc thay \u0111\u1ed5i nhanh h\u01a1n.':phase==='Ban ng\u00e0y'?'\u00c1nh s\u00e1ng ban ng\u00e0y thu\u1eadn ti\u1ec7n quan s\u00e1t phao v\u00e0 h\u01b0\u1edbng tr\u00f4i c\u1ee7a m\u1eb7t n\u01b0\u1edbc.':'Gi\u1edd n\u00e0y thu\u1ed9c kho\u1ea3ng t\u1ed1i; \u00e1nh s\u00e1ng t\u1ea1i \u0111i\u1ec3m c\u00e2u quy\u1ebft \u0111\u1ecbnh kh\u1ea3 n\u0103ng quan s\u00e1t phao.');\r\n}\r\nfunction stationDistance(st){let r=Math.PI\/180,a=(st.latitude-point.lat)*r,b=(st.longitude-point.lon)*r;return 6371*2*Math.asin(Math.sqrt(Math.sin(a\/2)**2+Math.cos(point.lat*r)*Math.cos(st.latitude*r)*Math.sin(b\/2)**2))}\r\nconst tideRouter=(()=>{\r\n\/* Preparation only: no network provider or production hook is enabled here.\r\n * Coverage and permission metadata must be supplied by a reviewed server catalog.\r\n * Never infer a river connection or coverage radius from geographic proximity.\r\n *\/\r\nconst finite = x => typeof x === 'number' && Number.isFinite(x);\r\nconst timestamp = x => typeof x === 'string' && Number.isFinite(Date.parse(x));\r\nfunction distance(a, b) {\r\n  const r = Math.PI \/ 180;\r\n  const v = Math.sin((a.lat-b.lat)*r\/2)**2 + Math.cos(a.lat*r)*Math.cos(b.lat*r)*Math.sin((a.lon-b.lon)*r\/2)**2;\r\n  return 6371 * 2 * Math.asin(Math.sqrt(Math.min(1, Math.max(0,v))));\r\n}\r\nfunction validPoint(p) {\r\n  return p && finite(p.lat) && finite(p.lon) && Math.abs(p.lat)<=90 && Math.abs(p.lon)<=180;\r\n}\r\nfunction validateRequest(q) {\r\n  if (!validPoint(q) || !q.waterbodyId || !timestamp(q.start) || !timestamp(q.end) || Date.parse(q.end)<=Date.parse(q.start)) throw new Error('Invalid request');\r\n}\r\nfunction candidatesFor(q, catalog) {\r\n  validateRequest(q);\r\n  return catalog.filter(s => s.enabled === true && s.permission === 'approved' &&\r\n    s.coverageReviewed === true && s.waterbodyId === q.waterbodyId &&\r\n    validPoint(s) && finite(s.maxDistanceKm) && s.maxDistanceKm >= 0 &&\r\n    finite(s.priority) && typeof s.fetch === 'function' &&\r\n    distance(q,s)<=s.maxDistanceKm)\r\n    .map(s => ({...s, distanceKm:distance(q,s)}))\r\n    .sort((a,b)=>a.priority-b.priority || a.distanceKm-b.distanceKm || a.id.localeCompare(b.id));\r\n}\r\nfunction normalize(raw, source, q, now) {\r\n  if (!raw || !Array.isArray(raw.samples) || !raw.samples.length ||\r\n      raw.stationId !== source.id || !['prediction','observation'].includes(raw.kind) ||\r\n      !raw.datum || raw.unit !== 'm' || !timestamp(raw.updatedAt) || !timestamp(raw.expiresAt) ||\r\n      Date.parse(raw.updatedAt)>now || Date.parse(raw.expiresAt)<Date.parse(raw.updatedAt)) throw new Error('Invalid data');\r\n  const samples = raw.samples.map(p=>{\r\n    if (!timestamp(p.time) || !finite(p.level)) throw new Error('Invalid sample');\r\n    return {time:new Date(p.time).toISOString(), level:p.level};\r\n  }).sort((a,b)=>Date.parse(a.time)-Date.parse(b.time));\r\n  if (samples.some((p,i)=>i && p.time===samples[i-1].time)) throw new Error('Duplicate sample');\r\n  if (raw.kind==='observation' && samples.some(p=>Date.parse(p.time)>now)) throw new Error('Future observation');\r\n  const start=Date.parse(q.start), end=Date.parse(q.end);\r\n  const inRange=samples.filter(p=>Date.parse(p.time)>=start && Date.parse(p.time)<=end);\r\n  if (!inRange.length) throw new Error('No data in selected day');\r\n  const fullDay=inRange[0].time===new Date(start).toISOString() &&\r\n    inRange.at(-1).time===new Date(end).toISOString() &&\r\n    inRange.every((p,i)=>!i || Date.parse(p.time)-Date.parse(inRange[i-1].time)<=3600000);\r\n  return {status:Date.parse(raw.expiresAt)<=now?'stale':'fresh',\r\n    source:{id:source.id,name:source.name,provider:source.provider,url:source.url,distanceKm:source.distanceKm},\r\n    kind:raw.kind,datum:raw.datum,unit:'m',updatedAt:raw.updatedAt,expiresAt:raw.expiresAt,\r\n    fullDay,samples:inRange};\r\n}\r\nasync function boundedFetch(source, q, timeoutMs, signal) {\r\n  const controller=new AbortController();\r\n  let timer, onAbort;\r\n  const cancel=new Promise((_,reject)=>{\r\n    onAbort=()=>{controller.abort();reject(new Error('Aborted'));};\r\n    if(signal?.aborted) onAbort();\r\n    else signal?.addEventListener('abort',onAbort,{once:true});\r\n    timer=setTimeout(()=>{controller.abort();reject(new Error('Timeout'));},timeoutMs);\r\n  });\r\n  try { return await Promise.race([Promise.resolve().then(()=>{\r\n    if(controller.signal.aborted) throw new Error('Aborted');\r\n    return source.fetch(q,{signal:controller.signal});\r\n  }),cancel]); }\r\n  finally {clearTimeout(timer);signal?.removeEventListener('abort',onAbort);}\r\n}\r\nasync function resolveTides(q, catalog, {now,timeoutMs=6000,signal}={}) {\r\n  if ((now!==undefined && !finite(now)) || !finite(timeoutMs) || timeoutMs<=0) throw new Error('Invalid options');\r\n  const candidates=candidatesFor(q,catalog), attempts=[];\r\n  let partial=null, stale=null;\r\n  for (const source of candidates) {\r\n    if(signal?.aborted) return {status:'cancelled',samples:[],attempts};\r\n    try {\r\n      const raw=await boundedFetch(source,q,timeoutMs,signal);\r\n      const result=normalize(raw,source,q,now??Date.now());\r\n      if(signal?.aborted) return {status:'cancelled',samples:[],attempts};\r\n      attempts.push({source:source.id,status:result.status,fullDay:result.fullDay});\r\n      if(result.status==='fresh' && result.fullDay) return {...result,attempts};\r\n      if(result.status==='fresh') partial ??= result;\r\n      else if(!stale || Date.parse(result.updatedAt)>Date.parse(stale.updatedAt)) stale=result;\r\n    } catch { attempts.push({source:source.id,status:'unavailable'}); }\r\n  }\r\n  if(signal?.aborted) return {status:'cancelled',samples:[],attempts};\r\n  \/\/ A stale response is returned only for explicit stale UI, never as a current forecast.\r\n  return {...(partial || stale || {status:'unavailable',reason:candidates.length?'sources-unavailable':'no-approved-coverage',samples:[]}),attempts};\r\n}\r\n\r\nreturn {resolveTides,candidatesFor};})();\r\n\r\nlet tideRequest=0,tideController=null,engineLoading=false,engineFailed=false;\r\nfunction missingTides(text){$('tidechart').replaceChildren(el('p',text,'sm-muted'));$('tide-status').textContent='D\u1ef1 b\u00e1o tr\u1ea1m tham kh\u1ea3o \u00b7 '+$('date').value;renderTideDetail();}\r\nfunction tideCatalog(){\r\n return Object.entries(cfg.stations).map(([id,st])=>({id,name:st.displayName,provider:'TICON-4 \/ GESLA-4',url:'https:\/\/doi.org\/10.17882\/109129',\r\n  lat:st.latitude,lon:st.longitude,waterbodyId:id,maxDistanceKm:0.05,priority:1,\r\n  enabled:true,permission:st.license?.commercial_use===true?'approved':'pending',coverageReviewed:true,\r\n  fetch:async q=>{\r\n   if(!tideEngine)throw Error('Engine not loaded');\r\n   const p=tideEngine.createTidePredictor(st.harmonic_constituents);\r\n   const series=p.getTimelinePrediction({start:new Date(q.start),end:new Date(Date.parse(q.end)+HOUR),timeFidelity:1800});\r\n   const now=Date.now();\r\n   return {stationId:id,kind:'prediction',unit:'m',datum:'MSL',updatedAt:new Date(now).toISOString(),expiresAt:new Date(now+HOUR).toISOString(),samples:series.map(x=>({time:new Date(x.time).toISOString(),level:x.level}))};\r\n  }}));\r\n}\r\nasync function loadTideEngine(){\r\n if(engineLoading)return;engineLoading=true;engineFailed=false;renderTides();\r\n \/\/ Same pinned library, alternative delivery host; this does not add data stations.\r\n for(const url of ['https:\/\/cdn.jsdelivr.net\/npm\/@slackwater\/engine@1.0.0-beta.0\/dist\/index.js','https:\/\/unpkg.com\/@slackwater\/engine@1.0.0-beta.0\/dist\/index.js']){\r\n  let timer;\r\n  try{\r\n   const m=await Promise.race([import(url),new Promise((_,reject)=>{timer=setTimeout(()=>reject(Error('Timeout')),7000)})]);\r\n   if(typeof m.createTidePredictor!=='function')throw Error('Invalid engine');\r\n   tideEngine=m;engineLoading=false;renderTides();return;\r\n  }catch{}finally{clearTimeout(timer)}\r\n }\r\n engineLoading=false;engineFailed=true;renderTides();\r\n}\r\nasync function renderTides(){const request=++tideRequest;tideController?.abort();tideController=new AbortController();const signal=tideController.signal;tide=[];extremes=[];tideScale=null;$('tidechart').replaceChildren();$('tide-events').replaceChildren();$('tide-status').textContent='\u0110ang l\u1ea5y d\u1ef1 b\u00e1o t\u1eeb tr\u1ea1m tham kh\u1ea3o\u2026';renderTideDetail();try{let s=start();\r\nconst response=await fetch(cfg.api+'?action=shf_map_station_tides&lat='+point.lat+'&lon='+point.lon+'&date='+$('date').value,{credentials:'same-origin',signal});const result=await response.json();if(request!==tideRequest||signal.aborted)return;if(!response.ok||!result.success)throw Error(result.data?.message||'Ngu\u1ed3n tr\u1ea1m \u0111ang c\u1eadp nh\u1eadt.');const data=result.data;\r\ntide=data.samples.map(x=>({time:new Date(x.time),hour:(Date.parse(x.time)-s)\/HOUR,level:x.level}));extremes=data.extremes.map(x=>({...x,time:new Date(x.time)}));\r\n$('tide-status').textContent='Tham kh\u1ea3o t\u1eeb Seamark \u00b7 tr\u1ea1m '+data.station.name+' \u00b7 c\u00e1ch \u0111i\u1ec3m c\u00e2u '+data.station.distance.toFixed(1)+' km \u00b7 '+data.datum+'. D\u1ef1 b\u00e1o th\u1ee7y tri\u1ec1u t\u1ea1i tr\u1ea1m, kh\u00f4ng ph\u1ea3i s\u1ed1 \u0111o tr\u1ef1c ti\u1ebfp t\u1ea1i \u0111i\u1ec3m c\u00e2u. '+(data.station.distance>25?'Tr\u1ea1m xa: ch\u1ec9 tham kh\u1ea3o nh\u1ecbp tri\u1ec1u khu v\u1ef1c. ':'')+'C\u1eadp nh\u1eadt '+day(new Date(data.updated*1000))+' '+clock(new Date(data.updated*1000))+(data.stale?' \u00b7 \u0111ang d\u00f9ng b\u1ea3n l\u01b0u \u0111\u00fang ng\u00e0y d\u1ef1 b\u00e1o.':'.');\r\nlet shown=tide.filter(x=>x.hour<=24),min=Math.floor(Math.min(...shown.map(p=>p.level))*2)\/2-.1,max=Math.ceil(Math.max(...shown.map(p=>p.level))*2)\/2+.1,px=h=>42+h\/24*666,py=v=>12+(max-v)\/(max-min)*132;tideScale={px,py};const ns='http:\/\/www.w3.org\/2000\/svg';let svg=document.createElementNS(ns,'svg');svg.setAttribute('viewBox','0 0 720 180');svg.setAttribute('role','img');svg.setAttribute('aria-label','Con n\u01b0\u1edbc theo gi\u1edd t\u1ea1i '+point.name);for(let i=0;i<3;i++){let v=min+(max-min)*i\/2,t=document.createElementNS(ns,'text');t.setAttribute('x','2');t.setAttribute('y',py(v)+4);t.setAttribute('font-size','12');t.textContent=v.toFixed(1);svg.append(t);let l=document.createElementNS(ns,'path');l.setAttribute('d','M42 '+py(v)+'H708');l.setAttribute('stroke','#e7ece4');svg.append(l)}let path=shown.map((p,i)=>(i?'L':'M')+px(p.hour).toFixed(1)+' '+py(p.level).toFixed(1)).join(' ');let area=document.createElementNS(ns,'path');area.setAttribute('d',path+' L708 156 L42 156Z');area.setAttribute('fill','#c6dfd5');svg.append(area);let line=document.createElementNS(ns,'path');line.setAttribute('d',path);line.setAttribute('fill','none');line.setAttribute('stroke','#16746a');line.setAttribute('stroke-width','3');svg.append(line);for(let h=0;h<=24;h+=3){let t=document.createElementNS(ns,'text');t.setAttribute('x',px(h));t.setAttribute('y','176');t.setAttribute('text-anchor','middle');t.setAttribute('font-size','11');t.textContent=h+'h';svg.append(t)}let cursor=document.createElementNS(ns,'path');cursor.id='sm-tide-cursor';cursor.setAttribute('stroke','#b78c35');cursor.setAttribute('stroke-width','2');cursor.setAttribute('stroke-dasharray','4 3');svg.append(cursor);let dot=document.createElementNS(ns,'circle');dot.id='sm-tide-dot';dot.setAttribute('r','5');dot.setAttribute('fill','#b78c35');dot.setAttribute('stroke','white');dot.setAttribute('stroke-width','2');svg.append(dot);$('tidechart').append(svg);for(const e of extremes)$('tide-events').append(el('span',(e.high?'\u25b2 \u0110\u1ec9nh ':'\u25bc Ch\u00e2n ')+clock(e.time)+' \u00b7 '+e.level.toFixed(2)+' m'));renderTideDetail()}catch(e){if(request!==tideRequest||signal.aborted)return;tide=[];extremes=[];tideScale=null;missingTides(e.message||'D\u1eef li\u1ec7u tr\u1ea1m \u0111ang c\u1eadp nh\u1eadt. Vui l\u00f2ng th\u1eed l\u1ea1i sau.')}}\r\nfunction levelAt(h){let exact=tide.find(x=>Math.abs(x.hour-h)<.01);if(exact)return exact;let i=tide.findIndex(x=>x.hour>h);if(i<1)return null;let a=tide[i-1],b=tide[i];return {hour:h,level:a.level+(b.level-a.level)*(h-a.hour)\/(b.hour-a.hour)}}\r\nfunction tendency(h){let p=levelAt(h),n=levelAt(h+.5);return !p||!n?'\u2014':Math.abs(n.level-p.level)<.01?'G\u1ea7n \u0111\u1ed5i chi\u1ec1u':n.level>p.level?'N\u01b0\u1edbc l\u00ean':'N\u01b0\u1edbc xu\u1ed1ng'}\r\nfunction weatherAt(h){return weather?.hours.find(r=>Math.abs(+new Date(r.time)-(+start()+h*HOUR))<1000)}\r\nfunction renderTideDetail(){let p=levelAt(tideHour),r=weatherAt(tideHour),wind=Number.isFinite(r?.wind)?(r.wind*3.6).toFixed(1)+' km\/h':'ch\u1edd b\u1ea3n tin';$('tide-detail').textContent=String(tideHour).padStart(2,'0')+':00'+(tideHour===24?' (\u0111\u1ea7u ng\u00e0y k\u1ebf ti\u1ebfp)':'')+' \u00b7 '+(p?p.level.toFixed(2)+' m \u00b7 '+tendency(tideHour):'Con n\u01b0\u1edbc: ch\u1edd d\u1eef li\u1ec7u')+' \u00b7 Gi\u00f3 '+wind;\r\nif(p&&tideScale){let x=tideScale.px(tideHour),y=tideScale.py(p.level);$('tide-cursor')?.setAttribute('d','M'+x+' 12V156');$('tide-dot')?.setAttribute('cx',x);$('tide-dot')?.setAttribute('cy',y)}\r\nlet box=$('tide-hours');if(!box.children.length)for(let h=0;h<=24;h++){let b=el('button');b.type='button';b.addEventListener('click',()=>{if(h<24)selectHour(h);else{tideHour=24;renderTideDetail()}});box.append(b)}Array.from(box.children).forEach((b,h)=>{let val=levelAt(h),w=weatherAt(h);b.replaceChildren(el('strong',String(h).padStart(2,'0')+'h'),el('span',val?val.level.toFixed(2)+' m':'\u2014 m'),el('small',Number.isFinite(w?.wind)?(w.wind*3.6).toFixed(1)+' km\/h':'\u2014 km\/h'));b.setAttribute('aria-label',h+' gi\u1edd, con n\u01b0\u1edbc '+(val?val.level.toFixed(2)+' m\u00e9t':'ch\u1edd d\u1eef li\u1ec7u')+', gi\u00f3 '+(Number.isFinite(w?.wind)?(w.wind*3.6).toFixed(1)+' km\/h':'ch\u1edd b\u1ea3n tin'));b.setAttribute('aria-pressed',String(h===tideHour))})}\r\nfunction renderHourWeather(){let rows=weather&&weather.hours.filter(r=>day(new Date(r.time))===$('date').value),r=rows&&rows.find(r=>Number(clock(new Date(r.time)).slice(0,2))===selected);if(!r){$('why-weather').textContent='Ngu\u1ed3n d\u1ef1 b\u00e1o ch\u01b0a c\u00f3 th\u1eddi ti\u1ebft \u0111\u00fang '+String(selected).padStart(2,'0')+':00 ng\u00e0y '+$('date').value.split('-').reverse().join('\/')+'. Ch\u1ecdn gi\u1edd c\u00f3 b\u1ea3n tin \u0111\u1ec3 xem t\u1ed1c \u0111\u1ed9 gi\u00f3 v\u00e0 xu h\u01b0\u1edbng \u00e1p su\u1ea5t.';return}let wind=Number.isFinite(r.wind)?r.wind*3.6:null,previous=weather.hours.find(p=>+new Date(p.time)===+new Date(r.time)-3*HOUR),delta=previous&&Number.isFinite(r.pressure)&&Number.isFinite(previous.pressure)?r.pressure-previous.pressure:null;\r\nlet lines=[clock(new Date(r.time))+': '+(r.temp??'\u2014')+' \u00b0C \u00b7 gi\u00f3 '+(wind===null?'\u2014':wind.toFixed(1))+' km\/h \u00b7 \u00e1p su\u1ea5t '+(r.pressure??'\u2014')+' hPa.'];if(delta!==null)lines.push('So v\u1edbi 3 gi\u1edd tr\u01b0\u1edbc, \u00e1p su\u1ea5t '+(Math.abs(delta)<0.2?'g\u1ea7n \u1ed5n \u0111\u1ecbnh':(delta>0?'t\u0103ng ':'gi\u1ea3m ')+Math.abs(delta).toFixed(1)+' hPa')+'.');if(r.symbol&&\/rain|sleet|thunder\/.test(r.symbol))lines.push('B\u1ea3n tin c\u00f3 t\u00edn hi\u1ec7u m\u01b0a; ki\u1ec3m tra l\u1ea1i th\u1eddi ti\u1ebft g\u1ea7n l\u00fac xu\u1ea5t ph\u00e1t.');if(wind!==null)lines.push(wind>=20?'Gi\u00f3 c\u00f3 th\u1ec3 l\u00e0m kh\u00f3 quan s\u00e1t phao; c\u00e2n nh\u1eafc v\u1ecb tr\u00ed khu\u1ea5t gi\u00f3.':wind>=10?'Gi\u00f3 t\u1ea1o th\u00eam dao \u0111\u1ed9ng m\u1eb7t n\u01b0\u1edbc; ch\u00fa \u00fd ph\u00e2n bi\u1ec7t nh\u1ecbp phao do gi\u00f3 v\u00e0 t\u00edn hi\u1ec7u ch\u1ea1m m\u1ed3i.':'Gi\u00f3 nh\u1eb9 gi\u00fap quan s\u00e1t chuy\u1ec3n \u0111\u1ed9ng nh\u1ecf c\u1ee7a phao thu\u1eadn ti\u1ec7n h\u01a1n.');$('why-weather').textContent=lines.join(' ')}\r\nasync function loadWeather(){let id=++forecastRequest;weather=null;renderHourWeather();renderTideDetail();$('weather').textContent='\u0110ang t\u1ea3i th\u1eddi ti\u1ebft\u2026';try{let r=await fetch(cfg.api+'?action=shf_conditions_weather&lat='+point.lat.toFixed(2)+'&lon='+point.lon.toFixed(2),{credentials:'same-origin'}),d=await r.json();if(id!==forecastRequest)return;if(!r.ok||!d.success)throw Error(d.data?.message||'Ngu\u1ed3n th\u1eddi ti\u1ebft ch\u01b0a s\u1eb5n s\u00e0ng.');weather=d.data;weatherView()}catch(e){if(id===forecastRequest)$('weather').textContent=e.message}}\r\nfunction weatherView(){renderTideDetail();if(!weather)return;let rows=weather.hours.filter(r=>day(new Date(r.time))===$('date').value);$('weather').replaceChildren();if(!rows.length){$('weather').textContent='Ch\u01b0a c\u00f3 th\u1eddi ti\u1ebft ng\u00e0y n\u00e0y.';renderHourWeather();return}for(const [name,key,unit,factor] of [['Nhi\u1ec7t \u0111\u1ed9','temp','\u00b0C',1],['Gi\u00f3','wind','km\/h',3.6],['\u00c1p su\u1ea5t','pressure','hPa',1]]){let values=rows.map(r=>r[key]).filter(Number.isFinite),d=el('div',undefined,'sm-metric');d.append(el('span',name));d.append(el('strong',values.length?Math.round(Math.min(...values)*factor)+'\u2013'+Math.round(Math.max(...values)*factor)+' '+unit:'Ch\u01b0a c\u00f3'));$('weather').append(d)}$('weather-updated').textContent='B\u1ea3n tin '+day(new Date(weather.updated))+' '+clock(new Date(weather.updated))+' \u00b7 MET Norway (CC BY 4.0).';renderHourWeather()}\r\nfunction choose(p){if(!valid(p.lat,p.lon)){message('Ch\u1ecdn t\u1ecda \u0111\u1ed9 trong khu v\u1ef1c Vi\u1ec7t Nam.',true);return}$('picker').open=false;point={name:p.name,lat:Number(p.lat.toFixed(4)),lon:Number(p.lon.toFixed(4)),station:''};point.station=Object.keys(cfg.stations).filter(k=>cfg.stations[k].license?.commercial_use===true&&stationDistance(cfg.stations[k])<0.05).sort((a,b)=>stationDistance(cfg.stations[a])-stationDistance(cfg.stations[b]))[0]||'';$('place').textContent=point.name;$('coord').textContent=point.lat.toFixed(4)+'\u00b0 N, '+point.lon.toFixed(4)+'\u00b0 E';$('lat').value=point.lat;$('lon').value=point.lon;$('spot-name').value=point.name.slice(0,80);if(map){marker.setLatLng([point.lat,point.lon]);map.setView([point.lat,point.lon],Math.max(map.getZoom(),9))}calculate();loadWeather();updateSave();message('\u0110\u00e3 ch\u1ecdn '+point.name+'.')}\r\nfunction updateSave(){let found=saved.some(p=>p.lat===point.lat&&p.lon===point.lon);$('save').textContent=found?'\u0110\u00e3 l\u01b0u \u00b7 c\u1eadp nh\u1eadt':'L\u01b0u \u0111i\u1ec3m c\u00e2u'}\r\nfunction renderSaved(){let box=$('saved');box.replaceChildren();if(!saved.length)box.append(el('p','Ch\u01b0a c\u00f3 \u0111i\u1ec3m c\u00e2u \u0111\u00e3 l\u01b0u. Ch\u1ecdn v\u1ecb tr\u00ed r\u1ed3i b\u1ea5m \u201cL\u01b0u \u0111i\u1ec3m c\u00e2u\u201d.','sm-muted'));saved.forEach(p=>{let card=el('div',undefined,'sm-saved-item'),b=el('button',p.name,'sm-saved-name');b.type='button';b.addEventListener('click',()=>{dates();$('date').value=today;choose(p);dates()});let next=el('button','Ng\u00e0y mai \u2192','sm-link');next.type='button';next.addEventListener('click',()=>{$('date').value=day(new Date(Date.now()+DAY));dates();choose(p)});let remove=el('button','X\u00f3a','sm-link');remove.type='button';remove.setAttribute('aria-label','X\u00f3a \u0111i\u1ec3m '+p.name);remove.addEventListener('click',()=>sync('delete',{id:p.id}));card.append(b,next,remove);box.append(card)});updateSave()}\r\nasync function session(){let r=await fetch(cfg.api+'?action=shmap_session&_='+Date.now(),{credentials:'same-origin',cache:'no-store'});let d=await r.json();if(!r.ok||!d.success)throw Error('Ch\u01b0a ki\u1ec3m tra \u0111\u01b0\u1ee3c phi\u00ean \u0111\u0103ng nh\u1eadp.');auth=d.data;if(auth.logged){saved=auth.spots;version=auth.version;$('sync-note').textContent='\u0110\u00e3 \u0111\u1ed3ng b\u1ed9 theo t\u00e0i kho\u1ea3n \u00b7 t\u1ef1 c\u1eadp nh\u1eadt khi m\u1edf l\u1ea1i trang.';$('login').hidden=true}else{try{saved=JSON.parse(localStorage.getItem('shmap_guest_spots_v1')||'[]').filter(p=>valid(p.lat,p.lon)&&typeof p.name==='string').slice(0,30)}catch(e){saved=[]}$('sync-note').textContent='Kh\u00e1ch: l\u01b0u tr\u00ean tr\u00ecnh duy\u1ec7t n\u00e0y. \u0110\u0103ng nh\u1eadp c\u00f9ng t\u00e0i kho\u1ea3n \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9 gi\u1eefa c\u00e1c thi\u1ebft b\u1ecb.';$('login').hidden=false}renderSaved()}\r\nasync function sync(op,item){if(busy)return;busy=true;$('save-confirm').disabled=true;try{if(!auth)await session();if(!auth.logged){if(op==='delete')saved=saved.filter(p=>p.id!==item.id);else{let found=saved.findIndex(p=>p.lat===item.lat&&p.lon===item.lon);let p={...item,id:found>=0?saved[found].id:crypto.randomUUID()};if(found>=0)saved[found]=p;else{if(saved.length>=30)throw Error('T\u1ed1i \u0111a 30 \u0111i\u1ec3m c\u00e2u.');saved.push(p)}}localStorage.setItem('shmap_guest_spots_v1',JSON.stringify(saved));message('\u0110\u00e3 l\u01b0u tr\u00ean thi\u1ebft b\u1ecb n\u00e0y. \u0110\u0103ng nh\u1eadp \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9 nhi\u1ec1u thi\u1ebft b\u1ecb.')}else{let body=new URLSearchParams({action:'shmap_save',nonce:auth.nonce,version:String(version),op,item:JSON.stringify(item)});let r=await fetch(cfg.api,{method:'POST',credentials:'same-origin',cache:'no-store',body}),d=await r.json();if(!r.ok||!d.success){if(r.status===409||r.status===403)await session();throw Error(d.data?.message||'Ch\u01b0a l\u01b0u \u0111\u01b0\u1ee3c. Vui l\u00f2ng th\u1eed l\u1ea1i.')}saved=d.data.spots;version=d.data.version;message('\u0110\u00e3 l\u01b0u v\u00e0o t\u00e0i kho\u1ea3n. Thi\u1ebft b\u1ecb kh\u00e1c s\u1ebd nh\u1eadn khi m\u1edf SH Map.')}renderSaved();$('save-panel').hidden=true}catch(e){message(e.message,true)}finally{busy=false;$('save-confirm').disabled=false}}\r\n$('save').addEventListener('click',()=>{$('save-panel').hidden=!$('save-panel').hidden;if(!$('save-panel').hidden)$('spot-name').focus()});$('save-cancel').addEventListener('click',()=>{$('save-panel').hidden=true});$('save-form').addEventListener('submit',e=>{e.preventDefault();let name=$('spot-name').value.trim();if(!name||name.length>80)return;sync('upsert',{...point,name})});$('refresh-saved').addEventListener('click',()=>session().then(()=>message('\u0110\u00e3 c\u1eadp nh\u1eadt \u0111i\u1ec3m c\u00e2u t\u1eeb t\u00e0i kho\u1ea3n.')).catch(e=>message(e.message,true)));\r\n$('date').addEventListener('change',()=>{dates();calculate();weatherView()});document.querySelectorAll('[data-sm-day]').forEach(b=>b.addEventListener('click',()=>{$('date').value=day(new Date(Date.now()+Number(b.dataset.smDay)*DAY));dates();calculate();weatherView()}));$('hour').addEventListener('input',()=>selectHour(Number($('hour').value)));\r\n$('coord-form').addEventListener('submit',e=>{e.preventDefault();choose({name:'\u0110i\u1ec3m c\u00e2u \u0111\u00e3 ch\u1ecdn',lat:Number($('lat').value),lon:Number($('lon').value),station:''})});\r\nconst norm=s=>s.normalize('NFD').replace(\/[\\u0300-\\u036f]\/g,'').replace(\/\u0111\/g,'d').toLowerCase();let searchSeq=0;\r\n$('search-form').addEventListener('submit',async e=>{e.preventDefault();let query=$('search').value.trim(),q=norm(query);if(q.length<2){message('Nh\u1eadp \u00edt nh\u1ea5t 2 k\u00fd t\u1ef1 \u0111\u1ec3 t\u00ecm \u0111\u1ecba \u0111i\u1ec3m.',true);return}let seq=++searchSeq,button=$('search-form').querySelector('button');button.disabled=true;button.textContent='\u0110ang t\u00ecm\u2026';$('results').replaceChildren();message('\u0110ang t\u00ecm \u0111\u1ecba danh\u2026');try{let r=await fetch(cfg.api+'?action=shmap_search_places&q='+encodeURIComponent(query),{credentials:'same-origin'}),data=await r.json();if(seq!==searchSeq)return;if(!r.ok||!data.success)throw Error(data.data?.message||'Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c \u0111\u1ecba danh.');showResults(data.data);message(data.data.length?'Ch\u1ecdn \u0111\u00fang khu v\u1ef1c trong danh s\u00e1ch; c\u00f3 th\u1ec3 ch\u1ea1m b\u1ea3n \u0111\u1ed3 \u0111\u1ec3 ch\u1ecdn s\u00e1t \u0111i\u1ec3m c\u00e2u.':'Ch\u01b0a th\u1ea5y \u0111\u1ecba danh n\u00e0y. Th\u1eed th\u00eam t\u00ean x\u00e3\/ph\u01b0\u1eddng, t\u1ec9nh ho\u1eb7c ch\u1ecdn tr\u00ean b\u1ea3n \u0111\u1ed3.',!data.data.length)}catch(err){if(seq!==searchSeq)return;let fallback=places.filter(p=>norm(p[0]).includes(q)).map(p=>({name:p[0],lat:p[1],lon:p[2],station:p[3]}));showResults(fallback);message(err.message+(fallback.length?' C\u00f3 g\u1ee3i \u00fd \u0111\u1ecba danh l\u01b0u s\u1eb5n b\u00ean d\u01b0\u1edbi.':''),true)}finally{if(seq===searchSeq){button.disabled=false;button.textContent='T\u00ecm'}}});\r\nfunction showResults(items){$('results').replaceChildren();items.forEach(p=>{let b=el('button',undefined,'sm-result');b.type='button';b.append(el('strong',p.name),el('span',p.lat.toFixed(4)+'\u00b0 N, '+p.lon.toFixed(4)+'\u00b0 E'));b.addEventListener('click',()=>{choose(p);$('results').replaceChildren()});$('results').append(b)})}\r\ndocument.addEventListener('click',e=>{if(!$('calendar').contains(e.target))$('calendar').open=false});$('calendar').addEventListener('keydown',e=>{if(e.key==='Escape'){$('calendar').open=false;$('calendar').querySelector('summary').focus()}});\r\n$('locate').addEventListener('click',()=>{if(!navigator.geolocation){message('Tr\u00ecnh duy\u1ec7t kh\u00f4ng h\u1ed7 tr\u1ee3 \u0111\u1ecbnh v\u1ecb.',true);return}$('locate').disabled=true;navigator.geolocation.getCurrentPosition(p=>{$('locate').disabled=false;choose({name:'\u0110i\u1ec3m g\u1ea7n t\u00f4i',lat:p.coords.latitude,lon:p.coords.longitude,station:''})},()=>{$('locate').disabled=false;message('Kh\u00f4ng \u0111\u1ecbnh v\u1ecb \u0111\u01b0\u1ee3c. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn tr\u00ean b\u1ea3n \u0111\u1ed3.',true)},{timeout:12000,maximumAge:300000})});\r\nfunction initMap(){if(!window.L||map)return;map=L.map('sm-map',{scrollWheelZoom:false}).setView([point.lat,point.lon],10);L.tileLayer('https:\/\/tile.openstreetmap.org\/{z}\/{x}\/{y}.png',{maxZoom:18,attribution:'\u00a9 <a href=\"https:\/\/www.openstreetmap.org\/copyright\" target=\"_blank\" rel=\"noopener\">OpenStreetMap contributors<\/a>'}).addTo(map);marker=L.circleMarker([point.lat,point.lon],{radius:8,color:'#bc9853',fillColor:'#073e32',fillOpacity:1}).addTo(map);map.on('click',e=>choose({name:'\u0110i\u1ec3m c\u00e2u tr\u00ean b\u1ea3n \u0111\u1ed3',lat:e.latlng.lat,lon:e.latlng.lng,station:''}))}$('map-toggle').addEventListener('click',()=>{$('map-panel').hidden=!$('map-panel').hidden;$('map-toggle').setAttribute('aria-expanded',String(!$('map-panel').hidden));if(!$('map-panel').hidden){initMap();if(map)map.invalidateSize()}});$('picker').addEventListener('toggle',()=>{if($('picker').open&&map&&!$('map-panel').hidden)map.invalidateSize()});\r\ndocument.addEventListener('visibilitychange',()=>{if(!document.hidden&&!busy){session().catch(()=>{});let before=$('date').value;dates();if(before!==$('date').value){calculate();loadWeather()}}});\r\ndates();choose(point);message('');session().catch(e=>message(e.message,true));\r\n}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init);else init();})();\r\n<\/script>\r\n\n<section id=\"shf-guide-page-1655\" class=\"container\">\n<h2>SH Map l\u00e0 g\u00ec?<\/h2>\n<p><strong>SH Map<\/strong> l\u00e0 c\u00f4ng c\u1ee5 xem gi\u1edd c\u00e1 ho\u1ea1t \u0111\u1ed9ng theo l\u1ecbch Solunar, tham kh\u1ea3o con n\u01b0\u1edbc v\u00e0 th\u1eddi ti\u1ebft theo \u0111i\u1ec3m c\u00e2u tr\u00ean website <a href=\"https:\/\/shfishing.vn\/\">SH Fishing<\/a>. B\u1ea1n ch\u1ecdn v\u1ecb tr\u00ed v\u00e0 ng\u00e0y d\u1ef1 \u0111\u1ecbnh \u0111i c\u00e2u \u0111\u1ec3 \u0111\u1ecdc c\u00e1c th\u00f4ng tin trong c\u00f9ng m\u1ed9t giao di\u1ec7n. SH Map d\u00f9ng tr\u1ef1c ti\u1ebfp tr\u00ean tr\u00ecnh duy\u1ec7t \u0111i\u1ec7n tho\u1ea1i ho\u1eb7c m\u00e1y t\u00ednh, kh\u00f4ng c\u1ea7n c\u00e0i \u1ee9ng d\u1ee5ng.<\/p>\n<h2>C\u00e1ch \u0111\u1ecdc SH Map tr\u01b0\u1edbc khi ch\u1ecdn gi\u1edd c\u00e2u<\/h2>\n<p>H\u00e3y ch\u1ecdn \u0111\u00fang \u0111i\u1ec3m c\u00e2u tr\u01b0\u1edbc, sau \u0111\u00f3 ki\u1ec3m tra ng\u00e0y v\u00e0 gi\u1edd Vi\u1ec7t Nam \u0111ang hi\u1ec3n th\u1ecb. Ch\u1ea1m m\u1ed9t c\u1ed9t trong bi\u1ec3u \u0111\u1ed3 24 gi\u1edd \u0111\u1ec3 xem ph\u1ea7n ph\u00e2n t\u00edch c\u1ee7a gi\u1edd \u0111\u00f3. C\u00e1c m\u1ee9c th\u1ea5p, v\u1eeba v\u00e0 cao l\u00e0 m\u1ee9c Solunar tham kh\u1ea3o c\u1ee7a SH Map, kh\u00f4ng ph\u1ea3i t\u1ef7 l\u1ec7 ph\u1ea7n tr\u0103m c\u00e1 c\u1eafn c\u00e2u.<\/p>\n<p>\u0110\u1ecdc ri\u00eang ph\u1ea7n ho\u1ea1t \u0111\u1ed9ng c\u00e1, con n\u01b0\u1edbc v\u00e0 th\u1eddi ti\u1ebft: m\u1ed7i ph\u1ea7n th\u1ec3 hi\u1ec7n m\u1ed9t lo\u1ea1i th\u00f4ng tin. D\u1ef1 b\u00e1o t\u1eeb tr\u1ea1m tham kh\u1ea3o kh\u00f4ng thay th\u1ebf quan s\u00e1t t\u1ea1i ch\u1ed7, nh\u1ea5t l\u00e0 khu v\u1ef1c ch\u1ecbu \u1ea3nh h\u01b0\u1edfng c\u1ee7a m\u01b0a ho\u1eb7c \u0111i\u1ec1u ti\u1ebft d\u00f2ng n\u01b0\u1edbc. Khi ngu\u1ed3n d\u1eef li\u1ec7u ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c, ki\u1ec3m tra th\u00f4ng b\u00e1o tr\u00ean t\u1eebng m\u1ee5c thay v\u00ec hi\u1ec3u d\u1ea5u tr\u1ed1ng l\u00e0 m\u1ef1c n\u01b0\u1edbc ho\u1eb7c gi\u00f3 b\u1eb1ng kh\u00f4ng.<\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn \u0111i\u1ec3m c\u00e2u kh\u00e1c v\u00e0 \u0111\u1ed1i chi\u1ebfu l\u1ea1i ph\u1ea7n ph\u00e2n t\u00edch, ho\u1eb7c xem <a href=\"https:\/\/shfishing.vn\/sh-map-xem-gio-ca-hoat-dong-con-nuoc\/\">h\u01b0\u1edbng d\u1eabn SH Map<\/a> \u0111\u1ec3 l\u00e0m quen c\u00e1c thao t\u00e1c. Kh\u00f4ng nh\u1eadp s\u1ed1 \u0111i\u1ec7n tho\u1ea1i ho\u1eb7c \u0111\u1ecba ch\u1ec9 ri\u00eang v\u00e0o \u00f4 t\u00ecm \u0111\u1ecba danh. Ch\u1ec9 l\u01b0u \u0111i\u1ec3m khi b\u1ea1n mu\u1ed1n l\u01b0u v\u00e0 \u0111\u1ecdc m\u1ee5c ngu\u1ed3n d\u1eef li\u1ec7u, quy\u1ec1n ri\u00eang t\u01b0 ngay trong c\u00f4ng c\u1ee5.<\/p>\n<h2>C\u00e2u h\u1ecfi khi s\u1eed d\u1ee5ng SH Map<\/h2>\n<h3>SH Map c\u00f3 con n\u01b0\u1edbc \u1edf m\u1ecdi \u0111\u1ecba \u0111i\u1ec3m kh\u00f4ng?<\/h3>\n<p>Ph\u1ea7n con n\u01b0\u1edbc ph\u1ee5 thu\u1ed9c v\u00e0o tr\u1ea1m v\u00e0 ph\u1ea1m vi d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3. H\u00e3y ki\u1ec3m tra t\u00ean tr\u1ea1m, th\u00f4ng b\u00e1o v\u00e0 ngu\u1ed3n d\u1eef li\u1ec7u trong c\u00f4ng c\u1ee5; kh\u00f4ng coi d\u1ef1 b\u00e1o t\u1ea1i tr\u1ea1m l\u00e0 m\u1ef1c n\u01b0\u1edbc \u0111o tr\u1ef1c ti\u1ebfp \u1edf m\u1ecdi b\u00e8, s\u00f4ng ho\u1eb7c h\u1ed3.<\/p>\n<h3>V\u00ec sao SH Map b\u00e1o ho\u1ea1t \u0111\u1ed9ng cao nh\u01b0ng c\u00e1 kh\u00f4ng \u0103n?<\/h3>\n<p>M\u1ee9c cao th\u1ec3 hi\u1ec7n khung Solunar theo v\u1ecb tr\u00ed M\u1eb7t Tr\u0103ng, kh\u00f4ng ph\u1ea3i cam k\u1ebft c\u00e1 c\u1eafn c\u00e2u. \u0110i\u1ec1u ki\u1ec7n n\u01b0\u1edbc, th\u1eddi ti\u1ebft, lo\u00e0i c\u00e1 v\u00e0 l\u1ecbch cho c\u00e1 \u0103n t\u1ea1i \u0111i\u1ec3m c\u00e2u c\u00f3 th\u1ec3 l\u00e0m k\u1ebft qu\u1ea3 kh\u00e1c nhau.<\/p>\n<h3>L\u00e0m sao m\u1edf l\u1ea1i m\u1ed9t \u0111i\u1ec3m c\u00e2u tr\u00ean SH Map?<\/h3>\n<p>Ch\u1ecdn \u0111\u00fang v\u1ecb tr\u00ed, b\u1ea5m l\u01b0u khi b\u1ea1n mu\u1ed1n l\u01b0u \u0111i\u1ec3m v\u00e0 m\u1edf danh s\u00e1ch \u0111i\u1ec3m \u0111\u00e3 l\u01b0u \u1edf l\u1ea7n d\u00f9ng ti\u1ebfp theo. Kh\u00e1ch ch\u01b0a \u0111\u0103ng nh\u1eadp l\u01b0u tr\u00ean tr\u00ecnh duy\u1ec7t; \u0111i\u1ec3m ch\u1ec9 \u0111\u01b0\u1ee3c l\u01b0u v\u00e0o t\u00e0i kho\u1ea3n khi b\u1ea1n \u0111\u0103ng nh\u1eadp v\u00e0 th\u1ef1c hi\u1ec7n thao t\u00e1c l\u01b0u. Xem <a href=\"https:\/\/shfishing.vn\/sh-map-xem-gio-ca-hoat-dong-con-nuoc\/\">h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng SH Map t\u1eebng b\u01b0\u1edbc<\/a> n\u1ebfu c\u1ea7n t\u00ecm hi\u1ec3u th\u00eam.<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>SH Map l\u00e0 g\u00ec? SH Map l\u00e0 c\u00f4ng c\u1ee5 xem gi\u1edd c\u00e1 ho\u1ea1t \u0111\u1ed9ng theo l\u1ecbch Solunar, tham kh\u1ea3o con n\u01b0\u1edbc v\u00e0 th\u1eddi ti\u1ebft theo \u0111i\u1ec3m c\u00e2u tr\u00ean website SH Fishing. B\u1ea1n ch\u1ecdn v\u1ecb tr\u00ed v\u00e0 ng\u00e0y d\u1ef1 \u0111\u1ecbnh \u0111i c\u00e2u \u0111\u1ec3 \u0111\u1ecdc c\u00e1c th\u00f4ng tin trong c\u00f9ng m\u1ed9t giao di\u1ec7n. SH Map d\u00f9ng tr\u1ef1c&#8230;<\/p>","protected":false},"author":7,"featured_media":1697,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-blank.php","meta":{"footnotes":""},"class_list":["post-1655","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/pages\/1655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/comments?post=1655"}],"version-history":[{"count":5,"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/pages\/1655\/revisions"}],"predecessor-version":[{"id":2170,"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/pages\/1655\/revisions\/2170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/media\/1697"}],"wp:attachment":[{"href":"https:\/\/shfishing.vn\/en\/wp-json\/wp\/v2\/media?parent=1655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}