/* Tee Maps – map page styles (mobile first) */

:root {
  --navy: #1f2d3a;
  --navy-2: #2c3e50;
  --sage: #88a2aa;
  --green: #1f9d63;
  --green-soft: #e7f5ee;
  --amber: #f2b33d;
  --gray-pin: #b6bfc8;
  --text: #17212b;
  --muted: #66758a;
  --line: #e4e9ee;
  --surface: #ffffff;
  --surface-2: #f3f6f8;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.1);
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.22);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #eef2f1;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(31, 157, 99, 0.45);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* ---------- Map ---------- */

#map {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #eef2f1;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 6px 0 0 0;
  margin-bottom: var(--safe-bottom) !important;
}

/* Course pins */
.tm-pin-wrap {
  background: none;
  border: 0;
}

.tm-pin {
  position: relative;
  width: 32px;
  height: 42px;
  transform-origin: 50% 100%;
  transition: transform 0.18s var(--ease);
  filter: drop-shadow(0 3px 4px rgba(16, 24, 40, 0.28));
}

.tm-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tm-pin path {
  fill: var(--pin, var(--green));
  stroke: #fff;
  stroke-width: 2;
}

.tm-pin-count {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.tm-pin--high { --pin: var(--green); }
.tm-pin--mid { --pin: var(--amber); }
.tm-pin--none { --pin: var(--gray-pin); }
.tm-pin--none .tm-pin-count { color: var(--muted); }

.tm-pin.is-selected {
  transform: scale(1.25);
}

@media (hover: hover) {
  .tm-pin:hover {
    transform: scale(1.1);
  }
  .tm-pin.is-selected:hover {
    transform: scale(1.25);
  }
}

.tm-me {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2f80ed;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.25), var(--shadow-sm);
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(var(--safe-top) + 10px) 12px 0;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px;
  padding-left: 10px;
  border-radius: 18px;
  background: rgba(31, 45, 58, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 38px;
  width: 30px;
  object-fit: cover;
  object-position: left center;
}

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  margin-left: 14px;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  font-size: 16px; /* 16px stops iOS from zooming on focus */
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#searchInput::placeholder {
  color: #8a97a8;
}

#searchInput::-webkit-search-cancel-button {
  display: none;
}

#searchInput:focus {
  box-shadow: 0 0 0 3px rgba(136, 162, 170, 0.55);
}

.search-clear {
  position: absolute;
  right: 64px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(60dvh, 420px);
  overflow-y: auto;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.search-results li[aria-selected="true"],
.search-results li:active {
  background: var(--surface-2);
}

@media (hover: hover) {
  .search-results li:hover {
    background: var(--surface-2);
  }
}

.result-count {
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--tone, var(--green));
}

.result-text {
  min-width: 0;
}

.tone-high { --tone: var(--green); }
.tone-mid { --tone: var(--amber); color: var(--navy) !important; }
.tone-none { --tone: var(--gray-pin); }

.result-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-name mark {
  background: none;
  color: var(--green);
}

.result-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: default !important;
}

.icon-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Active filter pills */
.filter-summary {
  display: flex;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-summary::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.filter-pill i {
  color: var(--sage);
}

.filter-pill.clear-pill {
  background: var(--navy);
  color: #fff;
}

.filter-pill.clear-pill i {
  color: #fff;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  top: calc(var(--safe-top) + 78px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s var(--ease);
}

body.has-filters .toast {
  top: calc(var(--safe-top) + 122px);
}

.toast button {
  border: 0;
  background: none;
  color: #9fe3c1;
  font-weight: 700;
  padding: 0;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
}

/* ---------- Bottom controls ---------- */

.bottom-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 22px);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.bottom-bar > * {
  pointer-events: auto;
}

.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-high { background: var(--green); }
.dot-mid { background: var(--amber); }
.dot-none { background: var(--gray-pin); }

.bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.pill-btn:active,
.fab:active {
  transform: scale(0.96);
}

.badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.fab {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.fab.is-busy i {
  animation: spin 1s linear infinite;
}

@media (max-width: 359px) {
  .legend {
    display: none;
  }
}

/* ---------- Scrim ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(15, 23, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Sheets (bottom sheet on mobile) ---------- */

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}

.sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.32s var(--ease), visibility 0s;
}

.sheet.is-dragging {
  transition: none;
}

.sheet-grab {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  touch-action: none;
  cursor: grab;
}

.sheet-grab span {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #d5dce3;
}

.sheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px 20px;
  touch-action: none;
}

.sheet-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  display: grid;
  place-items: center;
}

.course-sheet .sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 20px;
}

.course-sheet {
  max-height: 64dvh;
}

