.ecca-calendar {
  --ecca-date-color: #b45309;
  --ecca-title-color: #1f2937;
  --ecca-description-color: #374151;
  --ecca-border-color: #e7c4b0;
  --ecca-surface: #ffffff;
  --ecca-surface-soft: #faf6f3;
  --ecca-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff8f4 100%);
}

.ecca-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: end;
}

.ecca-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ecca-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
}

.ecca-field input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.58rem 0.65rem;
  font-size: 0.92rem;
}

.ecca-search-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  background: #ea580c;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.ecca-search-btn:hover {
  background: #c2410c;
}

.ecca-results {
  min-height: 130px;
}

.ecca-event-card {
  padding: 0.88rem 0.15rem;
  border-top: 1px solid var(--ecca-border-color);
  cursor: pointer;
  outline: none;
}

.ecca-event-card:first-child {
  border-top: 0;
}

.ecca-event-card:hover,
.ecca-event-card:focus {
  background: var(--ecca-surface-soft);
}

.ecca-event-date,
.ecca-event-time {
  color: var(--ecca-date-color);
}

.ecca-event-date {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ecca-event-time {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.ecca-event-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--ecca-title-color);
}

.ecca-event-description,
.ecca-event-address {
  color: var(--ecca-description-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ecca-event-address {
  margin-top: 0.35rem;
  white-space: normal;
}

.ecca-empty,
.ecca-loading {
  color: #6b7280;
  font-size: 0.94rem;
  margin: 0.7rem 0;
}

.ecca-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
}

.ecca-modal.is-open {
  display: grid;
}

.ecca-modal[hidden] {
  display: none !important;
}

.ecca-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ecca-modal-dialog {
  position: relative;
  width: min(700px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 14px;
  background: var(--ecca-surface);
  box-shadow: var(--ecca-shadow);
  padding: 1.1rem 1.2rem;
}

.ecca-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 0;
  background: #e5e7eb;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 30px;
  text-align: center;
}

.ecca-modal-title {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: var(--ecca-title-color);
}

.ecca-modal-date,
.ecca-modal-address,
.ecca-modal-description {
  color: var(--ecca-description-color);
}

.ecca-modal-open {
  overflow: hidden;
}

@media (max-width: 840px) {
  .ecca-filters {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 540px) {
  .ecca-filters {
    grid-template-columns: 1fr;
  }

  .ecca-event-title {
    font-size: 1.05rem;
  }
}
