:root {
    --brand-color: black;
}

.apex27-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 120rem;
    width: calc(100% - 4rem);
}

.apex27-container h1,
.apex27-container h2,
.apex27-container h3 {
    margin-top: 6rem;
    margin-bottom: 3rem;
}

.apex-container h2 {
    font-size: 48px;
}

.apex-container h3 {
    font-size: 40px;
}

.apex27-container h4 {
    margin-top: 4.5rem;
    margin-bottom: 2.5rem;
    font-size: 32px;
}

ul.apex27-media-list, ol.apex27-media-list {
    margin-bottom: 3rem;
}

@media (min-width: 700px) {
    .apex27-container {
        width: calc(100% - 8rem);
    }

    ul.apex27-media-list, ol.apex27-media-list {
        margin-bottom: 4rem;
    }

}

.apex27-footer {
    text-align: center;
    line-height: 32px;
    margin-top: 48px;
    margin-bottom: 32px;
}

.apex27-footer img {
    vertical-align: middle;
}

.sr-only {
    display: none;
}

.d-flex {
    display: flex!important;
}

.d-inline {
    display: inline!important;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex-fill {
    flex: 1 1 auto!important;
}

.px-3 {
    padding-left: 16px;
    padding-right: 16px;
}

.mb-0 {
    margin-bottom: 0!important;
}

.my-3 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.my-5 {
    margin-top: 48px;
    margin-bottom: 48px;
}

.mt-0 {
    margin-top: 0!important;
}

.btn {
    font-family: "Inter var", "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    padding: 8px 16px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

.btn:link, .btn:visited {
    color: white;
}

.btn:hover {
    text-decoration: none;
}

.btn[disabled] {
    opacity: 0.75;
}

.btn-brand {
    background: var(--brand-color) !important;
    color: white;
}

.text-brand {
    color: var(--brand-color) !important;
}

.text-center {
    text-align: center!important;
}

.text-right {
    text-align: right!important;
}

.lead {
    font-size: 48px;
}

.featured-badge {
    display: inline-block;
    background: rgba(255, 0, 0, .75);
    padding: 0 0.5rem;
    font-weight: bold;
}

#property-search-form .d-flex > * {
    margin-bottom: 6px;
    margin-right: 8px;
    width: 200px;
}

#property-search-form button {
    padding: 0 16px;
    height: 45px;
    background: var(--brand-color);
    color: white;
    border: 0;
    text-transform: uppercase;
}

#property-search-form select {
    padding: 8px;
    border-radius: 4px;
}

.card > .card-body {
    padding: 16px;
    line-height: 1.5;
}

/* Property Card */

.card.property-card > .card-body {
    background: rgba(0, 0, 0, 0.05);
}

.card.property-card.featured > .card-body {
    background: darkslategrey;
    color: white;
}

.card.property-card img {
    height: 256px;
    object-fit: cover;
}

.card.property-card > .card-body > .d-flex {
    flex-direction: column;
}

.card.property-card .property-card-image {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.property-card-details {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media screen and (min-width: 768px) {

    .card.property-card > .card-body > .d-flex {
        flex-direction: row;
    }

    .card.property-card .property-card-image {
        width: 30%;
        margin-bottom: 0;
    }

    .property-card-details {
        width: 70%;
    }
}

/* Property Details */

span.property-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 16px;
    background: rgba(255, 0, 0, .75);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

span.property-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .25);
    padding: 8px 16px;
    color: white;
    text-align: center;
}

.property-details-status, .property-details-banner {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 0, 0, .75);
    color: white;
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
    letter-spacing: 0;
}

.property-details-banner {
    background: rgba(0, 0, 0, .75);
}

.mt-1 {
    margin-top: 8px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 48px;
}

.img-fluid {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.row > div {
    width: 100%;
    margin-left: 15px;
    margin-right: 15px;
}

.row > div:first-child {
    margin-left: 0;
}

.row > div:last-child {
    margin-right: 0;
}

@media (min-width: 1200px) {

    .mt-xl-0 {
        margin: 0!important;
    }

    .col-xl-4 {
        flex: 4;
    }

    .col-xl-8 {
        flex: 8;
    }

}

ul.property-details-bullets-list {
    color: var(--brand-color);
    list-style-type: square;
}

ul.property-details-bullets-list > li {
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 8px;
}

#property-details-thumbnails {
    white-space: nowrap;
    overflow: auto;
    margin-bottom: 16px;
    position: relative;
}

#property-details-thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: inline-block;
    opacity: 0.5;
    cursor: pointer;
}

