/* ============================================================
   File: browser-glitch-fixes.css
   Purpose: Universal browser consistency & glitch fixes
            + touch device hover cancellations
   Project: Cluebay Map Works
   Author: [Your Name]
   Version: 1.1
   Created: 2025-10-18
   Verified browsers:
     - Chrome 130 (Windows, Android)
     - Firefox 132 (Windows)
     - Edge 130
     - Safari 17 (iOS)
     - Silk 111 (Amazon Fire)
   ============================================================ */

/* --- General consistency --- */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

/* --- Robust viewport height for mobile browsers --- */
:root { --vh: 1vh; }
@supports (height: 100dvh) {
  :root { --vh: 1dvh; }
}
.fullscreen { height: calc(var(--vh, 1vh) * 100); }

/* --- Prevent horizontal scrollbars from 100vw layouts --- */
html { overflow-x: hidden; }

/* --- Fix fractional rounding in W3.CSS visibility helpers --- */
@media (max-width:599px) {
  .w3-hide-small {display:none!important;}
}
@media (min-width:600px) and (max-width:991px) {
  .w3-hide-medium {display:none!important;}
}
@media (min-width:992px) {
  .w3-hide-large {display:none!important;}
}
