/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  } */
  
body {
  color: #fff;
  background-color: #3a3a3a;
}

#home {
  height: 58.5rem;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
}

.hero p {
  font-size: 1.5rem;
}


/* Sections (Listings, About, Contact) */
section {
  padding: 6rem 2rem;
  text-align: center;
}

section#listings {
  background-color: #3a3a3a;
  padding: 2rem 1.5rem; /* Probably should keep as is, does weird things when changed and I don't feel like figuring it out */
}

/* .listings-title {
  font-family: 'Playwrite AU NSW', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 30px;
} */

.listings-grid {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-column-gap: 6rem;
  grid-row-gap: 8rem;
  padding: 3rem 19rem;
}

.listing {
  background-color: #585757; /* Listing background */
  color: #fff;
  text-decoration: none; /* Remove underline from links */

  border: .1rem solid #202020;
  border-radius: 1.2rem;
  overflow: hidden; /* Ensure rounded corners */
  transition: transform 0.2s ease; /* Add subtle hover effect */
  padding-bottom: 5rem;
  box-shadow: .3rem .3rem .6rem #242424;
}

.listing:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}

.listing img {
  width: 100%;
  height: 15rem;
  display: block; /* Prevent spacing issues below images */
  object-fit: cover;
}

.listing-name {
  font-family: 'Playwrite AU NSW', serif;
  font-optical-sizing: auto;

  font-style: normal;
  font-size: 1.5rem;

  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-left: 1%;
  margin-right: 1%;
}

.listing-description {
  font-family: 'Times New Roman', serif;
  text-align: center; /* Center align the text */
  margin-left: 1%;
  margin-right: 1%;
  padding-bottom: 1rem;
}

.listing-price {
  font-family: 'Times New Roman', Times, serif;
}

@media (max-width: 768px) {
  .listings-grid {
    padding: 1rem;
  }
}