/* ================================================================
   SRP — Adventure Inventory Search
   Mobile-first, then desktop breakpoint at 1025px.
   ================================================================ */

/* --- Loading spinner --- */
.inv-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 16px;
  grid-column: 1 / -1;
}
.inv-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--accent, #2563eb);
  border-radius: 50%;
  animation: inv-spin 0.8s linear infinite;
}
.inv-loading-text {
  font-size: 14px;
  color: #6b7280;
}
@keyframes inv-spin { to { transform: rotate(360deg); } }

/* --- Base (mobile) --- */

/* Hidden until favorite/alert features are working */
.inv-card-icons { display: none; }

.inv-container { padding: 4px 24px 24px; }
.inv-sidebar { display: none; }
.inv-layout { display: block; }
#viewer { display: none; }
.searcherholder { width: 100%; }
.newsorterholder { display: none; }
#newfiltermessage { width: 100%; color: #6b7280; font-size: 14px; margin-bottom: 8px; display: none; }
.inv-sticky-search { margin-bottom: 12px; }

/* Sort dropdown */
#sorter {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  margin-bottom: 12px;
}

/* Mobile filter bar */
.inv-mobile-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.inv-mobile-count {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.inv-mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  min-height: 44px;
}
.inv-mobile-filter-btn:active {
  background: #f3f4f6;
}

/* --- Desktop (min-width: 1025px) --- */
@media (min-width: 1025px) {
  .inv-sidebar { display: block; }
  .inv-layout { display: flex; }
  #viewer { display: block; }
  .searcherholder { width: auto; }
  .inv-container { padding: 0 24px 24px; }
  .newsorterholder { display: inline-block; }
  #newfiltermessage { display: block; font-size: 16px; margin-bottom: 4px; }
  .inv-mobile-filter-bar { display: none; }
  .inv-sticky-search { margin-bottom: 24px; }
}

/* ================================================================
   Shared SRP utilities (used in cards and filters)
   ================================================================ */

