@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;600&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&family=DM+Mono:wght@400;500&display=swap");
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  background-color: #f5f0e6;
  color: #3d2e1e;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  background-image: radial-gradient(circle, #d9cdb8 1px, transparent 1px);
  background-size: 24px 24px;
}

a {
  color: #cc4e0a;
  text-decoration: none;
}
a:hover {
  color: #e8652a;
  text-decoration: underline;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #cc4e0a 0%, #cc4e0a 30%, #d9cdb8 30%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.rva-navbar {
  background: #1c1208;
  border-bottom: 3px solid #cc4e0a;
  padding: 0;
}
.rva-navbar .navbar-brand {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f0e6 !important;
  padding: 14px 0;
}
.rva-navbar .navbar-brand .brand-accent {
  background: #cc4e0a;
  color: #1c1208;
  padding: 2px 10px;
  margin-right: 6px;
}
.rva-navbar .navbar-sub {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #b8a990;
  margin-top: 2px;
  line-height: 1;
}

.search-strip {
  background: #ede5d4;
  border-bottom: 1px solid #d9cdb8;
  padding: 14px 0;
}
.search-strip .search-wrap {
  position: relative;
}
.search-strip .search-wrap .material-symbols-outlined.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #b8a990;
  pointer-events: none;
}
.search-strip .form-control.search-input {
  background: #f5f0e6;
  border: 2px solid #3d2e1e;
  border-radius: 0;
  color: #3d2e1e;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  padding: 10px 14px 10px 42px;
  width: 100%;
}
.search-strip .form-control.search-input::placeholder {
  color: #b8a990;
}
.search-strip .form-control.search-input:focus {
  outline: none;
  box-shadow: none;
  border-color: #cc4e0a;
  background: #f5f0e6;
  color: #3d2e1e;
}
.search-strip .event-counter {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: #b8a990;
  letter-spacing: 0.1em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.search-strip .event-counter .counter-num {
  font-size: 1.3rem;
  font-weight: 500;
  color: #cc4e0a;
  margin-right: 4px;
}

.filter-strip {
  background: #f5f0e6;
  border-bottom: 2px solid #3d2e1e;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 0 #d9cdb8;
}
.filter-strip .filter-scroll {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-strip .filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid #d9cdb8;
  border-radius: 0;
  background: transparent;
  color: #b8a990;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.filter-btn .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.filter-btn:hover {
  border-color: #3d2e1e;
  color: #3d2e1e;
}
.filter-btn.active {
  background: #1c1208;
  border-color: #1c1208;
  color: #f5f0e6;
}
.filter-btn.active[data-filter=all] {
  background: #cc4e0a;
  border-color: #cc4e0a;
  color: #f5f0e6;
}

.pipeline-banner {
  background: #ede5d4;
  border-bottom: 1px solid #d9cdb8;
  padding: 8px 16px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: #b8a990;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipeline-banner .material-symbols-outlined {
  font-size: 16px;
  color: #cc4e0a;
  flex-shrink: 0;
}
.pipeline-banner .removed-count {
  color: #cc4e0a;
  font-weight: 500;
}

.events-main {
  padding: 36px 0 72px;
}

.date-group {
  margin-bottom: 48px;
}

.date-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.date-header .date-label {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3d2e1e;
  white-space: nowrap;
}
.date-header .date-rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, #d9cdb8 0px, #d9cdb8 6px, transparent 6px, transparent 12px);
}
.date-header .date-dow {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #f5f0e6;
  background: #cc4e0a;
  padding: 3px 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.event-card {
  background: #ede5d4;
  border: 1px solid #d9cdb8;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cat-color, #d9cdb8);
  z-index: 2;
}
.event-card:hover {
  border-color: #3d2e1e;
  box-shadow: 3px 3px 0 #d9cdb8;
  transform: translate(-1px, -1px);
}
.event-card:hover .card-img img {
  transform: scale(1.03);
}
.event-card .card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--cat-color, #d9cdb8);
}
.event-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.event-card .card-img svg {
  width: 100%;
  height: 100%;
  display: block;
}
.event-card .card-img .img-date-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(28, 18, 8, 0.78);
  color: #f5f0e6;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.event-card .card-inner {
  padding: 16px 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.event-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.event-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.event-card .cat-tag {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid currentColor;
  padding: 1px 7px 1px 5px;
  opacity: 0.85;
  white-space: nowrap;
}
.event-card .cat-tag .material-symbols-outlined {
  font-size: 13px;
  font-variation-settings: "FILL" 0, "wght" 300;
}
.event-card .card-time {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: #cc4e0a;
  white-space: nowrap;
}
.event-card .card-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: #1c1208;
  line-height: 1.25;
  margin: 0;
}
.event-card .card-venue {
  font-size: 0.85rem;
  color: #b8a990;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
}
.event-card .card-venue:hover {
  color: #cc4e0a;
}
.event-card .card-venue .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: "FILL" 0, "wght" 300;
  flex-shrink: 0;
}
.event-card .card-desc {
  font-size: 0.88rem;
  color: #3d2e1e;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card .card-footer {
  border-top: 1px solid #d9cdb8;
  padding: 12px 20px 12px 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}
