/* Typography
   Google Fonts loaded in base.html:
   - Source Sans 3 (body)
   - Merriweather (display headings)
   Apply them site-wide below. */

:root {
    /* Convenience variables (fallbacks included) */
    --nwh-font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --nwh-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Body text uses Source Sans 3 */
html, body { font-family: var(--nwh-font-sans); font-size: 1.05rem; }

/* Slightly reduced heading scale for a calmer feel */
h1 {
    font-size: 2.1rem; /* was 2.5rem */
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.005em;
}
h2 {
    font-size: 1.85rem; /* was 2.1rem */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.005em;
}
h3 {
    font-size: 1.55rem; /* was 1.75rem */
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

/* Display classes tuned down too */
.display-1 {
    font-size: 3.5rem; /* was 4.25rem */
}
.display-2 {
    font-size: 3rem; /* was 3.75rem */
}
.display-3 {
    font-size: 2.5rem; /* was 3rem */
}

/* Mobile-first stays proportional */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }

    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.1rem; }
    .display-3 { font-size: 1.85rem; }
}



.nwh-topinfo {
    border-bottom: 3px solid #CFA861;
    background-color: #4C4C4C;
    color: #FAF7F3;
    padding: 0.35em;
    font-family: var(--nwh-font-sans);

    .fa-solid {
        color: #CFA861;
    }

    a {
        color: #FAF7F3;
        text-decoration: none;
    }

    p {
        margin-bottom: 0;
    }

    font-size: 0.9em;
}

.nwh-logo {
    width: 245px;
    height: auto;
}

nav {
    border-bottom: 2px solid #CFA861;
    vertical-align: bottom;
}

.nwh-topnav {
    padding-top: 0.75em;
    padding-bottom: 0.25em;
}

.nwh-content {
    padding-bottom: 1.5em;
}

.nwh-footer-address {
    padding-top: 2em;
    line-height: 1.25em;
    a {
        color:white;
    }
    a:hover {
        color: #CFA861;
    }
}

.nwh-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding-right: 1em;
}

.nwh-copyright small {
    opacity: 0.8;
}

/* Topnav logo hover effect: subtle, professional zoom */
.nwh-topnav .navbar-brand { display: inline-block; }
.nwh-topnav .navbar-brand .nwh-logo {
    display: block;
    transform-origin: center center;
    transition: transform 180ms ease, filter 180ms ease;
    backface-visibility: hidden;
}
.nwh-topnav .navbar-brand:hover .nwh-logo,
.nwh-topnav .navbar-brand:focus .nwh-logo,
.nwh-topnav .navbar-brand:focus-visible .nwh-logo {
    transform: scale(1.02);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.10));
}
@media (prefers-reduced-motion: reduce) {
    .nwh-topnav .navbar-brand .nwh-logo { transition: none; }
}

/* Carousel: image + caption card overlay */
.carousel {
    /* Add subtle shadow to entire carousel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
}

.carousel-item > img,
.carousel-item > a > img {
    width: 100%;
    /* In case inline height is removed later */
    object-fit: cover;
}

.carousel-caption {
    /* Override Bootstrap centering to align left */
    left: 2rem;
    right: auto;
    bottom: 2rem;
    transform: none;
    text-align: left;
    font-family: var(--nwh-font-serif);
    z-index: 20; /* keep above images/controls */
    /* Turn the caption into a compact card */
    display: inline-block;
    background: rgba(76, 76, 76, 0.72); /* deep gray with transparency */
    backdrop-filter: saturate(110%) blur(2px);
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 0.6rem;
    border: 1px solid #CFA861;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
    max-width: min(90%, 34rem);
}

/* Hide caption shell when no real content is present */
.carousel-caption.is-empty { display: none !important; }

.carousel-caption p {
    margin: 0;
    line-height: 1.15;
    font-size: 1.15rem;
    font-weight: 400;
}

.carousel-caption p + p { margin-top: 0.35rem; }

.carousel-caption a {
    color: #FAF7F3;
    text-decoration: none;
    text-underline-offset: 2px;
}
.carousel-caption a:hover,
.carousel-caption a:focus {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #CFA861; /* brand gold accent */
}