.inv-disclaimer { font-style: italic; max-width: 1000px; margin: auto; }
.page-wrapper { padding-bottom: 20px; }
.inv-savings { font-size: 20px; color: #0093d6; min-height: 1.5em; margin-top: -10px; }
.inv-hidden { display: none; }
.inv-hidden-price { display: none; }
.inv-hidden { width: 0px !important; display: none; }
.inv-card-type-badge,
.inv-checkbox-label { text-transform: capitalize; }
.newsorterholder { width: 20%; }

/* Estimator tooltip (card pricing) */
.inv-estimator {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.inv-estimator-disclaimer {
  background-color: #fff;
  z-index: 1;
  bottom: 125%;
  text-align: center;
  visibility: hidden;
  font-style: italic;
  padding: 5px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s;
  width: 100%;
  font-size: 11px;
  border: 1px solid black;
}
.inv-estimator,
.inv-estimator-disclaimer { display: none; }
.inv-estimator:hover .inv-estimator-disclaimer { visibility: visible; opacity: 1; }

/* Filter card overrides */
.inv-filter-card { overflow-y: scroll; max-height: 100vh; }
.inv-filter-section { gap: 2px !important; }
.inv-filter-body { gap: 10px !important; }

/* ================================================================
   Sticky search bar
   ================================================================ */

.inv-sticky-search {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffffff2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
}
@media (min-width: 1025px) {
  .inv-sticky-search {
    position: static;
    z-index: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    margin-bottom: 24px;
  }
}

.inv-sticky-search-inner {
  display: flex;
  gap: 8px;
  max-width: none;
  margin: 0 auto;
}

.inv-search-wrap {
  position: relative;
  flex: 1;
}
.inv-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #0096d7;
  pointer-events: none;
}
.inv-search-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: #fffffff2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  outline: none;
  box-sizing: border-box;
}
.inv-search-input:focus {
  border-color: var(--accent, #0096d7);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #0096d7) 20%, transparent);
}

.inv-search-btn {
  height: 48px;
  padding: 0 32px;
  background: var(--accent, #0096d7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.inv-search-btn:hover {
  background: var(--accent-hover, #007ab8);
}

/* Mobile search button — show magnifying glass icon */
@media (max-width: 1024px) {
  .inv-search-btn {
    font-size: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .inv-search-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
}

/* ================================================================
   Inventory container & layout
   ================================================================ */

.inv-container {
  max-width: none;
  margin: 0 auto;
  padding: 24px 24px;
}
.inv-layout {
  display: flex;
  gap: 32px;
}

/* Sidebar filters */
.inv-sidebar { width: 320px; flex-shrink: 0; }
.inv-filter-card {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow-x: hidden;
  overflow-y: auto;
}
.inv-filter-header {
  padding: 20px 24px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.inv-filter-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.inv-filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

/* Accordion chevron */
.inv-accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.inv-filter-section.collapsed .inv-accordion-chevron {
  transform: rotate(-90deg);
}

/* Collapsed state — hide filter content, keep label visible */
.inv-filter-section.collapsed .inv-checkbox-row,
.inv-filter-section.collapsed .inv-range-slider,
.inv-filter-section.collapsed .inv-price-range-text {
  display: none;
}

/* Active filter chips */
.inv-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px;
}
.inv-active-filters:empty {
  display: none;
}
.inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.inv-chip:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.inv-chip svg {
  opacity: 0.4;
}
.inv-chip:hover svg {
  opacity: 1;
}
.inv-chip-clear {
  background: transparent;
  border: none;
  color: var(--accent, #0096d7);
  font-weight: 600;
  padding: 5px 8px;
}
.inv-chip-clear:hover {
  text-decoration: underline;
  background: transparent;
}
.inv-filter-separator {
  height: 1px;
  background: #e5e7eb;
  border: none;
  margin: 0;
}
.inv-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.inv-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #0096d7);
  cursor: pointer;
}
.inv-checkbox-label {
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
}
.inv-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inv-price-range-text {
  font-size: 14px;
  color: #6b7280;
}
.inv-range-slider {
  width: 100%;
  accent-color: var(--accent, #0096d7);
  cursor: pointer;
}

/* Main content area */
.inv-main { flex: 1; min-width: 0; }
.inv-main-header { margin-bottom: 8px; }
.inv-main-title { font-size: 30px; font-weight: 700; color: #1e293b; margin: 0 0 8px; }
.inv-main-count { color: #6b7280; margin: 0; font-size: 16px; }

/* ================================================================
   Inventory grid & cards
   ================================================================ */

.inv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .inv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1600px) { .inv-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1920px) { .inv-grid { grid-template-columns: repeat(5, 1fr); } }

.inv-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.inv-card:hover {
  box-shadow: 0 8px 30px -4px color-mix(in srgb, var(--accent, #0096d7) 25%, transparent);
}

/* Card image */
.inv-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}
.inv-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.inv-card:hover .inv-card-image { transform: scale(1.1); }
.inv-card-image-fallback {
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
  background: #f1f5f9;
}
.inv-card:hover .inv-card-image-fallback { transform: none; }

/* Card condition badge */
.inv-card-condition {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.inv-card-condition.new { background: #facc15; color: #1e293b; }
.inv-card-condition.used { background: #334155; color: #fff; }

/* Card icon buttons (favorite/alert — hidden for now) */
.inv-card-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: none;
  gap: 6px;
}
.inv-card-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.inv-card-icon-btn:hover { background: rgba(0, 0, 0, 0.6); transform: scale(1.1); }
.inv-card-icon-btn.active { background: rgba(255, 255, 255, 0.9); }

/* Card body */
.inv-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv-card-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #6b7280;
  width: fit-content;
  margin-bottom: 4px;
}
.inv-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  transition: color 0.2s;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inv-card:hover .inv-card-name { color: var(--accent, #0096d7); }

.inv-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}
.inv-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.inv-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

/* Card footer (pricing + actions) */
.inv-card-footer {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inv-card-msrp {
  font-size: 13px;
  color: #6b7280;
  text-decoration: line-through;
  margin: 0;
}
.inv-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent, #0096d7);
  margin: 0;
}

/* Card action buttons */
.inv-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.inv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.inv-btn.cta-100 {
  background: var(--accent, #0096d7);
  color: #fff;
  border: none;
}
.inv-btn.cta-80 {
  background: color-mix(in srgb, var(--accent, #0096d7) 80%, #fff);
  color: #fff;
  border: none;
}
.inv-btn.cta-40 {
  background: color-mix(in srgb, var(--accent, #0096d7) 40%, #fff);
  color: #0E2947;
  border: none;
}
.inv-btn.cta-20 {
  background: color-mix(in srgb, var(--accent, #0096d7) 20%, #fff);
  color: #0E2947;
  border: none;
}
.inv-btn[class*="cta-"]:hover { opacity: 0.85; }

/* Load more button */
.inv-load-more-btn {
  padding: 14px 48px;
  background: var(--accent, #0096d7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.inv-load-more-btn:hover { background: var(--accent-hover, #007ab8); }
.inv-load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ================================================================
   Payment calculator modal
   ================================================================ */

.inv-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: inv-fadeIn 0.2s ease;
}
@keyframes inv-fadeIn { 0% { opacity: 0; } to { opacity: 1; } }

.inv-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 448px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: inv-slideUp 0.3s ease;
}
@keyframes inv-slideUp {
  0% { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.inv-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
}

.calc-card { background: #fff; border-radius: 16px; overflow: hidden; }
.calc-header { padding: 24px 24px 16px; }
.calc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px;
}
.calc-title svg { color: var(--accent, #0096d7); }
.calc-vehicle-name { font-size: 14px; color: #6b7280; margin: 0 0 12px; }

.calc-steps { display: flex; gap: 8px; }
.calc-step {
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #0096d7) 30%, transparent);
  transition: background 0.3s;
}
.calc-step.active { background: var(--accent, #0096d7); }

.calc-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-price-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-price-label { font-size: 14px; color: #6b7280; }
.calc-price-value { font-size: 18px; font-weight: 600; color: #1e293b; }

.calc-field { display: flex; flex-direction: column; gap: 12px; }
.calc-field-header { display: flex; justify-content: space-between; align-items: center; }
.calc-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}
.calc-field-label svg { width: 16px; height: 16px; color: var(--accent, #0096d7); }
.calc-field-value { font-size: 18px; font-weight: 600; color: var(--accent, #0096d7); }

.calc-slider { width: 100%; accent-color: var(--accent, #0096d7); cursor: pointer; }
.calc-slider-range { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; }

.calc-term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-term-btn {
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #1e293b;
}
.calc-term-btn:hover {
  background: color-mix(in srgb, var(--accent, #0096d7) 10%, transparent);
  color: var(--accent, #0096d7);
}
.calc-term-btn.active {
  background: var(--accent, #0096d7);
  color: #fff;
  border-color: var(--accent, #0096d7);
}

.calc-tradein-row { display: flex; align-items: center; gap: 12px; }
.calc-tradein-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: inv-slideUp 0.2s ease;
}
.calc-tradein-label { font-size: 14px; font-weight: 500; color: #6b7280; margin: 0; }
.calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.calc-input-group { display: flex; flex-direction: column; gap: 4px; }
.calc-input-label { font-size: 12px; color: #6b7280; }
.calc-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.calc-input:focus {
  border-color: var(--accent, #0096d7);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #0096d7) 15%, transparent);
}
.calc-input.error { border-color: #ef4444; }
.calc-error { font-size: 12px; color: #ef4444; margin: 2px 0 0; }

.calc-condition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.calc-next-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent, #0096d7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.calc-next-btn:hover { background: var(--accent-hover, #007ab8); }

.calc-locked-box {
  background: color-mix(in srgb, var(--accent, #0096d7) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #0096d7) 20%, transparent);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.calc-locked-label { font-size: 14px; color: #6b7280; margin: 0 0 4px; }
.calc-locked-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.calc-locked-main svg { color: #6b7280; }
.calc-locked-text { font-size: 24px; font-weight: 600; color: #6b7280; }
.calc-locked-hint { font-size: 12px; color: #6b7280; margin: 8px 0 0; }

.calc-form-fields { display: flex; flex-direction: column; gap: 16px; }
.calc-icon-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.calc-icon-label svg { width: 12px; height: 12px; }

.calc-btn-row { display: flex; gap: 12px; }
.calc-btn-row > * { flex: 1; }

.calc-back-btn {
  padding: 16px;
  background: transparent;
  color: #1e293b;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.calc-back-btn:hover { background: #f8fafc; }
.calc-disclaimer { font-size: 12px; color: #6b7280; text-align: center; margin: 0; }

.calc-result-box {
  background: color-mix(in srgb, var(--accent, #0096d7) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #0096d7) 20%, transparent);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.calc-result-label { font-size: 14px; color: #6b7280; margin: 0 0 4px; }
.calc-result-amount { font-size: 36px; font-weight: 700; color: var(--accent, #0096d7); margin: 0; }
.calc-result-note { font-size: 12px; color: #6b7280; margin: 8px 0 0; }

.calc-summary {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.calc-summary-label { color: #6b7280; }
.calc-summary-value { font-weight: 500; color: #1e293b; }
.calc-summary-total { border-top: 1px solid #e5e7eb; padding-top: 8px; margin-top: 8px; }
.calc-summary-total .calc-summary-value { font-weight: 600; }

.calc-success-box {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.calc-success-text { font-size: 14px; font-weight: 500; color: #1e293b; margin: 0; }

.calc-restart-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: #1e293b;
  transition: background 0.2s;
}
.calc-restart-btn:hover { background: #f8fafc; }

/* ================================================================
   Mobile filter overlay (fullscreen panel)
   ================================================================ */

/* Hidden on all screen sizes by default */
.mf-overlay { display: none; }

@media (max-width: 1024px) {
  .mf-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
  }
  .mf-overlay.is-open { display: flex; }
  .mf-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    background: #fff;
  }
  .mf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    flex-shrink: 0;
  }
  .mf-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
  }
  .mf-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1e293b;
  }
  .mf-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
    -webkit-overflow-scrolling: touch;
  }
  .mf-section { padding: 16px 0 8px; }
  .mf-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
  }
  .mf-separator { height: 1px; background: #e5e7eb; margin: 0; }
  .mf-radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
  }
  .mf-radio {
    width: 20px;
    height: 20px;
    accent-color: #1e293b;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mf-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
  }
  .mf-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background: #fff;
  }
  .mf-checkbox:checked {
    background: #1e293b;
    border-color: #1e293b;
  }
  .mf-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .mf-checkbox-label { text-transform: capitalize; }
  .mf-range-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #1e293b;
    border-radius: 2px;
    outline: none;
    margin: 8px 0;
  }
  .mf-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #1e293b;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }
  .mf-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
  }
  .mf-clear-btn,
  .mf-reset-btn {
    flex: 1;
    padding: 14px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
  }
  .mf-apply-btn {
    flex: 1;
    padding: 14px;
    background: #1e293b;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.5px;
  }
}
.noStrike{text-decoration: none !important;}