* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { width: 100%; height: 100%; overflow-x: hidden; }

/* ==========================================================================
   VIEWPORT ARCHITECTURE FRAMEWORK SYSTEM ENGINE
   ========================================================================== */

/* Layout Type A: Premium Split Screen Sidebar Framework */
body.fmcs-split-layout-enabled { display: flex; flex-direction: row; height: 100vh; width: 100vw; overflow: hidden; }
body.fmcs-split-layout-enabled #fmcs-map-bg { position: relative; width: 60%; height: 100vh; order: 2; z-index: 1; }
body.fmcs-split-layout-enabled .fmcs-overlay { position: fixed; top: 0; right: 0; width: 60%; height: 100vh; z-index: 2; pointer-events: none; }
body.fmcs-split-layout-enabled .fmcs-content-wrapper {
    width: 40%; height: 100vh; overflow-y: auto; position: relative; z-index: 3;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 40px 25px; order: 1; box-shadow: 4px 0 30px rgba(0,0,0,0.15); backdrop-filter: blur(8px);
}
body.fmcs-split-layout-enabled .fmcs-content-wrapper * { pointer-events: auto; text-align: center; }
body.fmcs-split-layout-enabled .fmcs-grid { justify-content: center; text-align: center; width: 100%; }
body.fmcs-split-layout-enabled .fmcs-col { text-align: center; width: 100%; }

/* Layout Type B: Classic Fullscreen Overlay Centered Focus Canvas Architecture
   MODIFIED: Restored premium 1100px global container boundaries */
body.fmcs-centered-layout-enabled #fmcs-map-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; }
body.fmcs-centered-layout-enabled .fmcs-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; }
body.fmcs-centered-layout-enabled .fmcs-content-wrapper {
    position: relative; z-index: 3; display: flex; flex-direction: column;
    min-height: 100vh; justify-content: space-between; align-items: center;
    padding: 40px 20px; text-align: center; max-width: 1100px; margin: 0 auto; pointer-events: none;
}
body.fmcs-centered-layout-enabled .fmcs-header, 
body.fmcs-centered-layout-enabled #fmcs-countdown, 
body.fmcs-centered-layout-enabled .fmcs-grid, 
body.fmcs-centered-layout-enabled .fmcs-directions-holder, 
body.fmcs-centered-layout-enabled .fmcs-footer { pointer-events: auto; }

/* FIXED: 2/3 vs 1/3 Split Flexbox Component Layout Matrix Grid */
body.fmcs-centered-layout-enabled .fmcs-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

/* 2/3 Content Layout Box for Title + Clocks */
body.fmcs-centered-layout-enabled .fmcs-left-split-block {
    width: 66.666%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* 1/3 Content Layout Target Box to lock map marker centering calculations */
body.fmcs-centered-layout-enabled .fmcs-right-split-block {
    width: 33.333%;
    height: 120px;
    position: relative;
    pointer-events: none;
}

body.fmcs-centered-layout-enabled .fmcs-left-split-block .fmcs-headline {
    text-align: left !important;
    width: 100%;
    margin-left: 0;
}

body.fmcs-centered-layout-enabled #fmcs-countdown {
    justify-content: flex-start !important;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

/* Background Fill Settings for Mapless Options */
body.fmcs-bg-mode-image, body.fmcs-bg-mode-curated { background-size: cover; background-position: center center; background-repeat: no-repeat; background-attachment: fixed; width: 100vw; height: 100vh; }

/* OpenStreetMap Filters */
.fmcs-theme-dark .leaflet-tile-container img, .fmcs-theme-neon .leaflet-tile-container img { filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%); }
.fmcs-theme-sunset .leaflet-tile-container img { filter: sepia(80%) saturate(140%) hue-rotate(340deg) brightness(85%) contrast(95%); }
.fmcs-theme-cyber .leaflet-tile-container img { filter: invert(90%) hue-rotate(290deg) saturate(180%); }
.fmcs-theme-emerald .leaflet-tile-container img { filter: sepia(30%) hue-rotate(85deg) saturate(130%) brightness(80%); }