@media (max-width: 991.98px) {
    .carousel-caption {
        left: 1rem;
        bottom: 1rem;
        padding: 0.8rem 1.1rem;
        border-radius: 0.5rem;
        max-width: 85%;
    }
    .carousel-caption p { font-size: 1rem; }
}

/* Ensure captions are visible on small screens even if CMS adds d-none */
@media (max-width: 767.98px) {
    .carousel .carousel-caption.d-none { display: inline-block !important; }
}

/* Slide-level caption positioning options for editors
   Usage: add one class to the Carousel Slide (carousel-item):
   left | center | right */
.carousel-item.left .carousel-caption,
.carousel-caption.left {
    left: 2rem;
    right: auto;
    transform: none;
    text-align: left;
}
.carousel-item.right .carousel-caption,
.carousel-caption.right {
    right: 2rem;
    left: auto;
    transform: none;
    text-align: right;
}
.carousel-item.center .carousel-caption,
.carousel-caption.center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
}

/* Responsive tweaks for chosen caption position */
@media (max-width: 991.98px) {
    .carousel-item.left .carousel-caption,
    .carousel-caption.left {
        left: 1rem;
        right: auto;
        transform: none;
        text-align: left;
    }
    .carousel-item.right .carousel-caption,
    .carousel-caption.right {
        right: 1rem;
        left: auto;
        transform: none;
        text-align: right;
    }
    .carousel-item.center .carousel-caption,
    .carousel-caption.center {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }
}

/* Carousel controls: cleaner, no opaque background boxes */
.carousel-control-prev,
.carousel-control-next {
    width: auto; /* Remove the 15% width that creates the box */
    padding: 1rem; /* Add padding for click area */
    opacity: 0.3; /* Very faded by default */
    background: none; /* Remove any background */
    border: none; /* Remove any border */
    transition: opacity 0.3s ease; /* Smooth fade in/out */
}

/* Hide the "Previous" and "Next" text - icons are enough */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* This hides any text inside the control */
    font-size: 0;
}

.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
    opacity: 0.7; /* 70% opacity on hover */
}

.carousel-control-prev {
    left: 0.5rem; /* Slight inset from edge */
}

.carousel-control-next {
    right: 0.5rem; /* Slight inset from edge */
}

/* Make the control icons smaller and more subtle */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem; /* Smaller than before (was 2.5rem) */
    height: 2rem;
    background-color: rgba(76, 76, 76, 0.4); /* More transparent background */
    border-radius: 50%; /* Circular buttons */
    padding: 0.4rem;
    border: 1px solid rgba(207, 168, 97, 0.3); /* More subtle gold border */
    backdrop-filter: blur(4px); /* Slight blur effect */
    transition: all 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(207, 168, 97, 0.85); /* Gold background on hover */
    border-color: #CFA861;
    transform: scale(1.15); /* Slightly larger on hover */
    width: 2.5rem; /* Grow to full size on hover */
    height: 2.5rem;
}

