/* frontend/event/event.blade.php — dipindah dari inline <style> (UI v2) */
/* =========================================================
   EVENT LISTING UI V2 — Fresh modern list page
   UI/CSS ONLY — semua logic, route, filter, query TETAP SAMA
   ========================================================= */
.event-page-section {
  background: #f5f7fb !important;
  padding-top: 32px !important;
  padding-bottom: 60px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  color: #0d1b2e;
}
.event-page-section * { box-sizing: border-box; }

.event-page-section .container-custom {
  max-width: 1200px;
}

/* ---------- Header halaman ---------- */
.events-modern-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.events-modern-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #1e5bd6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.events-modern-header h1 {
  margin: 0;
  color: #0d1b2e;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.events-modern-header p {
  margin: 8px 0 0;
  color: #4d5c74;
  font-size: 14px;
}
.events-modern-header .event-count-badge {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #e4e9f0;
  border-radius: 999px;
  background: #fff;
  color: #1e5bd6;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(13, 27, 46, .05);
}

/* ---------- SIDEBAR FILTER ---------- */
.event-page-section .filter-side { padding-bottom: 30px; }

.event-page-section .filter-side .sidebar {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 27, 46, .06);
}

.event-page-section .filter-side .sidebar > .widget-title {
  padding-bottom: 12px !important;
  margin: 0 0 12px;
  color: #0d1b2e;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #e4e9f0;
}

.event-page-section .filter-side .widget {
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f3f8;
}
.event-page-section .filter-side .widget:last-child {
  border-bottom: 0;
  padding-bottom: 0 !important;
}

/* Search input */
.event-page-section .filter-side .widget.widget-search form {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1.5px solid #e4e9f0;
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s;
}
.event-page-section .filter-side .widget.widget-search form:focus-within {
  border-color: #1e5bd6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 91, 214, .12);
}
.event-page-section .filter-side .widget.widget-search input {
  width: 100%;
  height: 42px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0d1b2e;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.event-page-section .filter-side .widget.widget-search input::placeholder {
  color: #b4bece;
  font-weight: 500;
}
.event-page-section .filter-side .event-search-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e5bd6;
  font-size: 14px;
  cursor: pointer;
  transition: color .2s;
}
.event-page-section .filter-side .event-search-button:hover {
  color: #0f3a8f;
}

/* Widget title kecil */
.event-page-section .filter-side .widget-cagegory .widget-title,
.event-page-section .filter-side .widget-location .widget-title {
  margin: 0 0 10px;
  color: #0d1b2e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Select */
.event-page-section .filter-side .widget-select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid #e4e9f0;
  border-radius: 10px;
  background: #fbfcfe;
  color: #0d1b2e;
  outline: 0;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.event-page-section .filter-side .widget-select:focus {
  border-color: #1e5bd6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 91, 214, .12);
}

/* Radio custom */
.event-page-section .filter-side .custom-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 0;
}
.event-page-section .filter-side .custom-control-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: .2s;
  flex-shrink: 0;
}
.event-page-section .filter-side .custom-control-input:checked {
  border-color: #1e5bd6;
  background: #1e5bd6;
}
.event-page-section .filter-side .custom-control-input:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.event-page-section .filter-side .custom-control-label {
  color: #4d5c74;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  user-select: none;
}
.event-page-section .filter-side .custom-control-input:checked ~ .custom-control-label {
  color: #1e5bd6;
  font-weight: 700;
}

/* ---------- EVENT GRID ---------- */
.event-page-content > .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.event-page-content > .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0 !important;
}

/* Card */
.event-page-content .event-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 27, 46, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.event-page-content .event-item:hover {
  transform: translateY(-4px);
  border-color: #cfe0f7;
  box-shadow: 0 14px 32px rgba(13, 27, 46, .12);
}

/* Gambar */
.event-page-content .event-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #eef3f8;
}
.event-page-content .event-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.event-page-content .event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.event-page-content .event-item:hover .event-image img {
  transform: scale(1.05);
}

/* Content */
.event-page-content .event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.event-page-content .event-content h6 {
  min-height: 44px;
  margin: 0 0 12px;
  line-height: 1.4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0d1b2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-page-content .event-content h6 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.event-page-content .event-content h6 a:hover {
  color: #1e5bd6;
}

/* Location row */
.event-page-content .location {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  margin: 0 0 4px;
  color: #4d5c74;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.event-page-content .location i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 0 !important;
  border-radius: 7px;
  background: #eef4ff;
  color: #1e5bd6;
  font-size: 11px;
}

/* Price */
.event-page-content .price-remain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e4e9f0;
}
.event-page-content .price-remain > span,
.event-page-content .price-remain .price {
  color: #1e5bd6;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.event-page-content .price-remain .price strong {
  color: #1e5bd6;
  font-weight: 800;
}
.event-page-content .price-remain del {
  margin-left: 5px;
  color: #8894a8;
  font-size: 12px;
  font-weight: 500;
}

/* Empty state */
.event-page-content > .row > .col-lg-12 h3 {
  margin: 35px 0;
  padding: 50px 20px;
  border: 1.5px dashed #dce6ef;
  border-radius: 16px;
  background: #fff;
  color: #4d5c74;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Pagination */
.event-page-content > .pagination {
  margin-top: 30px;
  margin-bottom: 0;
}
.event-page-content .pagination li a,
.event-page-content .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 3px;
  padding: 0 12px;
  border: 1.5px solid #e4e9f0;
  border-radius: 10px;
  background: #fff;
  color: #4d5c74;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}
.event-page-content .pagination li a:hover {
  border-color: #1e5bd6;
  color: #1e5bd6;
  background: #eef4ff;
}
.event-page-content .pagination li.active span,
.event-page-content .pagination li.active a {
  border-color: #1e5bd6;
  background: #1e5bd6;
  color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .event-page-section { padding-top: 24px !important; }
  .event-page-section .filter-side .sidebar { position: static; }
  .events-modern-header { margin-bottom: 22px; }
  .events-modern-header h1 { font-size: 26px; }
  .event-page-content > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .events-modern-header { display: block; }
  .events-modern-header h1 { font-size: 23px; }
  .events-modern-header .event-count-badge { display: inline-flex; margin-top: 14px; }
  .event-page-content > .row { grid-template-columns: 1fr; gap: 16px; }
  .event-page-content .event-image { height: 200px; }
}
@media (max-width: 575.98px) {
  .event-page-section .filter-side .sidebar { padding: 18px; border-radius: 14px; }
  .event-page-content .event-image { height: 190px; }
}
