/* Home v2 (live 2026-11-10): flier strip, flier viewer, events row, business strip, share band.
   Loaded on the front page + test template (inc/theme-setup.php). Mobile-first. */

.hp-fstrip,
.hp-evrow { padding: 20px 16px 8px; }
.hp-fstrip__inner,
.hp-evrow__inner { max-width: 1100px; margin: 0 auto; }

.hp-fstrip__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin: 0 0 10px;
}
.hp-fstrip__title {
    font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: #C97A0E; margin: 0; line-height: 1.2;
}
.hp-fstrip__all {
    font-size: 14px; font-weight: 600; color: #2B2118; text-decoration: none;
    white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.hp-fstrip__all:hover { text-decoration: underline; }

/* Strip */
.hp-fstrip__viewport,
.hp-evrow__viewport {
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    touch-action: pan-x pan-y;
    border-radius: 12px;
}
.hp-fstrip__viewport::-webkit-scrollbar,
.hp-evrow__viewport::-webkit-scrollbar { display: none; }
.hp-evrow__viewport:focus-visible,
.hp-fstrip__viewport:focus-visible { outline: 3px solid #C97A0E; outline-offset: 3px; }
.hp-fstrip__track {
    display: flex; gap: 12px; list-style: none; margin: 0; padding: 0;
    width: max-content; min-width: 100%;
}
.hp-marquee--static .hp-marquee__track { justify-content: center; }
.hp-fstrip__item { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.hp-fstrip__btn {
    display: block; padding: 0; border: 0; background: #f6efe6; cursor: pointer;
    border-radius: 10px; overflow: hidden; line-height: 0;
    box-shadow: 0 1px 3px rgba(43,33,24,.12);
    transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.hp-fstrip__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(43,33,24,.18); }
.hp-fstrip__btn:focus-visible { outline: 3px solid #C97A0E; outline-offset: 2px; }
.hp-fstrip__btn img {
    display: block; height: var(--fstrip-h-mob, 300px); width: auto;
    max-width: none; object-fit: contain;
}
.hp-fstrip__cap {
    font-size: 13px; font-weight: 600; color: #2B2118; line-height: 1.3;
    max-width: 100%; width: 0; min-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Flier viewer */
.hp-flb[hidden] { display: none; }
.hp-flb {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.hp-flb__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.hp-flb__panel {
    position: relative; display: flex; flex-direction: column; align-items: center;
    gap: 12px; width: 100%; max-width: 640px; max-height: 100dvh;
    padding: max(56px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.hp-flb__imglink { display: block; line-height: 0; }
.hp-flb__img {
    display: block; max-width: 100%; max-height: calc(100dvh - 160px);
    width: auto; height: auto; border-radius: 8px; background: #fff;
}
.hp-flb__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; width: 100%; color: #fff;
}
.hp-flb__name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-flb__cta {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: #C97A0E; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.hp-flb__cta:hover { background: #a9650a; }
.hp-flb__close,
.hp-flb__nav {
    position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.hp-flb__close:hover,
.hp-flb__nav:hover { background: rgba(255,255,255,.28); }
.hp-flb__close { top: max(8px, env(safe-area-inset-top)); right: 12px; }
.hp-flb__nav { top: 50%; transform: translateY(-50%); }
.hp-flb__prev { left: 4px; }
.hp-flb__next { right: 4px; }
body.hp-flb-open { overflow: hidden; }

/* Slim events row */
.hp-evrow { padding-bottom: 20px; }
.hp-evrow__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 10px; width: max-content; min-width: 100%;
}
.hp-evrow__item { flex: 0 0 auto; width: 260px; }
.hp-evrow__link {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px;
    background: #fff; border: 1px solid rgba(43,33,24,.08); border-radius: 12px;
    text-decoration: none; color: #2B2118; height: 100%;
}
.hp-evrow__link:hover { border-color: #C97A0E; }
.hp-evrow__date {
    flex: 0 0 44px; height: 44px; border-radius: 10px; background: #FFF1DD;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.hp-evrow__day { font-size: 18px; font-weight: 800; color: #C97A0E; }
.hp-evrow__mon { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.hp-evrow__body { display: flex; flex-direction: column; min-width: 0; }
.hp-evrow__title {
    font-size: 15px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-evrow__venue { font-size: 12.5px; color: #6b5b4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 768px) {
    .hp-fstrip, .hp-evrow { padding-left: 32px; padding-right: 32px; }
    .hp-fstrip { padding-top: 28px; }
    .hp-fstrip__title { font-size: 18px; }
    .hp-fstrip__btn img { height: var(--fstrip-h, 230px); }
    .hp-evrow__item { width: 280px; }
    .hp-flb__prev { left: -56px; }
    .hp-flb__next { right: -56px; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-fstrip__btn { transition: none; }
    .hp-fstrip__btn:hover { transform: none; }
}

/* Active Listings + desiPulse split (v2, 2026-11-10):
   cards show price + realtor profile link only; Pulse graphic shorter on desktop. */
.kcdesi-homepage--v2 .kcd-agent-card__addr,
.kcdesi-homepage--v2 .kcd-agent-card__count { display: none; }
@media (min-width: 1025px) {
    .kcdesi-homepage--v2 .hp-split .hp-newsletter-graphic {
        height: var(--pulse-h, 240px); width: auto; max-width: 100%;
    }
}


/* Business image strip (v2, 2026-11-10): 5 slots desktop, 3 tablet, 2 phone; crossfade */
.hp-bizstrip { padding: 28px 16px; }
.hp-bizstrip__inner { max-width: 1100px; margin: 0 auto; }
.hp-bizstrip__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.hp-bizstrip__slot:nth-child(n+3) { display: none; }
.hp-bizstrip__link {
    position: relative; display: block; height: 150px; overflow: hidden;
    border-radius: 10px; background: #f1e8dc; text-decoration: none;
}
.hp-bizstrip__link:focus-visible { outline: 3px solid #C97A0E; outline-offset: 2px; }
.hp-bizstrip__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .8s ease-in-out;
}
.hp-bizstrip__img.is-on { opacity: 1; }
.hp-bizstrip__name {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 18px 10px 8px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity .4s ease-in-out;
}
@media (min-width: 600px) {
    .hp-bizstrip__grid { grid-template-columns: repeat(3, 1fr); }
    .hp-bizstrip__slot:nth-child(3) { display: block; }
}
@media (min-width: 1024px) {
    .hp-bizstrip { padding: 36px 32px; }
    .hp-bizstrip__grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .hp-bizstrip__slot:nth-child(n+3) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-bizstrip__img, .hp-bizstrip__name { transition: none; }
}

/* "Got something to share?" (v2, 2026-11-10) */
.hp-share { padding: 32px 16px; }
.hp-share__inner { max-width: 1100px; margin: 0 auto; }
.hp-share__join,
.hp-share__member { display: flex; flex-direction: column; gap: 20px; }
.hp-share .hp-post-cta-eyebrow { font-size: 12px; color: rgba(255,255,255,.75); }
.hp-share .hp-post-cta-title { font-size: 24px; margin-bottom: 14px; }
.hp-share__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #fff; font-size: 15px; }
.hp-share__perks i { color: #F5C26B; margin-right: 6px; }
.hp-share__action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hp-share__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 26px;
    border-radius: 999px; background: #F5A623; color: #2B2118; font-weight: 800; font-size: 16px; text-decoration: none;
}
.hp-share__btn:hover { background: #ffb941; }
.hp-share__login {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.hp-share__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-share__qbtn {
    display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.25;
}
.hp-share__qbtn:hover { background: rgba(255,255,255,.2); }
.hp-share__qbtn i { font-size: 20px; color: #F5C26B; }
.hp-share__prompt {
    display: flex; flex-direction: column; gap: 8px; padding: 18px;
    background: #fff; border-radius: 12px; text-decoration: none; color: #2B2118;
}
.hp-share__plabel { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1C6B5A; }
.hp-share__ptitle { font-size: 17px; font-weight: 700; line-height: 1.35; }
.hp-share__pcta { font-size: 14px; font-weight: 700; color: #C97A0E; }
.hp-share__btn:focus-visible, .hp-share__qbtn:focus-visible, .hp-share__prompt:focus-visible, .hp-share__login:focus-visible {
    outline: 3px solid #F5C26B; outline-offset: 2px;
}
@media (min-width: 768px) {
    .hp-share { padding: 44px 32px; }
    .hp-share__join { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
    .hp-share__perks { grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .hp-share__action { align-items: center; flex: 0 0 auto; }
    .hp-share__quick { grid-template-columns: repeat(4, auto); justify-content: start; }
    .hp-share__member--prompt { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 32px; }
}
