.appfolio-property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.appfolio-property-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.appfolio-property-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.appfolio-property-card__image {
    display: block;
    width: 100%;
    height: 300px !important;
    object-fit: cover;
}

.appfolio-property-card__content {
    padding: 20px;
}

.appfolio-property-card__content h2 {
    margin: 0 0 8px;
    line-height: 1.2;
    font-size: 22px;
}

.appfolio-property-card__location {
    margin: 0 0 14px;
}

.appfolio-property-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 18px;
}

.appfolio-property-card__button {
    display: inline-block;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .appfolio-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .appfolio-property-grid {
        grid-template-columns: 1fr;
    }
}

.appfolio-property-card__excerpt {
    margin: 0 0 18px;
}

.appfolio-property-single {
    width: min(1200px, calc(100% - 40px));
    margin: 50px auto;
}

.appfolio-property-single__header {
    margin-bottom: 28px;
}

.appfolio-property-single__header h1 {
    margin-bottom: 8px;
    color: #231f20;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 60px;
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .appfolio-property-single__header h1 {
        font-size: 32px;
    }
}

.appfolio-property-single__address {
    font-size: 1.1rem;
}

.appfolio-property-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.appfolio-property-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.appfolio-property-gallery img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.appfolio-property-gallery__item:first-child img {
    height: 496px;
}

.appfolio-property-facts {
    margin: 0 0 36px;
}

.appfolio-property-facts dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
}

.appfolio-property-facts__item {
    background: #fff;
    padding: 16px;
}

.appfolio-property-facts dt {
    font-weight: 700;
    margin-bottom: 4px;
}

.appfolio-property-facts dd {
    margin: 0;
}

.appfolio-property-single__content {
    margin-bottom: 30px;
}

.appfolio-property-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.appfolio-property-button {
    display: inline-block;
    padding: 12px 20px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border: 1px solid #222;
}

.appfolio-property-button--secondary {
    background: #fff;
    color: #222;
}

@media (max-width: 800px) {

    .appfolio-property-gallery,
    .appfolio-property-facts dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appfolio-property-gallery__item:first-child {
        grid-column: span 2;
        grid-row: auto;
    }

    .appfolio-property-gallery__item:first-child img {
        height: 360px;
    }
}

@media (max-width: 520px) {

    .appfolio-property-gallery,
    .appfolio-property-facts dl {
        grid-template-columns: 1fr;
    }

    .appfolio-property-gallery__item:first-child {
        grid-column: auto;
    }

    .appfolio-property-gallery img,
    .appfolio-property-gallery__item:first-child img {
        height: 260px;
    }
}

.appfolio-property-card__badges,
.appfolio-property-single__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.appfolio-property-card__badges span,
.appfolio-property-single__badges span {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.appfolio-property-card__details span {
    display: block;
    width: 100%;
}

.appfolio-property-card__extras {
    padding-top: 12px;
    margin-bottom: 16px;
    border-top: 1px solid #e5e5e5;
}

.appfolio-property-card__extras p {
    margin: 0 0 6px;
    font-size: 14px;
}

.appfolio-property-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 36px;
}

.appfolio-property-sections section {
    padding: 22px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.appfolio-property-sections h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.appfolio-property-facts h2 {
    font-size: 28px;
}

.appfolio-property-sections ul {
    margin-bottom: 0;
    padding-left: 20px;
}

@media (max-width: 800px) {
    .appfolio-property-sections {
        grid-template-columns: 1fr;
    }
}

.appfolio-property-summary-value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.appfolio-carousel {
    position: relative;
    width: 100%;
}

.appfolio-carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.appfolio-property-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.appfolio-property-gallery::-webkit-scrollbar {
    display: none;
}

.appfolio-property-gallery__item {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
}

.appfolio-property-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appfolio-carousel__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.appfolio-carousel__arrow--previous {
    left: 15px;
}

.appfolio-carousel__arrow--next {
    right: 15px;
}

.appfolio-carousel__arrow:hover,
.appfolio-carousel__arrow:focus-visible {
    background: #000;
}

.appfolio-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Two images on tablets. */
@media (max-width: 900px) {
    .appfolio-property-gallery__item {
        flex-basis: calc((100% - 20px) / 2);
    }
}

/* One image on mobile. */
@media (max-width: 600px) {
    .appfolio-property-gallery__item {
        flex-basis: 100%;
    }

    .appfolio-carousel__arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .appfolio-carousel__arrow--previous {
        left: 8px;
    }

    .appfolio-carousel__arrow--next {
        right: 8px;
    }
}

/* AppFolio enquiry modal. */
body.appfolio-enquiry-open {
    overflow: hidden;
}

.appfolio-enquiry-modal[hidden] {
    display: none;
}

.appfolio-enquiry-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.appfolio-enquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.appfolio-enquiry-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.appfolio-enquiry-modal__dialog h2 {
    margin: 0 40px 8px 0;
    font-size: 32px;
    line-height: 1.2;
}

.appfolio-enquiry-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.appfolio-enquiry-form,
.appfolio-enquiry-form label {
    display: block;
}

.appfolio-enquiry-form {
    margin-top: 22px;
}

.appfolio-enquiry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.appfolio-enquiry-form label {
    margin-bottom: 16px;
    font-weight: 600;
}

.appfolio-enquiry-form input[type="text"],
.appfolio-enquiry-form input[type="email"],
.appfolio-enquiry-form input[type="tel"],
.appfolio-enquiry-form input[type="date"],
.appfolio-enquiry-form input[type="number"],
.appfolio-enquiry-form select,
.appfolio-enquiry-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
    box-sizing: border-box;
}

.appfolio-enquiry-form input:focus,
.appfolio-enquiry-form select:focus,
.appfolio-enquiry-form textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


.appfolio-enquiry-form__optional {
    margin: 4px 0 18px;
    padding: 14px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
}

.appfolio-enquiry-form__optional summary {
    font-weight: 700;
    cursor: pointer;
}

.appfolio-enquiry-form__optional > p {
    margin: 10px 0 16px;
    font-size: 14px;
}

.appfolio-enquiry-form__pets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0;
    padding: 0;
    border: 0;
}

.appfolio-enquiry-form__pets legend {
    width: 100%;
    margin-bottom: 8px;
    font-weight: 700;
}

.appfolio-enquiry-form__pets label {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    font-weight: 400;
}

.appfolio-enquiry-form__consent {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 400 !important;
}

.appfolio-enquiry-form__consent input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.appfolio-enquiry-form__status {
    min-height: 24px;
    margin: 0 0 12px;
}

.appfolio-enquiry-form__status.is-error {
    color: #a10000;
}

.appfolio-enquiry-form__status.is-success {
    color: #146c2e;
    font-weight: 700;
}

.appfolio-enquiry-form__submit[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.appfolio-enquiry-form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .appfolio-enquiry-modal {
        padding: 12px;
    }

    .appfolio-enquiry-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 18px;
    }

    .appfolio-enquiry-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}