* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body  {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

body {
    min-height: 100vh;
}

/* Font for Headers */
h1, h2 {
    font-family: 'DM Serif Display', serif;
    color: black;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: .5rem;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

h2 {
    font-size: 34px;
}

h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: black;
}

h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: black;
}

h5 { /* For Menu & Login sheets */
    font-size: 1.25rem;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
}

h6 { /* For navbar title */
    font-size: 2rem;
    font-family: 'DM Serif Display', serif;
    color: #DAD7CD;
    padding: 10px;
    text-align: center;
}

p {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    line-height: 1.6;
    color: black;
}

ul {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    line-height: 1.6;
    color: black;
}

nav {
    background-color: #344E41;
    padding: 10px 20px;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 15;
}

.logo img {
    width: 100px;
    height: auto;
    max-height: 50px;
    vertical-align: middle;
    cursor: pointer;
}

.menu-container { /* Container for hamburger */
    left: 20px;
    z-index: 10;
    padding: 10px 0px 10px 0px;
    display: none; /* Hidden for large screen, shown for smartphone */
}

.hamburger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #DAD7CD;
    border-radius: 5px;
    transition: color 0.3s;
}

.bar:hover {
    color: white;
}

.menu-sheet, .login-sheet {
    height: 100%;
    width: 100%;
    position: fixed;
    top: -100%;
    left: 0;
    background-color: #24362d;
    overflow-x: hidden;
    transition: top 0.1s ease-in-out;
    padding-top: 60px;
    z-index: 1000;
}

.menu-sheet a, .login-sheet a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 2rem;
    color: #fff;
    display: block;
    transition: 0.1s;
}

.menu-sheet a {
    text-align: left;
}

.login-sheet a {
    text-align: right;
}

.menu-sheet a:hover, .login-sheet a:hover {
    background-color: #575757;
    color: #fff;
}

.v-counter, .p-counter {
    color: #24362d;
    font-size: 2rem;
    padding: 0 15px;
    position: absolute;
    top: 250px;
    left: 100px;
}

.p-counter {
    top: 400px !important;
    left: 100px !important;
}

.closemenu, .closelogin {
    cursor: pointer;
    position: absolute;
    color: #fff;
    top: 12px;
    right: 25px;
    font-size: 36px;
}

.closemenu {
    left: 20px !important;
}

.login img {
    height: 25px;
    padding: 8px 10px 0 0;
    margin-left: 20px;
    cursor: pointer;
}
.login a {
    height: 25px;
    padding: 8px 10px 0 0;
    margin-left: 20px;
    font-size: 18px;
    color: #DAD7CD;
    text-decoration: none;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: auto; /* Align to the right */
}

.nav-links li {
    margin-left: 20px;
    margin-bottom: -30px;
}

.nav-links li a {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: #DAD7CD;
    text-decoration: none;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s;
}
.nav-links li a:hover {
    color: white;
}

@media (max-width: 768px) {
    nav {
        padding: 10px 10px;
    }
    .nav-links {
      display: none; /* Hide text links */
    }

    .menu-container {
      display: block; /* Show 'Menu' link */
      order: 0;
    }

    .logo {
        order: 1;
    }

    .login {
        order: 3;
    }

    h6 {
        order: 2;
        font-size: 1.5rem;
    }
}

.main-content {
    flex: 1;
    display: flex;
    background-color: #A3B18A;
    max-width: 100%;
    white-space: normal; /* Allows text to wrap */
}

main {
    flex: 1;
}

section {
    display: none; /* Hide all sections by default */
    padding: 80px 40px 40px;
    text-align: left;
    background-color: #A3B18A;
    flex-grow: 1;
    flex-direction: column;
}

section.active {
    display: flex; /* Show the active section */
}

/* Main Section Styling */
#home {
    text-align: center;
}

/* Slideshow container */
.slideshow-container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    margin: auto;
    justify-content: center;
    align-items: center;
    }
    
    .mySlides img {
        top: 0px;
        left: 50%;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border: 5px solid #ddd;
        outline: 2px solid #344E41
    }

  
  /* Hide the images by default */
  .mySlides {
    display: none;
  }
  
  /* Fading animation */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

/* Properties Section Styling */
#properties h2 {
    text-align: left;
    margin-bottom: 20px;
}

.property-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping if cards don't fit in one row */
    gap: 2rem; /* Spacing between cards */
}

.property-card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 18rem;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    margin-bottom: 2rem!important;
    border: 1px solid rgba(0,0,0,.125);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: .25rem;
    justify-content: left;
    align-items: center;
    box-sizing: border-box;
}

.property-card-img {
    width: 100%;
    height: 10rem;
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
    vertical-align: middle;
}

.property-card-body {
    flex: 1 1 auto;
    background-color: #ffffff;
}

.property-card-title {
    padding: 1rem 1rem;
    white-space: nowrap;      /* Prevents the title from wrapping */
}

.property-card-text {
    padding: 0 1rem 1rem;
    font-size: 1rem;
}

.property-card-body a {
    padding: 1rem 1rem;
    display: block;
    text-decoration: none;
    color: black;
}

