/* ============================================
   Events Page — Gateway Bible Church
   Calendar list + grid views, category filters.
   ============================================ */

/* Hero background position */
@media (min-width: 768px) {
  .page-hero--photo {
    background-position: center 40%;
  }
}


/* ============================================
   FILTER PILLS — horizontal scrollable
   ============================================ */

.ev-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.ev-filter-pill {
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  color: var(--gray-blue);
  background: var(--white);
  border: 1.5px solid var(--dark-blue-10);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out),
              background-color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
}

.ev-filter-pill:hover {
  color: var(--bright-blue);
  border-color: var(--bright-blue);
}

.ev-filter-pill.is-active {
  color: var(--white);
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}


/* ============================================
   TOOLBAR — results count + view toggle
   ============================================ */

.ev-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--dark-blue-10);
}

.ev-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ev-results {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
}

.ev-view-toggle {
  display: flex;
  gap: 2px;
  background: var(--dark-blue-10);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.ev-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--gray-blue);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.ev-view-btn:hover { color: var(--dark-blue); }

.ev-view-btn.is-active {
  background: var(--white);
  color: var(--dark-blue);
  box-shadow: 0 1px 3px rgba(13, 32, 56, 0.08);
}

/* Tooltip on hover */
.ev-view-btn {
  position: relative;
}

.ev-view-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  background: var(--dark-blue);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out),
              transform 0.15s var(--ease-out);
}

.ev-view-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--dark-blue);
}

.ev-view-btn:hover .ev-view-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.4s;
}


/* ============================================
   LIST VIEW — grouped by day
   ============================================ */

.ev-container--list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.ev-day-group {
  margin-bottom: var(--space-2);
}

.ev-day-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  position: sticky;
  top: 64px;
  background: var(--white);
  z-index: 5;
  border-bottom: 1px solid var(--dark-blue-10);
}

.ev-day-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
}

.ev-day-date {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
}

.ev-day-today {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  background: var(--bright-blue);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Event row — desktop: thumb | content (header stacked above body) */
.ev-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  transition: background-color 0.15s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.ev-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.ev-body {
  min-width: 0;
}

.ev-row:hover {
  background: rgba(0, 156, 255, 0.03);
}

/* List view thumbnail — wide rectangle showing the actual photo aspect */
.ev-thumb {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark-blue-10);
}

.ev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .ev-thumb {
    width: 160px;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 900px) {
  .ev-thumb {
    width: 200px;
  }
}

.ev-time {
  flex-shrink: 0;
  width: 80px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  padding-top: 2px;
}

@media (min-width: 640px) {
  .ev-time { width: 100px; }
}

.ev-info {
  flex: 1;
  min-width: 0;
}

.ev-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ev-time-inline {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  margin-left: 4px;
  white-space: nowrap;
}

.ev-desc-preview {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue-70);
  line-height: 1.5;
  margin-top: 6px;
}

