/* =================================================================
   MOBILE WIDGET REDESIGN - Horizontal Swipe Carousel
   - Modern swipeable card layout for mobile devices
   - Compact, information-dense widget cards
   - Touch-optimized interactions
   - Progressive enhancement for better UX
   ================================================================= */

/* =================================================================
   0. GLOBAL MOBILE OVERFLOW PROTECTION
   - Prevents horizontal scroll on country pages
   ================================================================= */

@media (max-width: 48rem) {
    /* Prevent horizontal page scroll caused by wide elements */
    html, body {
        overflow-x: hidden;
    }

    /* Ensure page container doesn't cause overflow */
    .natgeo-page,
    .natgeo-page--country,
    .natgeo-page--regional {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Hero section overflow protection */
    .natgeo-hero,
    .natgeo-hero--country {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .natgeo-hero__inner {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* ===== HIDE HERO VISUAL/MAP ON MOBILE ===== */
    /* The map is now integrated into the country facts widget */
    .natgeo-hero__visual {
        display: none !important;
    }

    .natgeo-hero__map-wrapper {
        display: none !important;
    }

    .natgeo-hero__destinations {
        display: none !important;
    }

    .natgeo-hero__regions {
        display: none !important;
    }
}

/* ===== DESKTOP: Hide mobile-only elements, show desktop elements ===== */
@media (min-width: 48.0625rem) {
    /* Hide all mobile-only elements on desktop */
    .identity-profile__map-bg,
    .identity-profile__title-row,
    .identity-profile__time-row,
    .identity-profile__facts {
        display: none !important;
    }

    /* Show desktop elements */
    .identity-profile__info--desktop {
        display: grid !important;
    }

    .identity-profile__header {
        display: flex !important;
    }

    /* Hide the old map outline on desktop */
    .identity-profile__map-outline,
    .identity-profile__hero-mobile {
        display: none !important;
    }
}

/* =================================================================
   1. MOBILE WIDGET CAROUSEL CONTAINER
   ================================================================= */

@media (max-width: 48rem) {
    /* Transform the grid into a horizontal scrollable carousel */
    .natgeo-hero__quick-facts {
        padding-top: 1.25rem;
        padding-bottom: 0.75rem;
        /* Use fixed margins for full-width layout */
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        /* Prevent horizontal overflow at container level */
        overflow: hidden;
        /* Position for arrow navigation */
        position: relative;
    }

    .natgeo-quick-facts,
    .natgeo-quick-facts--regional-v2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0.75rem;
        /* Fixed padding for predictable layout */
        padding: 0.5rem 1rem 1rem;
        margin: 0;
        /* Override any grid settings from other stylesheets */
        grid-template-columns: unset !important;
        /* IMPORTANT: Start at first widget - prevent layout shift from JS scroll reset */
        scroll-behavior: auto;
    }

    .natgeo-quick-facts::-webkit-scrollbar,
    .natgeo-quick-facts--regional-v2::-webkit-scrollbar {
        display: none;
    }

    /* Individual widget cards in carousel - ONE widget visible at a time */
    .natgeo-quick-facts__item,
    .natgeo-quick-facts--regional-v2 .natgeo-quick-facts__item {
        flex: 0 0 auto;
        /* Full width - only ONE widget visible at a time */
        width: calc(100vw - 2rem);
        max-width: none;
        min-width: calc(100vw - 2rem);
        /* Fixed height for ALL widgets to prevent layout shift when data loads */
        min-height: 360px;
        height: auto;
        max-height: 400px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: 1.25rem;
        border-radius: 1.5rem;
        /* Premium card styling */
        background: linear-gradient(
            165deg,
            rgba(15, 30, 25, 0.92) 0%,
            rgba(8, 20, 16, 0.96) 50%,
            rgba(12, 25, 20, 0.94) 100%
        );
        border: 1px solid rgba(136, 168, 40, 0.12);
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.02) inset;
        /* Prevent layout shift during load */
        transition: none;
        /* Ensure box-sizing doesn't cause overflow */
        box-sizing: border-box;
        /* Handle overflow content gracefully */
        overflow: hidden;
        /* Position for decorative elements */
        position: relative;
    }

    /* Placeholder widgets match exact same height */
    .natgeo-quick-facts__item--placeholder {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }
}

/* =================================================================
   2. ARROW NAVIGATION FOR WIDGET CAROUSEL
   ================================================================= */

.mobile-widget-nav {
    display: none;
}

@media (max-width: 48rem) {
    /* Arrow navigation container - Premium styling */
    .mobile-widget-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.75rem;
        padding: 1.25rem 0 0.75rem;
        margin-top: 0.25rem;
    }

    /* Arrow buttons - Premium glass effect */
    .mobile-widget-nav__arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%
        );
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-widget-nav__arrow:hover {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 100%
        );
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .mobile-widget-nav__arrow:active {
        transform: scale(0.92);
        background: linear-gradient(
            135deg,
            rgba(136, 168, 40, 0.2) 0%,
            rgba(136, 168, 40, 0.1) 100%
        );
        border-color: rgba(136, 168, 40, 0.3);
    }

    .mobile-widget-nav__arrow--disabled {
        opacity: 0.25;
        cursor: not-allowed;
        pointer-events: none;
    }

    .mobile-widget-nav__arrow svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
    }

    /* Counter display between arrows - Refined typography */
    .mobile-widget-nav__counter {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--natgeo-mono, 'SF Mono', 'Roboto Mono', monospace);
        font-size: 0.9rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        min-width: 65px;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 2rem;
    }

    .mobile-widget-nav__current {
        color: var(--natgeo-gold, #88a828);
        font-size: 1.1rem;
        font-weight: 700;
    }

    .mobile-widget-nav__separator {
        color: rgba(255, 255, 255, 0.25);
        font-weight: 400;
    }

    .mobile-widget-nav__total {
        color: rgba(255, 255, 255, 0.4);
    }

    /* Hide old dot indicators if they exist */
    .mobile-widget-indicators {
        display: none !important;
    }
}

