/* Rental listings — page-scoped theme and responsive layout. */
.rent-page-shell {
  --rent-navy: #1a3c4e;
  --rent-gold: #c19b76;
  --rent-green: #16a34a;
  --rent-green-strong: #166534;
  --rent-green-deep: #15803d;
  --rent-text: #1f2933;
  --rent-muted: #52616b;
  --rent-page: #f5f7f5;
  --rent-surface: #ffffff;
  --rent-border: #dce4df;
  --rent-radius: 10px;
  --rent-shadow: 0 2px 8px rgba(26, 60, 78, .06);

  position: relative;
  min-height: calc(100vh - 62px);
  margin: -18px -12px 0;
  padding: 26px 24px 56px;
  background: var(--rent-page);
  color: var(--rent-text);
  font-family: 'Poppins', sans-serif;
}

.rent-page-inner {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.rent-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 21px;
}

.rent-heading-group {
  display: flex;
  align-items: baseline;
  gap: 15px;
  min-width: 0;
}

.rent-page-title {
  margin: 0;
  color: var(--rent-navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.rent-result-count {
  margin: 0;
  color: var(--rent-muted);
  font-size: .9rem;
}

.rent-result-count strong {
  color: var(--rent-green-strong);
  font-weight: 700;
}

.rent-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rent-filter-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
  color: var(--rent-navy);
  border-color: var(--rent-border);
  font-size: .875rem;
  font-weight: 600;
}

.rent-page-shell .rent-filter-toggle {
  color: var(--rent-navy);
  border-color: var(--rent-border);
  background: #fff;
}

.rent-page-shell .rent-filter-toggle:hover,
.rent-page-shell .rent-filter-toggle[aria-expanded="true"] {
  color: var(--rent-green-strong);
  border-color: #afc5b4;
  background: #f1f6f2;
}

.rent-page-shell .safety-trigger {
  width: auto;
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--rent-navy);
  font: 600 .875rem 'Poppins', sans-serif;
  text-decoration: none;
  transition: color .18s ease;
}

.rent-page-shell .safety-trigger i {
  color: var(--rent-gold);
}

.rent-page-shell .safety-trigger:hover {
  color: var(--rent-green-strong);
  transform: none;
  box-shadow: none;
}

.rent-filters {
  margin-bottom: 22px;
  padding: 15px 16px 17px;
  border: 1px solid var(--rent-border);
  border-radius: var(--rent-radius);
  background: var(--rent-surface);
}

.rent-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rent-filters-title {
  margin: 0;
  color: var(--rent-navy);
  font-size: .925rem;
  font-weight: 600;
}

.rent-filter-clear {
  color: var(--rent-muted);
  font-size: .825rem;
  text-underline-offset: 3px;
}

.rent-filter-form {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

.rent-filter-form > div:not(.rent-filter-actions) {
  min-width: 0;
}

.rent-filter-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--rent-muted);
  font-size: .8125rem;
  font-weight: 600;
}

.rent-filter-form select,
.rent-filter-form input[type="number"] {
  width: 100%;
  min-height: 44px;
  border-color: #cbd6d0;
  border-radius: 7px;
  color: var(--rent-text);
  background-color: #fff;
  font-family: inherit;
  font-size: .875rem;
}

.rent-filter-form select:focus,
.rent-filter-form input[type="number"]:focus {
  border-color: var(--rent-green-strong);
  box-shadow: 0 0 0 .2rem rgba(22, 101, 52, .15);
}

.rent-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rent-page-shell .btn-apply,
.rent-page-shell .btn-reset {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 7px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.rent-page-shell .btn-apply,
.rent-page-shell .rent-btn-view {
  border-color: var(--rent-green-strong);
  background: var(--rent-green-strong);
  color: #fff;
}

.rent-page-shell .btn-apply:hover,
.rent-page-shell .rent-btn-view:hover {
  border-color: var(--rent-green-deep);
  background: var(--rent-green-deep);
  color: #fff;
}

.rent-page-shell .btn-reset {
  border-color: var(--rent-border);
  color: var(--rent-navy);
  background: #fff;
}

.rent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.rent-grid-single {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.rent-card.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rent-border);
  border-radius: var(--rent-radius);
  background: var(--rent-surface);
  box-shadow: var(--rent-shadow);
}

.rent-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.8 / 1;
  overflow: hidden;
  background: #e8eeea;
}

.rent-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rent-img-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #64766d;
  font-size: 2.5rem;
  background: #e8eeea;
}

.rent-for-lease-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(26, 60, 78, .94);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.rent-card-body.card-body {
  display: flex;
  flex-direction: column;
  padding: 17px 18px 16px;
}

.rent-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.rent-price {
  margin: 0;
  color: var(--rent-green-strong);
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.rent-price-period {
  color: var(--rent-muted);
  font-size: .875rem;
}

.rent-card-title {
  margin: 0 0 7px;
  color: var(--rent-navy);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rent-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #394c52;
  font-size: .875rem;
  line-height: 1.5;
}

.rent-location i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #916943;
}

.rent-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #394c52;
  font-size: .875rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-feat-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.card-feat-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0f5f1;
  color: #355346;
  font-size: .8125rem;
  line-height: 1.35;
}

.card-feat-pill i {
  color: var(--rent-green-strong);
  font-size: .75rem;
}

