﻿/* ============================================================
   WelHealth Portal CSS v1.1 (DEDUPED)
   Core layout, cards, headers, metrics, forms, actions
   ============================================================ */

/* ============================================================
   Base / utilities
   ============================================================ */
.wh-counselor-modal {
    padding: 20px 10px 10px;
}

/* BIG, unmistakable */
.wh-counselor-phone {
    font-size: 32px;
    font-weight: 700;
    color: #d4552f; /* WelHealth orange/red */
    margin-bottom: 12px;
}

    .wh-counselor-phone .wh-phone-number {
        white-space: nowrap;
    }

/* Trust + reassurance */
.wh-counselor-availability {
    font-size: 22px; /* H2-ish */
    font-weight: 600;
    color: #00879b; /* WelHealth teal */
    margin-bottom: 20px;
}

/* Readable body copy */
.wh-counselor-body {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

    .wh-counselor-body p {
        margin-bottom: 14px;
    }

/* Important note – emphasis, not alarm */
.wh-counselor-important {
    background: #f6f9fa;
    border-left: 4px solid #00879b;
    padding: 10px 14px;
    border-radius: 6px;
}


.pill-button.disabled {
    pointer-events: none;
    opacity: .55;
    cursor: default;
}



.wh-muted {
    color: #6b7c85;
}

.wh-spacer-8 {
    height: 8px;
}

.wh-spacer-12 {
    height: 12px;
}

.wh-spacer-16 {
    height: 16px;
}

/* Standard icon button hit-area (use for help/info icons) */
.wh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

/* Primary button utility (works standalone or alongside Bootstrap .btn) */
.wh-btn-primary {
    background: #00879B;
    border-color: #00879B;
    color: #fff;
    font-weight: 700;
}

    .wh-btn-primary:hover {
        background: #007487;
        border-color: #007487;
        color: #fff;
    }

/* ============================================================
   Page shell / surface
   ============================================================ */
.wh-page-wrap,
.wh-page-surface {
    background: #f2f3f5;
    padding: 22px;
    border-radius: 18px;
    margin: 18px 10px;
}

.wh-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wh-page-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* ============================================================
   Page header
   ============================================================ */
/*.wh-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}*/
.wh-page-header {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #05596f; /* deep teal */
}
.wh-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0b6b77;
    margin: 0;
    line-height: 1.1;
}
.wh-card-rule {
    height: 2px;
    background: #0b5d66;
    opacity: .75;
    border-radius: 2px;
    margin: 10px 0 14px 0;
}

.wh-page-tagline,
.wh-page-subtitle {
    margin-top: 6px;
    color: #6b7c85;
    font-size: 12px!important;
    font-weight:300!important;
}

.wh-header-actions,
.wh-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .wh-header-actions a,
    .wh-page-actions a {
        text-decoration: none;
        font-weight: 600;
        color: #0b6b77;
    }

/* ============================================================
   Card / section
   ============================================================ */
.wh-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    margin-top: 18px;
}

/* Standard card header (legacy pages that still use h2.wh-card-title) */
.wh-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.wh-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b6b77;
    margin: 0;
    line-height: 1.15;
}

.wh-card-tagline {
    margin-top: 6px;
    font-size: 14px;
    color: #6b7c85;
}

.wh-card-divider {
    height: 2px;
    background: #0b6b77;
    border-radius: 2px;
    margin: 10px 0 14px 0;
    opacity: .9;
}

/* Help icon standard (circlegray.png) */
.wh-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    text-decoration: none;
}

    .wh-help-btn img {
        width: 24px;
        height: 24px;
        opacity: .95;
    }

/* Jump links row */
.wh-jumplinks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 2px;
}

    .wh-jumplinks a {
        color: #0b6b77;
        font-weight: 600;
        text-decoration: none;
        font-size: 13px;
    }

        .wh-jumplinks a:hover {
            text-decoration: underline;
        }

