/* resources */
html {
    scroll-behavior: smooth;
}

.resource-heading {
    font-size: 36px;
    margin: 10px 0;
    color: white;
    text-align: center;
    font-weight: 500;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headshot-jeff,
.headshot-chris {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.loan-officers-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 50px;
}

.loan-officer {
    flex: 1;
    max-width: 300px;
    margin: 10px;
    text-align: center;
}


.loan-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loan-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 400px; 
    width: 90%; 
    margin: auto; 
    transform: translateY(80%); 
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

/* ===== Welcome section (more breathing room) ===== */
.welcome-section {
    max-width: 640px;
    margin: 40px auto 0;
    padding: 28px 24px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-section h2 {
    color: #333;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 28px;
}

.welcome-lead {
    color: #666;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 26px;
    max-width: 480px;
}

.welcome-body {
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 36px 0 40px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.welcome-body p {
    color: #777;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    margin: 0 0 24px;
}

.welcome-body p:last-child {
    margin-bottom: 0;
}

.welcome-cta {
    min-width: 240px;
    margin-top: 12px;
    text-align: center;
}
/* ===== End welcome section ===== */

/* ===== Step buttons ===== */
.dpa-jump {
    max-width: 860px;
    margin: 64px auto 28px;
    padding: 0 24px;
    box-sizing: border-box;
}

.dpa-jump .dpa-jump-title {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #888;
    margin: 0 0 28px;
}

.dpa-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 18px;
}

.dpa-step {
    position: relative;
}

/* Little arrow pointing to the next step */
.dpa-step::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 18px;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    color: #2a6d9a;
    pointer-events: none;
    transform: translateY(-50%);
    animation: step-arrow-nudge 2.2s ease-in-out infinite;
}

.dpa-step:nth-child(4n)::after,
.dpa-step:last-child::after {
    display: none;
}

@keyframes step-arrow-nudge {
    0%, 100% { transform: translate(0, -50%); }
    50%      { transform: translate(3px, -50%); }
}

.step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    height: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 2px solid lightgray;
    border-radius: 8px;
    background-color: #fff;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

/* Soft hover: light tint, no dark fill */
.step-btn:hover {
    background-color: #eef3f7;
    border-color: #b9cad6;
    color: #333;
}

/* Section currently showing in the box */
.step-btn.active {
    background-color: #e4edf3;
    border-color: #8fb1c9;
    color: #2b3f4d;
    font-weight: 500;
}

.step-btn-start {
    background-color: #f5f5f5;
}

.step-btn-start:hover,
.step-btn-start.active {
    background-color: #eef3f7;
}

/* Keep buttons steady: no movement or resizing */
.step-btn,
.dpa-button,
.more-details summary {
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
}

.step-btn:focus,
.dpa-button:focus,
.more-details summary:focus {
    outline: none;
}

.step-btn:focus-visible,
.dpa-button:focus-visible,
.more-details summary:focus-visible {
    outline: 2px solid #8fb1c9;
    outline-offset: 2px;
}

@media screen and (max-width: 600px) {
    .dpa-steps {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 16px;
    }

    .dpa-step:nth-child(4n)::after {
        display: block;
    }

    .dpa-step:nth-child(2n)::after,
    .dpa-step:last-child::after {
        display: none;
    }

    .dpa-step::after {
        right: -25px;
    }
}

/* ===== The one content box ===== */
.dpa-panel {
    box-sizing: border-box;
    width: 800px;
    max-width: calc(100% - 40px);
    margin: 20px auto 60px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 20px;
}

/* Blank until a button is clicked: small, quiet, takes almost no space */
.dpa-panel.is-empty {
    min-height: 56px;
    padding: 0;
    background-color: transparent;
    border: 1px dashed #d8d8d8;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpa-panel.is-empty::before {
    content: "Pick a step above and it opens here";
    color: #aaa;
    font-size: 12px;
    font-weight: 300;
}

.panel-section {
    animation: panel-in 0.35s ease;
}

.panel-section[hidden] {
    display: none;
}

@keyframes panel-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.panel-title {
    color: #666;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin: 6px auto 22px;
    padding: 10px;
}

.panel-title-spaced {
    margin-top: 44px;
}

.panel-body {
    padding: 0;
    color: #666;
}

.panel-intro {
    color: #666;
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 640px;
}

/* Cards inside the box */
.general-option,
.grant-option,
.loan-option {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panel-body > :last-child {
    margin-bottom: 0;
}

.general-option h3,
.grant-option h3,
.loan-option h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;     
    letter-spacing: 1px;
    line-height: 1.5;
}

p,
.general-option p, 
.grant-option p, 
.loan-option p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.general-option:hover, 
.grant-option:hover, 
.loan-option:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons (loan officers): soft hover instead of dark fill */
button {
    width: 250px; 
    margin: 0 5px; 
    background-color: transparent;
    color: #666; 
    padding: 15px; 
    text-align: center;
    font-size: 12px; 
    cursor: pointer;
    border: 2px solid lightgray; 
    border-radius: 8px; 
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 400; 
}

button:hover {
    background-color: #eef3f7; 
    border-color: #b9cad6;
    color: #333; 
}

.loan-officer .button-container {
    display: flex;
    justify-content: center; 
    margin-top: 10px; 
    width: 100%; 
}

/* Centered paragraph style for program boxes */
.grant-option.center-text {
    text-align: center;
}

.grant-option.center-text p {
    margin-bottom: 14px;
    max-width: 640px;
    text-align: center;
}

.grant-option.center-text .program-type {
    font-size: 12px;
    letter-spacing: 2px;
    color: #888;
}

.grant-option.center-text .program-links {
    margin-bottom: 0;
}

/* Call to action button */
.dpa-button {
    display: inline-block;
    padding: 14px 24px;
    border: 2px solid lightgray;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.dpa-button:hover {
    background-color: #eef3f7;
    border-color: #b9cad6;
    color: #333;
}

/* Links inside centered program boxes */
.grant-option.center-text .program-links a {
    text-decoration: underline;
    color: #444;
}

.grant-option.center-text .program-links a.dpa-button {
    text-decoration: none;
    color: #666;
}

.grant-option.center-text .program-links a.dpa-button:hover {
    color: #333;
}

/* Easier reading inside program boxes */
.grant-option.center-text p {
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 640px;
}

.grant-option.center-text .program-type {
    font-weight: 600;
    margin-bottom: 14px;
}

.grant-option.center-text .program-links {
    font-weight: 500;
    margin-top: 6px;
}

/* More details toggle (inside a card) */
.more-details {
    width: 100%;
    margin: 0 0 18px;
    text-align: center;
}

.more-details summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    padding: 6px 16px;
    margin-bottom: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #888;
    transition: background-color 0.3s;
}

.more-details summary::-webkit-details-marker {
    display: none;
}

.more-details summary::after {
    content: "\25BE";
    display: inline-block;
    width: 1em;
    margin-left: 6px;
    text-align: center;
}

.more-details[open] summary::after {
    content: "\25B4";
}

.more-details summary:hover {
    background-color: #f3f3f3;
}

.more-details p {
    margin-left: auto;
    margin-right: auto;
}

.footer-info p {
    color: white;
}

/* Mobile: welcome section uses full width */
@media screen and (max-width: 500px) {
    .welcome-section {
        padding: 22px 20px 0;
    }

    .welcome-section h2 {
        font-size: 24px;
    }

    .welcome-lead {
        font-size: 18px;
    }

    .welcome-body {
        padding: 28px 0 32px;
    }

    .welcome-body p {
        font-size: 14.5px;
    }

    .welcome-cta {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .dpa-panel {
        padding: 14px;
    }

    .panel-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpa-step::after,
    .panel-section {
        animation: none;
    }
}

/* Shorter header video on desktop only (about 3 inches). Phones keep the original full height. */
@media screen and (min-width: 769px) and (min-height: 600px) {
    body .image-header-container,
    body .image-header-container .video-background-wrapper,
    body .image-header-container .video-background-frame,
    body .image-header-container .overlay-content {
        height: 288px !important;
        min-height: 0 !important;
        max-height: 288px !important;
    }
}

/* Page hero tint matched to Home */
.image-header-container .video-background-wrapper {
    isolation: isolate;
}
.image-header-container .video-background-frame {
    z-index: 0;
}
.image-header-container .overlay-content {
    z-index: 2;
}
.image-header-container .video-background-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(9, 29, 43, .60);
    -webkit-mask-image: none;
    mask-image: none;
}
/* End page hero tint */

/* shared final site-zoom */
/* Match the existing Home desktop sizing on every public website page.
   Keep Home's two existing breakpoints and leave mobile sizing unchanged. */
@media screen and (min-width: 1024px) and (pointer: fine) {
    body.website-page {
        zoom: 0.7;
        min-height: calc(100vh / 0.7);
    }
    body.website-page .image-header-container {
        height: calc(100vh / 0.7);
    }
}

@media screen and (min-width: 901px) {
    body.website-page .image-header-container .overlay-content {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: center center;
    }
    body.website-page [class$="-page-menu"] .menu-bar {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: top left;
        width: calc(142.857143% - 40px);
    }
}

/* shared final property_update_quiet */
/* Small update date centered on the count / clear-filters row. */
body.property-page .filter-panel .filter-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
}
body.property-page .filter-footer > span[id$="resultCount"] {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
    text-align: left;
}
body.property-page .filter-footer .main-page-update {
    display: block;
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 230px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #71808c;
    text-align: center;
    font: 400 11px/1.4 Arial, sans-serif;
}
body.property-page .filter-footer .main-page-update time { font: inherit; color: inherit; }
body.property-page .filter-footer .clear-filters {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    white-space: normal;
}
@media(max-width:767px) {
    body.property-page .filter-panel .filter-footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    body.property-page .filter-footer .main-page-update { max-width: 100%; font-size: 10px; }
}