.ev-meta {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.ev-meta-sep {
  color: var(--dark-blue-10);
}

.ev-recurrence {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-blue);
  background: rgba(80, 109, 124, 0.08);
  border: 1px solid rgba(80, 109, 124, 0.12);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.ev-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ev-cat-pill {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Category colors — brand palette only */
/* Bright Blue family: Worship, All Church */
.ev-cat-pill--worship { background: rgba(0, 156, 255, 0.1); color: #0080d4; }
/* Dark Blue + Bright Blue tint: All Church */
.ev-cat-pill--allchurch { background: rgba(0, 156, 255, 0.08); color: var(--bright-blue); }
/* Gold family: Youth */
.ev-cat-pill--youth { background: rgba(216, 170, 25, 0.12); color: #a07c0e; }
/* Gold warm: Kids */
.ev-cat-pill--kids { background: rgba(216, 170, 25, 0.18); color: #8a6b08; }
/* Tan family: Groups */
.ev-cat-pill--groups { background: rgba(189, 193, 126, 0.22); color: #6a6e2e; }
/* Tan muted: Outreach */
.ev-cat-pill--outreach { background: rgba(189, 193, 126, 0.15); color: #7a7e3a; }
/* Dark Blue: Men */
.ev-cat-pill--men { background: rgba(13, 32, 56, 0.08); color: var(--dark-blue); }
/* Cream-rose: Women (cream base with warm dark-blue text) */
.ev-cat-pill--women { background: rgba(216, 170, 25, 0.08); color: #8a6b08; border: 1px solid rgba(216, 170, 25, 0.15); }
/* Gray Blue: Seniors */
.ev-cat-pill--seniors { background: rgba(80, 109, 124, 0.1); color: var(--gray-blue); }
/* Gray Blue lighter: Adults */
.ev-cat-pill--adults { background: rgba(80, 109, 124, 0.08); color: #3d5560; }
/* Bright Blue soft: Care */
.ev-cat-pill--care { background: rgba(0, 156, 255, 0.06); color: #0080d4; border: 1px solid rgba(0, 156, 255, 0.12); }
/* Featured: solid bright blue */
.ev-cat-pill--featured { background: var(--bright-blue); color: var(--white); }
/* General: neutral dark blue tint */
.ev-cat-pill--general { background: var(--dark-blue-10); color: var(--gray-blue); }

/* Clickable row wrapper */
.ev-row-wrap {
  border-bottom: 1px solid var(--dark-blue-10);
  transition: background-color 0.15s var(--ease-out);
}

.ev-row-wrap:last-child {
  border-bottom: none;
}

.ev-row-wrap.is-expanded {
  background: rgba(0, 156, 255, 0.02);
  border-color: rgba(0, 156, 255, 0.12);
}

.ev-row {
  cursor: pointer;
}

.ev-row-chevron {
  flex-shrink: 0;
  color: var(--gray-blue);
  opacity: 0.4;
  transition: transform 0.25s var(--ease-spring),
              opacity 0.15s;
}

.ev-row:hover .ev-row-chevron {
  opacity: 0.8;
}

.ev-row-wrap.is-expanded .ev-row-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
  color: var(--bright-blue);
}

/* Remove old border from .ev-row since wrapper handles it */
.ev-row {
  border-bottom: none;
}

/* Expanded detail panel */
.ev-expanded {
  padding: var(--space-4) var(--space-5) var(--space-5);
  padding-left: calc(80px + var(--space-4) + var(--space-3));
  border-top: 1px solid var(--dark-blue-10);
  animation: evExpandFade 0.25s var(--ease-out);
}

@media (min-width: 640px) {
  .ev-expanded {
    padding-left: calc(100px + var(--space-4) + var(--space-3));
  }
}

@keyframes evExpandFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ev-expanded-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 639px) {
  .ev-expanded {
    padding-left: var(--space-4);
  }
}

.ev-expanded-details {
  flex: 1;
  min-width: 0;
}

.ev-expanded-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.ev-expanded-meta-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ev-expanded-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
}

.ev-expanded-meta-item svg {
  flex-shrink: 0;
  color: var(--bright-blue);
  opacity: 0.6;
}

.ev-expanded-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.ev-church-center-btn,
.ev-register-btn {
  white-space: nowrap;
}

.ev-action-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Action buttons (Add to Calendar, Share) */
.ev-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-blue);
  background: var(--white);
  border: 1.5px solid var(--dark-blue-10);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out),
              background-color 0.15s var(--ease-out);
}

.ev-action-btn:hover {
  color: var(--bright-blue);
  border-color: var(--bright-blue);
}

/* Dropdown container */
.ev-dropdown {
  position: relative;
}

.ev-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--dark-blue-10);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 16px rgba(13, 32, 56, 0.1),
    0 1px 4px rgba(13, 32, 56, 0.06);
  padding: var(--space-1);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.15s var(--ease-out),
              transform 0.15s var(--ease-out);
}

.ev-dropdown.is-open .ev-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ev-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--dark-blue);
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.1s;
}

