:root {
    --bs-shetland-navy: #171b23;
    --bs-shetland-parchment: #f3efe6;
    --bs-shetland-white: #fffdf8;
    --bs-shetland-teal: #799ea4;
    --bs-shetland-amber: #f5a524;
}

body:has(.bs-shetland-page) {
    background: var(--bs-shetland-parchment);
}

body .bs-shetland-page,
body .bs-shetland-page * {
    box-sizing: border-box;
}

body .bs-shetland-page {
    position: relative;
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin: 0 auto 5px !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bs-shetland-white);
    color: var(--bs-shetland-navy);
    box-shadow: 0 0 34px rgba(23, 27, 35, 0.14);
}

body .bs-shetland-page > *,
body .bs-shetland-page figure,
body .bs-shetland-page .wp-block-image {
    margin-block-start: 0;
}

body .bs-shetland-page figure,
body .bs-shetland-page .wp-block-image {
    margin: 0;
}

body .bs-shetland-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

body .bs-shetland-page :where(h1, h2, h3) {
    margin-top: 0;
    color: var(--bs-shetland-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.15;
}

body .bs-shetland-page h1 { font-size: clamp(38px, 4vw, 54px); }
body .bs-shetland-page h2 { font-size: clamp(25px, 2.6vw, 34px); }

body .bs-shetland-page p,
body .bs-shetland-page li {
    font-size: 16px;
    line-height: 1.62;
}

body .bs-shetland-page .bs-shetland-intro > .wp-block-group__inner-container,
body .bs-shetland-page .bs-shetland-feature-strip > .wp-block-group__inner-container,
body .bs-shetland-page .bs-shetland-details > .wp-block-group__inner-container,
body .bs-shetland-page .bs-shetland-spec-grid > .wp-block-group__inner-container,
body .bs-shetland-page .bs-shetland-gallery-grid > .wp-block-group__inner-container {
    display: contents !important;
}

body .bs-shetland-page .bs-shetland-intro {
    display: grid !important;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.35fr) !important;
    gap: 56px !important;
    align-items: start;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 48px 44px 4px;
}

body .bs-shetland-page .bs-shetland-intro-copy,
body .bs-shetland-page .bs-shetland-hero-image {
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

body .bs-shetland-page .bs-shetland-title {
    position: relative;
    display: inline-block;
    margin: 0 0 50px;
}

body .bs-shetland-page .bs-shetland-title::after {
    content: "—  ❧  —";
    position: absolute;
    top: calc(100% + 11px);
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    color: var(--bs-shetland-teal);
    font: 17px/1 Georgia, serif;
    letter-spacing: 0.12em;
    text-align: center;
}

body .bs-shetland-page .bs-shetland-intro-copy > p,
body .bs-shetland-page .bs-shetland-intro-copy > .wp-block-group__inner-container > p {
    margin: 0 0 26px;
}

body .bs-shetland-page .bs-shetland-hero-image img {
    width: 100%;
    min-height: 326px;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 12px 25px rgba(23, 27, 35, 0.18);
}

body .bs-shetland-page .bs-shetland-price-block {
    margin: 46px 0 0 !important;
}

body .bs-shetland-page .bs-shetland-price {
    margin: 0 0 12px;
    font-size: 31px;
}

body .bs-shetland-page .bs-shetland-vat {
    margin: 0 0 22px !important;
    font-size: 12px !important;
    text-transform: lowercase;
}

body .bs-shetland-page .bs-shetland-button .wp-block-button__link {
    min-width: 210px;
    border-radius: 1px;
    background: var(--bs-shetland-amber);
    color: #fff;
    padding: 15px 24px;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
}

body .bs-shetland-page .bs-shetland-button .wp-block-button__link:hover,
body .bs-shetland-page .bs-shetland-button .wp-block-button__link:focus {
    background: #dd8f15;
    color: #fff;
}

body .bs-shetland-page .bs-shetland-feature-strip {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 26px 22px 25px;
    background: var(--bs-shetland-teal);
}

body .bs-shetland-page .bs-shetland-feature {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 102px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 2px 16px;
}

body .bs-shetland-page .bs-shetland-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.72);
}

body .bs-shetland-page .bs-shetland-feature figure {
    display: flex;
    width: 50px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

body .bs-shetland-page .bs-shetland-feature img {
    width: auto;
    max-width: 48px;
    max-height: 42px;
}

body .bs-shetland-page .bs-shetland-feature p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
}

body .bs-shetland-page .bs-shetland-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 42px 44px;
}

body .bs-shetland-page .bs-shetland-details {
    display: grid !important;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
    gap: 76px !important;
    align-items: start;
    min-height: 400px;
}

