.search-section {
  background: #ededed;
}

/* TITLE */
.search-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.37px;
  line-height: 1.06;
  color: var(--primary-green);
  font-family: var(--work-sans);
}

/* SEARCH BAR */
.left-group {
  order: 2;
}
/* SEARCH BOX */
.search-box {
  background: var(--white);
  border-radius: 50px;
  padding: 5px 0;
  width: 100%;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 12px;
  color: #717182;
  font-size: 14px;
  letter-spacing: -0.15px;
  line-height: 1.3;
  width: calc(100% - 35px);
  padding-right: 10px;
  font-family: var(--work-sans);
}
.search-box input::placeholder {
  color: #717182;
  opacity: 1;
}

.search-box input::-webkit-input-placeholder {
  color: #717182;
  opacity: 1;
}

.search_button {
  background: var(--primary-green);
  border: none;
  color: var(--white);
  border-radius: var(--rounded-circle);
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FILTER SELECT */
.filter-select {
  border: none;
  background: #f9fafb;
  padding: 11px 50px 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #717182;
  outline: none;
  font-family: var(--work-sans);
}

/* BUTTON */
.btn-all-filter {
  display: block;
  width: 100%;
  border: 2px solid #bdbdbd;
  background: var(--white);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--black);
  font-weight: var(--fw-light);
  line-height: 1.1;
}
.search-bar {
  gap: 20px;
}

/* LEFT SIDE WRAPS */

/* BUTTON FIX RIGHT */
.right-btn {
  order: 1;
  width: 100%;
  min-width: 150px;
  white-space: nowrap; /* 🔥 break nahi hoga */
}

/* WRAPPER */
.filter-dropdown {
  position: relative;
  font-family: var(--work-sans);
}

/* SELECT BOX */
.dropdown-trigger {
  border: none;
  background: #f9fafb;
  padding: 12px 65px 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #717182;
  line-height: 1.2;
  outline: none;
  font-family: var(--work-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: pointer;
}

/* 🔽 ARROW */
.dropdown-trigger::after {
  content: "";
  background: url("../images/select-drop-icon.svg") no-repeat;
  width: 11px;
  height: 6px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
}

/* DROPDOWN */
.dropdown-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  max-height:350px;
  overflow-x: auto;
  display: none;
  z-index: 100;
}

/* ITEMS */
.dropdown-options li {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HOVER */
.dropdown-options li:hover {
  background: #f1f1f1;
}

/* ACTIVE */
.filter-dropdown.active .dropdown-options {
  display: block;
}

/* ─── Multi-Select Dropdown Panel ─── */
.dropdown-panel {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: none;
  z-index: 100;
}

.filter-dropdown.active .dropdown-panel {
  display: block;
}

.dropdown-checkbox-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 0;
}

.dropdown-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-checkbox-item:hover {
  background: #f5f5f5;
}

.dropdown-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-green, #00a651);
  cursor: pointer;
  flex-shrink: 0;
}

.dropdown-checkbox-item .item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-checkbox-item .item-count {
  color: #888;
  font-size: 12px;
}

.dropdown-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
}

