
.property-page {
  background-color: var(--light-blue);
  width: 100vw;
}

#main-property-card {
  height: max-content;
}


.property-card {
  display: flex;
  flex-direction: column;
  padding: 0 5%;
  row-gap: 1rem;
}

/* Image Card */

.main-image-container {
  position: relative; 
  width: 100%; 
  max-width: 800px; 
  height: 400px; 
  overflow: hidden; 
  /* border-radius: 10px; */
  box-shadow: 0 1px 8px #0b3a2d;
}

.card-img-top {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
  object-position: center; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.image-arrow {
  position: absolute; 
  color: black;
  height: 20%; 
  top: 50%; 
  font-size: 24px; 
  cursor: pointer; 
  background: rgba(255, 255, 255, 0.7); 
  border: none; 
  z-index: 15; 
  transform: translateY(-50%);
}

.image-arrow:hover {
  color: white;
  background: black;
}

#prev-image {
  left: 10px; 
  text-align: center; 
  padding: 20px; 
  background-color:rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid #1b5e20; 
  width: 7%;
}

#prev-image {
  transition: color 0.3s ease, background 0.3s ease;
}

#prev-image:hover {
  color: white;
  background-color: rgba(0, 0, 0, 0.8);
}

#next-image {
  right: 10px; 
  text-align: center; 
  padding: 20px; 
  background-color:rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid #1b5e20; 
  width: 7%;
  transition: color 0.3s ease, background 0.3s ease;
}

#next-image:hover {
  color: rgb(255, 255, 255, 0.7);
  background-color: rgba(0, 0, 0, 0.8);
}
  .thumbnail-carousel {
    display: flex;
    column-gap: 5px;
    overflow-x: auto;
    padding: 10px 5px;
    max-width: 800px;
  }

  .thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.2s;
    /* border-radius: 10px; */
    box-shadow: 0 1px 8px #0b3a2d;
  }

  .thumbnail:hover {
    transform: scale(1.05);
  }
  
  #property-page-qr-code-button{
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    background-color: #2a7a3d;
  }


.property-address {
    color: #014235;
    font-family: "Antic Didone";
    font-weight: 900;
    font-style: normal;
    letter-spacing: normal;
    font-size: 1.5rem;
    margin: 5px;
    margin-top: 2rem;
  }

  .property-status{
    font-family: "Albert Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #1b5e20;
    padding: 20px 20px 18px 20px;
  }

  .property-status h3 {
    font-weight: 700;
    font-style: italic;
  }

  .property-overview-header {
    font-weight: 700;
    margin-left: 5px;
  }

  #favorites_button {
    position: absolute;
    margin: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: black;
    cursor: pointer;
    z-index: 20;
  }

  #favorites_button::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }

  #favorites_button:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
  }

  #favorites_button:active {
    transform: scale(1.1);
  }

/* Details Map */
#details-map-container{
  contain: content;
  /* background: linear-gradient(to bottom, #ffffff, hsla(171, 29%, 69%, 0.349)); */
  /* border-radius: 10px; */
  /* box-shadow: 0 1px 8px #0b3a2d; */
  padding: 40px 20px;
  border-bottom: 1px solid #1b5e20;
}

#details-map{
  max-height: 400px;
  height: 100vh;
  padding: 20px 0;
  /* border-radius: 10px; */
  box-shadow: 0 1px 8px #0b3a2d;}

#directions-header{
  color: #014235;
  font-family: "Antic Didone";
  font-weight: 900;
  font-style: normal;
  letter-spacing: normal;
  font-size: 1.5rem;
  margin: 0;
}

#origin{
  width: auto;
}

#address-input{
  font-style: italic;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  color: #1b5e20;
  font-size: 1.2rem;
  padding-left: 20px;
}

.adp-substep{
  font-style: italic;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  color: #1b5e20;
  font-size: 1.2rem;
}

  /* Overview Styles */
  
  .property-details-card{
    display: grid;
    row-gap: 20px;
  }
  
.overview-content{
  /* background: linear-gradient(to bottom, #ffffff, hsla(171, 29%, 69%, 0.349)); */
  /* border-radius: 10px; */
  /* box-shadow: 0 1px 8px #0b3a2d; */
  padding: 40px 20px;
  border-bottom: 1px solid #1b5e20;
}

  
  #overview-header{
    color: #014235;
    font-family: "Antic Didone";
    font-weight: 900;
    font-style: normal;
    letter-spacing: normal;
    font-size: 1.5rem;
    margin: 0;
  }