/* =================================================================
   3. IDENTITY PROFILE WIDGET - PREMIUM MOBILE REDESIGN
   Features:
   - Premium glassmorphism card with refined aesthetics
   - Large, elegant flag with glow effect
   - Sophisticated live time display
   - Clean fact cards with modern styling
   - Subtle map silhouette background
   ================================================================= */

@media (max-width: 48rem) {
    /* ===== Widget Card - Premium Glassmorphism ===== */
    .natgeo-quick-facts__item.identity-profile {
        background: linear-gradient(
            165deg,
            rgba(15, 30, 25, 0.92) 0%,
            rgba(8, 20, 16, 0.96) 50%,
            rgba(12, 25, 20, 0.94) 100%
        ) !important;
        border: 1px solid rgba(136, 168, 40, 0.15);
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.03) inset,
            0 1px 0 rgba(255, 255, 255, 0.04) inset;
        position: relative;
        overflow: hidden;
    }

    /* Subtle radial glow in top-right */
    .natgeo-quick-facts__item.identity-profile::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 80%;
        height: 100%;
        background: radial-gradient(
            ellipse at center,
            rgba(136, 168, 40, 0.08) 0%,
            transparent 70%
        );
        pointer-events: none;
        z-index: 0;
    }

    .identity-profile {
        min-height: auto !important;
        padding: 0 !important;
    }

    .identity-profile__content {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        z-index: 1;
        padding: 1.5rem;
    }

    /* ===== Map Background - Elegant silhouette ===== */
    .identity-profile__map-bg {
        display: block;
        position: absolute;
        top: 50%;
        right: -8%;
        transform: translateY(-50%);
        width: 65%;
        height: auto;
        max-height: 130%;
        pointer-events: none;
        z-index: 0;
        opacity: 0.12;
    }

    .identity-profile__map-bg svg,
    .identity-profile__map-bg .adm1-map__svg {
        width: 100%;
        height: auto;
        filter: blur(0.5px);
        overflow: visible;
    }

    .identity-profile__map-bg svg path,
    .identity-profile__map-bg svg polygon,
    .identity-profile__map-bg svg g path,
    .identity-profile__map-bg svg g polygon,
    .identity-profile__map-bg svg [fill],
    .identity-profile__map-bg svg g[fill] path {
        fill: rgba(136, 168, 40, 0.7) !important;
        stroke: rgba(136, 168, 40, 0.7) !important;
        stroke-width: 0 !important;
    }

    .identity-profile__map-bg svg .adm1-map__outer-border {
        stroke: rgba(136, 168, 40, 0.2) !important;
        stroke-width: 1px !important;
    }

    .identity-profile__map-bg svg g {
        fill: inherit !important;
    }

    .identity-profile__map-bg .adm1-map__marker,
    .identity-profile__map-bg .country-map-point,
    .identity-profile__map-bg circle {
        display: none !important;
    }

    .identity-profile__map-outline,
    .identity-profile__hero-mobile {
        display: none !important;
    }

    /* ===== Header Row - Title + Flag ===== */
    .identity-profile__title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .identity-profile__title {
        font-family: var(--natgeo-serif, 'Bodoni Moda', Georgia, serif);
        font-size: 1.75rem;
        font-weight: 600;
        color: #fff;
        margin: 0;
        letter-spacing: -0.03em;
        line-height: 1.15;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    /* Flag - Larger with glow */
    .identity-profile__title-row .identity-profile__flag {
        position: static !important;
        flex: 0 0 auto;
        width: 64px;
        height: auto;
        max-height: 45px;
        object-fit: contain;
        border-radius: 6px;
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.35),
            0 0 20px rgba(255, 255, 255, 0.08);
        top: auto !important;
        right: auto !important;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .identity-profile__title-row .identity-profile__flag--hidden {
        display: block !important;
        width: 64px;
        height: 43px;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%
        );
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* ===== Live Time Section - Premium Card Style ===== */
    .identity-profile__time-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        margin: 0 -0.25rem 1.25rem;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.02) 100%
        );
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .identity-profile__live {
        display: flex;
        align-items: center;
        gap: 0.625rem;
    }

    .identity-profile__live-dot {
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        box-shadow:
            0 0 12px rgba(74, 222, 128, 0.7),
            0 0 4px rgba(74, 222, 128, 0.9);
        animation: premium-pulse 2.5s ease-in-out infinite;
    }

    @keyframes premium-pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
            box-shadow:
                0 0 12px rgba(74, 222, 128, 0.7),
                0 0 4px rgba(74, 222, 128, 0.9);
        }
        50% {
            opacity: 0.7;
            transform: scale(0.85);
            box-shadow:
                0 0 8px rgba(74, 222, 128, 0.5),
                0 0 2px rgba(74, 222, 128, 0.7);
        }
    }

    .identity-profile__live-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: #4ade80;
        text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    }

    .identity-profile__time-display {
        display: flex;
        align-items: baseline;
        gap: 0.625rem;
    }

    .identity-profile__live-time {
        font-family: var(--natgeo-mono, 'SF Mono', 'Roboto Mono', monospace);
        font-size: 1.75rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.03em;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .identity-profile__timezone {
        font-size: 0.7rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.45);
        letter-spacing: 0.03em;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    /* Hide old header/timezone group */
    .identity-profile__header,
    .identity-profile__timezone-group,
    .identity-profile__timezone-label {
        display: none !important;
    }

    /* ===== Facts Grid - Modern Cards ===== */
    .identity-profile__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .identity-profile__fact {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1rem;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.015) 100%
        );
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.04);
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .identity-profile__fact:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .identity-profile__fact-label {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.45);
    }

    .identity-profile__fact-value {
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        text-align: right;
        letter-spacing: -0.01em;
    }

    /* Hide old info grid on mobile */
    .identity-profile__info,
    .identity-profile__info--desktop {
        display: none !important;
    }

    .identity-profile__welcome {
        display: none !important;
    }

    .identity-profile__curiosity {
        display: none;
    }

    /* ===== Loading State - Premium ===== */
    .identity-profile__loading {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .identity-profile__spinner {
        width: 32px;
        height: 32px;
        border: 2.5px solid rgba(255, 255, 255, 0.1);
        border-top-color: var(--natgeo-gold, #88a828);
        border-radius: 50%;
        animation: premium-spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    @keyframes premium-spin {
        to { transform: rotate(360deg); }
    }

    /* Ensure widget is always visible */
    .natgeo-quick-facts__item:first-child,
    .identity-profile {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== Extra Small Mobile - Refined Compact ===== */
@media (max-width: 30rem) {
    .identity-profile__content {
        padding: 1.25rem;
    }

    .identity-profile__title {
        font-size: 1.5rem;
    }

    .identity-profile__title-row .identity-profile__flag {
        width: 56px;
        max-height: 40px;
    }

    .identity-profile__title-row .identity-profile__flag--hidden {
        width: 56px;
        height: 37px;
    }

    .identity-profile__time-row {
        padding: 0.875rem 1rem;
        margin: 0 0 1rem;
    }

    .identity-profile__live-time {
        font-size: 1.5rem;
    }

    .identity-profile__fact {
        padding: 0.75rem 0.875rem;
    }

    .identity-profile__fact-label {
        font-size: 0.6rem;
    }

    .identity-profile__fact-value {
        font-size: 0.95rem;
    }

    .identity-profile__map-bg {
        width: 70%;
        right: -12%;
        opacity: 0.1;
    }
}

/* =================================================================
   4. CURRENCY EXCHANGE WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-quick-facts__item--currency {
        /* Uses parent's min-height for consistent widget heights */
    }

    /* Currency widget header */
    .premium-currency-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }

    /* Main exchange rate display - Prominent */
    .premium-currency-rate {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .premium-currency-rate__value {
        font-family: var(--natgeo-serif);
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }

    .premium-currency-rate__pair {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Trend indicator */
    .premium-currency-trend {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.35rem 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .premium-currency-trend--up {
        background: rgba(74, 222, 128, 0.15);
        color: #4ade80;
    }

    .premium-currency-trend--down {
        background: rgba(248, 113, 113, 0.15);
        color: #f87171;
    }

    .premium-currency-trend--stable {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.6);
    }

    /* Sparkline chart - Compact */
    .premium-currency-chart {
        height: 48px;
        margin: 0.5rem 0;
        border-radius: 0.5rem;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.02);
    }

    /* Quick convert buttons */
    .premium-currency-quick {
        display: flex;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .premium-currency-quick__btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        padding: 0.5rem;
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #fff;
        font-size: 0.65rem;
        min-height: 44px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .premium-currency-quick__btn:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .premium-currency-quick__amount {
        font-weight: 700;
        font-size: 0.8rem;
    }

    .premium-currency-quick__result {
        color: var(--natgeo-gold);
        font-weight: 600;
    }
}

/* =================================================================
   5. BEST TIME TO VISIT WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-best-time {
        min-height: auto;
        gap: 0.75rem;
    }

    /* Toggle buttons - More prominent */
    .natgeo-best-time__toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.625rem;
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .natgeo-best-time__toggle-btn {
        flex: 1;
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 44px;
    }

    .natgeo-best-time__toggle-btn--active {
        background: var(--natgeo-gold);
        color: #fff;
        box-shadow: 0 2px 8px rgba(136, 168, 40, 0.3);
    }

    /* Month calendar - 4x3 grid for mobile */
    .natgeo-best-time__calendar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.375rem;
    }

    .natgeo-best-time__month {
        padding: 0.5rem 0.25rem;
        min-height: 44px;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        border-radius: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Current month indicator */
    .natgeo-best-time__month[aria-current="true"] {
        border: 2px solid var(--natgeo-gold);
    }

    /* Best months highlight */
    .natgeo-best-time__month--best {
        background: rgba(136, 168, 40, 0.25);
        border-color: rgba(136, 168, 40, 0.4);
        color: #fff;
    }

    .natgeo-best-time__month--good {
        background: rgba(136, 168, 40, 0.12);
        color: rgba(255, 255, 255, 0.85);
    }

    /* Rating dots under month */
    .natgeo-best-time__rating {
        display: flex;
        gap: 2px;
    }

    .natgeo-best-time__rating-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
    }

    .natgeo-best-time__rating-dot--filled {
        background: var(--natgeo-gold);
    }

    /* Legend */
    .natgeo-best-time__legend {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding-top: 0.5rem;
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Details panel - Slides up on month tap */
    .natgeo-best-time__details {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0.75rem;
        padding: 0.75rem;
        margin-top: 0.5rem;
        animation: slideUp 0.2s ease;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Extra small mobile - 3x4 grid */
@media (max-width: 30rem) {
    .natgeo-best-time__calendar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }

    .natgeo-best-time__month {
        padding: 0.4rem 0.2rem;
        font-size: 0.6rem;
        min-height: 40px;
    }
}

/* =================================================================
   6. VISA/IMMIGRATION WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-visa {
        min-height: auto;
    }

    /* Status badge - Prominent */
    .natgeo-visa__header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .natgeo-visa__status {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.5rem 0.75rem;
        border-radius: 2rem;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .natgeo-visa__status--free {
        background: rgba(74, 222, 128, 0.15);
        color: #4ade80;
        border: 1px solid rgba(74, 222, 128, 0.3);
    }

    .natgeo-visa__status--required {
        background: rgba(251, 191, 36, 0.15);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.3);
    }

    .natgeo-visa__status--denied {
        background: rgba(248, 113, 113, 0.15);
        color: #f87171;
        border: 1px solid rgba(248, 113, 113, 0.3);
    }

    .natgeo-visa__info-button {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.8rem;
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Summary - Larger text */
    .natgeo-visa__summary {
        font-size: 0.9rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.85);
        margin: 0 0 0.5rem;
    }

    /* Passport selector - Touch friendly */
    .natgeo-visa__country-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 0.375rem;
        cursor: pointer;
    }

    .natgeo-visa__country {
        font-weight: 700;
        color: var(--natgeo-gold);
    }

    .natgeo-visa__select--overlay {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Duration/details */
    .natgeo-visa__details {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 0.5rem;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        margin: 0.5rem 0;
    }

    .natgeo-visa__details-icon {
        font-size: 1rem;
        color: var(--natgeo-gold);
    }

    /* Updated timestamp */
    .natgeo-visa__updated {
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.35);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin: 0;
    }
}

/* =================================================================
   7. WEATHER WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .weather-widget--hero {
        padding: 1rem !important;
    }

    .weather-widget__inner {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
    }

    /* Header - Compact */
    .weather-widget__header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .weather-widget__location-group {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .weather-widget__location {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
    }

    .weather-widget__location-icon {
        font-size: 0.65rem;
        color: var(--natgeo-gold);
    }

    .weather-widget__telemetry {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.4);
    }

    .weather-widget__telemetry-dot {
        width: 5px;
        height: 5px;
        background: #4ade80;
        border-radius: 50%;
        animation: mobile-pulse 2s ease-in-out infinite;
    }

    /* Unit toggle - Compact pills */
    .weather-widget__unit-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        padding: 0.15rem;
    }

    .weather-widget__unit-btn {
        padding: 0.35rem 0.5rem;
        border-radius: 0.75rem;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.65rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 32px;
        min-width: 32px;
    }

    .weather-widget__unit-btn--active {
        background: var(--natgeo-gold);
        color: #fff;
    }

    /* Main weather display - Horizontal layout */
    .weather-widget__main {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .weather-widget__icon-wrap {
        flex-shrink: 0;
    }

    .weather-widget__icon {
        font-size: 2.5rem;
        color: var(--natgeo-gold);
    }

    .weather-widget__temp-wrap {
        flex: 1;
    }

    .weather-widget__temp {
        display: flex;
        align-items: flex-start;
    }

    .weather-widget__temp-value {
        font-family: var(--natgeo-serif);
        font-size: 3rem;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }

    .weather-widget__temp-degree {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.6);
        margin-left: 0.1rem;
    }

    .weather-widget__feels-like {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 0.25rem;
    }

    .weather-widget__feels-icon {
        font-size: 0.6rem;
        color: var(--natgeo-gold);
    }

    /* Condition text */
    .weather-widget__condition {
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .weather-widget__condition-text {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
    }

    /* Details cards - Horizontal scroll */
    .weather-widget__details {
        display: flex;
        gap: 0.5rem;
    }

    .weather-widget__card {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.625rem;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 0.625rem;
        min-width: 0;
    }

    .weather-widget__card-header {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .weather-widget__card-icon {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .weather-widget__card-label {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.4);
    }

    .weather-widget__card-value {
        font-size: 0.85rem;
        font-weight: 700;
        color: #fff;
    }

    .weather-widget__card-unit {
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.5);
        margin-left: 0.1rem;
    }

    /* UV tooltip - Bottom sheet on mobile */
    .weather-widget__card--uv {
        position: relative;
    }

    .weather-widget__uv-tooltip {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 20, 15, 0.98);
        border-radius: 1.5rem 1.5rem 0 0;
        padding: 1.5rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: 60vh;
        overflow-y: auto;
    }

    .weather-widget__card--uv.touched .weather-widget__uv-tooltip {
        transform: translateY(0);
    }

    .weather-widget__uv-info {
        cursor: pointer;
        margin-left: auto;
    }

    /* 5-day forecast - Horizontal compact */
    .weather-widget__forecast {
        padding-top: 0.5rem;
    }

    .weather-widget__forecast-title {
        font-size: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.4);
        margin: 0 0 0.5rem;
    }

    .weather-widget__forecast-grid {
        display: flex;
        justify-content: space-between;
        gap: 0.35rem;
    }

    .weather-widget__forecast-day {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        min-width: 0;
    }

    .weather-widget__forecast-label {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.5);
    }

    .weather-widget__forecast-icon-wrap {
        font-size: 1rem;
    }

    .weather-widget__forecast-icon {
        color: rgba(255, 255, 255, 0.6);
    }

    .weather-widget__forecast-temp {
        font-size: 0.7rem;
        font-weight: 700;
        color: #fff;
    }
}

