/* Font */
body {
  font-family: sans-serif;
  color: #222;
  padding: 20px;
  background-color: #f8f8f8;
}

/* Main Container */
.Outer {
  z-index: 100;
  max-width: 1300px;
  min-height: 60vh;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
}

/* Heading */
.Outer h1 {
  margin-bottom: 20px;
  font-weight: 600;
}

/* Grid Layout */
.OuterListing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Remove link styles */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: rgba(255, 32, 32, 0.779);
}

/* Card */
.listing {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 0.25px solid rgb(223, 223, 223);
}

/* Hover effect */
.listing:hover {
  transform: translateY(-6px);
}

/* Title */
.listing h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 12px 4px;
}

/* Text */
.listing p {
  font-size: 13px;
  margin: 2px 12px;
  color: #555;
}

/* Price highlight */
.listing p:first-of-type {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

/* Add Box */
.add-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;
  padding: 20px;

  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed #ccc;

  color: #222;
  font-weight: 600;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.add-box:hover {
  transform: translateY(-3px);
  background: #fafafa;
}

/* Plus Icon */
.plus {
  width: 100px;
  height: 100px;

  background: #f0f0f0;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 50px;
  color: #777;

  transition: 0.3s;
}

.plus:hover {
  background: #e0e0e0;
}

/* Container must be relative */
.image-container {
  position: relative;
}

/* Image */
.image-container img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.image-container img {
  transition: opacity 0.3s ease; /* 🔥 apply here */
}

.image-container:hover img {
  opacity: 0.75;
}

/* Filter Bar */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;
  border-radius: 15px;
  background: #fff;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filters-side {
  display: flex;
  flex-direction: column; /* 🔥 makes it vertical */
  padding-top: 10px;
  gap: 7px; /* space between sort & toggle */
  align-items: flex-end; /* align to right side */
}

/* Hide scrollbar */
.filters-bar::-webkit-scrollbar {
  display: none;
}

/* Filter Button */
.filter-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 65px;
  font-size: 13px;
  color: #717171;

  cursor: pointer;
  padding-bottom: 6px;

  transition: all 0.2s ease;
}

.filter-item i {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Hover */
.filter-item:hover {
  color: black;
  transform: scale(1.08);
}

/* Active */
.filter-item.active {
  color: black;
  border-bottom: 2px solid black;
}

/* Wrapper spacing */
.toggle-wrapper {
  padding-left: 37px;
  margin-bottom: 18px; /* remove push down */
  margin-top: -10px; /* pull it upward */
  border: 1px solid rgb(62, 62, 62);
  border-radius: 7px;
}
.toggle-wrapper-sort {
  margin-bottom: 18px; /* remove push down */
  margin-top: -10px; /* pull it upward */
  border: 1px solid rgb(62, 62, 62);
  border-radius: 6px;
}

/* Main toggle container */
.custom-toggle {
  padding: 8px 14px;
  border-radius: 12px;
  transition: 0.3s ease;
  cursor: pointer;
}

/* Switch size */
.custom-toggle .form-check-input {
  width: 45px;
  height: 22px;
  cursor: pointer;
}

/* Label styling */
.custom-toggle label {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  cursor: pointer;
}

/* Sub text */
.custom-toggle .sub-text {
  font-size: 12px;
  color: #777;
}

/* Active (checked state) */
.form-check-input:checked {
  background-color: #ff385c; /* Airbnb pink */
  border-color: #ff385c;
}

/* Smooth toggle animation */
.form-check-input {
  transition: all 0.3s ease;
}

.image-container {
  position: relative; /* important */
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;

  padding: 6px 8px;
  font-size: 18px;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* Hover effect */
.wishlist-btn:hover {
  transform: scale(1.1);
  background: white;
}
