#book,
#book {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
}

#book {
    z-index: 10;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    height: 200px;
}

.input-group {
    width: 23%;
    margin-bottom: 10px;
}

.dropdown_search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    padding: 1px;
    width: 100%;
    max-width: 100px;
    background-color: #338ff7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .search-button:hover {
        background-color: #1f72cf;
    }

@media screen and (max-width: 1000px) {
    .search-container {
        flex-direction: column;
        align-items: center;
    }

    .input-group {
        width: 60%;
        max-width: 300px;
    }
}

/* Home page typography refresh: lighter modern sans-serif */
.slide-one-item .site-blocks-cover h1,
.slide-one-item .site-blocks-cover .caption {
    font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.site-section .section-heading h2 {
    font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.015em;
}

/* Narrow body text on large screens (20% reduction); full width on small screens */
@media (min-width: 1200px) {
    .site-section .container.body-text-narrow:not(.body-text-narrow-sm) {
        width: 49.5% !important;
        max-width: 49.5%;
    }

    .site-section .container.body-text-narrow.body-text-narrow-sm {
        width: 42.3% !important;
        max-width: 42.3%;
    }
}

/* Tighten vertical rhythm between content blocks on home page */
.site-section.block-14 .p-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.site-section .section-heading.mb-5,
.site-section .section-heading .mb-5 {
    margin-bottom: 1.5rem !important;
}

/* MBS Newsletter styles */
.newsletter-signup {
    display: flex;
    max-width: 100%;
    gap: 10px;
}

    .newsletter-signup input {
        flex: 1;
        padding: 10px;
    }

    .newsletter-signup button {
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

@media (max-width: 999px) {
    .newsletter-signup {
        flex-direction: column;
    }
}

/* Property features: icon above text, compact grid */
.property-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.property-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    text-align: center;
}

    .property-feature [class^="icon-"],
    .property-feature [class*=" icon-"] {
        display: inline-block;
        font-size: 1.25em;
        color: #555;
    }

/* Gallery image captions: compact overlay at bottom-left */
.gallery-item-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

    .gallery-item-wrapper .slide-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0 0.4rem;
        min-height: 1.4rem;
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        pointer-events: none;
        line-height: 1;
    }

    .gallery-item-wrapper .slide-caption-inner {
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .gallery-item-wrapper .slide-caption-inner span {
        color: #fff;
        display: block;
        margin: 0;
        padding: 0;
        font-size: 0.73rem;
        font-weight: 400;
        line-height: 1.1;
    }

/* Reduce whitespace on phone screens: hero → Grand Duc 3 → property features */
@media (max-width: 767px) {
    .slide-one-item + .site-section {
        padding-top: 1em;
    }

        .slide-one-item + .site-section > .container > .site-section:first-child {
            padding-top: 0.5em;
            padding-bottom: 0.5em;
        }

        .slide-one-item + .site-section .section-heading.mb-5,
        .slide-one-item + .site-section .section-heading .mb-5 {
            margin-bottom: 0.5rem !important;
        }

        .slide-one-item + .site-section > .container > .site-section:nth-child(2) {
            padding-top: 0.5em;
        }
}