/* =================================================================
   8. CLIMATE CHART WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .regional-climate {
        padding: 1rem !important;
    }

    .natgeo-quick-facts__item--climate {
        /* Uses parent's min-height for consistent widget heights */
    }

    /* Simplified header */
    .regional-climate__header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .regional-climate__title {
        font-size: 0.6rem;
    }

    .regional-climate__legend {
        gap: 0.5rem;
    }

    .regional-climate__legend-item {
        font-size: 0.5rem;
    }

    .regional-climate__legend-swatch {
        width: 10px;
        height: 6px;
    }

    /* Chart - Taller for touch interaction */
    .regional-climate__graph {
        min-height: 100px;
        touch-action: pan-x;
    }

    /* Tooltip - Floating card */
    .regional-climate__tooltip {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        min-width: 120px;
        padding: 0.75rem;
        font-size: 0.75rem;
        border-radius: 0.75rem;
    }

    /* Months row - 6 columns then 6 */
    .regional-climate__months {
        grid-template-columns: repeat(6, 1fr);
        gap: 3px;
        padding-top: 0.5rem;
    }

    .regional-climate__month {
        padding: 0.4rem 0.15rem;
        min-height: 44px;
        border-radius: 0.375rem;
    }

    .regional-climate__month-icon {
        font-size: 0.7rem;
    }

    .regional-climate__month-name {
        font-size: 0.45rem;
    }

    .regional-climate__month--active {
        background: rgba(140, 160, 100, 0.25);
        box-shadow: 0 0 0 1px rgba(140, 160, 100, 0.4);
    }
}