.event-card .card-source {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: #b8a990;
  letter-spacing: 0.08em;
}
.event-card .card-price {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: #b8a990;
  margin-left: auto;
}
.event-card .btn-details {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1c1208;
  border: 1px solid #3d2e1e;
  background: transparent;
  padding: 5px 16px;
  border-radius: 0;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  margin-left: auto;
}
.event-card .btn-details .material-symbols-outlined {
  font-size: 14px;
  transition: transform 0.15s;
}
.event-card .btn-details:hover {
  background: #cc4e0a;
  border-color: #cc4e0a;
  color: #f5f0e6;
  text-decoration: none;
}
.event-card .btn-details:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.empty-state {
  text-align: center;
  padding: 100px 20px;
  display: none;
}
.empty-state.visible {
  display: block;
}
.empty-state .empty-icon .material-symbols-outlined {
  font-size: 3.5rem;
  color: #d9cdb8;
}
.empty-state .empty-title {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8a990;
  margin-top: 16px;
}
.empty-state .empty-sub {
  font-size: 0.9rem;
  color: #b8a990;
  margin-top: 8px;
  font-family: "DM Mono", monospace;
}

.rva-footer {
  background: #1c1208;
  border-top: 3px solid #cc4e0a;
  padding: 22px 0;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: #b8a990;
  letter-spacing: 0.08em;
}
.rva-footer a {
  color: #b8a990;
}
.rva-footer a:hover {
  color: #cc4e0a;
}

@media (max-width: 575.98px) {
  html {
    font-size: 16px;
  }
  .search-strip .event-counter {
    display: none;
  }
  .filter-strip .filter-scroll {
    flex-wrap: nowrap;
  }
  .event-card .card-title {
    font-size: 1.05rem;
  }
}
.date-range-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.date-range-wrap .date-range-label {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: #b8a990;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-range-wrap .date-range-label .material-symbols-outlined {
  font-size: 16px;
  color: #cc4e0a;
}
.date-range-wrap .date-input {
  background: #f5f0e6;
  border: 2px solid #3d2e1e;
  border-radius: 0;
  color: #3d2e1e;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  padding: 7px 10px;
  width: 140px;
  cursor: pointer;
}
.date-range-wrap .date-input::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
  filter: invert(0.3);
}
.date-range-wrap .date-input:focus {
  outline: none;
  border-color: #cc4e0a;
  box-shadow: none;
}
.date-range-wrap .date-range-sep {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: #b8a990;
  flex-shrink: 0;
}
.date-range-wrap .date-clear-btn {
  background: transparent;
  border: 1px solid #d9cdb8;
  color: #b8a990;
  padding: 5px 7px;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.date-range-wrap .date-clear-btn .material-symbols-outlined {
  font-size: 16px;
}
.date-range-wrap .date-clear-btn:hover {
  border-color: #cc4e0a;
  color: #cc4e0a;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 12px;
  border-top: 2px solid #1c1208;
  margin-top: 8px;
}

.page-range {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: #b8a990;
  letter-spacing: 0.06em;
}

.page-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-btn {
  font-family: "DM Mono", monospace;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9cdb8;
  border-radius: 0;
  background: transparent;
  color: #3d2e1e;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.page-btn .material-symbols-outlined {
  font-size: 18px;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: #3d2e1e;
  background: #ede5d4;
}
.page-btn.active {
  background: #cc4e0a;
  border-color: #cc4e0a;
  color: #f5f0e6;
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.page-btn.page-prev, .page-btn.page-next {
  padding: 0 8px;
  min-width: 36px;
}

@media (max-width: 575.98px) {
  .date-range-wrap {
    flex-wrap: wrap;
  }
  .date-range-wrap .date-input {
    width: 130px;
  }
  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-btn {
    font-size: 0.68rem;
    padding: 0 8px;
    height: 32px;
  }
}
