﻿.quarry-filter-panel {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 34, 2, 0.1), transparent 32%),
    #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 1.42fr);
  margin: 0 0 1.8rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
}

.quarry-filter-panel__intro {
  min-width: 0;
}

.quarry-filter-panel__eyebrow {
  color: #111827;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.45rem;
}

.quarry-filter-panel__text {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  max-width: 25rem;
}

.quarry-select-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quarry-select {
  display: block;
  min-width: 0;
}

.quarry-select__control {
  display: block;
  position: relative;
}

.quarry-select__control::after {
  border-bottom: 3px solid currentColor;
  border-right: 3px solid currentColor;
  color: #ffffff;
  content: "";
  height: 0.62rem;
  pointer-events: none;
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 0.62rem;
  z-index: 1;
}

.quarry-select select {
  appearance: none;
  background: linear-gradient(135deg, #6b1000 0%, #bf2202 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  color-scheme: dark;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  min-height: 2.7rem;
  padding: 0.55rem 2.6rem 0.55rem 0.9rem;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.quarry-select select option {
  background: #1a0800;
  color: #ffffff;
}

.quarry-select select:hover {
  filter: brightness(1.12);
}

.quarry-select select:focus {
  box-shadow: 0 0 0 3px rgba(220, 45, 12, 0.35);
  filter: brightness(1.1);
  outline: 0;
}

[data-bs-theme="dark"] .quarry-filter-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 45, 12, 0.18), transparent 34%),
    #171b23;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .quarry-filter-panel__eyebrow {
  color: #f3f4f6;
}

[data-bs-theme="dark"] .quarry-filter-panel__text {
  color: #aeb7c4;
}

[data-bs-theme="dark"] .quarry-select select {
  background: linear-gradient(135deg, #5a0d00 0%, #b52000 100%);
  border: none;
  color-scheme: dark;
}

[data-bs-theme="dark"] .quarry-select select option {
  background: #1a0800;
  color: #ffffff;
}

[data-bs-theme="dark"] .quarry-select select:hover {
  filter: brightness(1.15);
}

[data-bs-theme="dark"] .quarry-select select:focus {
  box-shadow: 0 0 0 3px rgba(220, 45, 12, 0.3);
  filter: brightness(1.12);
}

@media (max-width: 767.98px) {
  .quarry-filter-panel {
    grid-template-columns: 1fr;
  }

  .quarry-select-grid {
    grid-template-columns: 1fr;
  }
}