#overview-detail-title{
  font-style: italic;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  color: #1b5e20;
  font-size: 1.2rem;
}

.property-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 0;
}


.property-details-grid h3{
  font-family: "Albert Sans", sans-serif;
  font-style: normal;
  color: #1b5e20;
}
.property-overview-item{
  text-align: left; 
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 2fr;
  align-items: baseline;
}

.property-overview-item h3{
  display: flex;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #1b5e20;
}

.property-overview-item span{
  text-align: left;
  padding-left: 20px;
  display: flex;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #1b5e20;
}


#description-header{
  color: #014235;
  font-family: "Antic Didone";
  font-weight: 900;
  font-style: normal;
  letter-spacing: normal;
  font-size: 1.5rem;
  margin: 0;
}

.description-content{
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #1b5e20;
  padding: 20px 30px 0 30px;;
}

#route-form button{
  background-color: #0b3a2d;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Collapsibles */

.card-body{
  /* background: linear-gradient(to bottom, #ffffff, hsla(171, 29%, 69%, 0.349)); */
  /* border-radius: 10px; */
  /* box-shadow: 0 1px 8px #0b3a2d; */
  border-bottom: 1px solid #1b5e20;
}


  .collapsible {
    cursor: pointer;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
  }

    #collapsible-header{
      color: #014235;
      font-family: "Antic Didone";
      font-weight: 900;
      font-style: normal;
      letter-spacing: normal;
      font-size: 1.5rem;
      margin: 0;
    }


  .card-body:hover {
    /* transform: translateY(-10px); */
    /* box-shadow: 0 8px 12px #295943; */
    background-color: rgba(255, 255, 255, 0.137);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .content {
    display: none;
    overflow: hidden;
    padding: 0 60px;
    padding-bottom: 20px;
  }

  .property-detail-item{
    text-align: left; 
    display: flex;
    flex-direction: column;
    align-items: baseline;
  }

  .property-detail-item h3{
    display: flex;
    font-family: "Albert Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #1b5e20;
  }

  .property-detail-item span{
    text-align: left;
    padding-left: 20px;
    display: flex;
    font-family: "Albert Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.2rem;
    color: #1b5e20;
  }

  .collapsible-icon{
    color: #014235;
    font-family: "Antic Didone";
    font-weight: 900;
    font-style: normal;
    letter-spacing: normal;
    font-size: 1.5rem;
    margin: 0;
  }

  /* Image Modal */
  .modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
  }

  .modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
  }

  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }

  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }


/* Contact and Calculator */
#forms-container{
    display: flex;
    justify-content: space-around;
    padding: 20px 5%;
    gap: 20px;
}


#mortgage-calculator-container{
    height: 100%;
    border-radius: 8px;
    justify-content: center;
    display: flex;

}

#mortgage-form{
 width: 100%;
}
#amount-container{
  grid-row: 1;
  grid-column: 1;
  padding-bottom: 20px;
}

#down-payment-container{
  grid-row: 2;
    grid-column: 1;
  padding-bottom: 20px;
}

#interest-rate-container{
  grid-row: 2;
    grid-column: 2;
  padding-bottom: 20px;
}

#loan-terms-container{
  padding-bottom: 20px;
}

  .mortgage-calculator {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.mortgage-calculator h5 {
  font-family: "Antic Didone", serif;
  font-size: 2rem;
  color: #014235;
  text-align: center;
  margin-bottom: 20px;
}

.mortgage-form-group {
    font-size: 1rem;
    font-family: "Albert Sans", sans-serif;
    color: #014235;
}

.mortgage-form-group label {
  display: block;
  margin-bottom: 5px;
}

.mortgage-form-group input {
    width: -webkit-fill-available;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: "Albert Sans", sans-serif;
    font-size: 16px;
    margin-top: 8px;
}

#calculate_form_submit_button {
  padding: 12px;
  background-color: #2a7a3d;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #EAEEFB;
}

#calculate_form_submit_button:hover {
  background-color: #1e8d1e;
}

.result {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2em;
}

#contactUsForm{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.contact-form {
  background-color: var(--light-blue);
  padding: 20px;
  border-radius: 8px;position: fixed;
    right: 0;
  margin-top: 20px;
}