/* Responsive: even smaller controls on mobile */
@media (max-width: 767.98px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .carousel-control-prev:hover .carousel-control-prev-icon,
    .carousel-control-next:hover .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Footer: left-column mini menu styling */
.nwh-footer {
    .footer-links {
        /* Align with address column and ensure legibility */
        padding-top: 2em;
        margin: 0;
        color: #FAF7F3;
        line-height: 1.25;
    }



    .footer-links > li > a {
        display: inline-block;
        font-weight: 400; /* top-level emphasis */
        color: #FAF7F3;
        text-decoration: none;
        text-underline-offset: 2px;
        transition: color 160ms ease, text-decoration-color 160ms ease, background-color 160ms ease;
    }

    .footer-links > li > a:hover,
    .footer-links > li > a:focus {
        color:rgba(207, 168, 97, 0.85);
        text-decoration: underline;
        text-decoration-color: #CFA861; /* brand accent */
    }

    .footer-links > li > a:focus-visible {
        outline: 2px dashed #CFA861;
        outline-offset: 2px;
    }

    /* Submenu (children) */
    .footer-links ul {
        margin: 0.25rem 0 0.5rem 0.75rem; /* subtle indent */
        padding-left: 0.75rem;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        list-style: none;
        line-height: 1.95em;
    }

    .footer-links ul li {
        margin: 0;        
    }

    .footer-links ul a {
        color: #EDE9E4;
        font-weight: 400;
        text-decoration: none;
    }

    .footer-links ul a:hover,
    .footer-links ul a:focus {
        color: rgba(207, 168, 97, 0.85);
        text-decoration: underline;
        text-decoration-color: rgba(207, 168, 97, 0.85);
    }
}

/* Quote styling (homepage and general content) */
.nwh-content blockquote {
    position: relative;
    margin: 1.25rem auto; /* center within content column */
    padding: 1rem 1.25rem 1rem 1.25rem;
    border-left: 0; /* remove vertical rule */
    /* background: linear-gradient(to right, rgba(207, 168, 97, 0.08), transparent 22%); */
    /* Amount to hang the first line so wrapped lines align */
    --nwh-quote-hang: 1.1em;
    font-family: var(--nwh-font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: #2e2e2e;
}

/* Width control: tighter on large screens (6–8 columns feel) */
@media (min-width: 992px) { /* lg */
    .nwh-content blockquote { width: 66.6667%; }
}
@media (min-width: 1200px) { /* xl */
    .nwh-content blockquote { width: 80%; }
}

/* Inline decorative quotes anchored to text lines */
/* Reset any container-level pseudo elements */
.nwh-content blockquote::before,
.nwh-content blockquote::after { content: none; }

/* Opening quote: inserted before first paragraph text */
.nwh-content blockquote > p:first-of-type::before {
    content: "\201C";
    display: inline-block;
    margin-right: 0.15em;
    font-family: var(--nwh-font-serif);
    font-size: 2.2rem;
    line-height: 0.9;
    color: rgba(207, 168, 97, 1);
    vertical-align: -0.2em; /* nudge down to align with text */
}

/* Hang the first line so wrapped lines align with each other */
.nwh-content blockquote > p:first-of-type {
    text-indent: calc(var(--nwh-quote-hang) * -0.5);
    padding-left: var(--nwh-quote-hang);
}

/* Closing quote: default to last paragraph */
.nwh-content blockquote > p:last-of-type::after {
    content: "\201D";
    display: inline-block;
    margin-left: 0.3em;
    font-family: var(--nwh-font-serif);
    font-size: 2.2rem;
    line-height: 0.9;
    color: rgba(207, 168, 97, 1);
    vertical-align: -0.2em;
}

/* If a horizontal rule is present, close on the paragraph before the HR */
.nwh-content blockquote:has(hr) > p:last-of-type::after { content: none; }
.nwh-content blockquote > p:has(+ hr)::after {
    content: "\201D";
    display: inline-block;
    margin-left: 0.3em;
    font-family: var(--nwh-font-serif);
    font-size: 2.2rem;
    line-height: 0.9;
    color: rgba(207, 168, 97, 0.5);
    vertical-align: -0.2em;
}

/* If there are multiple paragraphs (no HR), close on the penultimate paragraph */
.nwh-content blockquote:has(p + p) > p:last-of-type::after { content: none; }
.nwh-content blockquote:has(p + p) > p:nth-last-of-type(2)::after {
    content: "\201D";
    display: inline-block;
    margin-left: 0.3em;
    font-family: var(--nwh-font-serif);
    font-size: 2.2rem;
    line-height: 0.9;
    color: rgba(207, 168, 97, 0.9);
    vertical-align: -0.2em;
}

.nwh-content blockquote p { margin-bottom: 0.6rem; }
.nwh-content blockquote p:last-child { margin-bottom: 0; }

.nwh-content blockquote cite,
.nwh-content blockquote footer {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--nwh-font-sans);
    font-style: normal;
    font-size: 0.975rem;
    font-weight: 600;
    color: #4C4C4C;
    text-align: right; /* align attribution within quote width */
}

.nwh-content blockquote cite::before,
.nwh-content blockquote footer::before {
    content: "\2014\00A0"; /* em dash + nbsp */
}

/* Simple TipTap workflow: insert a Horizontal Rule, then attribution line */
.nwh-content blockquote hr {
    border: 0;
    border-top: 1px solid rgba(207, 168, 97, 0.35);
    margin: 0.4rem 0 0.6rem 0;
}
.nwh-content blockquote hr + p {
    font-family: var(--nwh-font-sans);
    font-style: normal;
    font-size: 0.975rem;
    font-weight: 600;
    color: #4C4C4C;
    text-align: right; /* right-align attribution */
}
.nwh-content blockquote hr + p::before {
    content: "\2014\00A0"; /* em dash + nbsp */
}

/* Fallback: treat the last paragraph as attribution when there are 2+ paragraphs */
@supports selector(blockquote:has(p + p)) {
    .nwh-content blockquote:has(p + p) p:last-child {
        font-family: var(--nwh-font-sans);
        font-style: normal;
        font-size: 0.975rem;
        font-weight: 600;
        color: #4C4C4C;
        text-align: right; /* right-align attribution */
    }
    .nwh-content blockquote:has(p + p) p:last-child::before {
        content: "\2014\00A0";
    }
}

.nwh-content blockquote a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(207, 168, 97, 0.6);
    text-underline-offset: 2px;
}
.nwh-content blockquote a:hover,
.nwh-content blockquote a:focus {
    color: #1f1f1f;
    text-decoration-color: #CFA861;
}