body .bs-shetland-page .bs-shetland-details-copy,
body .bs-shetland-page .bs-shetland-floorplan {
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

body .bs-shetland-page .bs-shetland-details-copy h2 {
    margin: 0 0 14px;
    color: var(--bs-shetland-teal);
    font-size: 23px;
}

body .bs-shetland-page .bs-shetland-details-copy p {
    margin: 0 0 28px;
    color: var(--bs-shetland-teal);
}

body .bs-shetland-page .bs-shetland-floorplan {
    min-height: 300px;
    padding: 10px 24px 24px;
    border: 1px solid var(--bs-shetland-teal);
}

body .bs-shetland-page .bs-shetland-floorplan-label {
    margin: 0;
    color: var(--bs-shetland-teal);
    font-size: 15px;
    line-height: 1.3;
}

body .bs-shetland-page .bs-shetland-small-ornament {
    margin: 12px 0 0;
    color: var(--bs-shetland-teal);
    font: 16px/1 Georgia, serif;
    letter-spacing: 0.18em;
}

body .bs-shetland-page .bs-shetland-specifications {
    border-top: 1px solid var(--bs-shetland-teal);
    border-bottom: 1px solid var(--bs-shetland-teal);
}

body .bs-shetland-page .bs-shetland-specifications h2 {
    margin: 0 0 30px;
    color: var(--bs-shetland-teal);
    font-size: 21px;
}

body .bs-shetland-page .bs-shetland-spec-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 84% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

body .bs-shetland-page .bs-shetland-spec-grid ul {
    min-width: 0;
    margin: 0 !important;
    padding: 0 32px 0 24px;
    list-style: none;
}

body .bs-shetland-page .bs-shetland-spec-grid ul:not(:last-child) {
    border-right: 1px solid var(--bs-shetland-teal);
}

body .bs-shetland-page .bs-shetland-spec-grid li {
    position: relative;
    margin: 0 0 5px;
    color: var(--bs-shetland-teal);
    font-size: 13px;
    line-height: 1.45;
}

body .bs-shetland-page .bs-shetland-spec-grid li::before {
    content: "❀";
    position: absolute;
    top: 0;
    left: -19px;
    color: var(--bs-shetland-teal);
    font-size: 10px;
}

body .bs-shetland-page .bs-shetland-gallery {
    padding: 44px 42px 36px;
}

body .bs-shetland-page .bs-shetland-gallery-title {
    margin: 0;
    color: var(--bs-shetland-teal);
    font-size: 31px;
}

body .bs-shetland-page .bs-shetland-gallery-ornament {
    margin: 6px 0 34px;
    color: var(--bs-shetland-teal);
    font: 18px/1.3 Georgia, serif;
    letter-spacing: 0.08em;
}

body .bs-shetland-page .bs-shetland-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body .bs-shetland-page .bs-shetland-gallery-grid figure {
    min-width: 0;
}

body .bs-shetland-page .bs-shetland-gallery-grid img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

body .bs-shetland-page .bs-shetland-gallery-dots {
    margin: 8px 0 0;
    color: #9e9e9e;
    font-size: 12px;
    letter-spacing: 0.2em;
    line-height: 1;
}

body .bs-shetland-page .bs-shetland-gallery-dots::first-letter {
    color: #343434;
}

@media (max-width: 960px) {
    body .bs-shetland-page {
        width: min(calc(100% - 24px), 1180px) !important;
    }

    body .bs-shetland-page .bs-shetland-intro {
        grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr) !important;
        gap: 34px !important;
        padding: 40px 30px 4px;
    }

    body .bs-shetland-page .bs-shetland-feature-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        row-gap: 22px;
    }

    body .bs-shetland-page .bs-shetland-feature:nth-child(3)::after,
    body .bs-shetland-page .bs-shetland-feature:last-child::after {
        display: none;
    }

    body .bs-shetland-page .bs-shetland-details {
        gap: 38px !important;
        padding-right: 30px;
        padding-left: 30px;
    }

    body .bs-shetland-page .bs-shetland-spec-grid {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    body .bs-shetland-page {
        width: 100% !important;
        border-radius: 0;
        box-shadow: none;
    }

    body .bs-shetland-page .bs-shetland-intro {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 38px 24px 0;
    }

    body .bs-shetland-page .bs-shetland-intro-copy {
        order: 2;
    }

    body .bs-shetland-page .bs-shetland-hero-image {
        order: 1;
    }

    body .bs-shetland-page .bs-shetland-title {
        margin-bottom: 46px;
    }

    body .bs-shetland-page .bs-shetland-price-block {
        margin-top: 34px !important;
        padding-bottom: 36px;
    }

    body .bs-shetland-page .bs-shetland-button,
    body .bs-shetland-page .bs-shetland-button .wp-block-button__link {
        width: 100%;
    }

    body .bs-shetland-page .bs-shetland-feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 24px 12px;
    }

    body .bs-shetland-page .bs-shetland-feature:nth-child(2n)::after {
        display: none;
    }

    body .bs-shetland-page .bs-shetland-feature:nth-child(3)::after {
        display: block;
    }

    body .bs-shetland-page .bs-shetland-details {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 38px 24px;
    }

    body .bs-shetland-page .bs-shetland-floorplan {
        min-height: 245px;
    }

    body .bs-shetland-page .bs-shetland-specifications,
    body .bs-shetland-page .bs-shetland-gallery {
        padding: 38px 24px;
    }

    body .bs-shetland-page .bs-shetland-spec-grid {
        grid-template-columns: 1fr !important;
    }

    body .bs-shetland-page .bs-shetland-spec-grid ul {
        padding: 0 0 18px 24px;
        border-right: 0 !important;
    }

    body .bs-shetland-page .bs-shetland-gallery-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body .bs-shetland-page .bs-shetland-gallery-grid figure:last-child {
        grid-column: 1 / -1;
    }

    body .bs-shetland-page .bs-shetland-gallery-grid img {
        height: 145px;
    }
}
