th {
    text-align: left;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 30rem);
    justify-content: center;
    grid-gap: 10px;
    padding: 10px;
}

.view-toggle {
    display: none;
}

/* Only allow a view toggle if we can fit more than one property tile (approx 475px) */
@media screen and (min-width: 1024px){
    .view-toggle {
        display: block;
    }
}

/* For mobile give only one column but take up the majority of the screen */
@media screen and (max-width: 1023px){
    .property-grid {
        grid-template-columns: 1fr;
        width: 85%;
        margin: auto;
    }
}

.property-tile {
    justify-content: space-between;
    overflow: hidden;
    background-color: #f4f4f4;
    border: 3px solid var(--accentblue);
    color: #272343;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.98;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    font-weight: bold;
}

.property-tile:hover {
    border-color: var(--accentplum);
}

.best-match {
    grid-column: 1;
    box-shadow: 0 0 0.5rem #559FC9;
}

.property-grid .rest-match:nth-child(2) {
    grid-column: 1;
}

.property-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


.property-content {
    padding: 8px;
    grid-row: 4 / span 3;
}

a {
    text-decoration: none;
    color: black;
}

.edit-prop-button-img {
    width: auto;
    height: 2rem;
}

.edit-prop-style {
    background-image: linear-gradient(#92BE77, #92BE77),
        linear-gradient(#e9e9e9, #e9e9e9);
    background-repeat: no-repeat;
    background-size: 100% calc(100% - 15px), 100% 20px;
    background-position: top, bottom;
}

.edit-prop-style:hover {
    background-image: linear-gradient(#a6be8b, #a6be8b),
        linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-size: 100% calc(100% - 15px), 100% 20px;
    background-position: top, bottom;
}

.del-prop-style {
    background-image: linear-gradient(#D9A37B, #D9A37B),
        linear-gradient(#e9e9e9, #e9e9e9);
    background-repeat: no-repeat;
    background-size: 100% calc(100% - 15px), 100% 20px;
    background-position: top, bottom;
}

.del-prop-style:hover {
    background-image: linear-gradient(#d9b78f, #d9b78f),
        linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-size: 100% calc(100% - 15px), 100% 20px;
    background-position: top, bottom;
}

.property-link {

}

.cs-button-4 {
    text-align: center;
    align-items: center;
    font-size: 1rem;
    line-height: clamp(1.4375rem, 4vw, 1.75rem);
    text-decoration: none;
    font-weight: 700;
    min-width: 5.4375rem;
    margin: auto;
    color: #fff;
    padding: 0 1.5rem;
    box-sizing: border-box;
    background-color: #808080;
    box-shadow: 1px 1px 0px 0px #C0C0C0;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.cs-button-4:hover {
    background-color: #b7b7b7;
    box-shadow: 0px 0px 0px 0px var(--primary);
}

.property-content tr {
    padding-bottom: 20px;
}

.recent-properties {
    position: relative;
    background: linear-gradient(to bottom, var(--bodyTextColorWhite), var(--lightPanelBGColor));
}

.recent-properties h2 {
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Equal width columns */
    grid-gap: 20px;
    max-width: 64rem; /* Constrain overall width */
    margin: 0 auto;
    padding: 12px 12px;
    background-color: #f9f9f9; /* Light background */
    border-radius: 10px; /* Soft rounded edges */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.day-dropdown {
    position: relative;
    background-color: #ffffff;
    border: 1px solid black; /* Light border for contrast */
    border-radius: 6px; /* Modern rounded edges */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); /* Subtle shadow for elevation */
    display: grid;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 22px;
    grid-template-areas:
            "date holiday holiday seen"
            "button button button button";

    /* Needed to enforce sizing when elements are missing/present */
    grid-template-columns: auto 1fr 1fr auto;
    height: 8rem;
}

/* Hover Effect */
.day-dropdown:hover {
    transform: scale(1.03); /* Slight zoom */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
    background: linear-gradient(to bottom right, #f3f3f3, #ffffff); /* Subtle gradient */
}

.day-date {
    position: relative;
    font-size: 22px;
    text-align: left;
    margin: 0;
    grid-area: date;
}

.seen-day {
    width: auto;
    height: 20px;
    grid-area: seen;
    margin-left: auto;
    margin-right: auto;
}

.seen-property {
    width: auto;
    height: 20px;
    position: absolute;
    top: 405px;
    right: 5px;
}

.interior-container {
    display: block;
    margin-top: 3px;
    margin-bottom: 3px;
}

.property-modifier-spacer {
    grid-column: 1 / span 4;
}

.card-icon {
    width:auto;
    height:1.1rem;
}

.day-dropdown:hover {
    background-color: #eaeaea;
}

.dropdown-content {
    display: none;
    padding: 10px;
}

.highlight-today {
    background-color: #bababa;
}

.highlight-today:hover {
    background-color: #eaeaea;
}

.month-header {
    text-align: center;
    text-transform: capitalize;

    font-size: larger;
}

.day-header {
    text-align: center;

    text-transform: uppercase;
    background-color: var(--lightPanelBGColor);
    padding: 15px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.month-nav {
    text-align: center;
    margin-bottom: 20px;
}

.month-nav a {
    text-decoration: none;
    font-size: 24px;
    margin: 0 15px;
    color: black; /* Adjust color as needed */
}

.month-header {
    text-align: center;
    margin-bottom: 20px; /* Adjust as needed */
}

.month-nav span {
    font-size: 24px; /* Increase font size */
    font-weight: bold; /* Make text bold */
    margin: 0 10px; /* Adjust spacing as needed */
}

.search-bar, .county-select {
    text-align: center;
    margin: 0 auto 20px auto;
    width: 95%;
    max-width: fit-content;
}

.search-bar input, .county-select select {
    font-size: 1rem;
    width: 30rem;
    padding: 0.3rem;
    color: var(--headerColor);
    background-color: #fff;
    border: 1px solid var(--headerColor);
    border-radius: 5px;
    box-sizing: border-box;
}

.county-select {
    font-weight: bold;
}

.search_query {
    font-weight: bold;
}

.address-container {
    font-weight: bold;
    font-size: 1.4rem;
}

.search-bar button, .county-select button {
    font-size: 1rem;
    padding: 0.3rem 1rem;
    margin: 0 1px;
    color: var(--headerColor);
    border: 1px solid var(--headerColor);
    border-radius: 5px;
    box-sizing: border-box;
}

.property-grid.list-view {
    display: block;
    margin-right: auto;
    margin-left: auto;
    /* Width isn't right when switching to list view. Needs to be slightly wider to appear the same. */
    max-width: 33rem;
}

.property-tile.list-view  {
    margin: 5px 0; /* Adjust spacing between list items */
    width: 100%;
}

.edit-prop-buttons {
    /*text-align: center;*/
    /*font-size: .8rem;*/
    /*text-decoration: none;*/
    /*font-weight: 700;*/
    /*margin: 100% 0 0 0;*/
    /*height: 60px;*/
    color: #000;
    z-index: 1;
    /*padding: 3px;*/
}

.property-tile.seen-tile::after {
    background: linear-gradient(to top right, #f4f4f4 95%, #559FC9) top right no-repeat;
}

.property-tile.seen-tile.list-view {
    background: linear-gradient(to top right, #f4f4f4 95%, #559FC9) top right no-repeat;
}

.button-text-container {
    position: relative;
    width: 35px;
    display: inline-block;
    margin-right: 10px;
}

.button-text-container img {
    display: block;
    width: 60%;
    height: auto;
    margin: 5px auto;
}

.button-text-container .button-text {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: .75rem;
}

.prop-button-row {
    display: flex;
    justify-content: space-between;
    margin-left: 10px;
    margin-bottom: 10px;
}

.icon-spacing {
    margin-left: 10px;
}

.cancel-banner {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -400%) rotate(-30deg);
    color: rgb(250, 0, 0, 0.6);
    border-radius: 30px;
    border: 3px solid;
    padding: 5px;
    font-weight: bold;
    font-size: 4rem;
    text-align: center;
    display: block;
    background-color: rgb(255, 255, 255, 0.9);
}

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 30rem);
    justify-content: center;
    grid-gap: 10px;
    padding: 20px;
}

.property-count {
    grid-area: button;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: auto;
    font-size: 1.2rem;
    border-radius: 5px;
    color: white;
    background-color: black;
    padding: 8px;
    font-weight: bold;
}

.holiday {
    grid-area: holiday;
    font-size: .8rem;
    margin-left: auto;
    margin-right: auto;
}

.house-icon {
    width: auto;
    height: 2rem;
}

.day-date-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    text-align: center;
    background-color: transparent;
    vertical-align: middle;
    line-height: normal;
}

.day-date-text.current-day {
    background-color: var(--softred);
    border-radius: 50%;
}

.location-select {
    display: flex;
    gap: 1rem; /* Space between the two forms */
    max-width: 800px; /* Optional: Restrict overall width */
    margin: 1rem auto; /* Center the forms horizontally */
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form {
    flex: 1; /* Makes both forms take equal space */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Space between elements in the form */
}

label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

select, button {
    padding: 0.5rem;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Responsive design: Stacks forms vertically on smaller screens */
@media (max-width: 600px) {
    .location-select {
        flex-direction: column;
    }
}

optgroup {
    font-weight: bold;
    color: #666;
}

@media screen and (max-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 10px;
    }

    .day-header {
        font-size: 1rem;
        padding: 4px 5px;
    }

    .day-date {
        font-size: 22px;
    }

    .day-dropdown {
        font-size: 0.8rem;
        padding: 8px;
        grid-template-columns: auto 1fr 1fr auto;
        height: 7rem;
    }

    .property-count {
        font-size: 1rem;
        padding: 6px;
    }
}

@media screen and (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 10px;
    }

    .day-header {
        font-size: 0.9rem;
        padding: 6px 4px;
    }

    .day-date {
        font-size: 16px;
    }

    .day-dropdown {
        font-size: 0.75rem;
        padding: 6px;
        grid-template-columns: auto 1fr 1fr auto;
        height: 6rem;
    }

    .property-count {
        font-size: 0.9rem;
        padding: 5px;
    }
}

@media screen and (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 4px;
    }

    .day-header {
        font-size: 0.8rem;
        padding: 5px 3px;
    }

    .day-date {
        font-size: 1.2rem;
    }

    .day-dropdown {
        font-size: 0.7rem;
        padding: 8px;
        grid-template-columns: auto 1fr 1fr auto;
        height: 7rem;
    }

    .property-count {
        font-size: 0.8rem;
        padding: 4px;
    }
}

.laa-blur .property-image {
    filter: blur(10px) grayscale(40%);
}

.laa-blur .property-content {
    filter: blur(6px);
}

.laa-floating-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.laa-floating-banner a {
    color: #ffd166;
    font-weight: 700;
    text-decoration: underline;
}