.course-sheet .sheet-body {
  padding-bottom: calc(var(--safe-bottom) + 20px);
}

/* Course details */
.course-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 44px;
}

.course-count {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--tone, var(--green));
  line-height: 1;
}

.course-count strong {
  font-size: 22px;
  font-weight: 800;
}

.course-count span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.course-title {
  min-width: 0;
}

.course-title h2 {
  margin: 2px 0 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.course-title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.meta-chip i {
  color: var(--sage);
}

a.meta-chip {
  background: var(--green-soft);
  color: #13724a;
}

a.meta-chip i {
  color: var(--green);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-label span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--green);
}

.tee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.tee {
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.tee.is-dimmed {
  opacity: 0.4;
}

.tee-time {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.tee-time small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 1px;
}

.tee-price {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.tee-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.tee-meta i {
  margin-right: 3px;
  font-size: 11px;
}

.empty-state {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-2);
  border-radius: 14px;
}

.empty-state i {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--gray-pin);
}

/* Filters */
.field {
  margin-bottom: 24px;
}

.field:last-child {
  margin-bottom: 8px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.field-label i {
  width: 18px;
  margin-right: 4px;
  color: var(--sage);
}

.field-label small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field-label strong {
  font-size: 15px;
  color: var(--green);
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}

.segmented button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-2);
  transition: background 0.15s, color 0.15s;
}

.segmented button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0 -20px 12px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-2);
}

.chip.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: #13724a;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.time-input span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.time-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 16px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.time-input input:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
}

/* Dual price slider */
.range {
  position: relative;
  height: 36px;
  margin: 0 4px;
}

.range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: #e1e7ec;
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--green);
}

.range input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range input::-webkit-slider-runnable-track {
  background: none;
}

.range input::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--green);
  background: #fff;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  cursor: grab;
  -webkit-appearance: none;
}

.range input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--green);
  background: #fff;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  cursor: grab;
}

.range input::-moz-range-track {
  background: none;
}

.sheet-foot {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  border-top: 1px solid var(--line);
}

.btn-ghost,
.btn-primary {
  height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.btn-ghost {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy-2);
}

.btn-primary {
  flex: 1;
  border: 0;
  background: var(--navy);
  color: #fff;
}

.btn-primary:disabled {
  background: #9aa6b2;
}

/* ---------- Menu drawer ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 16px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s var(--ease), visibility 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 6px 6px 6px 12px;
  border-radius: 16px;
  background: var(--navy);
}

.drawer-head img {
  height: 36px;
  width: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.drawer-link i {
  width: 20px;
  text-align: center;
  color: var(--sage);
}

.drawer-link:active,
.drawer-link.is-current {
  background: var(--surface-2);
}

.drawer-foot {
  margin: auto 14px 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- States ---------- */

/* Mobile: the course sheet covers the bottom controls */
body.course-open .bottom-bar {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

body.course-open .bottom-bar > * {
  pointer-events: none;
}

/* ---------- Tablet & desktop ---------- */

@media (min-width: 600px) {
  .brand img {
    width: auto;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .topbar {
    padding: 16px 16px 0;
  }

  .search-results {
    left: auto;
    right: auto;
    width: 100%;
  }

  .search {
    position: relative;
  }

  .search-clear {
    right: 6px;
  }

  .toast {
    top: 88px;
  }

  body.has-filters .toast {
    top: 132px;
  }

  .bottom-bar {
    left: 16px;
    right: 16px;
    bottom: 26px;
  }

  .sheet-grab {
    display: none;
  }

  /* Course details become a side panel */
  .course-sheet {
    top: 88px;
    left: 16px;
    right: auto;
    bottom: 16px;
    width: 400px;
    max-height: none;
    border-radius: 20px;
    transform: translateX(calc(-100% - 24px));
  }

  .course-sheet.is-open {
    transform: translateX(0);
  }

  .course-sheet .sheet-body {
    padding-top: 20px;
  }

  body.has-filters .course-sheet {
    top: 132px;
  }

  body.course-open .bottom-bar {
    opacity: 1;
    transform: none;
  }

  body.course-open .bottom-bar > * {
    pointer-events: auto;
  }

  body.course-open .legend {
    visibility: hidden;
  }

  /* Filters become a centered dialog */
  .filter-sheet {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 460px;
    max-height: min(720px, calc(100dvh - 48px));
    border-radius: 22px;
    opacity: 0;
    transform: translate(-50%, -46%);
    transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0s linear 0.25s;
  }

  .filter-sheet.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0s;
  }

  .filter-sheet .sheet-head {
    padding-top: 18px;
  }

  .filter-sheet .sheet-foot {
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
