/* 4Culture Salesforce Events - Public Styles */

/* Container */
.fcsfe-events-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Count */
.fcsfe-events-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Filters */
.fcsfe-filters-container {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.fcsfe-filters-container select {
    margin: 0;
}

.fcsfe-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.fcsfe-filter-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.fcsfe-filter-field select,
.fcsfe-filter-field input[type="text"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fcsfe-filter-actions {
    display: flex;
    gap: 10px;
}

/* Standalone / widget sidebar: minimal chrome, stacked actions */
.fcsfe-filters-container--sidebar {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.fcsfe-filters-container--sidebar .fcsfe-filter-actions {
    flex-direction: column;
    align-items: stretch;
}

.fcsfe-filters-container--sidebar .fcsfe-filter-actions .fcsfe-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.fcsfe-filter-clear-wrap--hidden {
    display: none !important;
}

/* Buttons */
.fcsfe-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #005962;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.fcsfe-btn:hover {
    background: #135e96;
    color: #fff;
}

.fcsfe-btn-register {
    background: #D3410B;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 1.75rem;
}

.fcsfe-btn-register:hover {
    background: #b3390a;
    color: #fff;
}

.fcsfe-btn-reset {
    background: #ddd;
    color: #333;
}

.fcsfe-btn-reset:hover {
    background: #ccc;
}

/* Event List Layout */
.fcsfe-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Month separator (list + grid directory) */
.fcsfe-events-month-heading {
    margin: 1.25rem 0 0.5rem;
    padding-bottom: 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #d3410b;
    border-bottom: 1px solid #ddd;
}

.fcsfe-events-month-heading:first-child {
    margin-top: 0;
}

/* Event Grid Layout */
.fcsfe-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.fcsfe-events-grid .fcsfe-events-month-heading {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
}

.fcsfe-events-grid .fcsfe-events-month-heading:first-child {
    margin-top: 0;
}

/* layout="upcoming": “Up next” date column + title link */
.fcsfe-events-upcoming {
    margin-top: 0.5rem;
}

.fcsfe-events-upcoming__heading {
    margin: 0 0 0.65rem 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d9481c;
}

.fcsfe-events-upcoming__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fcsfe-events-upcoming__item {
    display: flex;
    align-items: stretch;
    min-height: 2.75rem;
}

.fcsfe-events-upcoming__date {
    flex: 0 0 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #222;
    background: #f2e6a2;
    text-align: center;
}

.fcsfe-events-upcoming__body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    min-width: 0;
}

.fcsfe-events-upcoming__item:nth-child(odd) .fcsfe-events-upcoming__body {
    background: #fff;
}

.fcsfe-events-upcoming__item:nth-child(even) .fcsfe-events-upcoming__body {
    background: #ececec;
}

.fcsfe-events-upcoming__link {
    font-weight: 400;
    color: #2271b1;
    text-decoration: underline;
}

.fcsfe-events-upcoming__link:hover,
.fcsfe-events-upcoming__link:focus {
    color: #135e96;
}

.fcsfe-events-upcoming__link--text {
    text-decoration: none;
    color: #333;
    cursor: default;
}

/* Event Card */
.fcsfe-event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.fcsfe-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fcsfe-event-header {
    margin-bottom: 15px;
}

.fcsfe-event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.fcsfe-event-title a {
    color: #333;
    text-decoration: none;
}

.fcsfe-event-title a:hover {
    color: #2271b1;
}

.fcsfe-event-program {
    display: inline-block;
    padding: 4px 12px;
    background: #e0f2ff;
    color: #2271b1;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Event Meta */
.fcsfe-event-meta {
    margin-bottom: 15px;
}

.fcsfe-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.fcsfe-icon {
    margin-right: 8px;
}

.fcsfe-meta-value {
    color: #555;
}

.fcsfe-location-type {
    margin-left: 8px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
}

.fcsfe-location-virtual {
    background: #e0f2ff;
    color: #2271b1;
}

.fcsfe-location-in-person {
    background: #e8f5e9;
    color: #2ea833;
}

/* Event Excerpt */
.fcsfe-event-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

/* Event Actions */
.fcsfe-event-actions {
    display: flex;
    gap: 10px;
}

/* Single Event */
.fcsfe-event-single {

    margin: 0 auto;

    color: #333;
}

/* Header: title, meta lines, thin rule */
.fcsfe-single-header {
    margin-bottom: 28px;
    padding-bottom: 0;
    border-bottom: none;
}

.fcsfe-single-title {
    margin: 0 0 16px 0;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    color: #0f8f9a;
    line-height: 1.2;
}

.fcsfe-single-kicker {
    margin: 0 0 0.4rem 0;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #D3450D;
}

.fcsfe-single-header-meta {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.fcsfe-single-program,
.fcsfe-single-event-type {
    margin-top: 6px;
}

.fcsfe-single-program:first-child,
.fcsfe-single-header-meta > div:first-child {
    margin-top: 0;
}

.fcsfe-single-header-rule {
    margin: 18px 0 0 0;
    border: none;
    border-top: 1px solid #c3c4c7;
}

/* Two-column body: main (about) | aside (card + map) */
.fcsfe-single-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2.5rem 2rem;
    align-items: start;
}

.fcsfe-single-main {
    min-width: 0;
}

.fcsfe-single-aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fcsfe-single-sidebar-card {
    background: #f5f5f3;
    padding: 1.25rem 1.35rem;
    border-radius: 2px;
}

.fcsfe-sidebar-section {
    margin: 0 0 1.15rem 0;
}

.fcsfe-sidebar-section:last-child {
    margin-bottom: 0;
}

.fcsfe-sidebar-section--location {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dcdcde;
}

.fcsfe-sidebar-section-title {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #D3410B;
}

.fcsfe-sidebar-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1d2327;
    margin-bottom: 0.35rem;
}

.fcsfe-sidebar-value {
    font-size: 1rem;
    color: #333;
    line-height: 1.45;
}

.fcsfe-sidebar-value--line {
    margin-top: 0.2rem;
    font-size: 1.5rem;
    line-height: 1.08;
    color: #63666a;
    letter-spacing: 0.01em;
}

.fcsfe-sidebar-location-type {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #63666a;
}

.fcsfe-sidebar-location-link {
    display: block;
    font-size: 1rem;
    color: #2271b1;
    text-decoration: underline;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.fcsfe-sidebar-location-link:hover,
.fcsfe-sidebar-location-link:focus {
    color: #135e96;
}

.fcsfe-sidebar-location-address {
    margin-top: 0.35rem;
}

.fcsfe-sidebar-location-text {
    display: block;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.fcsfe-single-program-audience {
    font-weight: 400;
}

.fcsfe-sidebar-translations {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dcdcde;
}

.fcsfe-sidebar-translations-list {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
    color: #333;
    line-height: 1.45;
    list-style: disc;
}

.fcsfe-sidebar-translations-list li {
    margin-bottom: 0.2rem;
}

.fcsfe-sidebar-translations-list li:last-child {
    margin-bottom: 0;
}

/* Add to Calendar — outlined control */
.fcsfe-add-to-calendar {
    margin-top: 0.25rem;
}

.fcsfe-add-to-calendar--sidebar {
    margin: 0.5rem 0 0.25rem;
    padding: 0;
}

.fcsfe-add-to-calendar--sidebar add-to-calendar-button {
    --btn-background: #fff;
    --btn-border: #c3c4c7;
    --btn-text: #1d2327;
}

.fcsfe-sidebar-action {
    margin: 0.5rem 0 0.25rem;
}

.fcsfe-sidebar-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    box-sizing: border-box;
    padding: 0.62rem 0.9rem;
    min-height: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #D3410B;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background 0.15s ease, color 0.15s ease;
}

.fcsfe-sidebar-register-btn:hover,
.fcsfe-sidebar-register-btn:focus {
    background: #b3390a;
    color: #fff;
    outline: none;
}

.fcsfe-sidebar-register-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #D3410B;
}

.fcsfe-sidebar-register-btn--link {
    text-align: center;
}

/* Registration modal */
.fcsfe-register-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.fcsfe-register-modal.is-open {
    display: flex;
}

.fcsfe-register-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.fcsfe-register-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: min(92vh, 920px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.fcsfe-register-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #dcdcde;
    flex-shrink: 0;
}

.fcsfe-register-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d2327;
}

