.listing-page {
  background: #fffaf4;
}

/* AUTH HEADER - SAME AS PROPERTY DETAILS */

.auth-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  min-height: 44px;
  border: none;
  border-radius: 7px;
  background: var(--maroon);
  color: white;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(141, 16, 34, 0.18);
}

.user-dropdown-btn:hover {
  background: var(--maroon-dark);
}

.user-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: none;
  z-index: 500;
}

.user-dropdown-panel.show {
  display: block;
}

.user-box {
  padding: 12px;
  background: #fff6e9;
  border: 1px solid #ead8c1;
  border-radius: 10px;
  margin-bottom: 8px;
}

.user-box strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.3;
}

.user-box small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.user-dropdown-panel a,
.user-dropdown-panel button {
  width: 100%;
  min-height: 40px;
  border: none;
  background: transparent;
  color: #243044;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.user-dropdown-panel a:hover,
.user-dropdown-panel button:hover {
  background: #fff6e9;
  color: var(--maroon);
}

.mobile-auth-box {
  display: none;
}

.mobile-auth-box button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* LISTING HERO */

.listing-hero {
  padding: 44px 0 26px;
  background: linear-gradient(90deg, #fff7ea, #f7e4ca);
  border-bottom: 1px solid #ead8c1;
}

.listing-hero h1 {
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.listing-hero p {
  color: #5a667a;
  font-size: 15px;
  font-weight: 600;
}

.listing-section {
  padding: 28px 0 54px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.filter-panel {
  position: sticky;
  top: 140px;
}

.filter-box {
  background: white;
  border: 1px solid #ead8c1;
  padding: 20px;
  margin-bottom: 18px;
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filter-title h3 {
  font-size: 15px;
  font-weight: 900;
  color: #1f2937;
}

.filter-title a,
.filter-title button {
  border: none;
  background: transparent;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.selection-item {
  padding: 13px 0;
  border-bottom: 1px solid #f0e1cf;
}

.selection-item:last-child {
  border-bottom: none;
}

.selection-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.selection-item strong {
  display: block;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 900;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 13px;
  font-weight: 900;
  color: #243044;
  margin-bottom: 12px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 11px;
  cursor: pointer;
}

.filter-group input {
  accent-color: var(--maroon);
}

.apply-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--gold);
  color: white;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.apply-btn:hover {
  background: #c18418;
}

.results-area {
  min-width: 0;
}

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.results-top h2 {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.results-top p {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.results-top select {
  min-width: 190px;
  height: 42px;
  border: 1px solid #ead8c1;
  background: white;
  border-radius: 6px;
  padding: 0 12px;
  color: #243044;
  font-weight: 800;
  outline: none;
}

.loading-box,
.empty-state {
  background: white;
  border: 1px solid #ead8c1;
  padding: 36px;
  text-align: center;
  color: #667085;
  font-weight: 700;
}

.empty-state h3 {
  color: var(--blue);
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-state p {
  color: #667085;
  margin-bottom: 18px;
}

.empty-state a {
  display: inline-flex;
  background: var(--maroon);
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 14px;
}

.properties-list {
  display: grid;
  gap: 18px;
}

.property-card {
  display: grid;
  grid-template-columns: 280px 1fr 170px;
  gap: 20px;
  background: white;
  border: 1px solid #ead8c1;
  padding: 14px;
}

.property-image {
  min-height: 190px;
  background: #eee;
  background-size: cover;
  background-position: center;
}

.property-info h3 {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.property-location {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.45;
}

.property-location small {
  display: inline-block;
  margin-top: 3px;
  color: #8d1022;
  font-size: 11px;
  font-weight: 800;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.category-list span {
  background: #fff1f3;
  border: 1px solid #ecc7ce;
  color: var(--maroon);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.amenity-list span {
  background: #fff6e9;
  border: 1px solid #ead8c1;
  color: #5a4b3a;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.room-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 8px;
}

.room-price {
  background: #fffaf4;
  border: 1px solid #f0e1cf;
  padding: 10px;
}

.room-price strong {
  display: block;
  color: #243044;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
}

.room-price span {
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
}

.property-action {
  border-left: 1px solid #f0e1cf;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.starting-text {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.starting-price {
  color: var(--maroon);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
}

.starting-price.missing-price {
  font-size: 16px;
  color: #8a5a0c;
}

.per-month {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.details-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  background: var(--maroon);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.details-btn:hover {
  background: var(--maroon-dark);
}

.check-small-btn {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.help-card {
  margin-top: 20px;
  background: #fff7f2;
  border: 1px solid #e7c6bd;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.help-card h3 {
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 5px;
}

.help-card p {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.help-card a {
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.help-card a:hover {
  background: var(--maroon);
  color: white;
}

@media (max-width: 1050px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .property-card {
    grid-template-columns: 240px 1fr;
  }

  .property-action {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid #f0e1cf;
    padding: 16px 0 0;
  }
}

@media (max-width: 900px) {
  .auth-menu {
    display: none;
  }

  .mobile-auth-box {
    display: block;
    width: 100%;
  }

  .mobile-auth-box a,
  .mobile-auth-box button {
    display: block;
    width: 100%;
    padding: 13px 12px;
    color: #243044;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-auth-box a:hover,
  .mobile-auth-box button:hover {
    background: #fff6e9;
    color: var(--maroon);
  }
}

@media (max-width: 700px) {
  .listing-hero h1 {
    font-size: 34px;
  }

  .results-top,
  .help-card {
    flex-direction: column;
    align-items: stretch;
  }

  .results-top select {
    width: 100%;
  }

  .property-card {
    grid-template-columns: 1fr;
  }

  .property-image {
    min-height: 230px;
  }

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

@media (max-width: 480px) {
  .listing-hero {
    padding: 34px 0 22px;
  }

  .listing-hero h1 {
    font-size: 30px;
  }

  .filter-box,
  .property-card,
  .help-card {
    padding: 16px;
  }

  .room-price-grid {
    grid-template-columns: 1fr;
  }

  .starting-price {
    font-size: 24px;
  }

  .starting-price.missing-price {
    font-size: 15px;
  }
}