mark {
    background-color: #FFF8E1; /* soft cream highlight */
    color: #4C4C4C; /* your body text colour */
    padding: 0.15em 0.3em;
    border-radius: 0.2em;
}

/* Responsive images in rich text content (CMS pages, news articles, etc.) */
.nwh-content img,
.rte-content img {
    max-width: 100%;
    height: auto;
}

/* Ensure images inserted in TipTap/CMS editor are responsive */
.nwh-content figure {
    max-width: 100%;
}

.nwh-content figure img {
    max-width: 100%;
    height: auto;
}

/* Heritage Homes gallery */
.homes-gallery {
    margin-top: 3rem;
}

.homes-gallery__header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

.homes-gallery__title {
    font-family: var(--nwh-font-serif);
    font-size: 1.875rem;
    font-weight: 500;
    color: #1f1f1f;
}

.homes-gallery__hint {
    font-size: 0.95rem;
}

.homes-gallery__grid {
    --gallery-gap: 1.25rem;
    display: grid;
    gap: var(--gallery-gap);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.homes-gallery__grid--single {
    display: inline-grid;
    grid-template-columns: minmax(0, 240px);
    justify-content: start;
    max-width: 100%;
}

.homes-gallery__item {
    background: #FAF7F3;
    border: 1px solid rgba(15, 18, 24, 0.08);
    border-radius: 0.85rem;
    box-shadow: 0 18px 28px rgba(15, 18, 24, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homes-gallery__item:hover,
.homes-gallery__item:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(15, 18, 24, 0.12);
}

.homes-gallery__thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
}

.homes-gallery__thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.homes-gallery__thumb:hover img,
.homes-gallery__thumb:focus-visible img {
    transform: scale(1.05);
}

.homes-gallery__thumb:focus-visible {
    outline: 3px solid #CFA861;
    outline-offset: 2px;
}

.homes-gallery__meta {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #FAF7F3;
}

.homes-gallery__caption {
    font-weight: 600;
    color: #1f1f1f;
}

.homes-gallery__credit {
    font-size: 0.85rem;
}

.homes-gallery__credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(207, 168, 97, 0.7);
}

.homes-gallery__credit a:hover,
.homes-gallery__credit a:focus {
    color: #1f1f1f;
    text-decoration-color: #CFA861;
}

.homes-hero {
    position: relative;
    display: block;
    margin: 0;
}

.homes-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    box-shadow: 4px 4px 18px rgba(15, 18, 24, 0.25);
}

.homes-hero-credit {
    margin-top: 0.25rem;
    margin-left: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
    color: #6c757d;
}

.homes-hero-credit-name {
    font-weight: 600;
}

.homes-hero-credit-sep {
    opacity: 0.7;
}

.homes-hero-credit-license {
    color: inherit;
}

.homes-hero-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(108, 117, 125, 0.5);
}

.homes-detail-facts {
    font-size: 0.95rem;
}

.homes-hero-credit a:hover,
.homes-hero-credit a:focus {
    color: #495057;
    text-decoration-color: #495057;
}