/* Font Family Global Registry */
.fmcs-font-inter { font-family: 'Inter', sans-serif; }
.fmcs-font-poppins { font-family: 'Poppins', sans-serif; }
.fmcs-font-montserrat { font-family: 'Montserrat', sans-serif; }
.fmcs-font-playfair { font-family: 'Playfair Display', serif; }
.fmcs-font-roboto { font-family: 'Roboto', sans-serif; }
.fmcs-font-oswald { font-family: 'Oswald', sans-serif; }

.fmcs-logo-container { width: 100%; display: block; text-align: center; margin-bottom: 20px; }
.fmcs-header .fmcs-logo { max-height: 140px; display: block; margin-left: auto; margin-right: auto; }
.fmcs-header .fmcs-headline { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; line-height: 1.2; }

#fmcs-countdown { display: flex; gap: 14px; margin: 15px 0; }
.timer-box { padding: 16px 22px; border-radius: 10px; min-width: 95px; text-align: center; }
.timer-box span { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.timer-box label { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-top: 4px; display: block; }

.fmcs-grid { display: grid; width: 100%; gap: 15px; margin: 25px 0; text-align: center; }
.fmcs-cols-1 { grid-template-columns: 1fr; }
.fmcs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fmcs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fmcs-col { line-height: 1.5; font-size: 0.95rem; padding: 15px; border-radius: 6px; }

/* Directions Form Input UI Box Style rules */
.fmcs-directions-holder { margin: 15px auto; width: 100%; max-width: 450px; }
#fmcs-directions-form { display: flex; width: 100%; gap: 0; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); padding: 3px; background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); }
#fmcs-directions-form input { flex: 1; padding: 10px 18px; border: none; font-size: 0.9rem; outline: none; background: transparent; color: inherit; text-align: left !important; }

#fmcs-directions-form button { 
    padding: 10px 22px; border-radius: 26px; border: none; font-weight: 700; 
    cursor: pointer; font-size: 0.85rem; text-transform: uppercase; 
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    background: var(--btn-bg); color: var(--btn-color);
}
#fmcs-directions-form button:hover { opacity: 0.85; }

.fmcs-footer-text { margin-bottom: 10px; font-size: 0.85rem; opacity: 0.8; text-align: center; width: 100%; }

/* Social Icons Matrix */
.fmcs-socials { display: flex; gap: 15px; justify-content: center; align-items: center; width: 100%; margin-top: 5px; }
.fmcs-socials a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s, transform 0.2s; color: inherit; }
.fmcs-socials a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.15); }
.fmcs-socials a .dashicons { font-size: 18px; width: 18px; height: 18px; display: inline-block; line-height: 1; color: inherit; }
.fmcs-socials a.fmcs-social-threads svg { width: 16px; height: 16px; display: block; color: inherit; }

/* Custom Map Pin Pulse Engine Layer */
.fmcs-custom-pin-wrapper { position: relative; width: 100%; height: 100%; display: block; }
.fmcs-custom-svg-pin { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.4)); }
.fmcs-pin-radar-wave {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 30%; height: 30%; border-radius: 50%; z-index: 1;
    animation: fmcsRadarPulse 1.8s ease-out infinite;
}
@keyframes fmcsRadarPulse {
    0% { width: 20%; height: 20%; opacity: 0.9; box-shadow: 0 0 0 0px var(--pulse-color); }
    100% { width: 140%; height: 140%; opacity: 0.0; box-shadow: 0 0 0 30px var(--pulse-color); }
}

/* FIXED: Sets Leaflet Map Markers directly over the dark backdrop wrapper mask layer stack */
.leaflet-marker-pane { z-index: 600 !important; }
.leaflet-shadow-pane { z-index: 500 !important; }

/* Mobile Breakdowns */
@media(max-width: 991px) {
    body.fmcs-split-layout-enabled { flex-direction: column; overflow-y: auto; }
    body.fmcs-split-layout-enabled #fmcs-map-bg { width: 100%; height: 45vh; order: 1; position: relative; display: block !important; min-height: 45vh; }
    body.fmcs-split-layout-enabled .fmcs-content-wrapper { width: 100%; height: auto; order: 2; overflow-y: visible; }
    body.fmcs-split-layout-enabled .fmcs-overlay { width: 100%; height: 45vh; top: 0; }
    
    body.fmcs-centered-layout-enabled .fmcs-header { flex-direction: column; gap: 15px; }
    body.fmcs-centered-layout-enabled .fmcs-left-split-block,
    body.fmcs-centered-layout-enabled .fmcs-right-split-block { width: 100%; text-align: center !important; }
    body.fmcs-centered-layout-enabled .fmcs-left-split-block .fmcs-headline,
    body.fmcs-centered-layout-enabled #fmcs-countdown { text-align: center !important; justify-content: center !important; }
}

