/* ===================================
   PALE BLUE MAGAZINE - EVENTS CALENDAR v2
   =================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Real Pale Blue site fonts (hosted locally to avoid CORS) */
@font-face {
    font-family: 'diatype-plus-variabl';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/Diatype-Plus-Variabl.woff2') format('woff2');
}
@font-face {
    font-family: 'diatype';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/Diatype.woff2') format('woff2');
}
@font-face {
    font-family: 'diatype-bold';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/Diatype-bold.woff2') format('woff2');
}

.has-diatype-plus-variabl-font-family { font-family: 'diatype-plus-variabl', sans-serif !important; }
.has-diatype-font-family { font-family: 'diatype', sans-serif !important; }
.has-diatype-bold-font-family { font-family: 'diatype-bold', sans-serif !important; }

body {
    font-family: 'diatype', sans-serif;
    background-color: #E9EFF4;
    color: #434649;
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
}

/* Site-matching green for text selection + link hover */
::selection { background-color: #87a96b; color: #fff; }
::-moz-selection { background-color: #87a96b; color: #fff; }

a {
    transition: color 0.2s ease;
}
@media (hover: hover) {
    a:hover { color: #87a96b; }
}

/* Scroll lock when mobile overlay is open */
body.overlay-open {
    overflow: hidden !important;
    touch-action: none;
}
body.overlay-open .mob-detail-sheet,
body.overlay-open .mob-filter-sheet {
    touch-action: pan-y;
}

/* ===================================
   FADE IN ANIMATIONS (match main site)
   =================================== */

/* Match palebluemagazine.com site: pure opacity fadeIn, Animate.css pattern */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}
.fadeIn { animation-name: fadeIn; }

/* Custom speed overrides (from site) */
.o-anim-custom-speed.o-anim-value-speed-2s { animation-duration: 2s; }
.o-anim-custom-speed.o-anim-value-speed-3s { animation-duration: 3s; }

.delay-100ms { animation-delay: 0.1s; }
.delay-200ms { animation-delay: 0.2s; }
.delay-300ms { animation-delay: 0.3s; }
.delay-400ms { animation-delay: 0.4s; }
.delay-500ms { animation-delay: 0.5s; }
.delay-600ms { animation-delay: 0.6s; }
.delay-700ms { animation-delay: 0.7s; }
.delay-800ms { animation-delay: 0.8s; }

/* Vertical title + clock - pure opacity so rotate transform is preserved */
.vertical-title, .vertical-line, .clock-vertical {
    animation: fadeIn 2s ease 0.5s both;
}

/* Scroll-triggered fade-in for list rows — match site fadeIn (2s opacity) */
.list-day, .list-month-label {
    opacity: 0;
    transition: opacity 2s ease;
}
.list-day.is-visible, .list-month-label.is-visible {
    opacity: 1;
}
/* Past events button uses its own subtle fade */
.list-past-btn {
    opacity: 0;
    transition: opacity 1.2s ease;
}
.list-past-btn.is-visible { opacity: 1; }

/* HEADER */
/* Live WordPress header iframe */
#pbmHeaderFrame {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%; height: 70px;
    border: 0; margin: 0; padding: 0;
    z-index: 9999;
    display: block;
    background: rgba(233, 239, 244, .7);
}

@media (max-width: 768px) {
    #pbmHeaderFrame { height: 55px; }
}

/* When iframe needs to expand (mobile menu open) - controlled by JS */
#pbmHeaderFrame.is-expanded {
    height: 100vh;
}

/* HEADER CONTAINER — matches site exactly */
.ticss-21666eb5 {
    z-index: 7; position: fixed; width: 100%;
    background: rgba(233, 239, 244, .7);
    box-shadow: 0 2px 4px 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    padding: 15px 0;
    display: flex; justify-content: space-between; align-items: center;
}

/* CONTRAST 2 color preset from WP */
.has-contrast-2-color { color: #636363; }
.has-link-color a { color: inherit; }

/* LOGO */
.ticss-bee8b810 {
    margin-top: 0; margin-left: 2.5%; margin-bottom: 0;
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.417), 18px);
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    line-height: 1.6;
}
.ticss-bee8b810 a { text-decoration: none; }

/* WP BLOCK NAVIGATION — exact rules */
.wp-block-navigation {
    --navigation-layout-direction: row;
    --navigation-layout-wrap: wrap;
    --navigation-layout-justify: flex-start;
    --navigation-layout-align: center;
    position: relative;
}
.wp-block-navigation__container {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    list-style: none;
    margin: 0; padding-left: 0;
    gap: 1.2rem;
}
.wp-block-navigation .wp-block-navigation-item {
    align-items: center;
    background-color: inherit;
    display: flex;
    position: relative;
}
.wp-block-navigation .wp-block-navigation-item__content {
    display: block;
    color: inherit;
    text-decoration: none;
}
.wp-block-navigation a,
.wp-block-navigation a:active,
.wp-block-navigation a:focus {
    text-decoration: none;
    color: inherit;
}

/* Desktop nav placement */
.ticss-7ae99920 {
    margin-right: 2.5%;
    flex-shrink: 0;
    font-size: 16px;
}

/* Hide Cart link when cart is empty (matches site behavior via body class) */
body.cart-is-empty .ticss-21dd9ce4,
body.cart-count-0 .ticss-21dd9ce4,
body.cart-is-empty .ticss-cart-item,
body.cart-count-0 .ticss-cart-item { display: none !important; }
/* Mobile nav button (hidden on desktop) */
.mobile-nav { display: none; margin-right: 2.5%; }

.wp-block-navigation__responsive-container-open {
    background: transparent; border: none;
    color: currentColor; cursor: pointer;
    margin: 0; padding: 0;
    vertical-align: middle;
    display: flex; align-items: center;
}
.wp-block-navigation__responsive-container-open svg {
    fill: currentColor; display: block;
    height: 24px; width: 24px;
    pointer-events: none;
}

