#container {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
  background: linear-gradient(to bottom, #ffffff, #2255384b);
  contain: content;
}

#buttons-wrapper{
  display: flex;
  justify-content: center;
}

#button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; 
  margin-bottom: 30px;
  padding: 0 20px;
  /* width: 100%; */
}

#new-search-button {
  background-color: #0b3a2d;
  font-family: "Albert Sans", sans-serif;
  font-size: 1.5rem;
  color: #EAEEFB;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
  width: -webkit-fill-available;
  text-align: center;
}

#new-search-button:hover {
  background-color: var(--primary-green);
}

.property-info {
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: 100%; 
  overflow: hidden; 
}

.property-info h2 {
  margin: 5px 0;
  color: #333;
  font-size: 1rem; 
}

.property-info p{
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #1b5e20;
  margin: 5px 0;
}

.property-label{
  font-weight: bold;
  color: #1b5e20;
}

/* LIST VIEW */
#property-list-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* gap: 20px; */
  padding: 20px;
}

#property-list-view .property-item {
  height: 490px; 
  margin: 10px;
}

#maps-header {
  text-align: center;
  margin-top: 20px;
  font-family: "Antic Didone", serif;
  font-size: 2rem;
  color: #0b3a2d;
  letter-spacing: .2rem;
  font-weight: 500;
}

#property-type{
  width: -webkit-fill-available;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 16px;
}

/* PROPERTIES */
#property-list-wrapper {
  width: 100%;
  margin-top: 20px;
  overflow: auto;
  }

#property-list-wrapper::-webkit-scrollbar {
  display: none;

}
#property-list-wrapper {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}


.property-item h2 {
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  padding-left: 1rem;
}

.property-details h2 {
  font-size: 1.5rem;
  color: #0b3a2d;
  margin-bottom: 20px;
}

.property-details h3 {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 5px;
  text-align: center;
}

.property-details p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
  text-align: center;
}

.property-item {
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.property-item h2 {
  color: #0b3a2d;
  font-size: 1.5rem; 
  margin: 0.2rem 0;
  display: flex;
  justify-content: center;
  padding-left: 0.5rem; 
}

.property-item-wrapper {
  position: relative;
}

.property-image img {
  width: 100%;
  height: 200px; 
  object-fit: cover;
}

.property-details {
  padding: 15px;
  font-family: 'Arial', sans-serif;
}

.property-details h3 {
  font-size: 1.2rem; 
  font-weight: bold;
  color: #000;
  margin: 0.2rem 0;
  display: flex;
  justify-content: center;
}

.property-details p {
  font-size:  1rem; 
  color: #333;
  margin: 0.2rem 0;
  display: flex;
  justify-content: center;
}

.property-details p.agent-info {
  color: gray;
  font-size: 0.8rem;
  margin-top: 5px;
  font-style: italic;
}

#move_to_property_link {
  font-size: 0.8rem;
  color: #007bff;
  text-align: center;
  margin-top: 5px;
}

#move_to_property_link:hover {
  text-decoration: underline;
}

#property-location{
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Antic Didone";
  color: #014235;
  font-weight: 600;
  margin-bottom: 20px;
}

.property-item:hover {
  position: relative;
}

.property-item::after {
  content: '';
  /* position: absolute; */
  bottom: 0;
  left: 0;
  width: 0;
  height: 6px;
  background: #0b3a2d1e;
  transition: width 0.3s ease;
}

.property-item:hover::after {
  width: 100%;
}

#property-list {
  contain: content;
  max-height: 80vh;
  overflow-y: auto;
}

.property-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.2);
}

.property-details {
  padding: 15px;
  font-family: Arial, sans-serif;
}

.property-details h3 {
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.property-details p {
  margin: 5px 0;
  color: #333;
}

.property-details p.agent-info {
  color: gray;
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}

.property-link {
  color: inherit; 
  text-decoration: none; 
}

.property-link:visited,
.property-link:hover,
.property-link:active,
.property-link:focus {
  color: inherit; 
  text-decoration: none; 
}


/* PAGINATION */
#pagination-container{
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

#pagination-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background-color: #0b3a2d;
  color: #ddd;
  padding: 8px 16px;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 4px;
}

#pagination-container a:hover{
  background-color:#0d4a3b;
  color: white;
}

#pagination-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

#prev-button, #next-button {
  padding: 10px 15px;
  background-color: #0b3a2d;
  font-family: "Albert Sans", sans-serif;
  font-size: 1rem;
  color: #EAEEFB;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#prev-button:hover, #next-button:hover {
  background-color: #1e8d1e;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.pagination a:hover:not(.active) {
  background-color:#0d4a3b;
  color: white;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.carousel-indicators {
  text-align: center;
  margin-top: -30px;
  position: relative;
}

/* Add dot indicators styling */
.carousel-indicators span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 2px;
  cursor: pointer;
}

.carousel-indicators span.active {
  background-color: #717171;
}

/* MAP */

#map {
  height: 100vh;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.price-marker {
  background-color: #00bfa5;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.map-popup {
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
  max-width: 260px;
  font-family: "Antic Didone", serif;
  transition: transform 0.3s ease;
  max-height: 450px;
}

.map-popup img {
  width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: 8px;
}

.popup-title a {
  font-size: 1.2rem;
  font-weight: bold;
  color:#0d4a3b;
  text-decoration: none;
  margin-bottom: 5px;
  font-family: "Antic Didone", serif;
}

.popup-price {
  font-family: "Albert Sans", sans-serif;

  font-size: 1rem;
  margin-bottom: 5px;
}

.popup_label {
  font-family: "Albert Sans", sans-serif;

  font-weight: bold;
  color: #1b5e20;
}

.popup-beds,
.popup-baths {
  font-family: "Albert Sans", sans-serif;

  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.popup-description {
  font-size: 0.9rem;
  color: #444;
  margin-top: 10px;
}

.pagination a {
  text-decoration: none;
  background-color: #0b3a2d;
  color: #ddd;
  padding: 8px 16px;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 4px;
  display: inline-block;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
  #container {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #filters_container {
    padding-top: 1rem;
    padding-left: 0;
    padding-right: 0;
    grid-row:2;
  }

  #property-list-view{
    width: 100%;
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  #map{
    height: 100vh;
    grid-row:1;
    grid-column: 1;
  }

  #filtered-properties-container{
    grid-template-columns: repeat(3, 1fr);
  }

  #pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #filters_mobile.filters-visible {
    display: block; 
  }
}

@media (max-width: 1000px) {
  #filtered-properties-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  #property-list-view{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #property-list-view{
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
    margin: 0;
  }
  #filtered-properties-container{
    grid-template-columns: repeat(1, 1fr);
  }
  .property-item{
    max-width: 100%;
    height: auto;
    margin: 0;
  }
  #property-list-view .property-item {
    height: 490px; 
    margin: 0;
  }

  .property-image img{
    border-radius: 0;
  }

  #button-container{
    flex-direction: column;
  }
}