/* ==========================================================================
   COLOR SCHEME PALETTES (DECOUPLED READABILITY OVERLAY SPECS)
   ========================================================================== */

/* Theme 1: Minimal Dark */
.fmcs-theme-dark { --btn-bg: #ffffff; --btn-color: #111111; }
.fmcs-theme-dark .fmcs-content-wrapper { color: #ffffff; background: #111111; }
.fmcs-theme-dark.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-dark .timer-box, .fmcs-theme-dark .fmcs-col { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.fmcs-theme-dark .fmcs-socials a { color: #ffffff; }
.fmcs-theme-dark .fmcs-mapless-fallback-gradient { background: linear-gradient(135deg, #141e30 0%, #243b55 100%); }
body.fmcs-theme-dark .fmcs-overlay { background: rgba(15, 15, 15, 0.15); }
body.fmcs-theme-dark.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-dark.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-dark.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(15, 15, 15, 0.55); }

/* Theme 2: Neon Night */
.fmcs-theme-neon { --btn-bg: #ff007f; --btn-color: #ffffff; }
.fmcs-theme-neon .fmcs-content-wrapper { color: #00ffcc; background: #0c051c; }
.fmcs-theme-neon.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-neon .fmcs-header .fmcs-headline { color: #fff; text-shadow: 0 0 10px #ff007f; }
.fmcs-theme-neon .timer-box, .fmcs-theme-neon .fmcs-col { background: rgba(255, 0, 127, 0.03); border: 1px solid #ff007f; color: #fff; }
.fmcs-theme-neon .timer-box span { color: #00ffcc; }
.fmcs-theme-neon .fmcs-socials a { color: #ff007f; border-color: rgba(255,0,127,0.3); }
.fmcs-theme-neon .fmcs-socials a:hover { background: rgba(255,0,127,0.1); color: #00ffcc; }
.fmcs-theme-neon .fmcs-mapless-fallback-gradient { background: radial-gradient(circle at 20% 30%, #2c003e 0%, #03001e 80%, #000000 100%); }
body.fmcs-theme-neon .fmcs-overlay { background: rgba(12, 5, 28, 0.15); }
body.fmcs-theme-neon.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-neon.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-neon.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(12, 5, 28, 0.60); }

/* Theme 3: Warm Sunset */
.fmcs-theme-sunset { --btn-bg: #ff9933; --btn-color: #ffffff; }
.fmcs-theme-sunset .fmcs-content-wrapper { color: #fdf5e6; background: #241107; }
.fmcs-theme-sunset.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-sunset .fmcs-header .fmcs-headline { color: #ff9933; }
.fmcs-theme-sunset .timer-box, .fmcs-theme-sunset .fmcs-col { background: rgba(255, 153, 51, 0.05); border: 1px solid rgba(255, 153, 51, 0.2); }
.fmcs-theme-sunset .fmcs-socials a { color: #ff9933; border-color: rgba(255,153,51,0.2); }
.fmcs-theme-sunset .fmcs-mapless-fallback-gradient { background: linear-gradient(45deg, #3a1c1c 0%, #6b2d1d 50%, #b85c37 100%); }
body.fmcs-theme-sunset .fmcs-overlay { background: rgba(36, 17, 7, 0.15); }
body.fmcs-theme-sunset.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-sunset.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-sunset.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(36, 17, 7, 0.50); }

/* Theme 4: Clean Light */
.fmcs-theme-light { --btn-bg: #222222; --btn-color: #ffffff; }
.fmcs-theme-light .fmcs-content-wrapper { color: #222222; background: #ffffff; }
.fmcs-theme-light.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-light .timer-box, .fmcs-theme-light .fmcs-col { background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.07); }
.fmcs-theme-light .fmcs-socials a { color: #222222; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
#fmcs-directions-form { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); }
.fmcs-theme-light .fmcs-mapless-fallback-gradient { background: linear-gradient(135deg, #eef2f3 0%, #8e9eab 100%); }
body.fmcs-theme-light .fmcs-overlay { background: rgba(255, 255, 255, 0.15); }
body.fmcs-theme-light.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-light.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-light.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(255, 255, 255, 0.45); }

/* Theme 5: Cyber Punk */
.fmcs-theme-cyber { --btn-bg: #ffe600; --btn-color: #111111; }
.fmcs-theme-cyber .fmcs-content-wrapper { color: #ffe600; background: #1a032e; }
.fmcs-theme-cyber.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-cyber .fmcs-header .fmcs-headline { color: #00ffff; text-shadow: 0 0 8px #00ffff; }
.fmcs-theme-cyber .timer-box, .fmcs-theme-cyber .fmcs-col { background: rgba(0, 255, 255, 0.03); border: 1px solid #ffe600; color: #fff; }
.fmcs-theme-cyber .timer-box span { color: #ffe600; }
.fmcs-theme-cyber .fmcs-socials a { color: #00ffff; border-color: rgba(0,255,255,0.2); }
.fmcs-theme-cyber .fmcs-mapless-fallback-gradient { background: linear-gradient(125deg, #2a0845 0%, #6441a5 100%); }
body.fmcs-theme-cyber .fmcs-overlay { background: rgba(26, 3, 46, 0.15); }
body.fmcs-theme-cyber.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-cyber.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-cyber.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(26, 3, 46, 0.55); }

/* Theme 6: Emerald Forest */
.fmcs-theme-emerald { --btn-bg: #27ae60; --btn-color: #ffffff; }
.fmcs-theme-emerald .fmcs-content-wrapper { color: #e2f0d9; background: #051a0e; }
.fmcs-theme-emerald.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-emerald .fmcs-header .fmcs-headline { color: #a9dfbf; }
.fmcs-theme-emerald .timer-box, .fmcs-theme-emerald .fmcs-col { background: rgba(169, 223, 191, 0.04); border: 1px solid rgba(169, 223, 191, 0.22); }
.fmcs-theme-emerald .fmcs-socials a { color: #a9dfbf; border-color: rgba(169,223,191,0.2); }
.fmcs-theme-emerald .fmcs-mapless-fallback-gradient { background: linear-gradient(135deg, #0b2010 0%, #1e4620 100%); }
body.fmcs-theme-emerald .fmcs-overlay { background: rgba(5, 26, 14, 0.15); }
body.fmcs-theme-emerald.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-emerald.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-emerald.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(5, 26, 14, 0.55); }

/* Theme 7: Ocean Breeze */
.fmcs-theme-breeze { --btn-bg: #008080; --btn-color: #ffffff; }
.fmcs-theme-breeze .fmcs-content-wrapper { color: #0e4e5a; background: #f4fbfb; }
.fmcs-theme-breeze.fmcs-centered-layout-enabled .fmcs-content-wrapper { background: transparent; }
.fmcs-theme-breeze .fmcs-header .fmcs-headline { color: #008080; }
.fmcs-theme-breeze .timer-box, .fmcs-theme-breeze .fmcs-col { background: rgba(255,255,255,0.85); border: 1px solid rgba(0, 128, 128, 0.12); }
.fmcs-theme-breeze .fmcs-socials a { color: #008080; border-color: rgba(0, 128, 128, 0.15); }
#fmcs-directions-form { border-color: rgba(0,128,128,0.15); background: rgba(255,255,255,0.5); }
.fmcs-theme-breeze .fmcs-mapless-fallback-gradient { background: linear-gradient(135deg, #e0fafb 0%, #a4e4e6 100%); }
body.fmcs-theme-breeze .fmcs-overlay { background: rgba(244, 251, 251, 0.15); }
body.fmcs-theme-breeze.fmcs-centered-layout-enabled .fmcs-overlay, 
body.fmcs-theme-breeze.fmcs-bg-mode-image .fmcs-overlay, 
body.fmcs-theme-breeze.fmcs-bg-mode-curated .fmcs-overlay { background: rgba(244, 251, 251, 0.40); }