.property-card-body a:hover {
    background-color:#DAD7CD;
}

.backPropList {
    cursor: pointer;
    position: sticky;
    top: 80px;
    width: 40px;
    padding: 5px 10px 5px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    transition: 0.3s;
    background-color: rgba(0, 0, 0, 0.3); /* Transparent background */
    border: 2px solid black;
    left: 5px;
}
.backPropList:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Darker background on hover */
    color: white;
}

#description, #photos {
    padding: 10px;
}

#property-description {
    padding: 30px 30px 30px 60px;
    display: none;
}

.photos-container{
    padding: 30px 30px 30px 60px;
}

#property-title {
    font-family: 'DM Serif Display', serif;
    font-weight: bold;
    font-size: 34px;
}
/* CSS for photo-gallery after the other sections below */

/* Management and Contact Sections */
#management, #contact {
    line-height: 0.5;
}

#management ul {
    line-height: 0.5;
}

#management li {
    line-height: 2;
}

.contact-info p a {
    color: black;
    text-decoration: none;
    flex-direction: row;
}

.contact-info p a:hover {
    text-decoration: underline;
}

.callback {
    cursor: pointer;
    font-size: 24px;
    color: #588157;
}
.contact-button {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #588157;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.contact-button:hover {
    background-color: #3A5A40;
}
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.contact-modal-content {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
}
.contact-modal-header {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}
.contact-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.contact-btn-submit {
    background-color: green;
    color: white;
}
.contact-btn-cancel {
    background-color: red;
    color: white;
}

/* Login sections */
#login-mgt, #login-tenant {
    background-color: white;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
}

.login-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-card-body {
    padding: 15px;
}

.login-card-title {
    font-size: 1.5rem;
    color: #344E41;
    margin-bottom: 15px;
    text-align: center;
}

.login-card-body input[type="text"], .login-card-body input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-card-body input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #588157;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-card-body input[type="submit"]:hover {
    background-color: #3A5A40;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Footer Styling */
.wide-footer {
    background-color: #344e41;
    text-align: center;
    padding: 10px 20px;
    margin-top: 0px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

.wide-footer p {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #dad7cd;
    text-decoration: none;
}

.wide-footer a {
    text-decoration: none;
    color: #dad7cd;
    cursor: pointer;
}

.wide-footer img {
    height: 50px;
    max-height: 50px;
    margin: 0px 5px;
    cursor: pointer;
}

.phone-footer {
    background-color: #344e41;
    text-align: center;
    padding: 10px 20px;
    margin-top: 0px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    display: none;
}

.phone-footer-logos {
    display: flex;
    justify-content: space-between;
}

.phone-footer p {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #dad7cd;
    text-decoration: none;
}

.phone-footer a {
    text-decoration: none;
    color: #dad7cd;
    cursor: pointer;
}

.phone-footer img {
    height: 20px;
    max-height: 20px;
    margin: 0px 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .wide-footer {
      display: none; /* Hide text links */
    }
  
    .phone-footer {
      display: block; /* Show 'Menu' link */
    }
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    padding: 10px 0;
    box-sizing: border-box;
    width: 100%;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid white;
    cursor: pointer;
}

.photo-gallery img:hover {
    border: 1px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow around the image on hover */
}

/* Photo overlay modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 60px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0);
    justify-content: center;
}

.modal img {
    margin: auto;
    display: block;
    width: auto;
    max-width: 100%; /* Ensure the image does not exceed the width of the modal */
    max-height: 100%; /* Ensure the image does not exceed the height of the modal */
    object-fit: contain; /* Ensure the entire image fits inside the modal without being cropped */
}

/* Previous and Next buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 5px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
    transition: 0.3s;
    background-color: rgba(0, 0, 0, 0.3); /* Transparent background */
    border: 2px solid black;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Darker background on hover */
    color: white;
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    z-index: 1;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Formatting for lettings pages */
.blurb {
    padding: 20px 10px 50px;
    text-align: left;
    background-color: #A3B18A;
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    color: black;
    font-weight: normal;
	font-size: 1.2em;
	text-align: left;
    white-space: normal; /* Allows text to wrap */
	color: black;
}

.blurb ul {
	margin-top: 5px;
	padding: 0 0 0 25px;
}

.blurb li a, .blurb li {
	text-decoration: none;
	cursor: pointer;
    color: black;
}

.blurb ul li a:hover, .blurb ul li:hover {
    text-decoration: underline;
	color: blue;
}

/* Style the button that is used to open and close the collapsible content
.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    max-width: 500;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
  }
  .collapsible:after {
    content: '\02795'; /* Unicode character for "plus" sign (+)
    font-size: 13px;
    color: white;
    float: right;
    margin-left: 5px;
  }
  
  .collapsible.active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-)
  }
  
  /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover)
  .collapsible.active, .collapsible:hover {
    background-color: #ccc;
  }
  
  /* Style the collapsible content. Note: hidden by default
  .collapsiblecontent {
    padding: 0 18px;
    max-height: 0;
    max-width: 500;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f1f1f1;
  } */