/* Base Reset */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}
.nav-link{
   color: #333;   
}
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: #1a1a1a;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0d6efd;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #084298;
}

.btn-outline-secondary {
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}

.btn-outline-secondary:hover {
  background-color: #eee;
}

/* Form Elements */
.form-control,
.form-select {
  border-radius: 5px;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Card Styling */
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card .card-body {
  padding: 15px;
}

.card img {
  object-fit: cover;
  height: 200px;
  width: 100%;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: #6c757d;
}

.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.w-100 { width: 100%; }

/* Listing Grid */
#listingResults, #userListings {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: start;
}

.listing-card {
  flex: 1 1 calc(25% - 1rem);
  min-width: 250px;
}

@media screen and (max-width: 768px) {
  .listing-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media screen and (max-width: 480px) {
  .listing-card {
    flex: 1 1 100%;
  }
}