#contactForm{
  display:none;
  position: fixed;
  top: 10%;
  right: 0;
  margin-right: 10%;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 10px;
  box-shadow: 0 1px 8px #0b3a2d;
}

#messageGroup{
  grid-column-start: 1;
  grid-column-end: 3;
}

.contact-form h5 {
  margin-bottom: 15px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 5px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: -webkit-fill-available;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.contact-form .form-error {
  color: red; 
  margin-top: 5px;
}

.contact-form .form-button {
  background-color: var(--dark-blue); 
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form .form-button:hover {
  background-color: var(--darker-blue); 
}

.properties-popout-button{
    position: fixed;
    right: 0;
    margin-right: 2%;
    z-index: 10002;
    font-size: 2.5rem;
    color: var(--dark-green);
}
  #properties-calculate{
    top: 13%;
  }
  #properties-contact{
    top:6%
  }


  /* Mobile Styles */
  @media (max-width: 1000px) {

    .thumbnail-carousel {
    width: auto;
    max-width: auto;
    max-height: auto;
    height: auto;
  }

  #mortgage-form{
    display: flex;
    width: 100%;
    flex-direction: column;
  }
}

  @media (max-width: 768px) {
    #property-card-images-container{
    width: 100%;
    }
    .property-details-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .property-card{
      margin: 0;
      padding: 0;
    }

    .property-details-card{
      padding: 5%;
    }
    #property-cards-images-inner-container{
      padding: 0;
    }

    #property-cards-images-inner-container h5{
      padding: 20px;;
    }

    .thumbnail-carousel{
      padding: 2px;
    }


    .property-status{
      padding: 20px 20px 18px 20px;
    }


    #mortgage-calculator-container{
    margin-left: 0;
    margin-right: 0;
    }

    .mortgage-calculator{
      width: -webkit-fill-available;
    }

    #mortgage-form{
      display: flex;
      width: 100%;
      flex-direction: column;
    }

    #monthlyPayment{
      font-family: "Antic Didone", serif;
      font-size: 2rem;
      color: #014235;
      text-align: center;
      margin-bottom: 20px;
    }
    
    .card-img-top {
    max-height: 400px;
    }
    .property-details-card{
      margin-right: 0;
      padding: 5%;
    }

    #forms-container{
      padding: 0 5%;
    }
    #contactForm{
    display:block;
    position: initial;
      margin-right: 0;
    }

    #mortgage-calculator-container{
    display:block;
    position: initial;
    }

    .properties-popout-button{
    display: none;
    }

    #about-contact-form-container{
      padding: 0;
    }
    #contactUsForm{
      display: block;
    }

    #about-contact_us_form{
      width: 100%;
    }
   
    .image-arrow {
      font-size: 18px;
      padding: 10px;
    }

    #prev-image, #next-image {
      width: 10%;
    }
    
    @media (max-width: 768px) {
      .image-arrow {
        font-size: 16px;
        padding: 8px;
      }

      #prev-image, #next-image {
        width: 12%;
      }
    }

    @media (max-width: 480px) {
      .image-arrow {
        font-size: 14px;
        padding: 6px;
      }

      #prev-image, #next-image {
        width: 15%;
      }
    }
  }

  @media (max-width: 1000px) {
    #forms-container{
      display: flex;
      flex-direction: column;
    }
    
    #mortgage-calculator-container{
      width: 100%;
      display: block;
    }

    .mortgage-calculator{
      width: -webkit-fill-available;
    }
    
    #about-contact-form-container{
      width: 100%;
    }
    
    #about-contact_us_form{
      width: 100%;
      padding-top: 0;
    }
    .mortgage-calculator h5 {
      transform: none;
    }

    #calculate_form_submit_button {
      transform: none;
    }
  }

  @media (max-width: 480px) {
    .property-details-grid {
      grid-template-columns: 1fr;
    }
    #about-contact-form-grouping{
      padding-left: 2rem;
      padding-right: 2rem;
    }
    #about-contact_us_form{
      padding-left: 0;
      padding-right: 0;
    }
  }

  @media (max-width: 500px) {
    .property-detail-item {
      grid-template-columns: 1fr 1fr;
    }

    .calculate-form-button{
      width: 100%;
    }
  }

  
  @media (max-width: 480px) {
    .property-details-grid {
      grid-template-columns: 1fr;
    }
  }

  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }
  