/* Extra small - 4 columns */
@media (max-width: 30rem) {
    .regional-climate__months {
        grid-template-columns: repeat(4, 1fr);
    }

    .regional-climate__month {
        min-height: 40px;
    }
}

/* =================================================================
   9. BLUEPRINT/DAYS WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-quick-facts__item--blueprint {
        /* Uses parent's min-height for consistent widget heights */
    }

    /* Days display - Larger, centered */
    .natgeo-quick-facts__days-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        margin: 0.5rem 0 0.75rem;
    }

    .natgeo-quick-facts__days-number {
        font-size: 4rem;
        line-height: 1;
    }

    .natgeo-quick-facts__days-label {
        font-size: 0.7rem;
        text-align: center;
    }

    /* Progress zones - Visual bar */
    .natgeo-quick-facts__progress-bar {
        margin-bottom: 0.5rem;
    }

    .natgeo-quick-facts__progress-track {
        height: 6px;
        border-radius: 3px;
    }

    /* Zone labels - Compact */
    .natgeo-quick-facts__zone-labels {
        font-size: 0.45rem;
        letter-spacing: 0.2em;
    }

    /* Status text - Hidden on mobile to save space */
    .natgeo-quick-facts__status-text {
        display: none;
    }

    /* Slider - Touch optimized */
    .natgeo-quick-facts__slider-wrap {
        padding: 0.75rem 0 0.25rem;
    }

    .natgeo-quick-facts__slider {
        height: 8px;
        background: rgba(255, 255, 255, 0.15);
    }

    .natgeo-quick-facts__slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        transform: scale(var(--thumb-scale, 1));
        transition: transform 0.15s ease;
    }

    .natgeo-quick-facts__slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .natgeo-quick-facts__slider-labels {
        font-size: 0.55rem;
        margin-top: 0.5rem;
    }
}