@media (max-width: 576px) {
    .homes-hero-credit {
        margin-top: 0.6rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
}
/* Lightbox */
.homes-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 18, 24, 0.92);
    z-index: 1080;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.homes-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.homes-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.homes-lightbox__figure {
    position: relative;
    max-width: min(920px, 92vw);
    width: 100%;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homes-lightbox__image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.8rem;
    background: #0f1218;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.homes-lightbox__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(15, 18, 24, 0.6);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    transition: opacity 0.2s ease;
}

.homes-lightbox__caption {
    font-size: 1.05rem;
    font-weight: 600;
}

.homes-lightbox__credit,
.homes-lightbox__license {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.homes-lightbox__license a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(207, 168, 97, 0.8);
}

.homes-lightbox__license a:hover,
.homes-lightbox__license a:focus {
    color: #ffffff;
    text-decoration-color: #CFA861;
}

.homes-lightbox__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 0.25rem;
}

.homes-lightbox__control {
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 18, 24, 0.65);
    color: #ffffff;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.homes-lightbox__control:hover,
.homes-lightbox__control:focus-visible {
    background: rgba(207, 168, 97, 0.85);
    border-color: rgba(207, 168, 97, 0.95);
    transform: translateY(-2px);
    color: #1f1f1f;
}

.homes-lightbox__control:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.homes-lightbox__control--close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.55rem;
}

body.homes-lightbox-open {
    overflow: hidden;
}
.joinus {
    line-height: 1rem;
    max-width: 120px;
}

.touryears {
    display: inline-block;
    margin-right: 1em;
}

@media (max-width: 768px) {
    .homes-gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        --gallery-gap: 1rem;
    }

    .homes-lightbox {
        padding: 1rem;
    }

    .homes-lightbox__figure {
        max-width: 100%;
        width: 100%;
    }

    .homes-lightbox__image {
        max-height: 65vh;
        width: 100%;
    }

    .homes-lightbox__control--close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .homes-lightbox__control--prev,
    .homes-lightbox__control--next {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .homes-lightbox__details {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .homes-gallery {
        margin-top: 2.25rem;
    }

    .homes-gallery__header {
        margin-bottom: 1rem;
    }

    .homes-gallery__grid {
        grid-template-columns: 1fr;
    }

    .homes-lightbox {
        padding: 0.5rem;
    }

    .homes-lightbox__figure {
        width: 100%;
    }

    .homes-lightbox__image {
        max-height: 55vh;
        width: 100%;
    }

    .homes-lightbox__control--close {
        top: 0.25rem;
        right: 0.25rem;
    }

    .homes-lightbox__details {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .homes-lightbox__caption {
        font-size: 0.95rem;
    }

    .homes-lightbox__credit,
    .homes-lightbox__license {
        font-size: 0.85rem;
    }
}


/* Style for Sub Pages Plugin */
.subpages-list { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.subpages-list li { display: inline-block; padding: .25rem .6rem; border: 1px solid #ddd; border-radius: 9999px; background: transparent; }
.subpages-list a { text-decoration: none; font-weight: 500; }
.subpages-list a:hover { text-decoration: underline; }

/* Heritage Homes Table - Mobile Responsiveness */
.heritage-homes-table-plugin {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* On mobile, make table scrollable horizontally */
@media (max-width: 768px) {
    .heritage-homes-table-plugin {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #homes-table {
        font-size: 0.875rem;
    }

    #homes-table thead th {
        font-size: 0.8rem;
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }

    #homes-table tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }

    /* Make the "Details" column content wrap better */
    #homes-table tbody td:nth-child(3) {
        min-width: 140px;
        max-width: 180px;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    #homes-table tbody td:nth-child(3) small {
        font-size: 0.7rem;
    }

    /* Name and Address columns */
    #homes-table tbody td:nth-child(1) {
        min-width: 140px;
    }

    #homes-table tbody td:nth-child(2) {
        min-width: 140px;
    }

    /* Built year column */
    #homes-table tbody td:nth-child(4) {
        text-align: center;
    }
}

/* Very small phones - stack even tighter */
@media (max-width: 576px) {
    #homes-table {
        font-size: 0.8rem;
    }

    #homes-table thead th {
        font-size: 0.75rem;
        padding: 0.4rem 0.3rem;
    }

    #homes-table tbody td {
        padding: 0.4rem 0.3rem;
    }

    #homes-table tbody td:nth-child(1),
    #homes-table tbody td:nth-child(2) {
        min-width: 120px;
    }

    #homes-table tbody td:nth-child(3) {
        min-width: 120px;
        max-width: 150px;
        font-size: 0.7rem;
    }
}