/* Optional accent */
.wh-card--accent-teal {
    border-top: 4px solid #0b6b77;
}

/* ============================================================
   Canonical section header (your chosen “final” card header)
   ============================================================ */
.wh-card-section-title {
    margin: 0 !important;
    padding: 0 !important;
}

    .wh-card-section-title h3 {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.15 !important;
        letter-spacing: .2px !important;
        color: #0b5d66 !important;
        font-size: 1.8rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
    }

.wh-card-section-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================================
   Subcard (used for listings inside a card)
   ============================================================ */
.wh-subcard {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

@media (max-width: 768px) {
    .wh-subcard {
        padding: 14px;
    }
}

/* ============================================================
   Metric cards (dashboards)
   ============================================================ */
.wh-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .wh-metric-grid {
        grid-template-columns: 1fr;
    }
}

.wh-metric-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    text-align: center;
}

.wh-metric-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b6b77;
    margin-bottom: 4px;
}

.wh-metric-subtitle {
    font-size: 13px;
    color: #6b7c85;
    margin-bottom: 12px;
}

.wh-metric-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 8px auto;
}

.wh-metric-btn {
    margin-top: 10px;
}

/* ============================================================
   Forms
   ============================================================ */
.wh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

@media (max-width: 900px) {
    .wh-form-grid {
        grid-template-columns: 1fr;
    }
}

.wh-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ============================================================
   Amenity picker cards
   ============================================================ */
.wh-amenity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .wh-amenity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wh-amenity-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.wh-amenity-title {
    font-weight: 700;
    color: #083b44;
    margin-bottom: 10px;
}

.wh-amenity-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pills */
.wh-amenity-pill {
    position: relative;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.15);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}

    .wh-amenity-pill input {
        position: absolute;
        opacity: 0;
    }

    .wh-amenity-pill:has(input:checked),
    .wh-amenity-pill.is-checked {
        border-color: #00879B;
        box-shadow: 0 0 0 3px rgba(0,135,155,.15);
        color: #003f4f;
    }

/* ============================================================
   Action buttons (housing listings)
   ============================================================ */
.wh-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .wh-action-grid {
        grid-template-columns: 1fr;
    }
}

.wh-action-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}
/* =========================================
   Listing facts (modern replacement for table)
   ========================================= */
.wh-facts {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.wh-fact-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(0,0,0,.06);
}

    .wh-fact-row:first-child {
        border-top: 0;
    }

.wh-fact-label {
    font-weight: 700;
    color: #083b44;
    white-space: nowrap;
}

.wh-fact-value {
    color: #374151;
}

/* tighter on small screens */
@media (max-width: 768px) {
    .wh-fact-row {
        grid-template-columns: 120px 1fr;
    }
}
/* =========================================
   Pill buttons (shared)
   ========================================= */
.wh-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.15);
    text-decoration: none;
    font-weight: 700;
    color: #0b6b77;
    background: #fff;
    white-space: nowrap;
}

    .wh-pill-btn:hover {
        border-color: #00879B;
        box-shadow: 0 0 0 3px rgba(0,135,155,.15);
        color: #083b44;
    }

.wh-pill-btn--sm {
    padding: 6px 10px;
    font-weight: 700;
}

/* Center the action bar and keep 3 across on desktop */
.wh-action-bar {
    max-width: 980px;
    margin: 12px auto 0 auto;
}

.wh-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: center; /* centers each button in its cell */
}

    .wh-action-grid .wh-pill-btn {
        width: 100%;
        max-width: 260px; /* keeps them from stretching too wide */
    }

@media (max-width: 900px) {
    .wh-action-grid {
        grid-template-columns: 1fr;
    }

        .wh-action-grid .wh-pill-btn {
            max-width: 420px;
        }
}
/* =========================================
   Listing layout (responsive 3-column)
   ========================================= */
.wh-location-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