.rent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #e7ece8;
}

.rent-meta-item {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  color: #4b5b60;
  font-size: .8125rem;
  text-decoration: none;
}

.rent-phone:hover {
  color: var(--rent-green-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rent-meta-item i {
  color: #8f765d;
}

.rent-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
  margin-top: 14px;
}

.rent-page-shell .rent-action {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 7px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.rent-page-shell .rent-action i {
  flex: 0 0 auto;
  font-size: 1rem;
}

.rent-page-shell .rent-wishlist-btn,
.rent-page-shell .rent-compare-btn {
  border-color: #d0dad4;
  color: #29463b;
  background: #fff;
}

.rent-page-shell .rent-wishlist-btn:hover,
.rent-page-shell .rent-compare-btn:hover,
.rent-page-shell .rent-compare-btn.active {
  border-color: #a9c7b3;
  color: var(--rent-green-strong);
  background: #f2f7f3;
}

.rent-page-shell .rent-wishlist-btn .bi-heart-fill {
  color: #a43b45;
}

.rent-page-shell .rent-action:disabled {
  cursor: wait;
  opacity: .68;
}

.rent-page-shell :focus-visible {
  outline: 3px solid var(--rent-gold);
  outline-offset: 3px;
}

.rent-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.rent-pag-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pag-btn {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--rent-border);
  border-radius: 6px;
  background: #fff;
  color: var(--rent-navy);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.pag-btn:hover,
.pag-btn.pag-active {
  border-color: var(--rent-green-strong);
  background: var(--rent-green-strong);
  color: #fff;
}

.rent-empty {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 35px 20px;
  border: 1px solid var(--rent-border);
  border-radius: var(--rent-radius);
  background: #fff;
  text-align: center;
}

.rent-empty-icon {
  color: var(--rent-green-strong);
  font-size: 2rem;
}

.rent-empty h2 {
  margin: 0;
  color: var(--rent-navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.rent-empty p {
  max-width: 54ch;
  margin: 0 0 4px;
  color: var(--rent-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.rent-page-shell .rent-safety-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rent-border);
  border-radius: 12px;
  background: #fff;
}

.rent-page-shell .rent-safety-modal .rent-safety-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  padding: 14px;
  border-radius: 7px;
  background-color: #f2f5f3;
  opacity: 1;
}

.rent-page-shell .rent-safety-modal .modal-body {
  max-height: min(82vh, 760px);
  overflow-y: auto;
}

.rent-page-shell .rent-safety-modal .ew-sc {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rent-page-shell .rent-safety-modal .ew-sc-head {
  padding-right: 62px;
}

@media (max-width: 991.98px) {
  .rent-page-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rent-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rent-filter-actions {
    grid-column: 1 / -1;
  }

  .rent-filter-actions .btn {
    flex: 1;
  }

  .rent-grid {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .rent-page-shell {
    min-height: calc(100vh - 58px);
    margin-top: -22px;
    padding: 20px 15px 40px;
  }

  .rent-page-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .rent-heading-group {
    display: block;
  }

  .rent-page-title {
    font-size: 1.9rem;
  }

  .rent-result-count {
    margin-top: 4px;
    font-size: .875rem;
  }

  .rent-page-actions {
    gap: 7px;
  }

  .rent-filter-toggle {
    display: inline-flex;
    min-height: 44px;
    padding-inline: 11px;
    font-size: .875rem;
  }

  .rent-page-shell .safety-trigger {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .rent-page-shell .safety-trigger span {
    display: none;
  }

  .rent-page-shell .safety-trigger i {
    font-size: 1.1rem;
  }

  .rent-filters {
    display: none;
    margin-bottom: 17px;
    padding: 13px;
  }

  .rent-filters.is-open {
    display: block;
  }

  .rent-filter-body {
    display: none;
  }

  .rent-filter-body.open {
    display: block;
  }

  .rent-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rent-filter-form label {
    font-size: .8125rem;
  }

  .rent-filter-form select,
  .rent-filter-form input[type="number"] {
    min-height: 46px;
    font-size: .875rem;
  }

  .rent-filter-actions {
    grid-column: 1 / -1;
  }

  .rent-grid,
  .rent-grid-single {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rent-card-image {
    aspect-ratio: 1.85 / 1;
  }

  .rent-card-body.card-body {
    padding: 15px 15px 14px;
  }

  .rent-price {
    font-size: 1.35rem;
  }

  .rent-card-title {
    font-size: 1.0625rem;
  }

  .rent-desc {
    -webkit-line-clamp: 3;
  }

  .rent-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rent-page-shell .rent-btn-view {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .rent-page-shell .rent-action {
    min-height: 46px;
    font-size: .875rem;
  }

  .rent-empty {
    min-height: 220px;
    padding: 28px 18px;
  }
}

@media (max-width: 370px) {
  .rent-page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .rent-page-header {
    gap: 6px;
  }

  .rent-heading-group {
    flex: 1;
  }

  .rent-page-actions {
    gap: 4px;
  }

  .rent-filter-toggle {
    padding-inline: 8px;
  }

  .rent-page-shell .rent-action {
    gap: 5px;
    padding-inline: 7px;
    font-size: .875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rent-page-shell *,
  .rent-page-shell *::before,
  .rent-page-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