.fcsfe-register-modal__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #50575e;
    background: transparent;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.fcsfe-register-modal__close:hover,
.fcsfe-register-modal__close:focus {
    color: #1d2327;
    background: #f0f0f1;
}

.fcsfe-register-modal__iframe-wrap {
    flex: 1;
    min-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.fcsfe-register-modal__iframe-wrap .fcsfe-register-iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
    vertical-align: top;
}

.fcsfe-registration-section--main {
    margin-bottom: 2rem;
}

/* About section (main column) */
.fcsfe-single-description {
    margin-bottom: 2rem;
}

.fcsfe-single-about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1d2327;
}

.fcsfe-single-description-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.fcsfe-single-description-body p {
    margin: 0 0 1em 0;
}

.fcsfe-single-description-body p:last-child {
    margin-bottom: 0;
}

.fcsfe-single-description-body a {
    color: #c45c22;
    text-decoration: underline;
}

.fcsfe-single-description-body a:hover {
    color: #a34a1b;
}

/* Map below sidebar, full aside width */
.fcsfe-single-map-stack {
    width: 100%;
}

.fcsfe-map-embed-wrapper.fcsfe-map-aside {
    position: relative;
    margin-top: 0;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    background: #ddd;
}

.fcsfe-map-aside .fcsfe-map-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
}