/* MOBILE MENU OVERLAY — matches WP block nav exactly */
.wp-block-navigation__responsive-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    background-color: #fff;
    color: #000;
    z-index: 100000;
    overflow: auto;
    padding: clamp(1rem, 2rem, 20rem);
}
.wp-block-navigation__responsive-container.is-menu-open {
    display: flex;
    flex-direction: column;
    animation: pbm-fade-in 0.1s ease-out both;
}
@keyframes pbm-fade-in {
    from { opacity: 0; transform: translateY(0.5em); }
    to { opacity: 1; transform: translateY(0); }
}

.wp-block-navigation__responsive-close {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.wp-block-navigation__responsive-dialog {
    position: relative;
}

.wp-block-navigation__responsive-container-close {
    position: absolute;
    right: 0; top: 0;
    z-index: 2;
    background: transparent; border: none;
    color: currentColor; cursor: pointer;
    padding: 0; margin: 0;
}
.wp-block-navigation__responsive-container-close svg {
    fill: currentColor; display: block;
    height: 24px; width: 24px;
}

.wp-block-navigation__responsive-container-content {
    padding-top: calc(2rem + 24px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    align-items: flex-start;
}

/* Inside the responsive container, ul is vertical */
.wp-block-navigation__responsive-container .wp-block-navigation__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    list-style: none;
    margin: 0; padding: 0;
}

/* Mobile menu logo item (PALE BLUE) */
.is-mobile-logo a {
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.417), 18px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

/* Arrow link suffix */
.is-style-arrow-link .wp-block-navigation-item__label::after {
    content: "\2197";
    padding-inline-start: 0.25rem;
    vertical-align: middle;
    display: inline-block;
}
@media only screen and (max-width: 800px) {
    .ticss-21666eb5 { justify-content: flex-start; }
    .ticss-bee8b810 { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; }
    .ticss-7ae99920 { display: none; }
    .mobile-nav { display: flex; align-items: center; }
}

/* CLOCK */
.clock-vertical { position: fixed; left: 0; bottom: 1.5rem; transform: rotate(-90deg); transform-origin: left bottom; display: flex; align-items: center; gap: 0.5rem; margin-left: calc(1% + 1.2rem); z-index: 5; }
.clock-label { font-size: 9px; font-weight: 600; letter-spacing: 0.15em; color: #bbb; }
.clock-time { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; color: #888; font-variant-numeric: tabular-nums; }

/* VERTICAL TITLE & LINE */
.vertical-title { position: fixed; left: calc(1% + 0.5rem); top: 50%; margin-top: 35px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; font-size: 16px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #777; white-space: nowrap; z-index: 5; }
.vertical-line { position: fixed; left: calc(2% + 1.5rem); top: 70px; bottom: 0; width: 1px; background: #434649; z-index: 5; }

/* ===================================
   LAYOUT
   =================================== */

.app-container {
    display: flex; height: 100vh; padding-top: 70px;
    padding-left: calc(2% + 2.5rem); position: relative;
}

.main-content {
    flex: 1; display: flex; flex-direction: column;
    padding: 1.5rem 0 0 0;
    overflow: hidden; min-width: 0;
}

.header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 0.75rem;
}

.page-title {
    font-size: 38px; font-weight: 900; line-height: 1;
    letter-spacing: -0.02em; color: #434649;
    text-transform: uppercase; margin-bottom: 0;
    white-space: nowrap;
}

.sidebar-toggle-btn {
    background: none; border: 1px solid rgba(67, 70, 73, 0.3);
    font-family: 'Diatype', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; color: #636363;
    padding: 0.4rem 0.85rem;
    cursor: pointer; text-transform: uppercase;
    transition: all 0.2s;
    display: none;
    flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: rgba(67, 70, 73, 0.08); color: #434649; }

/* Status bar - shares bottom border with week header's top border */
.status-bar {
    display: flex; align-items: center; gap: 1.25rem;
    font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
    color: #888; text-transform: uppercase;
    padding: 0.85rem 0;
    border-top: 1px solid #434649;
    margin-bottom: 0;
}
.status-sep { color: #bbb; }
.month-nav-group { display: inline-flex; align-items: baseline; gap: 0.4rem; }
#statusMonth { font-weight: 800; color: #1a1c1e; letter-spacing: 0.08em; }
.month-nav-btn {
    background: none; border: none;
    font-family: 'Diatype', sans-serif;
    font-size: inherit; font-weight: 600;
    color: #888; cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.month-nav-btn:hover { color: #434649; }

.today-btn {
    background: none; border: 1px solid rgba(67, 70, 73, 0.25);
    font-family: 'Diatype', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; color: #888;
    padding: 0.2rem 0.5rem;
    cursor: pointer; text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.today-btn:hover { background: rgba(67, 70, 73, 0.08); color: #434649; }

/* SUBMIT link in mobile status bar — hide on desktop (lives in sidebar there) */
@media (min-width: 769px) {
    .submit-link-btn { display: none; }
}

/* ===================================
   GRID ZONE
   =================================== */

.grid-zone {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
}

.week-header {
    display: flex; align-items: stretch;
    border-top: 1px solid #434649;
    border-bottom: 1px solid #434649;
    flex-shrink: 0;
}

.week-btn {
    background: none; border: none;
    width: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Diatype', sans-serif;
    font-size: 14px; font-weight: 600; color: #888;
    cursor: pointer; transition: color 0.2s, background 0.2s;
}
.week-btn:first-child { border-right: 1px solid rgba(67, 70, 73, 0.2); }
.week-btn:last-child { border-left: 1px solid rgba(67, 70, 73, 0.2); }
.week-btn:hover { color: #434649; background: rgba(67, 70, 73, 0.04); }

.week-days {
    flex: 1; display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.hd-cell {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-right: 1px solid rgba(67, 70, 73, 0.2);
}
.hd-cell:last-child { border-right: none; }
.hd-cell.is-today {
    background: rgba(152, 186, 227, 0.15);
    box-shadow: inset 0 -3px 0 0 #98bae3;
}

.hd-name { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: #888; }
.hd-num { font-size: 22px; font-weight: 700; color: #434649; }
.hd-cell.is-today .hd-name { color: #5a8abf; }
.hd-cell.is-today .hd-num { color: #3a75b0; font-weight: 800; }

/* ===================================
   TIMELINE
   =================================== */

.timeline-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
}
.timeline-scroll::-webkit-scrollbar { display: none; }

.timeline-area {
    position: relative;
    min-height: 100%;
    display: flex;
}

/* Spacers match the 36px prev/next buttons exactly */
.timeline-spacer {
    width: 36px; flex-shrink: 0;
}

/* Grid lines div is hidden - lines are drawn by the grid cells themselves */
.grid-lines { display: none; }

.timeline-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 150px;
    position: relative;
    min-height: 100%;
    /* 6 vertical lines for 7 columns */
    background-image:
        linear-gradient(to right, transparent calc(100% / 7 * 1 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 1 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 1 + 0.5px), transparent calc(100% / 7 * 1 + 0.5px)),
        linear-gradient(to right, transparent calc(100% / 7 * 2 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 2 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 2 + 0.5px), transparent calc(100% / 7 * 2 + 0.5px)),
        linear-gradient(to right, transparent calc(100% / 7 * 3 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 3 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 3 + 0.5px), transparent calc(100% / 7 * 3 + 0.5px)),
        linear-gradient(to right, transparent calc(100% / 7 * 4 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 4 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 4 + 0.5px), transparent calc(100% / 7 * 4 + 0.5px)),
        linear-gradient(to right, transparent calc(100% / 7 * 5 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 5 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 5 + 0.5px), transparent calc(100% / 7 * 5 + 0.5px)),
        linear-gradient(to right, transparent calc(100% / 7 * 6 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 6 - 0.5px), rgba(67,70,73,0.2) calc(100% / 7 * 6 + 0.5px), transparent calc(100% / 7 * 6 + 0.5px));
}

/* ===================================
   EVENT CARDS
   Light tinted fill, colored left border, uniform height
   =================================== */

.ev {
    padding: 0;
    cursor: pointer;
    display: flex; flex-direction: row;
    position: relative; z-index: 2;

    border: 1px solid rgba(67, 70, 73, 0.2);
    border-left: 4px solid #434649;

    overflow: hidden;
    align-self: stretch;

    transition: all 0.3s ease;
}

/* Background image - faint blurred always, sharpens on hover */
/* Background image: normal color, faint by default */
.ev-img-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.ev:hover .ev-img-bg {
    opacity: 0.25;
    filter: none;
}

.ev::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(184, 212, 248, 0.35);
    opacity: 1;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.ev:hover::after {
    opacity: 0;
}

.ev-body {
    flex: 1; min-width: 0;
    padding: 0.85rem 0.9rem;
    display: flex; flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 2;
}

/* Description teaser - revealed on hover */
.ev-desc {
    font-size: 12px; font-weight: 400;
    line-height: 1.5; color: #444;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0;
    height: 0;
    margin: 0;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.ev:hover .ev-desc {
    opacity: 1;
    height: 36px;
    margin-top: 0.35rem;
}

/* Type badge shapes */
.ev-badge {
    width: 14px; height: 14px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
    position: relative;
    top: -1px;
}

/* Thumbnail on multi-day cards */
.ev-thumb {
    width: 100px; flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.ev-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.ev:hover {
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.22), 0 4px 8px rgba(31, 38, 135, 0.12);
    border-color: rgba(67, 70, 73, 0.5);
    transform: translateY(-2px);
}

.ev.selected {
    background: rgba(67, 70, 73, 0.92) !important;
    border-color: #434649;
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.28), 0 4px 8px rgba(31, 38, 135, 0.15);
    filter: none;
    transform: translateY(-2px);
}

/* Show description teaser when selected too */
.ev.selected .ev-desc {
    opacity: 1;
    height: 36px;
    margin-top: 0.35rem;
}
.ev.selected .ev-img-bg { opacity: 0.1; }
.ev.selected::after { opacity: 0 !important; }
.ev.selected .ev-type,
.ev.selected .ev-title,
.ev.selected .ev-bot,
.ev.selected .ev-desc { color: #E9EFF4 !important; }
.ev.selected .ev-badge circle,
.ev.selected .ev-badge rect,
.ev.selected .ev-badge polygon { stroke: #E9EFF4 !important; }
.ev.selected .ev-thumb { opacity: 0.7; }

.ev-top { margin-bottom: 0.15rem; }

.ev-type {
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
}

.ev-title {
    font-size: 19px; font-weight: 700;
    line-height: 1.25; color: #2a2c2e;
    text-transform: uppercase;
}

.ev-bot {
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.04em; color: #666;
    margin-top: auto;
}

/* ===================================
   RIGHT SIDEBAR
   =================================== */

.sidebar-right {
    width: 400px; min-width: 360px;
    height: calc(100vh - 70px);
    border-left: 1px solid #434649;
    display: flex; flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.sidebar-right::-webkit-scrollbar { display: none; }

.detail-panel {
    flex: 0 0 auto; padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #434649;
    overflow-y: auto; min-height: 0;
}

/* Smaller desktops: map fills space, detail panel grows on event select */
@media (max-width: 1920px) {
    .map-section { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
    .event-map { flex: 1 1 auto; height: auto !important; min-height: 200px; margin-bottom: 0; }
    .sidebar-right.has-event .detail-panel { flex: 1 1 auto; }

    /* Smooth crossfade for map and filters on event select */
    .map-section, .filters-section {
        transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, border 0.3s ease;
        overflow: hidden;
    }
    .sidebar-right.has-event .map-section,
    .sidebar-right.has-event .filters-section {
        max-height: 0 !important;
        opacity: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border: none !important;
        flex: 0 0 0 !important;
    }
}

/* Narrow-desktop (769–1366px): give the intro more room, cap the map smaller */
@media (min-width: 769px) and (max-width: 1366px) {
    .event-map { min-height: 150px; max-height: 220px; }
    .map-section { flex: 0 1 auto; }
}

/* Hide NEXT UP on smaller desktops */
.intro-large-only { display: none; }

/* Large monitors: keep map at fixed height, filters always visible, show NEXT UP */
@media (min-width: 1921px) {
    .map-section { flex: 0 0 auto; }
    .event-map { height: 260px; }
    .detail-panel { flex: 0 0 auto; }
    .intro-large-only { display: block; }
}

.detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(67, 70, 73, 0.2);
}

.detail-label {
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.1em; color: #434649;
    text-transform: uppercase;
    margin-bottom: 0; padding-bottom: 0;
    border-bottom: none;
}

/* When detail-label is standalone (intro), border goes ABOVE the label */
.detail-intro .detail-label {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 0;
    border-top: 1px solid rgba(67, 70, 73, 0.2);
    border-bottom: none;
}

.detail-close {
    background: none; border: 1px solid rgba(67, 70, 73, 0.2);
    width: 28px; height: 28px;
    font-size: 18px; color: #888;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.detail-close:hover {
    background: #434649; color: #E9EFF4;
    border-color: #434649;
}

.detail-image { width: 100%; height: 180px; overflow: hidden; margin-bottom: 1rem; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-title {
    font-size: 18px; font-weight: 900;
    line-height: 1.1; color: #1a1c1e;
    margin-bottom: 0.6rem; text-transform: uppercase;
    letter-spacing: -0.01em;
}

.detail-meta { display: flex; flex-direction: column; margin-bottom: 0.75rem; }
.detail-meta-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid rgba(67, 70, 73, 0.1); }
.detail-meta-row { padding: 0.35rem 0; }
.detail-meta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: #888; flex-shrink: 0; }
.detail-meta-value { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #434649; text-align: right; }

.detail-description { font-size: 12px; font-weight: 400; line-height: 1.6; color: #555; margin-bottom: 0.75rem; }

.detail-link {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #434649; text-decoration: none;
    padding: 0.6rem 1.2rem; border: 1px solid #434649;
    transition: all 0.2s; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px);
}
@media (hover: hover) {
    .detail-link:hover { background: #434649; color: #E9EFF4; }
}

/* INTRO */
.intro-text { font-size: 13px; font-weight: 400; line-height: 1.7; color: #636363; margin-bottom: 1rem; }
.intro-text-secondary { font-size: 12px; color: #757575; }

.intro-submit-btn {
    display: inline-block;
    font-family: 'Diatype', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #434649; background: rgba(255, 255, 255, 0.4);
    border: 1px solid #434649;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
    margin-top: 0.25rem;
}
@media (hover: hover) {
    .intro-submit-btn:hover { background: #434649; color: #E9EFF4; }
}

.intro-event { cursor: pointer; }
.intro-event:hover { opacity: 0.85; }
.intro-ev-img { width: 100%; height: 220px; overflow: hidden; margin-bottom: 1.25rem; }
.intro-ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-ev-title { font-size: 24px; font-weight: 900; line-height: 1.1; color: #1a1c1e; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: -0.02em; }
.intro-ev-meta { margin-bottom: 1rem; }
.intro-ev-desc { font-size: 12px; font-weight: 400; line-height: 1.7; color: #636363; margin-bottom: 1rem; }
.intro-ev-link { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #434649; text-transform: uppercase; padding: 0.5rem 1rem; border: 1px solid #434649; display: inline-block; transition: all 0.2s; }
@media (hover: hover) {
    .intro-ev-link:hover { background: #434649; color: #E9EFF4; }
}

/* MAP SECTION */
.map-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #434649;
    flex-shrink: 0;
}

.map-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem;
}

.map-header .filter-title { margin-bottom: 0; }

.map-expand-btn {
    background: none; border: 1px solid rgba(67, 70, 73, 0.25);
    font-family: 'Diatype', sans-serif;
    font-size: 8px; font-weight: 600;
    letter-spacing: 0.1em; color: #888;
    padding: 0.2rem 0.5rem;
    cursor: pointer; text-transform: uppercase;
    transition: all 0.2s;
}
.map-expand-btn:hover { background: rgba(67, 70, 73, 0.06); color: #434649; }

.event-map.expanded {
    height: 450px;
}

.event-map {
    width: 100%;
    height: 220px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(67, 70, 73, 0.15);
    transition: height 0.3s ease;
}

/* Map tooltip */
.map-tooltip {
    font-family: 'Diatype', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: #1a1c1e !important;
    background: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
}
.map-tooltip::before {
    border-top-color: #fff !important;
}

/* Remove Leaflet default icon background */
.map-pin-wrapper {
    background: none !important;
    border: none !important;
}

/* Map pin markers */
.map-pin {
    display: flex; align-items: center; justify-content: center;
    background: #D93025;
    color: #fff;
    font-family: 'Diatype', sans-serif;
    font-size: 11px; font-weight: 700;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.map-pin span {
    transform: rotate(45deg);
    display: block;
}
.map-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Selected/filtered pin */
.map-pin.active {
    background: #1B6B4A;
}

/* Leaflet control overrides */
.event-map .leaflet-control-zoom a {
    background: #fff !important;
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    font-family: 'Diatype', sans-serif !important;
    font-size: 16px !important;
    width: 30px !important; height: 30px !important;
    line-height: 30px !important;
}
.event-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Attribution minimal */
.event-map .leaflet-control-attribution {
    font-size: 8px !important;
    background: rgba(255,255,255,0.7) !important;
}

.map-section .filter-chips {
    margin-top: 0.5rem;
}

/* FILTERS */
.filters-section { padding: 0.6rem 1.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-title { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: #888; text-transform: uppercase; }
.filter-chips { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.filter-row-sub { margin-top: 0.1rem; }
.filter-chip {
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: none; padding: 0.35rem 0.75rem;
    font-family: 'Diatype', sans-serif; font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em; color: #434649;
    cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.filter-chip:hover { background: rgba(255, 255, 255, 0.7); box-shadow: 0 1px 4px rgba(31, 38, 135, 0.08); }
.filter-chip.active { background: rgba(67, 70, 73, 0.8); color: #E9EFF4; }

/* ===================================
   VIEW TOGGLE
   =================================== */

.view-toggle {
    display: inline-flex; gap: 0.15rem;
    align-items: center;
}

.view-toggle-sep {
    color: #ccc; font-size: 12px; padding: 0 0.15rem;
}

.view-btn {
    background: none; border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Diatype', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; color: #aaa;
    padding: 0.15rem 0;
    cursor: pointer; text-transform: uppercase;
    transition: all 0.25s;
}

.view-btn.active {
    color: #434649;
    border-bottom-color: #434649;
}

.view-btn:hover:not(.active) {
    color: #636363;
    border-bottom-color: rgba(67, 70, 73, 0.3);
}

/* ===================================
   LIST VIEW
   =================================== */

.list-zone {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
    border-top: 1px solid #434649;
}

.list-scroll {
    flex: 1; overflow-y: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.list-scroll::-webkit-scrollbar { display: none; }

/* Month divider in list */
.list-month-label {
    font-size: 22px; font-weight: 800;
    letter-spacing: 0.02em; color: #1a1c1e;
    padding: 1.75rem 0 0.75rem 0;
    text-transform: uppercase;
}

/* Day row */
.list-day {
    display: flex;
    border-top: 1px solid rgba(67, 70, 73, 0.15);
    min-height: 0;
    background: transparent;
}

.list-day:last-child {
    border-bottom: 1px solid rgba(67, 70, 73, 0.15);
}

/* Date column on the left */
.list-date {
    width: 70px; flex-shrink: 0;
    padding: 1rem 0.75rem 1rem 0;
    display: flex; flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid rgba(67, 70, 73, 0.15);
}

.list-date-day {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; color: #888;
    text-transform: uppercase;
}

.list-date-num {
    font-size: 30px; font-weight: 700;
    color: #434649; line-height: 1.1;
}

.list-day.is-today .list-date-day { color: #5a8abf; }
.list-day.is-today .list-date-num { color: #3a75b0; font-weight: 800; }

/* Events container for the day */
.list-events {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    min-height: 0;
}

/* List view event card */
.list-ev {
    flex: 1 1 0;
    width: 320px;
    max-width: 320px;
    min-height: 180px;
    flex-direction: column;
}

/* Multi-day badge - hidden by default, shows on hover/selected */
.ev-multi-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em;
    color: #555;
    background: transparent;
    padding: 0.15rem 0;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative; z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ev:hover .ev-multi-badge,
.ev.selected .ev-multi-badge {
    opacity: 1;
}

.ev-top { display: flex; align-items: center; gap: 0.35rem; }
.ev-top .ev-badge {
    position: relative;
    top: 0;
    vertical-align: middle;
    margin-right: 0;
}

/* Multi-day card keeps default border */





/* Time + type row in list view */
.list-ev-time {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.05em; color: #666;
    position: relative; z-index: 2;
    padding: 0 0.9rem;
    margin-bottom: -0.3rem;
}

/* Scroll margin: desktop list-scroll is below header so no offset needed.
   Mobile body scrolls and iframe header overlays, so push content below it. */
.list-day, .list-month-label, .list-past-btn {
    scroll-margin-top: 8px;
}
@media (max-width: 768px) {
    .list-day, .list-month-label, .list-past-btn {
        scroll-margin-top: 65px;
    }
}

/* Floating "Back to today" button */
.list-zone { position: relative; }
.back-to-today {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #434649;
    color: #E9EFF4;
    border: none;
    padding: 0.65rem 1.25rem;
    font-family: 'diatype', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
}
.back-to-today.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.back-to-today:hover {
    background: #1a1c1e;
}

/* Past events toggle */
.list-past-btn {
    display: block;
    width: 100%;
    background: none; border: none;
    border-bottom: 1px solid rgba(67, 70, 73, 0.15);
    padding: 0.85rem 0;
    font-family: 'Diatype', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.12em; color: #98bae3;
    cursor: pointer; text-align: left;
    transition: color 0.2s;
    text-transform: uppercase;
}
.list-past-btn:hover { color: #5a8abf; }

/* Past days are faded */
.list-day.is-past { opacity: 0.85; }

.list-empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 200px; color: #888;
    font-size: 12px; font-weight: 500; letter-spacing: 0.15em;
}

/* Error + empty states */
.error-state, .filter-empty {
    padding: 4rem 2rem; text-align: center;
}
.error-state h3, .filter-empty h3 {
    font-size: 14px; font-weight: 800;
    letter-spacing: 0.15em; color: #434649;
    margin-bottom: 0.5rem; text-transform: uppercase;
}
.error-state p, .filter-empty p {
    font-size: 12px; color: #888;
    margin-bottom: 1.25rem;
}
.error-retry, .filter-clear-btn {
    background: none; border: 1px solid #434649;
    font-family: 'Diatype', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; color: #434649;
    padding: 0.6rem 1.2rem;
    cursor: pointer; text-transform: uppercase;
    transition: all 0.2s;
}
.error-retry:hover, .filter-clear-btn:hover {
    background: #434649; color: #E9EFF4;
}

/* ===================================
   RESPONSIVE - DESKTOP NARROW (1025-1280px)
   =================================== */

@media (max-width: 1280px) and (min-width: 1025px) {
    /* Hide sidebar by default - toggle to show as overlay */
    .sidebar-right {
        position: fixed;
        top: 70px; right: 0; bottom: 0;
        width: 380px; min-width: 0;
        height: calc(100vh - 70px);
        border-left: 1px solid #434649;
        background: #E9EFF4;
        z-index: 15;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 24px rgba(31, 38, 135, 0.08);
    }
    .sidebar-right.open { transform: translateX(0); }

    /* Show toggle button */
    .sidebar-toggle-btn { display: inline-flex; align-items: center; }
    .sidebar-toggle-btn.has-selection { background: #434649; color: #E9EFF4; border-color: #434649; }

    .timeline-grid { grid-template-columns: repeat(7, 1fr); }
    .week-days { grid-template-columns: repeat(7, 1fr); }
    .page-title { font-size: 32px; }
    .ev-title { font-size: 16px; }
    .ev-type, .ev-bot { font-size: 11px; }
    .event-map { height: 200px; }
}

/* ===================================
   RESPONSIVE - TABLET LANDSCAPE (769-1024px)
   Sidebar stacks below main content
   =================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .app-container {
        flex-direction: column;
        height: auto; overflow-y: auto;
        padding-left: 0;
    }
    .vertical-title, .vertical-line, .clock-vertical { display: none; }
    .page-title { font-size: 38px; }
    .main-content { padding: 1rem 1.5rem 0; min-height: 100vh; }

    .sidebar-right {
        width: 100%; height: auto; min-width: 0;
        border-left: none; border-top: 1px solid #434649;
        flex-direction: row; flex-wrap: wrap;
    }
    .detail-panel { flex: 1 1 50%; max-width: 50%; border-bottom: none; border-right: 1px solid #434649; }
    .map-section { flex: 1 1 50%; max-width: 50%; border-bottom: none; }
    .filters-section { flex: 1 1 100%; }

    .timeline-grid { grid-template-columns: repeat(7, 1fr); grid-auto-rows: 130px; }
    .week-days { grid-template-columns: repeat(7, 1fr); }

    .event-map { height: 200px; }
    .filter-chip { font-size: 11px; padding: 0.35rem 0.75rem; }
}

/* ===================================
   RESPONSIVE - MOBILE (≤768px)
   =================================== */

@media (max-width: 768px) {
    body { overflow-y: auto; }

    /* Hide desktop-only elements */
    .vertical-title, .vertical-line, .clock-vertical { display: none !important; }

    /* Hide month nav arrows on mobile (skipping months breaks scroll flow) */
    .month-nav-btn { display: none !important; }
    .month-nav-group { gap: 0; }

    .app-container {
        flex-direction: column;
        height: auto; overflow: visible;
        padding-left: 0; padding-top: 70px;
    }

    /* Keep header same height as desktop */

    .page-title { font-size: 24px; margin-top: 0; margin-bottom: 0.75rem; }

    .main-content {
        flex: none; padding: 0.25rem 1rem 2rem;
        overflow: visible;
    }


    /* Status bar: hide counts, keep view toggle + month + filter btn */
    .status-bar {
        gap: 0.5rem; font-size: 11px;
        padding: 0.4rem 0;
        border-bottom: 1px solid #434649;
    }
    .status-bar .status-item { display: none; }
    .status-bar .status-sep { display: none; }
    .view-btn { font-size: 10px; }

    /* Filter button */
    .mob-filter-btn {
        display: flex !important;
        margin-left: auto;
        background: none; border: 1px solid rgba(67, 70, 73, 0.3);
        padding: 0.2rem 0.6rem;
        font-family: 'Diatype', sans-serif;
        font-size: 9px; font-weight: 600;
        letter-spacing: 0.1em; color: #888;
        cursor: pointer; text-transform: uppercase;
    }

    /* Hide desktop grid, show mobile calendar */
    .grid-zone { display: none !important; }
    .mob-cal.hidden { display: none !important; }
    .mob-cal { display: block !important; }

    /* Hide the old month nav inside mob-cal */
    .mob-cal-nav { display: none; }
    .mob-cal-grid { display: none; }

    /* Horizontal date strip */
    .mob-date-strip {
        display: flex;
        overflow-x: auto;
        gap: 0;
        border-top: 1px solid rgba(67, 70, 73, 0.1);
        border-bottom: 1px solid rgba(67, 70, 73, 0.1);
        scrollbar-width: none; -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }
    .mob-date-strip::-webkit-scrollbar { display: none; }

    .mob-date-item {
        flex: 0 0 auto;
        width: 56px;
        padding: 0.6rem 0;
        display: flex; flex-direction: column;
        align-items: center; gap: 0.15rem;
        cursor: pointer;
        scroll-snap-align: start;
        border-right: 1px solid rgba(67, 70, 73, 0.06);
        transition: background 0.2s;
    }
    .mob-date-item:last-child { border-right: none; }

    .mob-date-item .mob-d-name {
        font-size: 9px; font-weight: 600;
        letter-spacing: 0.08em; color: #aaa;
        text-transform: uppercase;
    }
    .mob-date-item .mob-d-num {
        font-size: 18px; font-weight: 700; color: #434649;
    }
    .mob-date-item .mob-d-dot {
        width: 4px; height: 4px; border-radius: 50%;
        background: transparent;
    }
    .mob-date-item.has-events .mob-d-dot { background: #434649; }
    .mob-date-item.today .mob-d-num { color: #3a75b0; }
    .mob-date-item.today .mob-d-name { color: #5a8abf; }
    .mob-date-item.selected {
        background: #434649;
    }
    .mob-date-item.selected .mob-d-name { color: #E9EFF4; }
    .mob-date-item.selected .mob-d-num { color: #E9EFF4; }
    .mob-date-item.selected .mob-d-dot { background: #E9EFF4; }

    /* Events below calendar — same style as list view */
    .mob-events { padding: 0.25rem 0; }
    .mob-events-label {
        font-size: 9px; font-weight: 700;
        letter-spacing: 0.15em; color: #888;
        text-transform: uppercase;
        padding: 0.75rem 0 0.25rem;
        border-bottom: 1px solid rgba(67, 70, 73, 0.15);
    }
    .mob-ev {
        display: flex; align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(67, 70, 73, 0.1);
        cursor: pointer;
    }
    .mob-ev:active { background: rgba(67, 70, 73, 0.04); }
    .mob-ev-img {
        width: 60px; height: 60px; flex-shrink: 0; overflow: hidden;
    }
    .mob-ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .mob-ev-noimg {
        width: 60px; height: 60px; flex-shrink: 0;
        background: rgba(67, 70, 73, 0.06);
        display: flex; align-items: center; justify-content: center;
    }
    .mob-ev-noimg .ev-badge { width: 20px; height: 20px; }
    .mob-ev-info { flex: 1; min-width: 0; }
    .mob-ev-title {
        font-size: 15px; font-weight: 700;
        color: #2a2c2e; line-height: 1.2; margin-bottom: 0.1rem;
    }
    .mob-ev-meta { font-size: 10px; font-weight: 500; color: #888; }
    .mob-ev-type {
        font-size: 9px; font-weight: 600;
        letter-spacing: 0.08em; color: #636363;
        flex-shrink: 0; text-transform: uppercase;
    }
    .mob-no-events {
        padding: 2rem 0; text-align: center;
        font-size: 11px; color: #aaa;
        letter-spacing: 0.1em; text-transform: uppercase;
    }

    /* List view on mobile */
    .list-zone { flex: none; border-top: none; }
    .list-scroll { overflow: visible; }
    .list-date { width: 55px; padding: 0.6rem 0.5rem 0.6rem 0; border-right: none; }
    .list-date-num { font-size: 22px; }
    .list-date-day { font-size: 9px; }
    .list-events { gap: 0.5rem; flex-direction: column; padding: 0.5rem 0; }
    .list-ev {
        width: auto; max-width: 100%; min-height: 120px;
        flex-direction: row; align-items: stretch;
    }
    .list-ev .ev-body { padding: 0.85rem 0.95rem; gap: 0.25rem; }
    .list-ev .ev-title { font-size: 16px; }
    .list-ev .ev-type { font-size: 11px; }
    .list-ev .ev-bot {
        font-size: 12px;
        font-weight: 600 !important;
        color: #2a2c2e !important;
        letter-spacing: 0.02em;
    }
    .list-ev .ev-desc { display: none; }
    .ev-multi-badge { font-size: 9px; }

    /* Actual thumbnail in list cards on mobile */
    .list-ev-thumb {
        width: 70px; flex-shrink: 0; overflow: hidden;
    }
    .list-ev-thumb img {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
    }
    /* Mobile cards: show image bg in "hover" state (always visible, full color) */
    .ev .ev-img-bg {
        opacity: 0.25 !important;
        filter: none !important;
    }
    /* Blue overlay off on mobile */
    .ev::after { opacity: 0 !important; }

    /* Hide desktop thumbnail div, not needed */
    .list-ev-thumb { display: none !important; }

    /* Strong readable text over images */
    .ev-title { color: #1a1c1e !important; }
    .ev-type { color: #434649 !important; }
    .ev-bot { color: #555 !important; }
    .list-date-num { color: #1a1c1e !important; }
    .list-date-day { color: #636363 !important; }
    .list-month-label { color: #1a1c1e !important; font-size: 18px !important; padding: 1.25rem 0 0.5rem 0 !important; }
    .list-past-btn { color: #3a75b0 !important; }

    /* Hide view toggle — list only on mobile */
    .view-toggle { display: none !important; }
    .status-bar .view-toggle + .status-sep { display: none !important; }

    /* Hide calendar elements */
    .mob-cal { display: none !important; }
    .mob-date-strip { display: none !important; }

    /* Desktop sidebar hidden on mobile */
    .sidebar-right { display: none !important; }

    /* --- Mobile filter overlay (blur background) --- */
    .mob-filter-overlay {
        display: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        z-index: 30;
        background: rgba(233, 239, 244, 0.6);
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        align-items: flex-end; justify-content: center;
    }
    .mob-filter-overlay.open { display: flex; }

    .mob-filter-sheet {
        width: 100%; max-height: 85vh;
        background: #E9EFF4;
        border-top: 1px solid #434649;
        box-shadow: 0 -8px 30px rgba(31, 38, 135, 0.12);
        overflow-y: auto;
        padding: 0;
    }
    .mob-filter-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(67, 70, 73, 0.15);
        position: sticky; top: 0; background: #E9EFF4; z-index: 1;
    }
    .mob-filter-title {
        font-size: 12px; font-weight: 800;
        letter-spacing: 0.12em; color: #434649;
        text-transform: uppercase;
    }
    .mob-filter-close {
        background: none; border: none;
        font-size: 20px; color: #888; cursor: pointer;
        width: 28px; height: 28px;
        display: flex; align-items: center; justify-content: center;
    }
    .mob-filter-body { padding: 0.75rem 1rem; }
    .mob-filter-body .filter-group { margin-bottom: 0.75rem; }

    /* Date section inside filter overlay */
    .mob-date-section .mob-cal-nav {
        display: flex; align-items: center;
        justify-content: space-between;
        padding: 0.4rem 0; margin-bottom: 0.25rem;
    }
    .mob-date-section .mob-cal-nav button {
        background: none; border: none;
        font-family: 'Diatype', sans-serif;
        font-size: 14px; font-weight: 600;
        color: #888; cursor: pointer; padding: 0.25rem 0.5rem;
    }
    .mob-date-section .mob-cal-nav span {
        font-size: 11px; font-weight: 700;
        letter-spacing: 0.1em; color: #434649;
        text-transform: uppercase;
    }
    .mob-date-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0; padding: 0.25rem 0;
    }
    .mob-cal-dayname {
        font-size: 9px; font-weight: 600;
        letter-spacing: 0.08em; color: #aaa;
        text-align: center; padding: 0.3rem 0;
        text-transform: uppercase;
    }
    .mob-cal-day {
        aspect-ratio: 1;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 500;
        color: #636363; cursor: pointer; position: relative;
    }
    .mob-cal-day.in-range {
        background: rgba(67, 70, 73, 0.1);
    }
    .mob-cal-day.range-end {
        background: #434649; color: #E9EFF4;
    }
    .mob-cal-day.range-end::before { background: #E9EFF4; }
    .mob-cal-day.other { color: #ccc; pointer-events: none; }
    .mob-cal-day.today { color: #3a75b0; font-weight: 800; }
    .mob-cal-day.has-events { font-weight: 700; color: #1a1c1e; }
    .mob-cal-day.has-events::before { display: none; }
    .mob-cal-day.selected { background: #434649; color: #E9EFF4; }
    .mob-cal-day.selected::before { background: #E9EFF4; }

    .mob-date-clear {
        display: block; width: 100%;
        margin-top: 0.35rem; padding: 0.4rem;
        background: none; border: 1px solid rgba(67, 70, 73, 0.2);
        font-family: 'Diatype', sans-serif;
        font-size: 9px; font-weight: 600;
        letter-spacing: 0.1em; color: #636363;
        cursor: pointer; text-transform: uppercase;
    }

    /* --- Mobile event detail overlay --- */
    .mob-detail-overlay {
        display: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        z-index: 25;
        background: rgba(233, 239, 244, 0.5);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .mob-detail-overlay.open { display: block; }

    .mob-detail-sheet {
        position: absolute;
        top: 56px; left: 0; right: 0; bottom: 0;
        background: #E9EFF4;
        overflow-y: auto;
        border-top: 1px solid #434649;
        padding: 0;
    }
    .mob-detail-close {
        position: sticky; top: 0; z-index: 1;
        display: flex; align-items: center; justify-content: center;
        width: 100%; padding: 0.6rem 1rem;
        background: #E9EFF4;
        border: none; border-bottom: 1px solid rgba(67, 70, 73, 0.15);
        font-family: 'Diatype', sans-serif;
        font-size: 18px; color: #888; cursor: pointer;
    }
    #mobDetailContent { padding: 1rem; }
    #mobDetailContent .detail-image { width: 100%; height: 220px; overflow: hidden; margin-bottom: 1rem; }
    #mobDetailContent .detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    #mobDetailContent .detail-title {
        font-size: 22px; font-weight: 900; line-height: 1.1;
        color: #1a1c1e; margin-bottom: 0.75rem; text-transform: uppercase;
    }
    #mobDetailContent .detail-meta-row {
        display: flex; justify-content: space-between; align-items: baseline;
        padding: 0.4rem 0; border-bottom: 1px solid rgba(67, 70, 73, 0.1);
    }
    #mobDetailContent .detail-meta-label {
        font-size: 10px; font-weight: 700; letter-spacing: 0.15em; color: #888;
    }
    #mobDetailContent .detail-meta-value {
        font-size: 12px; font-weight: 700; color: #434649; text-align: right;
    }
    #mobDetailContent .detail-description {
        font-size: 12px; line-height: 1.7; color: #555; margin: 0.75rem 0;
    }
    #mobDetailContent .detail-link {
        display: inline-block; font-size: 11px; font-weight: 700;
        letter-spacing: 0.1em; color: #434649; text-decoration: none;
        padding: 0.5rem 1rem; border: 1px solid #434649;
        text-transform: uppercase;
    }
}

/* ===================================
   RESPONSIVE - SMALL MOBILE (≤480px)
   =================================== */

@media (max-width: 480px) {
    .page-title { font-size: 20px; }

    .status-bar {
        font-size: 10px; gap: 0.4rem;
        padding: 0.4rem 0;
    }
    .view-btn { font-size: 10px; }
    .month-nav-btn { font-size: 13px; }
    .today-btn { font-size: 9px; padding: 0.15rem 0.4rem; }
    .mob-filter-btn { font-size: 9px; padding: 0.15rem 0.4rem; }

    /* Hide year on small phones */
    #statusMonth { font-size: 11px; }

    .list-date { width: 44px; padding: 0.5rem 0.4rem 0.5rem 0; }
    .list-date-num { font-size: 20px; }
    .list-date-day { font-size: 10px; }

    .list-ev { min-height: 100px; }
    .list-ev .ev-title { font-size: 14px; }
    .list-ev .ev-bot { font-size: 11px; }
    .list-ev-thumb { width: 60px; }

    /* Detail/filter overlays use more screen */
    .mob-filter-sheet { max-height: 90vh; }
    .mob-detail-sheet { top: 56px; }
    #mobDetailContent .detail-title { font-size: 18px; }
    #mobDetailContent .detail-image { height: 180px; }

    .mob-cal-day { font-size: 12px; }
}

/* Very small phones (≤360px) - hide non-essential controls */
@media (max-width: 360px) {
    .today-btn { display: none; }
    .status-bar { gap: 0.3rem; }
    .month-nav-btn { padding: 0 0.15rem; }
    #statusMonth { font-size: 10px; }
}

/* Hide mobile-only elements on desktop */
.mob-cal { display: none; }
.mob-sidebar-close { display: none; }
.mob-filter-btn { display: none; }
.mob-filter-overlay { display: none; }
.mob-detail-overlay { display: none; }
.list-ev-thumb { display: none; }