/* --- Navbar responsiveness improvements --- */

/* Allow nav items to wrap instead of falling off the edge */
.navbar .navbar-nav { flex-wrap: wrap; }

/* Container spacing so the logo + toggler don’t feel cramped */
.nwh-topnav { gap: .5rem; }

/* Make the logo responsive and scale down earlier */
.nwh-logo { max-width: 260px; height: auto; }
@media (max-width: 1200px) {
  .nwh-logo { max-width: 220px; margin-right: 2rem; }
}
@media (max-width: 992px) {
  .nwh-logo { max-width: 200px; margin-right: 0; }
}

/* When the navbar is expanded and wraps, put the menu on its own full-width line */
@media (min-width: 992px) and (max-width: 1200px) {
  .nwh-topnav.flex-wrap .navbar-collapse { flex-basis: 100%; width: 100%; }
}

/* Below lg we collapse; ensure the collapsed panel spans full width nicely */
@media (max-width: 992px) {
  .navbar .navbar-collapse { width: 100%; }
  .navbar .navbar-nav .nav-item { padding-inline: .25rem; }
}


/* When menu wraps below logo (between lg and too-tight widths) */
@media (min-width: 992px) and (max-width: 1200px) {
  .nwh-topnav.flex-wrap .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
  .navbar .navbar-nav {
    justify-content: flex-start;
  }
}

/* Let the nav breathe at md (menu drops under logo), but keep one row at lg+ */
.nwh-topnav { gap: .5rem; }

.nwh-logo { max-width: 260px; height: auto; }
@media (max-width: 1200px) { .nwh-logo { max-width: 260px; } }
@media (max-width: 992px)  { .nwh-logo { max-width: 260px; } }

/* MD-only: when expanded, make the collapsed-area take the full line under the logo */
@media (min-width: 768px) and (max-width: 991.98px) {
  .nwh-topnav .navbar-collapse { flex-basis: 100%; width: 100%; }
}

/* SM and down: the collapsed panel spans full width neatly */
@media (max-width: 767.98px) {
  .navbar .navbar-collapse { width: 100%; }
}

/* Only enforce on desktop-ish devices, so phones still get proper responsive layout */
@media (hover: hover) and (pointer: fine) {
  html, body { min-width: 450px; }
}
/* News & Events color palette overrides */
.news-events .badge.bg-success {
  background-color: #f0f4ea !important;
  color: #6ca242 !important;
  border: 1px solid #d4e0c4 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.65rem !important;
  margin: 0.125rem !important;
  border-radius: 999px !important;
}

.news-events .badge.bg-primary {
  background-color: #f0f4ea !important;
  color: #6ca242 !important;
  border: 1px solid #d4e0c4 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.65rem !important;
  margin: 0.125rem !important;
  border-radius: 999px !important;
}

.news-events .badge.bg-secondary {
  background-color: #f0f4ea !important;
  color: #6ca242 !important;
  border: 1px solid #d4e0c4 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.65rem !important;
  margin: 0.125rem !important;
  border-radius: 999px !important;
}

.news-events .badge.bg-warning {
  background-color: #9dc13b !important;
  color: #4c4c4c !important;
  font-weight: normal !important;
  margin: 0.125rem !important;
}

.news-events .card-title a {
  color: #4c4c4c !important;
  text-decoration: none;
}

.news-events .card-title a:hover {
  color: #2e2e2e !important;
}

.news-events__read-more {
  color: #6ca242 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.news-events__read-more:hover {
  color: #5a8c37 !important;
  text-decoration: underline !important;
}

.news-events .btn-primary {
  background-color: #cfa861;
  border-color: #cfa861;
  color: #000;
}

.news-events .btn-primary:hover {
  background-color: #b89450;
  border-color: #b89450;
  color: #000;
}

.news-events .btn-outline-primary {
  border-color: #cfa861;
  color: #cfa861;
}

.news-events .btn-outline-primary:hover {
  background-color: #cfa861;
  border-color: #cfa861;
  color: #000;
}

