﻿/* ================================================================
   Calendar Widget — Core Styles
   Scoped to .geo-cal to prevent leakage into host page.
   Design tokens from Figma spec.
   ================================================================ */

/* === Widget CSS Isolation ===
   Reset host-page styles within the widget boundary.
   all:revert returns elements to their browser-default styling,
   undoing any CSS that the host page applied.
   ------------------------------------------------------------- */
.geo-cal {
    all: revert;
}

    .geo-cal *, .geo-cal *::before, .geo-cal *::after {
        all: revert;
    }

/* --- Base / Reset (scoped) --- */
.geo-cal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #374151;
    line-height: 1.5;
    box-sizing: border-box;
    background: #f9fafb;
}

    .geo-cal *, .geo-cal *::before, .geo-cal *::after {
        box-sizing: border-box;
    }

    /* --- Loading & Error States --- */
    .geo-cal .geo-cal-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        color: #6b7280;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .geo-cal .geo-cal-error {
        padding: 1rem;
        margin: 1rem;
        background-color: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 0.5rem;
        color: #dc2626;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* --- Layout --- */
    .geo-cal .geo-cal-container {
        max-width: 80rem;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

@media (min-width: 640px) {
    .geo-cal .geo-cal-container {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .geo-cal .geo-cal-container {
        padding: 2rem;
    }
}

.geo-cal .geo-cal-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .geo-cal .geo-cal-grid {
        grid-template-columns: 1fr 3fr;
    }
}

/* --- Page Title --- */
.geo-cal .geo-cal-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.geo-cal .geo-cal-subtitle {
    color: #4b5563;
    margin: 0 0 1.5rem 0;
}

/* --- Filter Sidebar --- */
.geo-cal .geo-cal-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .geo-cal .geo-cal-sidebar {
        display: block;
    }
}

.geo-cal .geo-cal-sidebar-panel {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.geo-cal .geo-cal-filter-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

    .geo-cal .geo-cal-filter-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

.geo-cal .geo-cal-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
    background: none;
    border: none;
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
    color: #374151;
    font-weight: 600;
}

    .geo-cal .geo-cal-filter-header:hover {
        color: #111827;
    }

.geo-cal .geo-cal-filter-chevron {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
    color: #9ca3af;
}

    .geo-cal .geo-cal-filter-chevron.collapsed {
        transform: rotate(-90deg);
    }

.geo-cal .geo-cal-filter-body {
    margin-top: 0.75rem;
}

    .geo-cal .geo-cal-filter-body.collapsed {
        display: none;
    }

.geo-cal .geo-cal-filter-scroll {
    max-height: 16rem;
    overflow-y: auto;
}

.geo-cal .geo-cal-filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
    margin-bottom: 0.5rem;
}

    .geo-cal .geo-cal-filter-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

.geo-cal .geo-cal-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

    .geo-cal .geo-cal-checkbox-item input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: #2563eb;
        flex-shrink: 0;
    }

    .geo-cal .geo-cal-checkbox-item label {
        font-size: 0.875rem;
        color: #374151;
        cursor: pointer;
    }

/* --- Mobile Filter Drawer --- */
.geo-cal .geo-cal-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

    .geo-cal .geo-cal-filter-overlay.open {
        display: block;
    }

.geo-cal .geo-cal-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20rem;
    max-width: 85vw;
    background: #fff;
    z-index: 50;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

    .geo-cal .geo-cal-filter-drawer.open {
        transform: translateX(0);
    }

.geo-cal .geo-cal-filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.geo-cal .geo-cal-filter-drawer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.geo-cal .geo-cal-filter-close-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
}

    .geo-cal .geo-cal-filter-close-btn:hover {
        color: #111827;
    }

/* --- Search Bar --- */
.geo-cal .geo-cal-search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.geo-cal .geo-cal-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

.geo-cal .geo-cal-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #374151;
    background: #fff;
}

    .geo-cal .geo-cal-search-input::placeholder {
        color: #9ca3af;
    }

    .geo-cal .geo-cal-search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

.geo-cal .geo-cal-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    display: none;
}

    .geo-cal .geo-cal-search-clear.visible {
        display: block;
    }

    .geo-cal .geo-cal-search-clear:hover {
        color: #374151;
    }

/* --- Controls Bar (View Toggle + Filter Button) --- */
.geo-cal .geo-cal-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.geo-cal .geo-cal-view-toggle {
    display: flex;
    gap: 0.25rem;
}