/* Wide screens: add facts column */
@media (min-width: 1200px) {
    .wh-location-card {
        grid-template-columns: 320px 1fr 300px;
    }
}

/* Facts column placement */
.wh-location-facts {
    grid-column: 3;
}

/* Stack naturally on smaller screens */
@media (max-width: 1199px) {
    .wh-location-facts {
        grid-column: auto;
    }
}
/* =========================================
   Housing listing layout (SAFE wide-screen enhancement)
   ========================================= */

/* Default: whatever your existing layout is (do nothing) */

/* Wide screens only: lay out as Image | Main | Facts */
@media (min-width: 1200px) {

    .wh-location-card {
        display: flex;
        align-items: flex-start;
        gap: 22px;
    }

        /* Left image column (your existing .box) */
        .wh-location-card > .box:first-child {
            flex: 0 0 360px;
            max-width: 360px;
        }

        /* Middle content (your existing .general) */
        .wh-location-card > .general {
            flex: 1 1 auto;
            min-width: 420px; /* keeps text from collapsing */
        }

    /* Right facts panel wrapper */
    .wh-location-facts {
        flex: 0 0 320px;
        max-width: 320px;
    }

    /* Keep action buttons full-width under the whole listing */
    .wh-action-bar {
        max-width: 980px;
        margin: 12px auto 0 auto;
    }
}
/* =========================================
   Listing footer (checkbox + actions)
   ========================================= */
.wh-listing-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.06);
}

    .wh-listing-footer .wh-interest-row {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .wh-listing-footer .wh-action-bar {
        max-width: 980px;
        margin: 0 auto;
    }

/* buttons: keep centered + consistent widths */
.wh-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    justify-items: center;
}

    .wh-action-grid .wh-pill-btn {
        width: 100%;
        max-width: 260px;
    }

@media (max-width: 900px) {
    .wh-action-grid {
        grid-template-columns: 1fr;
    }

        .wh-action-grid .wh-pill-btn {
            max-width: 420px;
        }
}
@media (min-width: 1200px) {
    .wh-location-card {
        display: flex;
        gap: 22px;
        align-items: flex-start;
    }

        .wh-location-card > .box:first-child {
            flex: 0 0 360px;
            max-width: 360px;
        }

        .wh-location-card > .general {
            flex: 1 1 auto;
            min-width: 420px;
        }

    .wh-location-facts {
        flex: 0 0 320px;
        max-width: 320px;
    }
}
.wh-carousel {
    position: relative;
    padding: 10px 44px 12px 44px;
}

.wh-carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.wh-carousel-track {
    display: flex;
    transition: transform .25s ease;
    will-change: transform;
}

.wh-carousel-slide {
    min-width: 100%;
}

.wh-carousel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.wh-carousel .prev, .wh-carousel .next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wh-carousel .prev {
    left: 10px;
}

.wh-carousel .next {
    right: 10px;
}

.wh-carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.wh-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,.18);
    cursor: pointer;
}

    .wh-dot.is-active {
        background: #0b5d66;
    }
/* ================================
   Portal Page Wrapper
   ================================ */



.wh-page-bg {
    background: #f2f3f5;
    padding: 24px;
    min-height: 100vh;
    border-radius: 20px; /* 👈 rounded gray container */
    margin: 12px; /* creates visible edge against layout */
}

.wh-page-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 26px 28px 26px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
    margin: 0 auto;
}

    /* Optional: tighter version for long forms */
    .wh-page-card.compact {
        padding: 20px 22px;
    }

/* Optional header inside card */
.wh-page-header {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #05596f; /* deep teal */
}

.wh-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wh-card-head-left {
    min-width: 0;
    margin-top:10px;
}

.wh-card-title {
    font-size: 20px; /* match your ParticipantLanding card header scale */
    font-weight: 800;
    margin: 0;
    color: #0b5d66;
}

.wh-card-tagline {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}



.wh-card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.ps-card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}