/* Rentals page uses same font feel */
body { font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.header-redline{
  height: 2px;
  background: linear-gradient(90deg, rgba(180,11,11,0), rgba(180,11,11,1), rgba(180,11,11,0));
  box-shadow: 0 2px 12px rgba(180,11,11,0.25);
}

/* Dark textured background like screenshot */
.rentals-wrap{
  position: relative;
  background: #0b0b0b;
  overflow: hidden;
  z-index: 0;
  min-height: 85vh;
}

/* texture layer */
.rentals-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../images/dark-noise.png") center / cover no-repeat;
  opacity: 1;
  z-index:0;
}

/* dark overlay */
.rentals-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 420px at 50% 40%, rgba(255,255,255,0.06), rgba(0,0,0,0.75)),
              linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.85));
  z-index:0;
}

.rentals-wrap > .container{
  position: relative;
  z-index: 1;
}

.rentals-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Card */
.rental-card{
  background: linear-gradient(#f5f5f5, #e6e6e6);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 6px;
  box-shadow: 0 14px 22px rgba(0,0,0,0.35);
  overflow: hidden;
  text-align: center;
}

.rental-img{
    width: 100%;
  /* height: 220px;     */
  background: #ffffff;
  padding: 0px 0px 0px 0px;
  background-size: cover; 
  border-bottom: 1px solid rgba(0,0,0,0.15);
  min-height: 150px;
  display: grid;
  /* place-items: center; */
}

.rental-img {
  width: 100%;
  height: 213px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rental-img img {
  width: 100%;        /* allows scaling up */
  height: 100%;       /* fill container */
  /* object-fit: contain; no crop */
}

.rental-title{
  margin: 12px 10px 10px;
  font-weight: 800;
  color: #222;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.rental-btn{
  display: inline-block;
  margin: 0 0 14px;
  padding: 9px 34px;
  font-weight: 900;
  letter-spacing: 0.6px;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 3px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(#c21414, #8f0f0f);
  box-shadow: 0 8px 14px rgba(0,0,0,0.25);
  transition: transform .15s ease, filter .15s ease;
}

.rental-btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.rental-btn-buy{
  background: linear-gradient(#d01b1b, #9f1212);
}

/* Cart button in navbar */
.cart-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
}

.cart-badge{
  position: absolute;
  top: -6px; right: -6px;
  background: #c21414;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  width: 20px; height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.35);
}

/* Responsive */
@media (max-width: 1200px){
  .rentals-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px){
  .rentals-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .rentals-grid{ grid-template-columns: 1fr; }
  .rental-title{ font-size: 17px; }
}

@media (max-width: 768px) {

  .rental-img img
  {
        max-width: 100%;
    max-height: 100%;
  }
}