#property-details-thumbnails img:hover {
    opacity: 0.75;
}

#property-details-thumbnails img.active {
    opacity: 1;
}

#property-details-slider {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

#property-details-slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: inline-block;
}

#property-details-slider video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: inline-block;
}

#property-details-slider-prev, #property-details-slider-next {
    position: absolute;
    display: inline-block;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    top: 226px;
    line-height: 48px;
    text-align: center;
}

#property-details-slider-prev:hover,
#property-details-slider-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

#property-details-slider-prev {
    left: 0;
}

#property-details-slider-next {
    right: 0;
}

#property-details-media-buttons .btn {
    margin-bottom: 16px;
}

/* Contact Form */

#apex27-contact-form label {
    display: inline-block;
}

#apex27-contact-form input[type=text],
#apex27-contact-form input[type=tel],
#apex27-contact-form input[type=email],
#apex27-contact-form textarea,
#apex27-contact-form select
{
    display: block;
    width: 100%;
    padding: 15px 18px;
}

#apex27-contact-form input,
#apex27-contact-form textarea {
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}


/* Apex27 responsive property layout, custom patch 2026-11.
 * Scoped to Apex27 property pages to avoid affecting the WordPress theme.
 * The property template intentionally uses separate gallery, sidebar and
 * description blocks, so mobile can show the enquiry before the long copy.
 */
.apex27-property-page,
.apex27-property-page * {
    box-sizing: border-box;
}

.apex27-property-page {
    width: calc(100% - 40px);
    max-width: 1280px;
    min-width: 0;
    overflow-wrap: break-word;
}

.apex27-property-page > .mb-3:first-child {
    padding-top: 24px;
    margin-bottom: 24px;
}

.apex27-property-page > .mb-3:first-child > h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
    font-weight: 650;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

.apex27-property-page .lead {
    display: inline-block;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    margin-right: 10px;
}

.apex27-property-page .lead small {
    font-size: 0.43em;
    font-weight: 500;
}

.apex27-property-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: 36px;
    align-items: start;
    flex-wrap: initial;
    margin: 0;
}

/* Override the plugin's old full-width .row > div rule and theme grids. */
.apex27-property-page .apex27-property-layout > .apex27-property-main,
.apex27-property-page .apex27-property-layout > .apex27-property-sidebar {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    flex: initial;
}

.apex27-property-page h3,
.apex27-property-page h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.apex27-property-page h3 {
    font-size: clamp(24px, 2.2vw, 30px);
}

.apex27-property-page h4 {
    font-size: clamp(22px, 2vw, 28px);
}

.apex27-property-page .apex27-property-sidebar h3:first-child {
    margin-top: 0;
}

.apex27-property-page .apex27-property-description p,
.apex27-property-page .apex27-property-sidebar p,
.apex27-property-page .apex27-property-description li,
.apex27-property-page .apex27-property-sidebar li {
    font-size: 16px;
    line-height: 1.65;
}

.apex27-property-page .apex27-property-description p {
    margin-bottom: 16px;
}

.apex27-property-page .property-details-bullets-list {
    margin: 0;
    padding-left: 22px;
}

.apex27-property-page .property-details-bullets-list > li {
    padding: 10px 2px;
}

.apex27-property-page #property-details-slider {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 520px;
    border-radius: 10px;
    background: #e8ebee;
}

.apex27-property-page #property-details-slider-main-container {
    width: 100%;
    height: 100%;
}

.apex27-property-page #property-details-slider img,
.apex27-property-page #property-details-slider video,
.apex27-property-page #property-details-slider iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.apex27-property-page #property-details-slider-prev,
.apex27-property-page #property-details-slider-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    z-index: 2;
}

.apex27-property-page #property-details-slider-prev { left: 12px; }
.apex27-property-page #property-details-slider-next { right: 12px; }

.apex27-property-page #property-details-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 4px;
    white-space: normal;
    scrollbar-width: thin;
}

.apex27-property-page #property-details-thumbnails > img {
    flex: 0 0 112px;
    width: 112px;
    height: 74px;
    border-radius: 6px;
}

.apex27-property-page #property-details-thumbnails > img.active {
    outline: 2px solid var(--brand-color);
    outline-offset: -2px;
}

.apex27-property-page #property-details-thumbnails > a {
    display: none;
}

.apex27-property-page #property-details-media-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
}

.apex27-property-page #property-details-media-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    border-radius: 5px;
}

.apex27-property-page .apex27-enquiry {
    border: 1px solid rgba(18, 39, 63, 0.12);
    background: #f8fafc;
    border-radius: 12px;
    padding: 22px;
    scroll-margin-top: 24px;
}