.news-events .btn-success {
  background-color: #6ca242;
  border-color: #6ca242;
}

.news-events .btn-success:hover {
  background-color: #5a8c37;
  border-color: #5a8c37;
}

.news-events .btn-outline-success {
  border-color: #6ca242;
  color: #6ca242;
}

.news-events .btn-outline-success:hover {
  background-color: #6ca242;
  border-color: #6ca242;
  color: #fff;
}

.news-events .btn-outline-secondary {
  border-color: #4c4c4c;
  color: #4c4c4c;
}

.news-events .btn-outline-secondary:hover {
  background-color: #4c4c4c;
  border-color: #4c4c4c;
  color: #fff;
}

.news-events .card-header.bg-primary {
  background-color: #cfa861 !important;
  color: #4c4c4c !important;
}

.news-events .card-header.bg-success {
  background-color: #cfa861 !important;
  color: #4c4c4c !important;
}

.news-events__item--sticky {
  border-left: 4px solid #cfa861;
}

/* Nav search inside top navigation */
.nwh-nav-search {
    width: 100%;
}

.nwh-nav-search .input-group {
    width: 100%;
}

.nwh-nav-search__input {
    min-width: 0;
    /* Rounded corners only on left side */
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.nwh-nav-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4C4C4C;
    border-color: #CFA861;
    background-color: #ffffff;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
    /* Rounded corners only on right side */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.nwh-nav-search__button:hover,
.nwh-nav-search__button:focus,
.nwh-nav-search__button:active {
    color: #ffffff;
    background-color: #CFA861;
    border-color: #CFA861;
}

.nwh-nav-search__button .fa {
    font-size: 0.85rem;
}

.btn-primary {
  background-color: #cfa861;
  border-color: #cfa861;
  color: #FAF7F3;
}

.btn-primary:hover {
  background-color: #b89450;
  border-color: #b89450;
  color: #000;
}

.btn-outline-primary {
  border-color: var(--nwhs-gold);
  color: var(--nwhs-gold);
}

.btn-outline-primary:hover {
  background-color: var(--nwhs-gold);
  border-color: var(--nwhs-gold);
  color: #000;
}

@media (min-width: 768px) {
    .nwh-nav-search {
        width: auto;
    }

    .nwh-nav-search__input {
        width: 12rem;
    }
}

/* Bigger responsive logo, bottom-aligned visually with menu at lg+ */
.nwh-logo { height: 118px; width: auto; }
@media (min-width: 768px) { .nwh-logo { height: 118px; } }   /* md */
@media (min-width: 992px) { .nwh-logo { height: 118px; } }   /* lg */

/* Desktop search should never look like a runway */
.nwh-search-desktop { max-width: 240px; width: 100%; }

/* Make the search partial behave on small screens too */
.nwh-nav-search { width: 100%; }            /* from your file, keep this */
.nwh-nav-search .input-group { width: 100%; } /* keep this too */
@media (min-width: 768px) {
  /* on md+ the input is narrower so it doesn't sprawl */
  .nwh-nav-search__input { width: 12rem; }   /* was 12rem, give it a touch more */
}

/* Search results badge styling - pill style matching News & Events */
.search-results .badge {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.65rem !important;
  margin: 0.125rem !important;
  border-radius: 999px !important;
}

/* "Page" badge - use a neutral color with good contrast */
.search-results .badge.bg-primary {
  background-color: #e8e9ea !important;
  color: #4c4c4c !important;
  border: 1px solid #cfd1d3 !important;
}

/* "News & Events" badge - green matching the news app */
.search-results .badge.bg-success {
  background-color: #f0f4ea !important;
  color: #6ca242 !important;
  border: 1px solid #d4e0c4 !important;
}

/* "Heritage Home" badge - use gold/amber matching site theme */
.search-results .badge.bg-warning {
  background-color: #fef5e7 !important;
  color: #b8860b !important;
  border: 1px solid #f4e4c1 !important;
}

/* "Board Member" badge - use a teal/blue variant */
.search-results .badge.bg-info {
  background-color: #e7f4f8 !important;
  color: #0c7489 !important;
  border: 1px solid #c4e0e8 !important;
}

/* Search results card layout - matching News & Events style */
.search-results__item {
  background: #FAF7F3;
  border: 1px solid rgba(15, 18, 24, 0.08);
  border-radius: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 18, 24, 0.06);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  gap: 1rem;
  position: relative;
}

