/* ================================================================
   BRAGA AGENDA - stylesheet
   v0.35.0
   ================================================================ */

/* Theme variables */
:root {
    --header-bg: #000;
    --header-fg: #fff;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-footer { margin-top: auto; }

h1, h2, h3, h4, h5, h6,
.event-title,
.event-detail-title,
.event-detail-related-title,
.static-page-title,
.static-page-content h2,
.static-page-content h3 {
    font-family: "Space Grotesk", sans-serif;
}

a { color: inherit; }

/* Site header  */
.site-header {
    padding: 0 1.5rem 0 1.5rem;
    margin-bottom:1em;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-fg);
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.page-intro-inner h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 0.8;
    padding-bottom: 0;
    color: var(--header-fg);
    margin-bottom: -5px;
    margin-top:-4px;
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-intro-inner h1 span.small {
    font-weight: 100;
    color: var(--header-fg);
    opacity:0.75;
}


.page-intro-inner h1 a {
    text-decoration:none;
    display:block;
}

.page-intro-inner p {
    font-size: 0.9rem;
    color: #666;
    max-width: 480px;
}

.subscribe-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--header-fg);
    text-decoration: none;
    border: 1px solid var(--header-fg);
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    align-self: center;
    margin-bottom: 0.5rem;
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.subscribe-link:hover { background: var(--header-fg); color: var(--header-bg); }
.subscribe-link .bi { vertical-align: -0.1em; margin-right: 3px; }
.subscribe-link--admin { opacity: 0.65; font-size: 0.8rem; padding: 3px 8px; }
.subscribe-link--admin:hover { opacity: 1; }

/* Header nav  */
.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom:5px;
}
.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
    flex-shrink: 0;
}
.nav-group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.nav-group .subscribe-link {
    margin-bottom: 0;
    width: auto;
}

/* Hamburger button  */
.header-burger {
    display: none;
    background: none;
    border: 1px solid var(--header-fg);
    color: var(--header-fg);
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    transition: background-color 1.2s cubic-bezier(0.4,0,0.2,1),
                color 1.2s cubic-bezier(0.4,0,0.2,1),
                border-color 1.2s cubic-bezier(0.4,0,0.2,1);
}
.header-burger:hover { background: var(--header-fg); color: var(--header-bg); }

/* Language switcher  */
.lang-switcher {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}
.lang-btn {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    color: var(--header-fg);
    text-decoration: none;
    border:1px solid;
    border-color: var(--header-fg);
    opacity: 0.55;
    transition: opacity 0.15s, border-color 0.15s,
                background-color 1.2s cubic-bezier(0.4,0,0.2,1),
                color 1.2s cubic-bezier(0.4,0,0.2,1);
    margin-left: 1px;
}
.lang-btn:hover { opacity: 1; border-color: var(--header-fg); background-color: var(--header-fg); color: var(--header-bg);  }
.lang-btn--active { opacity: 1; border-color: var(--header-fg); background-color: var(--header-fg); color: var(--header-bg); }


.footer-admin-link {
    font-size: 0.75rem;
    color: #aaa;
    text-decoration: none;
}
.footer-admin-link:hover { color: #555; }

/* Page layout: sidebar + main  */
.page-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: calc(100vh - 120px);
}

/* Sidebar  */
.sidebar {
    border-right: 1px solid #e5e5e5;
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Interval tabs */
.sidebar-greeting {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 1rem;
    margin-top: 0;
}
.sidebar-prefs-intro {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.sidebar-prefs-intro a {
  background-color:var(--header-bg);
  border: 1px solid var(--header-fg);
  padding: 2px 4px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--header-fg);
}

.sidebar-prefs-intro a:hover {
  border: 1px solid var(--header-fg);
  color:var(--header-fg);
  background-color:#fff;
  padding: 2px 4px;
  margin-bottom: 10px;
  text-decoration: none;
}

.interval-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 35px;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 3px;
}
.interval-select { display: none; }

