/* Real Size Of Countries - Stylesheet (Full-Screen Edition) */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --ocean-blue: #9ed2df;
    --border-color: #e2e8f0;
}

/* Universal Root & Mobile Viewport Overflow Protection */
html {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Map Canvas Container */
#real-size-map {
    width: 100%;
    height: 100%;
    background-color: var(--ocean-blue);
}

/* Suppress Google Maps API native controls (Camera Control with 4 chevrons, Rotate, Tilt, Pan, Fullscreen) */
#real-size-map .gmnoprint,
#real-size-map .gm-bundled-control,
#real-size-map button[aria-label*="camera" i],
#real-size-map button[title*="camera" i],
#real-size-map button[aria-label*="tilt" i],
#real-size-map button[title*="tilt" i],
#real-size-map button[aria-label*="rotate" i],
#real-size-map button[title*="rotate" i],
#real-size-map button[aria-label*="pan" i],
#real-size-map button[title*="pan" i],
#real-size-map button[aria-label*="fullscreen" i],
#real-size-map button[title*="fullscreen" i] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Fullscreen support */
:fullscreen #map-section,
:-webkit-full-screen #map-section {
    height: 100vh !important;
    width: 100vw !important;
}

/* Floating Badges on Google Map */
.country-floating-badge {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease;
}

.country-floating-badge:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.badge-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--badge-accent, #0ea5e9);
    border-radius: 10px;
    padding: 4px 8px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25), 0 0 10px -2px var(--badge-accent, #0ea5e9);
    min-width: 90px;
    text-align: center;
}

.badge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-title {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.badge-flag-emoji {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.badge-short-name {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 3px;
    border-radius: 3px;
    line-height: 1.3;
}

.badge-rot {
    font-size: 9px;
    font-family: ui-monospace, SFMono-Regular, monospace;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 3px;
    border-radius: 3px;
}

.badge-close-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    transition: color 0.15s;
}

.badge-close-btn:hover {
    color: #ef4444;
}

.badge-area {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, monospace;
    margin-top: 1px;
}

.badge-pointer {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--badge-accent, #0ea5e9);
    margin-top: -1px;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Interactive Functional Compass Widget */
.compass-widget {
    user-select: none;
    touch-action: none;
}

.compass-dial {
    position: relative;
    width: 84px;
    height: 84px;
    cursor: grab;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f1f5f9 65%, #e2e8f0 100%);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(15, 23, 42, 0.15),
        0 8px 24px -4px rgba(0, 0, 0, 0.2);
    border: 2px solid #cbd5e1;
    transition: box-shadow 0.2s ease;
}

.compass-widget.is-dragging .compass-dial {
    cursor: grabbing;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(15, 23, 42, 0.2),
        0 12px 28px -2px rgba(14, 165, 233, 0.35);
}

.compass-needle-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
    will-change: transform;
}

.compass-needle {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.compass-pivot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #94a3b8);
    border: 2px solid #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Popular comparison tiles hover */
.popular-comp-tile {
    transition: all 0.18s ease;
}

.popular-comp-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

/* Details Accordion */
details summary::-webkit-details-marker {
    display: none;
}

/* Floating Country Hover Information Tooltip */
#country-hover-tooltip {
    pointer-events: none;
    will-change: transform, opacity, left, top;
    transition: opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

#country-hover-tooltip .country-tooltip-card,
#country-hover-tooltip button,
#country-hover-tooltip a {
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    #country-hover-tooltip {
        pointer-events: auto !important;
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
    }

    #country-hover-tooltip .country-tooltip-card {
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}

/* Hide Multilanguage, Start Exploring, and Full Screen buttons on mobile devices (< 768px) */
@media (max-width: 768px) {
    #header-lang-container,
    #header-lang-btn,
    #header-cta-btn,
    #header-fullscreen-toggle,
    #floating-fullscreen-toggle,
    [title="Toggle Full Screen Mode"],
    [title="Toggle full-screen mode"],
    [aria-label="Toggle Full Screen Mode"],
    [aria-label="Multilanguage - Select Language"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

}

/* Universal Explore Section: Minimizable to left side on BOTH Mobile and Desktop */
#explore-sidebar-panel {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    will-change: transform, opacity;
}

#explore-sidebar-panel.is-minimized {
    transform: translateX(-125%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#explore-sidebar-panel:not(.is-minimized) {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

#explore-toggle-btn,
#mobile-explore-toggle-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.35), 0 2px 6px -1px rgba(0, 0, 0, 0.1);
}