/* =================================================================
   10. HIGHLIGHT WIDGET - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-quick-facts__item--highlight {
        /* Uses parent's min-height for consistent widget heights */
    }

    .natgeo-quick-facts__highlight-content {
        gap: 0.625rem;
    }

    .natgeo-quick-facts__highlight-icon {
        font-size: 2rem;
    }

    .natgeo-quick-facts__highlight-title {
        font-size: 1.25rem;
    }

    .natgeo-quick-facts__highlight-desc {
        font-size: 0.8rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .natgeo-quick-facts__highlight-footer {
        padding-top: 0.75rem;
        font-size: 0.5rem;
    }
}

/* =================================================================
   11. PLACEHOLDER WIDGETS - COMPACT MOBILE VERSION
   ================================================================= */

@media (max-width: 48rem) {
    .natgeo-quick-facts__item--placeholder {
        /* Uses parent's min-height for consistent widget heights */
        padding: 1.5rem 1rem;
    }

    .natgeo-quick-facts__placeholder-inner {
        gap: 0.75rem;
        padding: 1rem;
    }

    .natgeo-quick-facts__placeholder-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .natgeo-quick-facts__placeholder-text {
        font-size: 0.8rem;
        max-width: 200px;
    }
}

/* =================================================================
   12. TOUCH ENHANCEMENTS & GESTURES
   ================================================================= */