.fcsfe-map-open-external {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d2327;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fcsfe-map-open-external:hover,
.fcsfe-map-open-external:focus {
    background: #f6f7f7;
    color: #135e96;
}

.fcsfe-map-open-icon {
    font-size: 0.9em;
    line-height: 1;
}

@media (max-width: 782px) {
    .fcsfe-single-body {
        grid-template-columns: 1fr;
    }

    .fcsfe-single-aside {
        order: -1;
    }

    .fcsfe-sidebar-section-title {
        font-size: 1.6rem;
    }

    .fcsfe-sidebar-value--line {
        font-size: 1.4rem;
    }
}

.fcsfe-location-link {
    color: inherit;
    text-decoration: none;
}

.fcsfe-location-link:hover {
    text-decoration: underline;
}

.fcsfe-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    margin-left: 10px;
}

.fcsfe-badge-virtual {
    background: #e0f2ff;
    color: #2271b1;
}

.fcsfe-registration-section {
    margin-bottom: 30px;
}

.fcsfe-registration-section .fcsfe-registration-deadline {
    margin-bottom: 0.75rem;
}

.fcsfe-register-toggle-block {
    margin-top: 0.5rem;
}

.fcsfe-register-toggle {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0;
    border: none;
    background: #D3410B;
    color: #fff;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fcsfe-register-toggle:hover {
    background: #b3390a;
    color: #fff;
}

.fcsfe-register-toggle.is-open {
    background: #fff;
    color: #D3410B;
    border: 2px solid #D3410B;
}

.fcsfe-register-toggle.is-open:hover {
    background: #fff;
    color: #b3390a;
    border-color: #b3390a;
}