.apex27-property-page .apex27-enquiry h3 {
    margin: 0 0 14px;
}

.apex27-property-page #apex27-contact-form .form-group {
    margin-bottom: 14px;
}

.apex27-property-page #apex27-contact-form label {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.apex27-property-page #apex27-contact-form input[type="text"],
.apex27-property-page #apex27-contact-form input[type="email"],
.apex27-property-page #apex27-contact-form input[type="tel"],
.apex27-property-page #apex27-contact-form textarea,
.apex27-property-page #apex27-contact-form select {
    display: block;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #172536;
}

.apex27-property-page #apex27-contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.apex27-property-page #apex27-contact-form input[type="checkbox"] {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    vertical-align: middle;
}

.apex27-property-page #apex27-contact-form input[type="checkbox"] + label {
    display: inline;
    margin: 0;
    vertical-align: middle;
}

.apex27-property-page #apex27-contact-form button[type="submit"] {
    min-height: 46px;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.apex27-property-page iframe {
    max-width: 100%;
}

@media (max-width: 1199px) {
    .apex27-property-page .apex27-property-layout {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    /* Makes gallery and description independent flex items for mobile ordering. */
    .apex27-property-page .apex27-property-main {
        display: contents;
    }

    .apex27-property-page .apex27-property-gallery {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .apex27-property-page .apex27-property-layout > .apex27-property-sidebar {
        order: 2;
        width: 100%;
        margin: 0 0 16px;
    }

    .apex27-property-page .apex27-property-description {
        order: 3;
        width: 100%;
        min-width: 0;
    }

    .apex27-property-page .apex27-property-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .apex27-property-page {
        width: calc(100% - 32px);
    }

    .apex27-property-page > .mb-3:first-child {
        padding-top: 16px;
        margin-bottom: 20px;
    }

    .apex27-property-page > .mb-3:first-child > h2 {
        font-size: clamp(24px, 6.7vw, 32px);
        margin: 0 0 14px;
    }

    .apex27-property-page .lead {
        font-size: clamp(27px, 7.5vw, 34px);
    }

    .apex27-property-page h3,
    .apex27-property-page h4 {
        margin-top: 26px;
        margin-bottom: 14px;
    }

    .apex27-property-page .apex27-property-sidebar {
        display: block;
    }

    .apex27-property-page .apex27-property-sidebar > .mb-5 {
        margin-bottom: 25px;
    }

    .apex27-property-page #property-details-slider {
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    .apex27-property-page #property-details-slider-prev,
    .apex27-property-page #property-details-slider-next {
        width: 38px;
        height: 38px;
        line-height: 38px;
    }

    .apex27-property-page #property-details-slider-prev { left: 8px; }
    .apex27-property-page #property-details-slider-next { right: 8px; }

    .apex27-property-page #property-details-thumbnails > img {
        flex-basis: 88px;
        width: 88px;
        height: 62px;
    }

    .apex27-property-page #property-details-media-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 28px;
    }

    .apex27-property-page #property-details-media-buttons .btn {
        min-width: 0;
        width: 100%;
        padding: 10px 8px;
        font-size: 12px;
    }

    .apex27-property-page #property-details-media-buttons a[href="#property-details-contact-form"] {
        grid-column: 1 / -1;
        order: -1;
        font-size: 14px;
    }

    .apex27-property-page .apex27-property-sidebar > .mb-5 {
        padding: 20px;
        background: #f8fafc;
        border: 1px solid rgba(18, 39, 63, 0.1);
        border-radius: 12px;
    }

    .apex27-property-page .apex27-property-sidebar > .mb-5 h3 {
        margin-top: 0;
    }

    .apex27-property-page .apex27-enquiry {
        padding: 20px;
    }

    .apex27-property-page .apex27-property-description {
        padding-top: 4px;
    }

    .apex27-property-page #apex27-contact-form button[type="submit"] {
        display: block;
        width: 100%;
    }

    /* Search results and search filters use the same plugin stylesheet. */
    .apex27-container:not(.apex27-property-page) #property-search-form .d-flex > * {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        min-width: 0;
    }

    .apex27-container:not(.apex27-property-page) #property-search-form select,
    .apex27-container:not(.apex27-property-page) #property-search-form button {
        width: 100%;
        min-height: 44px;
    }

    .apex27-container:not(.apex27-property-page) .property-card-details {
        padding: 0;
    }
}

@media (max-width: 360px) {
    .apex27-property-page #property-details-media-buttons {
        grid-template-columns: 1fr;
    }
}
