/* Base styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #f0f2f5; /* Light gray background */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* Container for main content */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Utility classes (retained from previous, adjusted for new design) */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
.text-center {
  text-align: center !important;
}
.text-end {
  text-align: right !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}
.ms-2 {
  margin-left: 0.5rem !important;
}
.d-flex {
  display: flex !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-center {
  justify-content: center !important;
}
.align-items-center {
  align-items: center !important;
}
.position-relative {
  position: relative !important;
}
.w-100 {
  width: 100% !important;
}
.h-100 {
  height: 100% !important;
}
.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075) !important;
}
.bg-transparent {
  background-color: transparent !important;
}
.text-muted {
  color: #6c757d !important;
}
.small {
  font-size: 0.875em !important;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.g-3 {
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: .6rem 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .375rem; /* Slightly more rounded */
  transition: all .2s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  color: #fff;
  background-color: #007bff; /* Modern blue */
  border-color: #007bff;
}
.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}
.btn-outline-light {
  color: #f8f9fa;
  border-color: #f8f9fa;
  background-color: transparent;
}
.btn-outline-light:hover {
  color: #007bff;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}
.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: #fff;
}
.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-index-listings {
  color: #fff;
  border-color: #000;
  background-color: #e62415;
}
.btn-index_listings:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-sm {
  padding: .4rem .8rem;
  font-size: .875rem;
  border-radius: .25rem;
}
.btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Form elements */
.form-select,
.form-control {
  display: block;
  width: 100%;
  padding: .6rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
}
.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: .4em .8em;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
}
.badge.bg-primary {
  background-color: #007bff !important;
}
.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: .25rem;
}
.page-item:not(:first-child) .page-link {
  margin-left: -1px;
}
.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}
.page-link {
  position: relative;
  display: block;
  color: #007bff;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: .375rem .75rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s
    ease-in-out;
  border-radius: .25rem; /* Apply to all links for consistency */
}
.page-link:hover {
  z-index: 2;
  color: #0056b3;
  background-color: #e9ecef;
  border-color: #dee2e6;
}