.btn-clear-filter,
.btn-apply-filter {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-filter {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
}

.btn-clear-filter:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-apply-filter {
  background: var(--primary-green, #00a651);
  border: 1px solid var(--primary-green, #00a651);
  color: #fff;
}

.btn-apply-filter:hover {
  opacity: 0.9;
}

/* Dropdown arrow in trigger */
.dropdown-trigger .dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.filter-dropdown.active .dropdown-trigger .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* Hide default arrow for multi-select */
.filter-dropdown.multi-select .dropdown-trigger::after {
  display: none;
}

/* Selected count badge */
.dropdown-trigger .selected-count {
  background: var(--primary-green, #00a651);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

/* right pannel */
/* =========================================
   Base Reset & Variables
   ========================================= */


:root {
    --accent: #1a7a4a;
    --accent-hover: #15633c;
    --pill-active-bg: #1a7a4a;
    --pill-active-border: #1a7a4a;
    --text-primary: #111;
    --text-secondary: #666;
    --border: #e0e0e0;
    --bg: #fff;
    --radius: 10px;
    --modal-w: 420px;
}



/* Demo trigger */
.demo-trigger {
    text-align: center;
}

.open-btn {
    padding: 14px 32px;
    background: #101828;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.open-btn:hover {
    background: var(--accent-hover);
}

/* =========================================
   Backdrop
   ========================================= */
.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 900;
    backdrop-filter: blur(2px);
    animation: fadeIn .2s ease;
}

.backdrop.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   Filter Modal
   ========================================= */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 598px;
    width: 100%;
    background: var(--bg);
    z-index: 1000;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    border-radius: 12px;
    font-family:var(--work-sans);
}

.filter-modal.open {
    display: flex;
    transform: translateX(0);
    animation: slideIn .3s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ─── Header ─── */
.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.fm-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.4px;
}

.fm-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #A7A5A5;
    cursor: pointer;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.fm-close:hover {
    background: #f0f0f0;
    color: #111;
}

/* ─── Tabs Slider ─── */
.fm-tabs-slider {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    padding-bottom: 14px;
}

.tab-arrow {
    flex-shrink: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    color: #A7A5A5;
    cursor: pointer;
    transition: color .15s, background .15s;
    z-index: 1;
}

.tab-arrow:hover {
    color: #101828;
    background: #f5f5f5;
}

.tab-arrow:disabled {
    color: #d0d0d0;
    cursor: default;
    background: #fff;
}

.fm-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    flex: 1;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.fm-tabs::-webkit-scrollbar {
    display: none;
}

.fm-tab {
    flex: 0 0 auto;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #A7A5A5;
    letter-spacing: -0.13px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.fm-tab:hover {
    color: #101828;
}

.fm-tab.active {
    color: #101828;
    border-bottom-color: var(--primary-green);
}


/* ─── Body ─── */
.fm-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.fm-body::-webkit-scrollbar {
    width: 5px;
}

.fm-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

/* Sections */
.fm-section {
    display: none;
    animation: sectionIn .2s ease;
}

.fm-section.active {
    display: block;
}

@keyframes sectionIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fm-section-title {
    font-size: 13.26px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 12px;
}

/* ─── Category Pills ─── */

/* style */
/* GRID */
.category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 500px;
}

/* ITEM */
.category-checkbox-item {
  cursor: pointer;
}

/* HIDE INPUT */
.category-checkbox-item input {
  display: none;
}

/* BOX STYLE */
.category-checkbox-label {
  display: block;
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  border:2px solid #E5E7EB;
  background: #fff;
  transition: 0.3s;
  color:#101828;
  font-size:13px;
  font-weight:var(--fw-semibold);
}

/* COUNT */
.category-checkbox-label span {
  display: block;
  font-size: 11px;
  color: #4A5565;
   font-weight:var(--fw-medium);
}

/* HOVER */
.category-checkbox-item:hover .category-checkbox-label {
  border-color:var(--primary-green);
}

/* ✅ CHECKED STATE */
.category-checkbox-item input:checked + .category-checkbox-label {
  border-color:var(--primary-green);
  background: #F9FAFB;
}

/* style close */



.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 16px;
    border: 1.78px solid #E5E7EB;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    cursor: pointer;
    line-height: 17.8px;
    letter-spacing: -0.13px;
    text-align: center;
    transition: border-color .15s, background .15s, color .15s;
}

.cat-pill span {
    color: #A7A5A5;
    font-size: 11px;
    margin-top: 2px;
}

.cat-pill:hover {
    border-color: #101828;
}

.cat-pill.active {
    border-color:var(--primary-green);
    background: #F9FAFB;
    color: #101828;
}

.cat-pill.active span {
    color: #101828;
}

/* ─── Brand List ─── */
.brand-filter__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-filter__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.23px;
    color: #101828;
    cursor: pointer;
    user-select: none;
}

.brand-filter__item:last-child {
    border-bottom: none;
}

.brand-filter__item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #101828;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-count {
    color: #4A5565;
    font-size: 13px;
    margin-left: -5px;
}

.brand-extra.hidden {
    display: none;
}