.ev-dropdown-item:hover {
  background: rgba(0, 156, 255, 0.06);
  color: var(--bright-blue);
}

/* Map link */
.ev-map-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--bright-blue);
  text-decoration: none;
  margin-left: var(--space-2);
  padding: 1px 6px;
  border: 1px solid rgba(0, 156, 255, 0.25);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s, color 0.15s;
}

.ev-map-link:hover {
  background: var(--bright-blue);
  color: var(--white);
  border-color: var(--bright-blue);
}

/* Grid card clickable + expanded */
.ev-card {
  cursor: pointer;
}

.ev-card-header {
  display: flex;
  flex-direction: column;
}

.ev-card.is-expanded {
  border-color: var(--bright-blue);
  box-shadow:
    0 4px 16px rgba(0, 156, 255, 0.08),
    0 0 0 1px rgba(0, 156, 255, 0.15);
  transform: none;
}

.ev-card .ev-expanded {
  padding-left: var(--space-4);
  border-top: 1px solid var(--dark-blue-10);
}

/* Mobile: thumb + header on row 1, body spans full width on row 2 */
@media (max-width: 639px) {
  .ev-row {
    gap: var(--space-3);
    row-gap: var(--space-3);
  }

  /* Unwrap content so header and body become direct grid children */
  .ev-content {
    display: contents;
  }

  .ev-header {
    /* Sits in row 1 col 2 (next to thumb) */
  }

  .ev-body {
    grid-column: 1 / -1;  /* span both columns on row 2 */
  }

  .ev-cats {
    width: 100%;
    padding-left: 0;
  }
}


/* ============================================
   GRID VIEW — card layout
   ============================================ */

.ev-container--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .ev-container--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ev-container--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ev-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dark-blue-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s var(--ease-spring),
              box-shadow 0.25s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.ev-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 16px rgba(13, 32, 56, 0.08),
    0 0 0 1px rgba(0, 156, 255, 0.08);
}

/* Card image banner */
.ev-card-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--dark-blue-10);
}

.ev-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.ev-card:hover .ev-card-image img {
  transform: scale(1.04);
}

.ev-card-date-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--dark-blue);
  color: var(--white);
}

.ev-card-day {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-black);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ev-card-month-year {
  display: flex;
  flex-direction: column;
}

.ev-card-month {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.ev-card-weekday {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  opacity: 0.6;
}

.ev-card-time {
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
}

.ev-card-body {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ev-card-name {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  letter-spacing: -0.01em;
}

.ev-card-location {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ev-card-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.5;
}

.ev-card-footer {
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ev-card-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}


/* ============================================
   MONTH VIEW — calendar grid
   ============================================ */

.ev-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.ev-month-label {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  letter-spacing: -0.02em;
  min-width: 200px;
  text-align: center;
}

.ev-month-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--dark-blue-10);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--dark-blue);
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out),
              color 0.15s var(--ease-out);
}

.ev-month-btn:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  color: var(--white);
}

.ev-month-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.ev-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--dark-blue-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-blue-10);
  gap: 1px;
}

.ev-cal-dow {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-70);
  background: var(--dark-blue);
  text-align: center;
  padding: var(--space-2) var(--space-1);
}