.search-results__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 18, 24, 0.1);
}

.search-results__item-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-results__item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-results__item-content {
  flex: 1;
  min-width: 0;
}

.search-results__item-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.search-results__item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-right: 7rem;
}

.search-results__item h3 a {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 600;
}

.search-results__item h3 a:hover,
.search-results__item h3 a:focus {
  color: #4C4C4C;
  text-decoration: underline;
  text-decoration-color: #CFA861;
}

.search-results__item .text-muted {
  color: #6c757d !important;
}

.search-results__meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.35rem;
}

.search-results__read-more {
  color: #6ca242 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.search-results__read-more:hover {
  color: #5a8c37 !important;
  text-decoration: underline !important;
}

/* Search summary and filters */
.search-summary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.search-filter {
  margin-bottom: 1.5rem;
}

.search-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-filter__btn {
  padding: 0.5rem 1rem;
  border: 2px solid #dee2e6;
  background: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-filter__btn:hover {
  border-color: #CFA861;
  color: #4C4C4C;
}

.search-filter__btn.active {
  background: #CFA861;
  border-color: #CFA861;
  color: #1f1f1f;
}

.search-filter__btn .badge {
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  font-weight: 600;
  margin-left: 0.35rem;
  padding: 0.2rem 0.45rem;
}

@media (max-width: 768px) {
  .search-results__item {
    flex-direction: column;
  }

  .search-results__item-thumbnail {
    width: 100%;
    height: 160px;
  }

  .search-results__item h3 {
    padding-right: 0;
    margin-top: 2.5rem;
  }

  .search-results__item-badge {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* Search results page - cohesive search input and button styling */
.search-results .input-group .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.search-results .input-group .btn {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Search results pagination - use site green color */
.search-results .pagination .page-link {
  color: #6ba140;
  border-color: #dee2e6;
}

.search-results .pagination .page-link:hover {
  color: #5a8c37;
  background-color: #f0f4ea;
  border-color: #6ba140;
}

.search-results .pagination .page-item.active .page-link {
  background-color: #6ba140;
  border-color: #6ba140;
  color: #fff;
}

.search-results .pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #CFA861;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(92, 42, 45, 0.25);
}

/* 404 page */
.error-page {
  background: linear-gradient(180deg, rgba(207, 168, 97, 0.15) 0%, rgba(255, 255, 255, 0.9) 45%, #ffffff 100%);
}

.error-page__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #6c757d;
}

.error-page__code {
  font-family: var(--nwh-font-serif);
  color: #3b3b3b;
  margin-bottom: 0.5rem;
}

.error-page__actions .btn-primary {
  background-color: #6ba140;
  border-color: #6ba140;
  font-weight: 600;
  padding: 0.85rem 2rem;
}

.error-page__actions .btn-primary:hover {
  background-color: #5a8c37;
  border-color: #5a8c37;
}

.error-page__search-form .form-control {
  border-radius: 999px 0 0 999px;
  padding: 0.9rem 1.25rem;
}

.error-page__search-form .btn {
  border-radius: 0 999px 999px 0;
  padding: 0.9rem 1.75rem;
  border-color: rgba(90, 140, 55, 0.4);
  color: #4C4C4C;
}

.error-page__search-form .btn:hover {
  background-color: rgba(90, 140, 55, 0.12);
  border-color: #5a8c37;
  color: #2f4730;
}

.error-page__links .card {
  border: none;
  border-radius: 1rem;
}

.error-page__links .card-body {
  padding: 1.75rem 1.5rem;
}

.error-page__links .card-title {
  font-family: var(--nwh-font-serif);
}

.error-page__links .stretched-link {
  font-weight: 600;
  color: #6ba140;
  text-decoration: none;
}

.error-page__links .stretched-link:hover {
  color: #5a8c37;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .error-page {
    text-align: left;
  }

  .error-page__search-form .form-control,
  .error-page__search-form .btn {
    border-radius: 999px;
  }

  .error-page__search-form .input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .error-page__search-form .btn {
    width: 100%;
  }
}