.geo-cal .geo-cal-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all 0.15s ease;
}

    .geo-cal .geo-cal-toggle-btn:hover {
        background: #f9fafb;
    }

    .geo-cal .geo-cal-toggle-btn.active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

        .geo-cal .geo-cal-toggle-btn.active:hover {
            background: #1d4ed8;
        }

    .geo-cal .geo-cal-toggle-btn svg {
        width: 1rem;
        height: 1rem;
    }

.geo-cal .geo-cal-toggle-label {
    display: none;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-toggle-label {
        display: inline;
    }
}

/* Mobile filter button */
.geo-cal .geo-cal-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

    .geo-cal .geo-cal-mobile-filter-btn:hover {
        background: #f9fafb;
    }

@media (min-width: 1024px) {
    .geo-cal .geo-cal-mobile-filter-btn {
        display: none;
    }
}

.geo-cal .geo-cal-mobile-filter-btn svg {
    width: 1rem;
    height: 1rem;
}

/* --- Results Count --- */
.geo-cal .geo-cal-results-count {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* --- Event Card Grid --- */
.geo-cal .geo-cal-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .geo-cal .geo-cal-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Event Card --- */
.geo-cal .geo-cal-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

    .geo-cal .geo-cal-card:hover {
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    }

.geo-cal .geo-cal-card-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.geo-cal .geo-cal-card-image-placeholder {
    width: 100%;
    height: 12rem;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.geo-cal .geo-cal-card-body {
    padding: 1.25rem;
}

.geo-cal .geo-cal-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.geo-cal .geo-cal-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #4b5563;
}

    .geo-cal .geo-cal-card-meta svg {
        width: 1rem;
        height: 1rem;
        flex-shrink: 0;
    }

/* Registration status badges */
.geo-cal .geo-cal-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    white-space: nowrap;
}

.geo-cal .geo-cal-badge-open {
    background: #dcfce7;
    color: #15803d;
}

.geo-cal .geo-cal-badge-closing {
    background: #fef9c3;
    color: #a16207;
}

.geo-cal .geo-cal-badge-closed,
.geo-cal .geo-cal-badge-full {
    background: #fee2e2;
    color: #b91c1c;
}

.geo-cal .geo-cal-badge-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.geo-cal .geo-cal-badge-none,
.geo-cal .geo-cal-badge-not-required {
    background: #f3f4f6;
    color: #374151;
}

/* Card title */
.geo-cal .geo-cal-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.4;
}

    .geo-cal .geo-cal-card-title a {
        color: #2563eb;
        text-decoration: none;
        cursor: pointer;
    }

        .geo-cal .geo-cal-card-title a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

/* Card description */
.geo-cal .geo-cal-card-desc {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Category tag pill */
.geo-cal .geo-cal-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
}

.geo-cal .geo-cal-category-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* --- Pagination --- */
.geo-cal .geo-cal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.geo-cal .geo-cal-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .geo-cal .geo-cal-page-btn:hover:not(:disabled) {
        background: #f9fafb;
        border-color: #9ca3af;
    }

    .geo-cal .geo-cal-page-btn.active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

    .geo-cal .geo-cal-page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .geo-cal .geo-cal-page-btn svg {
        width: 1rem;
        height: 1rem;
    }

/* --- Empty State --- */
.geo-cal .geo-cal-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

    .geo-cal .geo-cal-empty svg {
        width: 3rem;
        height: 3rem;
        margin: 0 auto 1rem;
        color: #d1d5db;
    }

.geo-cal .geo-cal-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.geo-cal .geo-cal-empty-text {
    font-size: 0.875rem;
}

/* ================================================================
   Calendar / Month View Styles
   ================================================================ */

/* --- Calendar Container --- */
.geo-cal .geo-cal-month-container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    padding: 1rem;
    position: relative;
}

/* --- Calendar Header Bar --- */
.geo-cal .geo-cal-month-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-month-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.geo-cal .geo-cal-month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.geo-cal .geo-cal-month-nav-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    color: #374151;
    transition: background 0.15s;
}

    .geo-cal .geo-cal-month-nav-btn:hover {
        background: #f3f4f6;
    }

    .geo-cal .geo-cal-month-nav-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

.geo-cal .geo-cal-month-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    white-space: nowrap;
}

.geo-cal .geo-cal-month-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.geo-cal .geo-cal-today-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

    .geo-cal .geo-cal-today-btn:hover {
        background: #f9fafb;
    }

    .geo-cal .geo-cal-today-btn svg {
        width: 1rem;
        height: 1rem;
    }

