/* FilterPanel Component Styles */

.wedding-filter-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-search-box {
  position: relative;
  flex: 1;
}

.filter-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.filter-search-input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.6rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.filter-search-input:focus {
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.filter-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.filter-search-clear:hover {
  color: #0f172a;
}

.btn-mobile-filter-drawer-toggle {
  display: none;
  background: #fdf2f8;
  border: 1.5px solid #fbcfe8;
  color: #db2777;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.mobile-filter-count-badge {
  background: #db2777;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
}

.filter-control-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.filter-select {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  background-color: #f8fafc;
  cursor: pointer;
}

.filter-select:focus {
  border-color: #db2777;
}

.filter-toggle-btn {
  background: #ffffff;
  border: 1.5px solid #fbcfe8;
  color: #db2777;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  background: #fdf2f8;
}

.filter-toggle-btn.active {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.3);
}

/* ===================================================================
   MOBILE DRAWER STYLES
==================================================================== */
.mobile-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
}

.mobile-filter-drawer-dialog {
  background: #ffffff;
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUpDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #0f2b5c;
}

.btn-close-mobile-drawer {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.mobile-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.mobile-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-drawer-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .btn-mobile-filter-drawer-toggle {
    display: inline-flex;
  }
  .desktop-only-controls {
    display: none !important;
  }
}