@media (max-width: 48rem) {
    /* Prevent accidental zoom on double-tap */
    .natgeo-quick-facts__item,
    .natgeo-quick-facts__item button,
    .natgeo-quick-facts__item select,
    .natgeo-quick-facts__item input {
        touch-action: manipulation;
    }

    /* Ensure all interactive elements have proper tap targets */
    .natgeo-quick-facts__item button,
    .natgeo-quick-facts__item [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Active states for touch feedback */
    .natgeo-quick-facts__item button:active,
    .natgeo-best-time__month:active,
    .weather-widget__card:active,
    .regional-climate__month:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    /* Smoother scrolling momentum */
    .natgeo-quick-facts {
        scroll-behavior: smooth;
    }

    /* Removed scroll shadow indicators - clean single-widget view */
}

/* =================================================================
   13. REDUCED MOTION PREFERENCES
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    .natgeo-quick-facts,
    .natgeo-quick-facts__item,
    .natgeo-best-time__month,
    .weather-widget__card,
    .regional-climate__month {
        transition: none !important;
        animation: none !important;
    }

    .natgeo-quick-facts {
        scroll-behavior: auto;
    }

    .identity-profile__live-dot,
    .weather-widget__telemetry-dot {
        animation: none;
    }
}

/* =================================================================
   14. DARK MODE ADJUSTMENTS (for system dark mode)
   ================================================================= */

@media (prefers-color-scheme: dark) and (max-width: 48rem) {
    .natgeo-quick-facts__item {
        background: linear-gradient(165deg, rgba(8, 22, 18, 0.95) 0%, rgba(4, 14, 12, 0.98) 100%);
    }
}

/* =================================================================
   15. LANDSCAPE MOBILE ADJUSTMENTS
   ================================================================= */

@media (max-width: 48rem) and (orientation: landscape) and (max-height: 500px) {
    .natgeo-hero__quick-facts {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    /* Compact widget cards in landscape */
    .natgeo-quick-facts__item,
    .natgeo-quick-facts--regional-v2 .natgeo-quick-facts__item {
        width: calc(100vw - 2rem);
        min-width: calc(100vw - 2rem);
        max-width: none;
        min-height: 280px;
        max-height: 320px;
        padding: 1rem 1.25rem;
        border-radius: 1.25rem;
    }

    .weather-widget__temp-value {
        font-size: 2.5rem;
    }

    .natgeo-quick-facts__days-number {
        font-size: 3rem;
    }

    /* Compact identity profile in landscape */
    .identity-profile__content {
        padding: 1rem 1.25rem;
    }

    .identity-profile__title {
        font-size: 1.35rem;
    }

    .identity-profile__title-row {
        margin-bottom: 1rem;
    }

    .identity-profile__title-row .identity-profile__flag {
        width: 52px;
        max-height: 36px;
    }

    .identity-profile__time-row {
        padding: 0.75rem 1rem;
        margin-bottom: 0.875rem;
    }

    .identity-profile__live-time {
        font-size: 1.35rem;
    }

    .identity-profile__facts {
        gap: 0.5rem;
    }

    .identity-profile__fact {
        padding: 0.625rem 0.875rem;
    }

    .identity-profile__fact-value {
        font-size: 0.95rem;
    }

    /* Compact arrow navigation for landscape */
    .mobile-widget-nav {
        padding: 0.625rem 0 0.375rem;
        gap: 1.25rem;
    }

    .mobile-widget-nav__arrow {
        width: 44px;
        height: 44px;
    }

    .mobile-widget-nav__arrow svg {
        width: 18px;
        height: 18px;
    }

    .mobile-widget-nav__counter {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem;
    }

    .mobile-widget-nav__current {
        font-size: 0.95rem;
    }
}

/* =================================================================
   16. DESKTOP QUICK INFO PANEL - PREMIUM REDESIGN
   - Only visible on desktop (min-width: 48.0625rem)
   - Premium glassmorphism card with flag and country info
   - Matches the premium feel of the rest of the site
   ================================================================= */

/* Hide desktop panel on mobile */
.identity-profile__desktop {
    display: none;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 48.0625rem) {
    /* Hide mobile-only elements */
    .identity-profile__map-bg,
    .identity-profile__title-row,
    .identity-profile__time-row,
    .identity-profile__facts,
    .identity-profile__info,
    .identity-profile__info--desktop {
        display: none !important;
    }

    /* Show the new desktop panel */
    .identity-profile__desktop {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
        padding: 1.25rem;
        position: relative;
        z-index: 1;
    }

    /* ===== Identity Profile Card Container ===== */
    .natgeo-quick-facts__item.identity-profile {
        background: linear-gradient(
            145deg,
            rgba(15, 30, 25, 0.95) 0%,
            rgba(8, 20, 16, 0.98) 50%,
            rgba(12, 25, 20, 0.96) 100%
        );
        border: 1px solid rgba(136, 168, 40, 0.18);
        border-radius: 1.25rem;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.03) inset,
            0 1px 0 rgba(255, 255, 255, 0.05) inset;
        position: relative;
        overflow: hidden;
        min-height: auto;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* Subtle glow effect */
    .natgeo-quick-facts__item.identity-profile::before {
        content: '';
        position: absolute;
        top: -60%;
        right: -40%;
        width: 100%;
        height: 120%;
        background: radial-gradient(
            ellipse at center,
            rgba(136, 168, 40, 0.06) 0%,
            transparent 65%
        );
        pointer-events: none;
        z-index: 0;
    }

    /* ===== Header with Flag and Title ===== */
    .identity-profile__desktop-header {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }

    .identity-profile__desktop-flag-wrap {
        flex-shrink: 0;
        position: relative;
    }

    .identity-profile__desktop-flag {
        width: 56px;
        height: auto;
        max-height: 38px;
        object-fit: contain;
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .identity-profile__desktop-flag:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    }

    /* Flag placeholder when loading */
    .identity-profile__desktop-flag.identity-profile__flag--hidden {
        width: 56px;
        height: 38px;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.08);
        animation: flagPulse 2s ease-in-out infinite;
    }

    @keyframes flagPulse {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 0.3; }
    }

    .identity-profile__desktop-title-group {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        flex: 1;
        min-width: 0;
    }

    .identity-profile__desktop-eyebrow {
        font-size: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--natgeo-gold, #88a828);
        opacity: 0.9;
    }

    .identity-profile__desktop-title {
        font-family: var(--natgeo-serif, 'Bodoni Moda', Georgia, serif);
        font-size: 1.15rem;
        font-weight: 600;
        color: #fff;
        margin: 0;
        letter-spacing: -0.02em;
        line-height: 1.2;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ===== Live Time Banner - Compact ===== */
    .identity-profile__desktop-time-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.015) 100%
        );
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .identity-profile__desktop-live-indicator {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .identity-profile__desktop-live-dot {
        width: 6px;
        height: 6px;
        background: #4ade80;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
        animation: desktop-pulse 2.5s ease-in-out infinite;
    }

    @keyframes desktop-pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
            box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
        }
        50% {
            opacity: 0.7;
            transform: scale(0.85);
            box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
        }
    }

    .identity-profile__desktop-live-text {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #4ade80;
    }

    .identity-profile__desktop-time-value {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .identity-profile__desktop-time {
        font-family: var(--natgeo-mono, 'SF Mono', 'Roboto Mono', monospace);
        font-size: 1.1rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.02em;
    }

    .identity-profile__desktop-timezone {
        font-size: 0.55rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.45);
        letter-spacing: 0.02em;
        padding: 0.2rem 0.4rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    /* ===== Stats Grid - Compact inline layout ===== */
    .identity-profile__desktop-stats {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }

    .identity-profile__desktop-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.375rem 0;
        background: transparent;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: none;
    }

    .identity-profile__desktop-stat:last-child {
        border-bottom: none;
    }

    .identity-profile__desktop-stat:hover {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.06);
        transform: none;
    }

    .identity-profile__desktop-stat-icon {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        border: none;
    }

    .identity-profile__desktop-stat-icon svg {
        width: 14px;
        height: 14px;
        stroke: var(--natgeo-gold, #88a828);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
        opacity: 0.7;
    }

    .identity-profile__desktop-stat-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }

    .identity-profile__desktop-stat-label {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: rgba(255, 255, 255, 0.5);
    }

    .identity-profile__desktop-stat-value {
        font-size: 0.8rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: auto;
    }

    /* ===== Curiosity Section (Desktop) - Compact ===== */
    .identity-profile__curiosity {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.625rem 0.875rem;
        background: linear-gradient(
            135deg,
            rgba(136, 168, 40, 0.06) 0%,
            rgba(136, 168, 40, 0.02) 100%
        );
        border-radius: 0.5rem;
        border: 1px solid rgba(136, 168, 40, 0.12);
        margin-top: 0.25rem;
    }

    .identity-profile__curiosity-header {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .identity-profile__curiosity-icon {
        color: var(--natgeo-gold, #88a828);
        font-size: 0.7rem;
    }

    .identity-profile__curiosity-label {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--natgeo-gold, #88a828);
    }

    .identity-profile__curiosity-text {
        font-size: 0.75rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
    }

    /* ===== Quick Facts Grid Layout (Desktop) ===== */
    .natgeo-quick-facts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
        padding: 0;
    }

    .natgeo-quick-facts__item {
        min-height: auto;
        padding: 0;
        border-radius: 1.25rem;
        background: linear-gradient(
            145deg,
            rgba(15, 30, 25, 0.95) 0%,
            rgba(8, 20, 16, 0.98) 50%,
            rgba(12, 25, 20, 0.96) 100%
        );
        border: 1px solid rgba(136, 168, 40, 0.12);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.02) inset;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .natgeo-quick-facts__item:hover {
        transform: translateY(-2px);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    }

    .natgeo-quick-facts__label {
        display: block;
        padding: 1.25rem 1.5rem 0.75rem;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--natgeo-gold, #88a828);
    }

    .natgeo-quick-facts__value {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ===== Large Desktop (min-width: 75rem / 1200px) ===== */
@media (min-width: 75rem) {
    .identity-profile__desktop {
        padding: 1.5rem;
        gap: 1rem;
    }

    .identity-profile__desktop-flag {
        width: 64px;
        max-height: 44px;
    }

    .identity-profile__desktop-flag.identity-profile__flag--hidden {
        width: 64px;
        height: 44px;
    }

    .identity-profile__desktop-title {
        font-size: 1.35rem;
    }

    .identity-profile__desktop-time {
        font-size: 1.25rem;
    }

    .identity-profile__desktop-stat {
        padding: 0.5rem 0;
    }

    .identity-profile__desktop-stat-icon {
        width: 22px;
        height: 22px;
    }

    .identity-profile__desktop-stat-icon svg {
        width: 15px;
        height: 15px;
    }

    .identity-profile__desktop-stat-label {
        font-size: 0.75rem;
    }

    .identity-profile__desktop-stat-value {
        font-size: 0.875rem;
    }

    .natgeo-quick-facts {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}