.geo-cal .geo-cal-period-toggle {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.geo-cal .geo-cal-period-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

    .geo-cal .geo-cal-period-btn:hover {
        background: #f9fafb;
    }

    .geo-cal .geo-cal-period-btn.active {
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .geo-cal .geo-cal-period-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* --- Day-of-Week Header Row --- */
.geo-cal .geo-cal-dow-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
}

.geo-cal .geo-cal-dow-cell {
    text-align: center;
    padding: 0.25rem;
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-dow-cell {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* --- Month Grid --- */
.geo-cal .geo-cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e5e7eb;
}

/* --- Day Cell --- */
.geo-cal .geo-cal-day-cell {
    min-height: 60px;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-day-cell {
        aspect-ratio: 1;
        padding: 0.5rem;
    }
}

.geo-cal .geo-cal-day-cell:hover {
    background: #f9fafb;
}

.geo-cal .geo-cal-day-cell.empty {
    background: #fafafa;
    cursor: default;
}

    .geo-cal .geo-cal-day-cell.empty:hover {
        background: #fafafa;
    }

/* Day number */
.geo-cal .geo-cal-day-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #374151;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-day-num {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
    }
}

.geo-cal .geo-cal-day-num.today {
    background: #f97316;
    color: #fff;
    font-weight: 600;
}

/* Event dots (mobile) */
.geo-cal .geo-cal-day-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .geo-cal .geo-cal-day-dots {
        display: none;
    }
}

.geo-cal .geo-cal-day-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .geo-cal .geo-cal-day-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
}

/* Event label pills (desktop) */
.geo-cal .geo-cal-day-labels {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .geo-cal .geo-cal-day-labels {
        display: flex;
    }
}

.geo-cal .geo-cal-day-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    background: #f3f4f6;
    font-size: 0.6875rem;
    color: #374151;
    overflow: hidden;
    white-space: nowrap;
}