.ev-cal-day {
  min-height: 90px;
  min-width: 0;
  background: var(--white);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: background-color 0.15s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.ev-cal-day--empty {
  background: rgba(244, 248, 233, 0.35);
  cursor: default;
}

.ev-cal-day--has-events {
  cursor: pointer;
}

.ev-cal-day--has-events:hover {
  background: rgba(0, 156, 255, 0.03);
}

.ev-cal-day--selected {
  background: rgba(0, 156, 255, 0.05);
  box-shadow: inset 0 0 0 2px var(--bright-blue);
}

.ev-cal-day--today .ev-cal-num {
  background: var(--bright-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-cal-num {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.ev-cal-day--empty .ev-cal-num {
  color: var(--dark-blue-20);
}

.ev-cal-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ev-cal-dot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark-blue);
}

.ev-cal-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Dot colors by category — brand palette */
.ev-cal-dot--worship::before { background: var(--bright-blue); }
.ev-cal-dot--allchurch::before { background: rgba(0, 156, 255, 0.5); }
.ev-cal-dot--youth::before { background: var(--gold); }
.ev-cal-dot--kids::before { background: #c49a12; }
.ev-cal-dot--groups::before { background: var(--tan); }
.ev-cal-dot--outreach::before { background: #9a9e58; }
.ev-cal-dot--women::before { background: #d4a617; }
.ev-cal-dot--men::before { background: var(--dark-blue); }
.ev-cal-dot--adults::before { background: var(--gray-blue); }
.ev-cal-dot--seniors::before { background: #7a95a3; }
.ev-cal-dot--care::before { background: #66b8f0; }
.ev-cal-dot--general::before { background: var(--dark-blue-20); }

.ev-cal-more {
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  color: var(--bright-blue);
  padding: 1px 4px;
  letter-spacing: 0.01em;
}

/* Day detail modal overlay */
.ev-cal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: evOverlayIn 0.2s var(--ease-out);
}

@keyframes evOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ev-cal-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(13, 32, 56, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ev-cal-detail {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(13, 32, 56, 0.12),
    0 2px 8px rgba(13, 32, 56, 0.08);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: evModalSlideUp 0.25s var(--ease-spring);
}

@keyframes evModalSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.ev-cal-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--dark-blue-10);
  position: sticky;
  top: 0;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}

.ev-cal-detail-day {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
}

.ev-cal-detail-count {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
}

.ev-cal-detail-close {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dark-blue-10);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-blue);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.ev-cal-detail-close:hover {
  background: var(--dark-blue);
  color: var(--white);
  border-color: var(--dark-blue);
}

.ev-cal-detail-body {
  padding: 0 var(--space-2);
}

@media (max-width: 639px) {
  .ev-cal-overlay {
    padding: var(--space-3);
    align-items: flex-end;
  }

  .ev-cal-detail {
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .ev-cal-day {
    min-height: 56px;
    padding: 2px;
  }

  .ev-cal-num {
    font-size: var(--text-xs);
  }

  .ev-cal-dot {
    font-size: 0;
    padding: 0;
    justify-content: center;
    height: 8px;
  }

  .ev-cal-dot::before {
    width: 4px;
    height: 4px;
  }

  .ev-cal-more {
    font-size: 8px;
  }

  .ev-month-label {
    font-size: var(--text-base);
    min-width: 160px;
  }

  .ev-cal-dow {
    font-size: 9px;
    padding: var(--space-1);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .ev-cal-day {
    min-height: 72px;
  }

  .ev-cal-dot {
    font-size: 9px;
  }
}


/* ============================================
   PAGINATION
   ============================================ */

.ev-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.ev-pagination--bottom {
  padding: var(--space-8) 0 0;
}

.ev-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  background: var(--white);
  border: 1.5px solid var(--dark-blue-10);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out),
              color 0.15s var(--ease-out);
}

.ev-page-btn:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.ev-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.ev-page-info {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
  min-width: 80px;
  text-align: center;
}


/* ============================================
   EMPTY STATE
   ============================================ */

.ev-empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.ev-empty-text {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  margin-bottom: var(--space-2);
}

.ev-empty-sub {
  font-size: var(--text-sm);
  color: var(--gray-blue);
}


/* ============================================
   CLOSING CTA
   ============================================ */

.ev-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ev-closing-headline {
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: var(--font-weight-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.ev-closing-sub {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-book);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.ev-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
