/* QSR-CSS-0123 */
 /* QSR-CSS-0009 */
 /* =========================================================
    QSR Tracker â€“ Global Site Styles
    Used across all standalone pages
    ========================================================= */

 /* ---------- Base layout ---------- */

 html,
 body {
   font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
     Helvetica Neue, Helvetica, Arial, sans-serif !important;
   margin: 0;
   padding-bottom: 70px; /* space for fixed footer */
 }

 body {
   background: #f6f7f9;
 }

 /* Optional page wrapper helpers (used by some tools) */
 .qsr-page-wrap {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
 }
 .qsr-main {
   flex: 1 0 auto;
   padding: 30px 0;
 }

 /* ---------- Header / Jumbotron ---------- */

 #global-header {
   min-height: 130px;
   background: #16477b;
 }

 .qsr-header {
   background-color: #16477b;
   color: #ffffff;
 }

 .qsr-header .tagline {
   font-size: 0.95rem;
   opacity: 0.9;
   margin-bottom: 0;
 }

 /* ---------- Logo ---------- */

 .qsr-logo {
   display: inline-flex;
   align-items: center;
   text-decoration: none;
   line-height: 1;
 }

 .qsr-logo-img {
   display: block;
   height: 52px;
   width: auto;
 }

 @media (max-width: 576px) {
   .qsr-logo-img {
     height: 44px;
   }
 }

 /* ---------- Footer ---------- */

 #global-footer {
   min-height: 44px;
 }

 .footer {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   background-color: #16477b;
   color: #ffffff;
   text-align: center;
   padding: 10px 0;
   z-index: 10;
 }

 /* ---------- Forms ---------- */

 fieldset {
   border: none !important;
   margin: 0 0 12px;
   padding: 0;
   width: 100%;
 }

 .form-control {
   border-radius: 6px;
   font-size: 15px;
 }

 .form-control:focus {
   border-color: #16477b;
   box-shadow: 0 0 0 0.15rem rgba(22, 71, 123, 0.2);
 }

 /* Match focus behavior for selects too */
 .form-select:focus {
   border-color: #16477b;
   box-shadow: 0 0 0 0.15rem rgba(22, 71, 123, 0.2);
 }

 /* ---------- Cards ---------- */

 .qsr-card {
   background: #ffffff;
   border-radius: 10px;
   padding: 24px 22px 26px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
 }

 /* ---------- Contact form card ---------- */

 #contactform {
   max-width: 420px;
   margin: 0 auto 40px;
   text-align: left;
 }

 #contactform h3 {
   text-align: center;
   margin-bottom: 18px;
   font-weight: 600;
   color: #16477b;
 }

 #contactform textarea.form-control {
   resize: vertical;
   min-height: 110px;
 }

 #contactform .btn-success {
   width: 100%;
   font-weight: 600;
   padding: 10px;
   border-radius: 6px;
 }

 #contactform .btn-success:disabled {
   opacity: 0.65;
   cursor: not-allowed;
 }

 #contactform .g-recaptcha {
   margin-top: 10px;
   display: flex;
   justify-content: center;
 }

 /* ---------- Dropdowns / Store selector ---------- */

 .scrollable-menu {
   max-height: 250px;
   overflow-y: auto;
 }

 .dropdown-search {
   padding: 10px;
 }

 .store-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   width: 100%;
 }

 .badge-active {
   background: #28a745;
   color: #ffffff;
   font-size: 12px;
   padding: 3px 8px;
   border-radius: 999px;
   white-space: nowrap;
 }

 .badge-inactive {
   background: #6c757d;
   color: #ffffff;
   font-size: 12px;
   padding: 3px 8px;
   border-radius: 999px;
   white-space: nowrap;
 }

 .dropdown-item.is-inactive {
   opacity: 0.6;
   pointer-events: none;
   cursor: not-allowed;
 }

 /* ---------- Utilities ---------- */

 .text-brand {
   color: #16477b;
 }

 /* Center all standard section headings by default */
 .text-brand.mb-3 {
   text-align: center;
 }

 .qsr-muted {
   color: rgba(0, 0, 0, 0.6);
 }

 .qsr-small {
   font-size: 0.92rem;
 }

 .qsr-divider {
   height: 1px;
   background: rgba(0, 0, 0, 0.08);
   margin: 14px 0;
 }

 .badge-qsr {
   background: #16477b;
   color: #ffffff;
 }

 /* QSR-CSS-0110 */
 /* =========================================================
    Floating Action Buttons (FAB)
    Reusable for map fullscreen, print, help, layers, etc.
    ========================================================= */

 /* Single floating button (legacy/utility) */
 .qsr-fab {
   position: fixed;
   right: 20px;
   bottom: 90px; /* clears fixed footer */
   z-index: 1060;
   border-radius: 999px;
   width: 44px;
   height: 44px;
   padding: 0;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 /* Optional vertical stack container */
 .qsr-fab-stack {
   position: fixed;
   right: 20px;
   bottom: 90px;
   z-index: 1060;
   display: flex;
   flex-direction: column;
   align-items: flex-end; /* push everything in it to the right */
   gap: 10px;
 }

 /* Map tools: FAB stack (preferred) */
 .qsr-map-fab-stack {
   position: fixed;
   right: 20px;
   bottom: 90px; /* clears fixed footer */
   z-index: 1060;
   display: flex;
   flex-direction: column;
   align-items: flex-end; /* push everything in it to the right */
   gap: 10px;
 }

 /* QSR-CSS-0117 */
 /* =========================================================
    Hide map floating action buttons while map is fullscreen
    Controlled via body state set by qsr-map-fullscreen.js
    ========================================================= */

 body.qsr-map-fullscreen-active .qsr-map-fab-stack {
   display: none !important;
 }

 /* QSR-CSS-0120 */
 /* =========================================================
    Hide map FABs while fullscreen map modal is open
    Primary: body.qsr-map-fullscreen-active (set by qsr-map-fullscreen.js)
    Fallback A: Bootstrap adds body.modal-open while ANY modal is open.
                We scope to map FAB containers to avoid impacting non-map UI.
    ========================================================= */

 body.qsr-map-fullscreen-active .qsr-map-fab-stack,
 body.qsr-map-fullscreen-active .qsr-fab-stack,
 body.qsr-map-fullscreen-active .qsr-fab,
 body.qsr-map-fullscreen-active #btnFullscreenMap,
 body.modal-open .qsr-map-fab-stack,
 body.modal-open .qsr-fab-stack {
   display: none !important;
   visibility: hidden !important;
   opacity: 0 !important;
   pointer-events: none !important;
 }

 /* Additional rule: Hide FAB buttons inside the fullscreen modal itself */
 #mapFullscreenModal .qsr-map-fab-stack,
 #mapFullscreenModal .qsr-fab-stack,
 #mapFullscreenModal #btnFullscreenMap {
   display: none !important;
   visibility: hidden !important;
 }

 /* QSR-CSS-0121 */
 /* =========================================================
    Fallback B: If any map container uses the browser Fullscreen API
    (element enters :fullscreen), hide map FAB stacks there too.
    ========================================================= */

 :fullscreen .qsr-map-fab-stack,
 :fullscreen .qsr-fab-stack,
 :fullscreen .qsr-fab,
 :fullscreen #btnFullscreenMap {
   display: none !important;
   visibility: hidden !important;
   opacity: 0 !important;
   pointer-events: none !important;
 }