.geo-cal .geo-cal-day-label-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.geo-cal .geo-cal-day-label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Category Legend --- */
.geo-cal .geo-cal-legend {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.geo-cal .geo-cal-legend-label {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.geo-cal .geo-cal-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.geo-cal .geo-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-cal .geo-cal-legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.geo-cal .geo-cal-legend-name {
    font-size: 0.75rem;
    color: #4b5563;
}

/* --- Floating Action Button (Mobile Filter) --- */
.geo-cal .geo-cal-fab {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #2563eb;
    color: #fff;
    padding: 1rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 30;
    transition: background 0.15s;
}

    .geo-cal .geo-cal-fab:hover {
        background: #1d4ed8;
    }

    .geo-cal .geo-cal-fab svg {
        width: 1.5rem;
        height: 1.5rem;
    }

@media (max-width: 1023px) {
    .geo-cal .geo-cal-fab {
        display: block;
    }
}

/* ==========================================================================
   EVENT DETAIL PAGE
   ========================================================================== */

/* Back navigation bar */
.geo-cal .geo-cal-back-bar {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
}

.geo-cal .geo-cal-back-bar-inner {
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.geo-cal .geo-cal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

    .geo-cal .geo-cal-back-link:hover {
        color: #1d4ed8;
    }

    .geo-cal .geo-cal-back-link svg {
        width: 1.25rem;
        height: 1.25rem;
    }

/* Detail container */
.geo-cal .geo-cal-detail-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Detail card */
.geo-cal .geo-cal-detail-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Hero image */
.geo-cal .geo-cal-detail-hero {
    width: 100%;
    height: 24rem; /* h-96 / 384px */
    object-fit: cover;
    display: block;
}

.geo-cal .geo-cal-detail-hero-placeholder {
    width: 100%;
    height: 24rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
}

    .geo-cal .geo-cal-detail-hero-placeholder svg {
        width: 4rem;
        height: 4rem;
        opacity: 0.5;
    }

/* Card body */
.geo-cal .geo-cal-detail-body {
    padding: 2rem;
}

/* Title + status row */
.geo-cal .geo-cal-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.geo-cal .geo-cal-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.geo-cal .geo-cal-detail-badge {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Metadata grid */
.geo-cal .geo-cal-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .geo-cal .geo-cal-detail-meta {
        grid-template-columns: 1fr 1fr;
    }
}

.geo-cal .geo-cal-detail-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.geo-cal .geo-cal-detail-meta-icon {
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

    .geo-cal .geo-cal-detail-meta-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

.geo-cal .geo-cal-detail-meta-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.geo-cal .geo-cal-detail-meta-value {
    color: #4b5563;
    font-size: 0.875rem;
}

    .geo-cal .geo-cal-detail-meta-value p {
        margin: 0;
    }

        .geo-cal .geo-cal-detail-meta-value p + p {
            margin-top: 0.25rem;
        }

/* About This Event section */
.geo-cal .geo-cal-detail-about h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.geo-cal .geo-cal-detail-about-text {
    color: #4b5563;
    line-height: 1.75;
    white-space: pre-line;
    margin: 0 0 2rem 0;
}

/* Action buttons */
.geo-cal .geo-cal-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.geo-cal .geo-cal-btn-primary {
    flex: 1;
    min-width: 0;
    background: #2563eb;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

    .geo-cal .geo-cal-btn-primary:hover {
        background: #1d4ed8;
    }

    .geo-cal .geo-cal-btn-primary:disabled {
        background: #9ca3af;
        cursor: not-allowed;
    }

.geo-cal .geo-cal-btn-secondary {
    padding: 1rem 2rem;
    border: 2px solid #d1d5db;
    color: #374151;
    background: #fff;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .geo-cal .geo-cal-btn-secondary:hover {
        background: #f9fafb;
    }

    .geo-cal .geo-cal-btn-secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Need Help? section */
.geo-cal .geo-cal-help-box {
    margin-top: 2rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

    .geo-cal .geo-cal-help-box h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        margin: 0 0 0.75rem 0;
    }

    .geo-cal .geo-cal-help-box p {
        color: #4b5563;
        margin: 0 0 1rem 0;
        font-size: 0.875rem;
    }

.geo-cal .geo-cal-help-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .geo-cal .geo-cal-help-contacts a {
        color: #2563eb;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: color 0.15s;
    }

        .geo-cal .geo-cal-help-contacts a:hover {
            color: #1d4ed8;
        }

/* Related Events Carousel */
.geo-cal .geo-cal-related {
    margin-top: 2rem;
}

.geo-cal .geo-cal-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .geo-cal .geo-cal-related-header h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

.geo-cal .geo-cal-related-arrows {
    display: flex;
    gap: 0.5rem;
}

.geo-cal .geo-cal-carousel-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .geo-cal .geo-cal-carousel-btn:hover:not(:disabled) {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

    .geo-cal .geo-cal-carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .geo-cal .geo-cal-carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

.geo-cal .geo-cal-carousel-track-wrapper {
    overflow: hidden;
}

.geo-cal .geo-cal-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
}

.geo-cal .geo-cal-carousel-slide {
    flex-shrink: 0;
    width: calc(50% - 0.5rem);
}

@media (max-width: 767px) {
    .geo-cal .geo-cal-carousel-slide {
        width: 100%;
    }
}

.geo-cal .geo-cal-carousel-slide .geo-cal .geo-cal-card {
    height: 100%;
}

/* Detail page loading skeleton */
.geo-cal .geo-cal-detail-skeleton {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

    .geo-cal .geo-cal-detail-skeleton .skeleton-hero {
        width: 100%;
        height: 24rem;
        background: #e5e7eb;
        border-radius: 0.5rem 0.5rem 0 0;
        animation: pulse 1.5s ease-in-out infinite;
    }

    .geo-cal .geo-cal-detail-skeleton .skeleton-body {
        background: #fff;
        padding: 2rem;
        border-radius: 0 0 0.5rem 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .geo-cal .geo-cal-detail-skeleton .skeleton-line {
        height: 1rem;
        background: #e5e7eb;
        border-radius: 0.25rem;
        margin-bottom: 0.75rem;
        animation: pulse 1.5s ease-in-out infinite;
    }

        .geo-cal .geo-cal-detail-skeleton .skeleton-line.wide {
            width: 80%;
        }

        .geo-cal .geo-cal-detail-skeleton .skeleton-line.medium {
            width: 60%;
        }

        .geo-cal .geo-cal-detail-skeleton .skeleton-line.narrow {
            width: 40%;
        }

        .geo-cal .geo-cal-detail-skeleton .skeleton-line.title {
            height: 1.5rem;
            width: 70%;
            margin-bottom: 1.5rem;
        }

@media (min-width: 640px) {
    .geo-cal .geo-cal-back-bar-inner,
    .geo-cal .geo-cal-detail-container,
    .geo-cal .geo-cal-detail-skeleton {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .geo-cal .geo-cal-back-bar-inner,
    .geo-cal .geo-cal-detail-container,
    .geo-cal .geo-cal-detail-skeleton {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