#property-page-coverage { margin:24px auto; max-width:1100px; padding:0 16px; box-sizing:border-box; }
#property-page-coverage > .listing-scope-note { margin:0; padding:0; border:0; }
#property-page-coverage > .listing-scope-note[hidden] { display:none !important; }
#property-page-coverage > .listing-scope-note + .listing-scope-note { display:none; }
#property-page-coverage > .listing-scope-note[hidden] + .listing-scope-note:not([hidden]) { display:block; }

/* shared final footer_gallery_colors_v2 */
/* Darker than the active navigation buttons; includes the Home footer strip. */
body.website-page footer.footer,
body.website-page footer.footer.home-footer-strip { background:#0b1f2b; background-image:none; }
/* Neutral photo surround. Photograph sizing and gallery interactions are unchanged. */
body.property-page .ly-modal .ly-stage { background:#fff; }

/* Coverage belongs to the open filters, after the count/date/Clear filters row. */
body.property-page .property-filter-disclosure .filter-footer { margin:16px 0 0; padding:12px 0; border-radius:0; border-top:1px solid #e6edf1; background:transparent; }
body.property-page .property-filter-disclosure .listing-scope-note { margin:0; padding:10px 4px 14px; border:0; border-top:1px solid #e6edf1; border-radius:0; background:transparent; box-shadow:none; color:#657785; font:400 11px/1.6 Arial,sans-serif; text-align:center; }
body.property-page .property-filter-disclosure .listing-scope-note a { color:inherit; text-underline-offset:2px; }