.show-more-btn {
    margin-top: 14px;
    padding: 6px 9px;
    border: 1.5px solid #101828;
    border-radius: 32px;
    background: #fff;
    color:var(--text-primary);
    font-size: 11px;
    font-weight:var(--fw-semibold);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.show-more-btn:hover {
    border-color: #101828;
    background: #f9fffe;
}

/* ─── Model Filter List ─── */
.model-filter__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.model-filter__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.23px;
    color: #101828;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #f0f0f0;
}

.model-filter__item:last-child {
    border-bottom: none;
}

.model-filter__item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #101828;
    cursor: pointer;
    flex-shrink: 0;
}

.model-count {
    color: #4A5565;
    font-size: 13px;
    margin-left: auto;
}

/* ─── Info Box ─── */
.info-box {
    display: flex;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #BEDBFF;
    border-radius: 8px;
    padding: 14px 13px;
    font-size: 11px;
    color: #364153;
    line-height: 1.5;
    align-items: flex-start;
}

.info-box svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.info-box a {
    color: #1447E6;
    margin-top: 4px;
    display: inline-block;
    font-weight: 600;
}

/* ─── Range / Price / Doors ─── */
.range-row,
.doors-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.range-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.range-group label {
    font-size: 11px;
    color: #364153;
    font-weight: 500;
}

.range-input-num {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #D1D5DC;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(10, 10, 10, 0.5);
    color:var(--text-primary);
    outline: none;
    -moz-appearance: textfield;
}

.range-input-num::-webkit-inner-spin-button,
.range-input-num::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.range-divider {
    color: #0A0A0A;
    padding-bottom: 10px;
    font-size: 15px;
}

/* ─── Range Slider ─── */
.range-slider-wrap {
    position: relative;
    padding: 8px 0 4px;
}

.range-track {
    position: relative;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 10px 0;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: #101828;
    border-radius: 3px;
    top: 0;
}

.range-thumb {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
    height: 5px;
    left: 0;
}

.range-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #101828;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    transition: transform .15s, box-shadow .15s;
}

.range-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(26, 122, 74, .3);
}

.range-thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #101828;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.doors-filter {
  display: flex;
  gap: 12px;
}

.doors-option input {
  display: none;
}

.doors-option span {
  display: block;
  padding: 14px;
  border-radius: 12px;
  border:2px solid #E5E7EB;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
}

/* hover */
.doors-option:hover span {
  border-color: #0a7c3a;
}

/* ✅ SELECTED STATE */
.doors-option input:checked + span {
  border-color:var(--primary-green);
  background: #F9FAFB;
}

/* ─── Footer ─── */
.fm-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    gap: 12px;
}

.btn-clear {
    padding: 12px 22px;
    border: 1.5px solid #101828;
    border-radius: 32px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #0A0A0A;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  justify-content: center;
}

.btn-clear:hover {
    border-color: #aaa;
    background: #f7f7f7;
}

.btn-results {
    padding: 12px 40px;
    border: none;
    border-radius: 32px;
    background:var(--primary-green);
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.28px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
    width: 100%;
}

.btn-results:hover {
    background: var(--accent-hover);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 480px) {
    :root {
        --modal-w: 100vw;
    }

    .filter-modal {
        border-radius: 0;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fm-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .fm-footer {
        padding: 12px 16px;
    }
}

@media (min-width: 768px) {
    :root {
        --modal-w: 440px;
    }
    .fm-footer{
      flex-direction:row;
    }
    .btn-clear,.btn-results{
      width:auto;
    }
}
/* right pannel close */




/* RESPONSIVE */
@media (min-width: 992px) {
  .search-title {
    font-size: 32px;
  }
  .left-group {
    width: calc(100% - 195px);
  }
  .search-box {
    min-width:300px;
    width: auto;
  }
  .left-group {
    order: 1;
  }
  .right-btn {
    order: 2;
    width: auto;
  }
}
@media (min-width:1440px){
   .search-box {
    min-width: 360px;
  }
    .search-title {
    font-size: 36px;
  }
  .filter-dropdown{
    min-width:130px;
  }
}
@media (min-width:1536px){
 .search-box {
    min-width:418px;
  }
  
}






