/* ===== Rental Page Styles ===== */

/* Override vw-based font scaling for rental page */
.rental-filter,
.rental-grid {
  font-size: 16px;
}

/* --- Rental Content Section --- */
.rental-content {
  margin: 0 auto;
  max-width: 1400px;
  padding: 3rem 1rem 2rem;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.rental-content p {
  margin-bottom: 1.5rem;
}

/* --- Rental Contacts --- */
.rental-contacts {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.rental-contacts__item {
  font-family: "TTTravelsRegular", sans-serif;
  font-size: 20px;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.rental-contacts__item:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* --- Filter Bar --- */
.rental-filter {
  margin-top: 0;
}

.rental-filter__container {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.rental-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.rental-filter__btn {
  background-color: transparent !important;
  border: 2px solid #fff !important;
  border-radius: 6px !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-family: "TTTravelsRegular", sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 24px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  user-select: none;
}

.rental-filter__btn:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.rental-filter__btn.active {
  background-color: #fff !important;
  color: #445066 !important;
  border: 2px solid #fff !important;
}

/* --- Card Grid --- */
.rental-grid {
  margin-top: 0;
  padding: 2.5rem 0 5rem;
}

.rental-grid__container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 1rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .rental-grid__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .rental-grid__container {
    max-width: 400px;
  }
}

/* --- Card Styles --- */
.rental-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: 175px;
}

.rental-card__image {
  flex: 0 0 40%;
  overflow: hidden;
}

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

.rental-card__content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rental-card__title {
  color: #fff;
  font-family: "TTTravelsBold", sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.rental-card__specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rental-card__specs li {
  display: flex;
  font-family: "League Spartan", "TTTravelsRegular", sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  gap: 6px;
  justify-content: space-between;
  line-height: 1.4;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rental-card__specs li:last-child {
  border-bottom: none;
}

.rental-card__spec-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.rental-card__spec-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* No results */
.rental-grid__no-results {
  color: rgba(255, 255, 255, 0.7);
  display: none;
  font-family: "TTTravelsRegular", sans-serif;
  font-size: 16px;
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
}

/* --- Mobile --- */
@media (max-width: 479px) {
  .rental-filter__btn {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}

/* --- Lightbox --- */
.rental-lightbox-trigger {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.rental-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.rental-lightbox.active {
  display: flex;
}

.rental-lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.rental-lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

.rental-lightbox__close:hover {
  opacity: 0.7;
}
