/* ---------- Base ---------- */
body {
  padding-top: 0;
  font-family: 'Poppins', sans-serif;
}

.navbar-brand {
  font-size: 36px;
  color: white !important;
  font-weight: 700;
}

.loading {
  opacity: 0.7;
}

.filter_heading {
  margin-top: 0;
}

/* ---------- Layout: Map Search ---------- */
.map-search {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
}

.side-bar {
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  width: 45%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 0 10px;
  z-index: 10;
}

.filters-wrapper {
  flex: 0 0 auto;
  background: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 2;
}

.listings-wrapper {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
}

.map {
  display: block;
  width: 55%;
  position: fixed;
  top: 70px;
  bottom: 0;
  right: 0;
}

/* ---------- Listing Cards ---------- */
.card,
.listing-item,
.listing-card {
  font-family: 'Poppins', sans-serif;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: transform 0.2s ease;
}

.listing-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin-bottom: 20px;
}

.listing-card:hover {
  transform: translateY(-3px);
}

.card h3,
.listing-item h4,
.listing-card h5 {
  font-weight: 700;
  color: #222;
  font-size: 1.4rem;
  line-height: 1.3;
}

.card-title,
.listing-item p,
.listing-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

.listing-image {
  width: 100%;
  height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.listing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-details {
  padding: 10px;
}

.listing-title {
  color: #03a9f3;
  font-weight: bold;
}

#ms-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

/* ---------- Icons ---------- */
.icon-column {
  flex: 0 0 60px;
  max-width: 100px;
  background: #f8f9fa;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.icon-item img {
  width: 25px;
  height: 15px;
  margin-bottom: 5px;
}

.icon-row {
  display: none;
  justify-content: space-around;
  background: #f8f9fa;
  padding: 10px;
}

/* ---------- Buttons ---------- */
.btn-info {
  background-color: #2d6cdf;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-info:hover {
  background-color: #1b4f9c;
}

/* ---------- Form Enhancements ---------- */
select.form-control-lg:valid {
  border-color: #03a9f3;
  box-shadow: 0 0 0 0.15rem rgba(3, 169, 243, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .listing-card {
    flex-direction: column !important;
  }

  .icon-column {
    display: none !important;
  }

  .icon-row {
    display: flex !important;
  }

  .listing-image {
    height: 180px !important;
  }
}
