/* ===== 42 — Calendar Page (Pure List View + Map) =====
   Page-specific styles. Header, mobile menu, ticket-tab component,
   and footer come from header-footer.css (shared site-wide). */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Space+Grotesk:wght@600;700&display=swap');

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Space Mono', 'Courier Prime', monospace;
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ===== Kinetic text reveal =====
   Word gap is a CSS margin, not a space character inside the
   inline-block span — the latter can render inconsistently (a
   noticeably wider gap than normal text) depending on how the
   browser handles trailing whitespace inside inline-block boxes. */
.kinetic-word {
    display: inline-block;
    margin-right: 0.28em;
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(4px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.kinetic-word:last-child {
    margin-right: 0;
}

.kinetic-word.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ===== Title ===== */
.cal-title {
    padding: 36px 32px 20px;
}

.cal-title h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

/* ===== Pure List View ===== */
.cal-list-view {
    padding: 0 32px 20px;
}

/* ===== Featured Event Card (42 December) ===== */
.cal-featured-card {
    position: relative;
    padding: 40px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 32px;
}

.cal-featured-tag {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-hover);
    font-weight: 700;
}

.cal-featured-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.cal-featured-logo {
    height: 1.1em;
    width: auto;
    display: block;
}

.cal-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey);
}

.cal-featured-dot {
    color: var(--panel-border);
}

.cal-featured-cta {
    margin-top: 10px;
    align-self: flex-start;
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cal-featured-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ===== Template List Items ===== */
.cal-simple-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--panel-border);
}

.cal-simple-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--panel-border);
    transition: background 0.2s ease, transform 0.15s ease;
}

.cal-simple-row:hover {
    background: var(--panel);
    transform: translateX(4px);
}

.cal-simple-primary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cal-simple-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.cal-simple-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.cal-simple-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 2px;
}

.cal-simple-venue {
    font-size: 0.64rem;
    color: var(--grey);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cal-simple-time {
    font-size: 0.62rem;
    color: var(--grey);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Tag pill stacked directly above Get Tickets, both right-aligned in
   the top-right corner of the row. */
.cal-simple-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.cal-simple-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-hover);
    border: 1px solid var(--accent-hover);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.cal-simple-tag.is-motive {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

.cal-simple-cta {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cal-simple-cta:hover {
    color: var(--accent-hover);
}

/* ===== Section Head (Featured Events / Map) ===== */
.cal-featured-section,
.cal-map-section {
    padding: 0;
}

.cal-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0 32px;
    margin: 48px 0 16px;
}

.cal-section-index {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
}

.cal-section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* ===== Interactive Map ===== */
.cal-map-section > .cal-leaflet-map {
    margin: 0 32px 60px;
    width: calc(100% - 64px);
    border: 1px solid var(--panel-border);
}

.cal-leaflet-map {
    height: 420px;
    filter: saturate(1.15) contrast(1.02);
}

/* Standard red rounded "teardrop" pin for named Lagos hubs */
.cal-pin {
    position: relative;
}

.cal-pin-dot {
    display: block;
    width: 22px;
    height: 22px;
    background: #FF3B30;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.leaflet-container {
    background: var(--bg) !important;
    font-family: 'Space Mono', monospace !important;
}

.leaflet-control-zoom a {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border-color: var(--panel-border) !important;
}

.leaflet-control-attribution {
    background: rgba(13, 13, 14, 0.8) !important;
    color: var(--grey) !important;
}

.leaflet-control-attribution a {
    color: var(--grey) !important;
}

.cal-map-tooltip {
    background: var(--panel) !important;
    border: 1px solid var(--panel-border) !important;
    color: var(--ink) !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cal-title {
        padding: 28px 20px 16px;
    }

    .cal-list-view {
        padding: 0 20px 16px;
    }

    .cal-featured-card {
        padding: 26px 22px;
        margin: 0 20px;
    }

    .cal-simple-row {
        gap: 12px;
        padding: 18px 4px;
    }

    .cal-simple-name {
        font-size: 1rem;
    }

    .cal-simple-venue {
        white-space: normal;
    }

    .cal-section-head {
        padding: 0 20px;
        margin: 36px 0 14px;
    }

    .cal-map-section > .cal-leaflet-map {
        margin: 0 20px 48px;
        width: calc(100% - 40px);
    }

    .cal-leaflet-map {
        height: 320px;
    }
}