.interval-tab {
    flex: 1;
    text-align: center;
    padding: 0.25rem 0.4rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #777;
    transition: all 0.15s;
    white-space: nowrap;
}
.interval-tab.active { background: var(--header-bg); color: var(--header-fg); transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.interval-tab:hover:not(.active) { color: #000; }

/* Quick date tabs */
.quick-date-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 3px;
}
.quick-date-tab {
    flex: 1;
    text-align: center;
    padding: 0.25rem 0.4rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #777;
    transition: all 0.15s;
    white-space: nowrap;
}
.quick-date-tab.active { background: var(--header-bg); color: var(--header-fg); }
.quick-date-tab:hover:not(.active) { color: #000; }
.quick-date-tabs.hidden { display: none; }

/* Range date picker */
.range-picker {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e5e5;
}

.range-date-input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.range-date-input:focus { border-color: #000; }

.range-picker-sep { font-size: 0.75rem; color: #999; flex-shrink: 0; }

.range-picker-btn {
    padding: 0.35rem 0.65rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.range-picker-btn:hover { opacity: 0.75; }

/* Month nav inside sidebar */
.sidebar-month-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e5e5;
}

/* When a range picker follows, drop the nav's own bottom border */
.sidebar-month-nav--has-range {
    border-bottom: none;
    padding-bottom: 0.4rem;
    margin-bottom: 0;
}

.month-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid #000;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    color: #000;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.month-nav-btn:hover { background: #000; color: #fff; }

.current-month-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.7px;
}

/* Sidebar search */
.sidebar-form { margin-bottom: 0; width: 100%; }

.search-section { margin-bottom: 0.5rem; }


.search-input-wrap { position: relative; width: 100%; }

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.search-input:focus { border-color: #000; }

/* Sidebar filters */
.sidebar-filters {
    margin-top: 0.5rem;
}

/* Filters heading — accordion toggle, visible on all devices */
.filters-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    border-top: 1px solid #e5e5e5;
    font-family: inherit;
    color: #000;
}
.filters-heading i { transition: transform 0.2s; font-size: 0.75rem; }
.filters-heading.open i { transform: rotate(180deg); }
.sidebar-filters-body.collapsed { display: none; }
.mobile-filters-toggle { display: none; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0 0.75rem;
    align-items: center;
    overflow-x: hidden;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.active-filter-tag:hover { background: #333; color: #fff; }
.active-filter-tag .bi-x { opacity: 0.7; font-size: 0.8rem; }

.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.76rem;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}
.btn-clear-all:hover { color: #000; }

/* Filter sections */
.filter-section {
    border-top: 1px solid #e5e5e5;
    padding: 0.15rem 0;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: #000;
    margin:1rem 0 1rem 0;
}
.filter-section-header i { transition: transform 0.2s; font-size: 0.75rem; }
.filter-section-header.open i { transform: rotate(180deg); }

.filter-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
}
.filter-chips-wrap.collapsed { display: none; }

.filter-chip {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    color: #333;
    transition: all 0.12s;
    white-space: nowrap;
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-chip:hover { border-color: #000; color: #000; }
.filter-chip.selected { background: #000; color: #fff; border-color: #000; }

/* Main content  */
.main-content {
    padding: 1.5rem 2rem 4rem;
    min-width: 0; /* prevent overflow in grid */
}

/* Top bar */
.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.results-count {
    font-size: 0.8rem;
    color: #888;
}

.view-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}

.view-btn {
    padding: 0.25rem 0.9rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #777;
    transition: all 0.15s;
}
.view-btn.active  { background: var(--header-bg); color: var(--header-fg); transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.view-btn:hover:not(.active) { color: #000; }

/* Events grid  */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
}

/* Events list  */
.events-list { }

/* Shared event card  */
.event-item {
    padding-bottom: 1.75rem;
}
.events-list .event-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    padding-top: 1.75rem;
}
.events-list .event-item:first-child { padding-top: 0; }
.events-list .event-item:last-child  { border-bottom: none; }

.event-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.75rem;
    background: #f0f0f0;
}

.event-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.event-detail-related-grid .event-image-link { height: auto; }

/* List view: wider aspect ratio */
.events-list .event-image-wrap { aspect-ratio: 16 / 9; }

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.event-image-link:hover .event-img { transform: scale(1.04); }

.event-img--placeholder {
    object-fit: contain;
    padding: 1rem;
    background: #f0f0ee;
}

/* Category chip on image */
.category-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    white-space: nowrap;
    color: #000;
    text-decoration: none;
}

.category-chip--secondary {
    top: 36px;
}

.featured-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--header-bg);
    color: var(--header-fg);
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    white-space: nowrap;
}
.event-item--featured .event-image-wrap { outline: 2px solid #000; outline-offset: -2px; }

/* Admin-only quick-edit chip (bottom-right of card image) */
.admin-edit-chip {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.72);
    color: #fff;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(2px);
}
.admin-edit-chip:hover { background: #000; color: #fff; }

/* Inline chip (no image) */
.category-chip--inline {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: #555;
}

.event-title {
    font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 8px;
  color: #000;

}


/* List view: larger title */
.events-list .event-title { font-size: 1.05rem; }

.event-title a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
    text-underline-offset: 2px;
}
.event-title a:hover { text-decoration: none; }

.event-meta-date,
.event-meta-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;

    font-size: 14px;
  line-height: 20px;
  color: #333;

}
.event-meta-date i,
.event-meta-location i { font-size: 14px;
  line-height: 20px;
  color: #333; flex-shrink: 0; }

.event-meta-location a {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.event-meta-location a:hover { color: #000; }

/* No events  */
.no-events {
    text-align: center;
    padding: 5rem 0;
    color: #888;
}
.no-events p { font-size: 1rem; margin-bottom: 1rem; }
.no-events a { color: #000; text-decoration: underline; }

/* Pagination  */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    padding: 2.5rem 0 0;
}

.page-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.4rem;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    color: #000;
    transition: border-color 0.12s;
}
.page-link-item:hover:not(.active):not(.disabled) { border-color: #ccc; }
.page-link-item.active  { background: #000; color: #fff; border-color: #000; }
.page-link-item.disabled { color: #bbb; pointer-events: none; }

/* Single event page  */
.event-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Breadcrumb */
.event-detail-breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.event-detail-breadcrumb a {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.event-detail-breadcrumb a:hover { color: #000; }
.breadcrumb-sep { color: #ccc; }

/* Hero */
.event-detail-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e5e5;
}

.event-detail-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.event-detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.event-detail-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
}

.event-detail-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
}

.event-detail-venue {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 0.45rem 1rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s;
}
.event-detail-venue:hover { background: #e8e8e8; }
.event-detail-venue a { color: inherit; text-decoration: none; }
.event-detail-venue i { font-size: 0.95rem; }

.event-detail-hero-image {
    position: sticky;
    top: 1.5rem;
}

.event-detail-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

/* Body: description + meta sidebar */
.event-detail-body-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    margin-bottom: 4rem;
}

.event-detail-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
}

.event-detail-description p   { margin-bottom: 1em; }
.event-detail-description ul,
.event-detail-description ol  { margin: 0 0 1em 1.5em; }
.event-detail-description a   { color: #000; text-underline-offset: 2px; }
.event-detail-no-desc         { color: #aaa; font-style: italic; }

/* Meta sidebar */
.event-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.event-meta-row {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}
.event-meta-row:last-child { border-bottom: none; }

.event-meta-row dt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    margin-bottom: 0.25rem;
}
.event-meta-row dt i { font-size: 0.75rem; }

.event-meta-row dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.event-meta-row dd a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.event-meta-row dd a:hover { text-decoration: none; }

/* Related events */
.event-detail-related {
    border-top: 2px solid #000;
    padding-top: 2rem;
}

.event-detail-related-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
}

.event-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Subscribe page */
.subscribe-page {
    max-width: 560px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.subscribe-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.subscribe-intro--no-prefs {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 2rem;
    text-align:center;
    font-weight: 400;
    margin-top:2rem;
}

.subscribe-intro--no-prefs-link {
    display: block;
font-weight: 700;
font-size:2rem;
}

.subscribe-notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
    font-size: 0.9rem;
}
.subscribe-notice--ok  { border-color: #000; background: #f5f5f5; }
.subscribe-notice--err { border-color: #c00; background: #fff0f0; color: #c00; }

.subscribe-form { display: flex; flex-direction: column; gap: 1.5rem; }

.sform-group { display: flex; flex-direction: column; gap: 0.5rem; }
.sform-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.sform-label--inline { margin-bottom: 0; }
.sform-hint  { font-weight: 400; text-transform: none; letter-spacing: 0; color: #888; }

.sform-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
}

.sform-toggle-all {
    font-size: .8rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sform-toggle-all:hover { color: #000; }

.sform-input {
    border: 1px solid #000;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    font-family: inherit;
}
.sform-input:focus { outline: 2px solid #000; outline-offset: 1px; }

.sform-radios  { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.sform-checkboxes { display: flex; flex-direction: column; gap: 0; }
.sform-checkbox-label--selectall { margin-bottom: 0.5rem; }
.sform-cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.4rem 1rem; margin-left: 0.1rem; }
.sform-cat-list--disabled { opacity: 0.35; pointer-events: none; }

.sform-radio-label,
.sform-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.sform-submit {
    align-self: flex-start;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.sform-submit:hover { background: #333; }

.sform-submit--cancel {
    background: #fff;
    color: #c00;
    border: 1px solid #c00;
}
.sform-submit--cancel:hover { background: #c00; color: #fff; }

.sform-submit--outline {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}
.sform-submit--outline:hover { background: #000; color: #fff; }

.sform-submit--danger {
    background: #c00;
    border-color: #c00;
}
.sform-submit--danger:hover { background: #900; }

.sform-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Newsletter subscription cards */
.nl-subscription-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.nl-subscription-header {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.nl-freq-badge {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #000;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
}
.nl-status {
    font-size: .8rem;
}
.nl-status--ok      { color: #2a7a2a; }
.nl-status--pending { color: #a06000; }

/* Subscribe + BMC side-by-side layout */
.subscribe-page--with-bmc { max-width: 900px; }
.subscribe-page--wide     { max-width: 720px; }

.account-hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.sform-date-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
}
.sform-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.sform-input--time { width: 110px; }
.sform-input textarea { resize: vertical; }

.subscribe-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.subscribe-form-col { flex: 1; min-width: 0; }

.bmc-col {
    flex-shrink: 0;
    width: 220px;
}

.bmc-card {
    background: var(--header-bg);
    color: var(--header-fg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: sticky;
    top: 2rem;
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmc-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.bmc-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.bmc-text {
    font-size: 0.80rem;
    font-weight:700;
    color: var(--header-fg);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmc-btn {
    display: block;
    background: var(--header-fg);
    color: var(--header-bg);
    text-decoration: none;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: opacity 0.15s, background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bmc-btn:hover { opacity: 0.85; color: var(--header-bg); }

/* Divulgação card */
.divulgacao-card {
    background: var(--header-fg);
    color: var(--header-bg);
    border: 1px solid var(--header-bg);
    border-top: 3px solid var(--header-bg);
    padding: 1.25rem;
    margin-top: 1rem;
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.divulgacao-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--header-bg);
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.divulgacao-body {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--header-bg);
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.divulgacao-body h1,
.divulgacao-body h2,
.divulgacao-body h3,
.divulgacao-body h4,
.divulgacao-body h5,
.divulgacao-body h6 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.75rem 0 0.3rem;
}

.divulgacao-body h1:first-child,
.divulgacao-body h2:first-child,
.divulgacao-body h3:first-child { margin-top: 0; }

.divulgacao-body hr {
    border: none;
    border-top: 1px solid var(--header-bg);
    margin: 0.75rem 0;
    opacity: 0.25;
    transition: border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.divulgacao-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin: 0.5rem 0;
}

.divulgacao-body table td,
.divulgacao-body table th {
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--header-bg);
    vertical-align: top;
    transition: border-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.divulgacao-body table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

/* Responsive header  */

@media (min-width: 1240px) {
    .page-intro-inner h1 {
        font-size: clamp(2.5rem, 11vw, 7rem);                                                                                                                                                     
        margin-bottom: -7px;                                                                                                                                                                        
                                   
    }
    
}


@media (min-width: 1140px)  and (max-width: 1239px) {
  .page-intro-inner h1 {
    font-size: clamp(2.5rem, 9vw, 6rem);
    margin-bottom: -7px;
  }
}

@media (min-width: 1025px)  and (max-width: 1139px) {
    .page-intro-inner h1 {
        font-size: clamp(2.5rem, 8vw, 5rem);                                                                                                                                                     
        margin-bottom: -5px;                                                                                                                                                                        
                                   
    }
}

@media (max-width: 1024px) {
    .page-intro-inner h1 {
        letter-spacing: -1.5px;
        margin-bottom: -7px;
    }

    .header-burger {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--header-bg);
        border-bottom: 1px solid var(--header-fg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        transition: background-color 1.2s cubic-bezier(0.4,0,0.2,1),
                    border-color 1.2s cubic-bezier(0.4,0,0.2,1);
    }

    .header-nav--open {
        display: flex;
    }

    .header-nav .subscribe-link {
        width: 100%;
        margin-bottom: 0.4rem;
        text-align: left;
    }

    .header-nav .lang-switcher {
        margin-top: 0.4rem;
    }

    .nav-stack {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    .nav-group {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }
    .nav-group .subscribe-link {
        width: 100%;
        margin-bottom: 0.4rem;
        text-align: left;
    }

    .site-header {
        position: relative;
    }
}

@media (max-width: 680px) {
    .subscribe-layout { flex-direction: column; }
    .bmc-col { width: 100%; }
    .bmc-card { position: static; }
}

/* Footer */
.site-footer {
    background-color: var(--header-bg);
    border-top: 1px solid #e5e5e5;
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    margin-top:50px;
    transition: background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer p { font-size: 0.78rem; color: var(--header-fg); opacity: 0.6; transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.site-footer-nav { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.site-footer-nav a { font-size: 0.78rem; color: var(--header-fg); opacity: 0.6; text-decoration: none; transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.site-footer-nav a:hover { opacity: 1; }
.site-footer-social { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.site-footer-social a { font-size: 1.55rem; color: var(--header-fg); text-decoration: none; transition: opacity 0.18s; }
.site-footer-social a:hover { opacity: 0.5; }

/* Footer CTA  */
.footer-cta {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}
.footer-cta-label {
    font-size: 1.5rem !important;
    color: var(--header-fg);
    opacity: 1!important;
    font-weight:500!important;
    margin: 0 0 0.9rem;
    letter-spacing: 0.02em;
    transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform:uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--header-bg);
    background: var(--header-fg);
    border: 2px solid var(--header-fg);
    padding: 0.6em 1.4em;
    transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
}
.footer-cta-btn:hover {
    background: transparent;
    color: var(--header-fg);
}
.footer-cta-btn--pending {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Static pages (Sobre, Contactos, Privacidade, Termos)  */
.static-page-wrap {
    max-width: 680px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
}

.static-page-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 2.5rem;
    color: #000;
}

.static-page-content {
    line-height: 1.8;
    color: #222;
    font-size: 1rem;
}
.static-page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2.5rem 0 .75rem;
    color: #000;
    letter-spacing: -0.3px;
}
.static-page-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.75rem 0 .5rem;
    color: #000;
}
.static-page-content p { margin-bottom: 1.1rem; }
.static-page-content ul,
.static-page-content ol { margin: 0 0 1.1rem 1.5rem; }
.static-page-content li { margin-bottom: .35rem; }
.static-page-content a { color: #000; font-weight: 600; text-decoration: underline; }
.static-page-content a:hover { opacity: .65; }
.static-page-content hr { border: none; border-top: 1px solid #e5e5e5; margin: 2rem 0; }

.static-page-empty { color: #999; font-size: .95rem; }

/* Banners */
.banner-zone {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.banner-zone--sidebar {
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.banner-zone--bottom { margin-top: 1.5rem; margin-bottom: 0; }
.banner-link { display: block; line-height: 0; }
.banner-img  { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Back to top  */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--header-bg);
    color: var(--header-fg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, background-color 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--header-fg); color: var(--header-bg); }

/* Account page  */
.account-delete-summary { cursor: pointer; font-size: .9rem; color: #c00; font-weight: 600; }
.account-danger-title   { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: #c00; }

/* Utilities  */
.is-hidden { display: none !important; }

/* Responsive  */

/* Tablet: 2-col grid, narrower sidebar */
@media (max-width: 1100px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: stack sidebar above content */
@media (max-width: 760px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: none;
        border-bottom: 2px solid #000;
        padding: 1rem;
    }

    .interval-tabs { display: none; }

    .interval-select {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.4rem 0.75rem;
        border-radius: 100px;
        border: none;
        background: #f0f0f0;
        font-size: 0.9rem;
        font-weight: 700;
        font-family: inherit;
        color: #000;
        cursor: pointer;
        appearance: auto;
    }

    .sidebar-month-nav {
        justify-content: center;
    }

    /* Active filter tags: allow wrapping on narrow screens */
    .active-filter-tag {
        white-space: normal;
        max-width: calc(100% - 1rem);
    }

    .main-content { padding: 1rem; }

    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .page-intro-inner h1 { 
          font-size: clamp(2.5rem, 8vw, 5rem);                 
        letter-spacing: -2px; 
        margin-top:0; 
        margin-bottom:0; 
        line-height:normal; }
}

@media (max-width: 480px) {
    .site-header {
    padding: 0 0.5rem 0 0.5rem;
    }

    .events-grid { grid-template-columns: 1fr; }

     .page-intro-inner h1 { 
        font-size: clamp(2.35rem, 8vw, 6rem);                 
        letter-spacing: -2px; 
        margin-top:0; 
        margin-bottom:0; 
        line-height:normal; 
    }

    .page-intro-inner h1 span.small {
        font-weight: 100;
        color: var(--header-fg);
        opacity:0.75;
    }

}

@media (max-width: 360px) {


     .page-intro-inner h1 { 
          font-size: clamp(2.31rem, 8vw, 5rem);                 
        letter-spacing: -2px; 
        margin-top:0; 
        margin-bottom:0; 
        line-height:normal; 
    }
}


/* Single event — tablet */
@media (max-width: 900px) {
    .event-detail-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .event-detail-hero-image { position: static; }
    .event-detail-title      { font-size: 2rem; }
    .event-detail-body-wrap  { grid-template-columns: 1fr; gap: 2rem; }
    .event-detail-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Single event — mobile */
@media (max-width: 480px) {
    .event-detail-page  { padding: 1rem 1rem 3rem; }
    .event-detail-title { font-size: 1.6rem; letter-spacing: -0.5px; }
    .event-detail-related-grid { grid-template-columns: 1fr; }
}

/* ── Calendar export ─────────────────────────────────────────────────────── */

/* Sidebar export link */
.btn-export-cal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: #ccc;
    text-decoration: none;
    letter-spacing: 0.01em;
    border:1px solid #ccc;
}

.btn-export-cal:hover { color: #000; }

.btn-export-cal--google { border-color: #4285f4; color: #4285f4; }
.btn-export-cal--google:hover { background: #4285f4; color: #fff; }

/* Per-event calendar dropdown */
.cal-menu {
    position: relative;
    margin-top: 0.6rem;
}
.cal-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
    user-select: none;
    transition: color 0.15s, border-color 0.15s;
}
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu summary::marker              { display: none; }
.cal-menu summary:hover                { color: #000; border-color: #aaa; }

.cal-menu-options {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
}
.cal-menu-options a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}
.cal-menu-options a:hover { background: #f5f5f5; }

/* ── OAuth social login buttons ──────────────────────────────────────────── */
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}
.oauth-btn:hover { background: #f5f5f5; border-color: #ccc; color: #111; }
.oauth-btn--apple {
    background: #000;
    color: #fff;
    border-color: #000;
}
.oauth-btn--apple:hover { background: #222; border-color: #222; color: #fff; }

/* ── Venue page ──────────────────────────────────────────────────────────── */
.venue-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Hero: image left, text right */
.venue-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.venue-hero-image {
    position: sticky;
    top: 1.5rem;
}

.venue-hero-image img {
    width: auto;
    height: auto;
    max-height: 200px;
    display: block;
}

/* When no image: hero is just the text */
.venue-hero:not(:has(.venue-hero-image)) {
    grid-template-columns: 1fr;
}

.venue-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.25rem;
}

.venue-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.venue-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}
.venue-address i { font-size: 1.1rem; flex-shrink: 0; }

.venue-website {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.venue-website:hover { color: #000; }
.venue-website i { font-size: 0.95rem; }

/* Social handles */
.venue-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.venue-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1rem;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
}
.venue-social-link:hover { color: #000; border-color: #aaa; }

/* Description */
.venue-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e5e5;
    max-width: 720px;
}

/* Events section */
.venue-events {
    margin-top: 0;
}

.venue-events-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.venue-no-events {
    color: #aaa;
    font-style: italic;
    padding: 2rem 0;
}

/* Responsive — tablet */
@media (max-width: 900px) {
    .venue-hero {
        grid-template-columns: 260px 1fr;
        gap: 2rem;
    }
    .venue-hero-image { position: static; }
    .venue-title { font-size: 2rem; }
}

/* Responsive — mobile */
@media (max-width: 600px) {
    .venue-page { padding: 1rem 1rem 3rem; }
    .venue-hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .venue-hero-image img { max-height: 200px; }
    .venue-title { font-size: 1.7rem; letter-spacing: -0.5px; }
}

/* ── Favorites ────────────────────────────────────────────────────────────── */

/* Heart button on event cards */
.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    color: #555;
    transition: background .15s, color .15s, transform .12s;
    z-index: 3;
    padding: 0;
}
.fav-btn:hover { background: #fff; color: #e63946; transform: scale(1.15); }
.fav-btn--active { color: #e63946; }
.fav-btn--active:hover { color: #c1121f; }

/* Inline variant for event detail page */
.fav-btn--inline {
    position: static;
    width: auto;
    height: auto;
    border-radius: 100px;
    padding: .45rem 1rem;
    gap: .4rem;
    font-size: .9rem;
    background: #f0f0f0;
    color: #333;
    display: inline-flex;
    border: none;
}
.fav-btn--inline:hover { background: #fff0f1; color: #e63946; transform: none; }
.fav-btn--inline.fav-btn--active { background: #fff0f1; color: #e63946; }
.fav-btn--inline.fav-btn--active .fav-btn-label::before { content: 'Guardado'; }
.fav-btn--inline:not(.fav-btn--active) .fav-btn-label::before { content: 'Guardar'; }
.fav-btn-label { display: inline; }
.fav-btn-label::before { content: 'Guardar'; }

.event-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }

/* Count badge in nav */
.fav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e63946;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    margin-left: 2px;
    vertical-align: middle;
    line-height: 1;
}

/* Favorites page */
.fav-page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.fav-page-header { margin-bottom: 2rem; }
.fav-page-title { font-size: 1.6rem; font-weight: 700; margin: 0; }
.fav-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; gap: .75rem; }
.fav-spinner {
    display: inline-block;
    width: 2rem; height: 2rem;
    border: 3px solid #ddd;
    border-top-color: #888;
    border-radius: 50%;
    animation: fav-spin .7s linear infinite;
}
@keyframes fav-spin { to { transform: rotate(360deg); } }
.fav-state--empty i { font-size: 3rem; opacity: .25; }
.fav-state--empty p { color: #888; font-size: 1rem; text-align: center; margin: 0; }
.fav-explore-link { margin-top: .25rem; font-size: .9rem; color: #555; text-decoration: underline; }
.fav-explore-link:hover { color: #000; }

@media (max-width: 600px) {
    .fav-page { padding: 1.25rem 1rem 3rem; }
    .fav-btn--inline { margin-top: .5rem; }
}