.fcsfe-btn-register-plain {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0;
    border: none;
    background: #D3410B;
    color: #fff;
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fcsfe-btn-register-plain:hover {
    background: #b3390a;
    color: #fff;
}

.fcsfe-register-iframe-wrapper.fcsfe-register-iframe-hidden {
    display: none;
}

.fcsfe-drop-in-box {
    background: #fff9e6;
    border: 2px solid #f0b429;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 30px;
    text-align: center;
}

.fcsfe-registration-success--main {
    background: #ecf7ed;
    border: 2px solid #46b450;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    margin-bottom: 1.75rem;
}

.fcsfe-registration-success__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d2327;
}

.fcsfe-registration-success__message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #1d2327;
}

.fcsfe-registration-success__message p {
    margin: 0 0 0.5rem;
}

.fcsfe-deferred-reg-msg {
    white-space: pre-wrap;
}

.fcsfe-event-single.fcsfe-reg-flow-complete-js .fcsfe-registration-section--main {
    display: none;
}

.fcsfe-sidebar-registration-done {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d2327;
}

.fcsfe-register-iframe-wrapper {
    width: 100%;
    min-height: 400px;
    margin-top: 1rem;
}

.fcsfe-register-iframe {
    border: 0;
    width: 100%;
}

/* Load More */
.fcsfe-load-more {
    text-align: center;
    margin-top: 30px;
}

.fcsfe-load-more-btn {
    padding: 12px 30px;
    font-size: 16px;
}

/* No Results */
.fcsfe-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Loading State */
.fcsfe-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Map (single event) */
.fcsfe-map-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}
.fcsfe-map-link:hover {
    text-decoration: underline;
}
.fcsfe-map-embed-wrapper {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}
.fcsfe-map-embed {
    display: block;
    max-width: 100%;
    min-height: 250px;
}

/* EventType catalog: full-width type header, then 3-column grid of events per type */
.fcsfe-events-type-catalog {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.fcsfe-type-section__header {
    width: 100%;
    margin-bottom: 1.25rem;
}

.fcsfe-type-section__title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.fcsfe-type-section__title.smallhead {
    color: #0f766e;
}

.fcsfe-type-section__desc {
    margin: 0;
    max-width: none;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.fcsfe-type-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 2rem;
    align-items: start;
    width: 100%;
}

.fcsfe-type-section__empty {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.875rem;
    color: #777;
}

.fcsfe-event-cell {
    text-align: left;
    line-height: 1.4;
    background: #F7F6F4;
    padding: 1em;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.fcsfe-event-cell:hover {
    transform: translateY(-2px);
}

.fcsfe-event-cell__date,
.fcsfe-event-cell__audience {
    font-weight: 700;
}

.fcsfe-event-cell__program {
    margin-top: 0.2rem;
    font-weight: 600;
    font-size: 0.95em;
    color: #005962;
}

.fcsfe-event-cell__location-type-online {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.fcsfe-event-cell__location-name,
.fcsfe-event-cell__location-address,
.fcsfe-event-cell__time {
    font-weight: 400;
    color: #333;
}

.fcsfe-event-cell__location-name {
    margin-top: 0.2rem;
}

.fcsfe-event-cell__time {
    margin-top: 0.15rem;
}

.fcsfe-event-cell__date .fcsfe-event-cell__time {
    margin-top: 0;
}

.fcsfe-event-cell__actions {

}

.fcsfe-event-cell__details {
    font-weight: 700;
    color: #005962;
    text-decoration: underline;
}

.fcsfe-event-cell__details:hover,
.fcsfe-event-cell__details:focus {
    color: #135e96;
}

@media (max-width: 900px) {
    .fcsfe-type-section__grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fcsfe-filter-row {
        grid-template-columns: 1fr;
    }
    
    .fcsfe-events-grid {
        grid-template-columns: 1fr;
    }

    .fcsfe-events-upcoming__date {
        flex-basis: 3.25rem;
        font-size: 0.875rem;
    }
    
    .fcsfe-event-actions {
        flex-direction: column;
    }
    
    .fcsfe-btn {
        text-align: center;
    }
    
    .fcsfe-map-embed {
        min-height: 200px;
    }
}
