/* ========================================
   Plugin: Predicazioni - Mauro Adragna
   Stile indipendente dal tema
   ======================================== */

.map-archive { max-width: 1000px; margin: 0 auto; }

/* Filters */
.map-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.5rem; align-items: center;
}
.map-search-box { flex: 1; min-width: 250px; position: relative; }
.map-search-box input {
  width: 100%; padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid #ddd; border-radius: 100px;
  font-size: 0.9rem; background: #fff; color: #333;
  transition: all 0.3s ease; outline: none;
  font-family: inherit;
}
.map-search-box input:focus { border-color: #8b7355; box-shadow: 0 0 0 3px rgba(139,115,85,0.1); }
.map-search-box svg {
  position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: #999; pointer-events: none;
}

.map-theme-select {
  padding: 0.5rem 2rem 0.5rem 0.875rem; border: 1px solid #ddd;
  border-radius: 100px; font-size: 0.8rem; color: #666;
  background: #fff; cursor: pointer; outline: none; font-family: inherit;
}

/* Year tabs */
.map-year-tabs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.5rem; }
.map-year-tab {
  padding: 0.375rem 0.75rem; border-radius: 6px; border: 1px solid #ddd;
  background: #fff; color: #666; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}
.map-year-tab:hover { border-color: #8b7355; color: #8b7355; }
.map-year-tab.active { background: #2c3e50; color: #fff; border-color: #2c3e50; }
.map-year-tab small { opacity: 0.7; font-size: 0.7rem; margin-left: 2px; }

/* Results */
.map-results-count { font-size: 0.85rem; color: #999; margin-bottom: 1rem; }
.map-loading { text-align: center; padding: 3rem; color: #999; }

/* Sermon list */
.map-sermon-list { display: flex; flex-direction: column; gap: 0.5rem; }
.map-sermon-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1.25rem; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 8px;
  transition: all 0.3s ease;
}
.map-sermon-item:hover { border-color: #8b7355; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.map-sermon-num {
  font-size: 1rem; font-weight: 600; color: #bbb;
  min-width: 2.5rem; text-align: center;
}
.map-sermon-info { flex: 1; min-width: 0; }
.map-sermon-title {
  font-size: 0.95rem; font-weight: 500; color: #2c3e50;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-sermon-meta { display: flex; gap: 0.75rem; margin-top: 0.2rem; }
.map-sermon-meta span {
  font-size: 0.75rem; color: #999;
  display: flex; align-items: center; gap: 0.25rem;
}

.map-sermon-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.map-sermon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #ddd; background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s ease; color: #999;
  text-decoration: none !important;
}
.map-sermon-btn:hover { background: #2c3e50; color: #fff; border-color: #2c3e50; }
.map-sermon-btn.map-video:hover { background: #c0392b; border-color: #c0392b; }
.map-sermon-btn svg { width: 16px; height: 16px; }

/* Pagination */
.map-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.map-page-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid #ddd;
  background: #fff; color: #666; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.map-page-btn:hover { border-color: #8b7355; }
.map-page-btn.active { background: #2c3e50; color: #fff; border-color: #2c3e50; }

/* Responsive */
@media (max-width: 640px) {
  .map-filters { flex-direction: column; }
  .map-search-box { min-width: 100%; }
  .map-sermon-item { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem; }
  .map-sermon-num { min-width: auto; }
  .map-sermon-title { white-space: normal; }
}
