/* HHM Buyer4: accounts, shortlist/compare, per-listing widgets. Matches the site's existing
   gold/navy palette loosely; kept self-contained so it never depends on hhm-search's own CSS. */
.hhm-b4 { font-family: inherit; color: #1f2530; max-width: 720px; }
.hhm-b4 h2 { margin: 0 0 .6em; font-size: 1.4rem; }
.hhm-b4 h3 { margin: 1.4em 0 .5em; font-size: 1.1rem; }
.hhm-b4-note { color: #666; font-size: .92rem; }
.hhm-b4-hint { color: #6b6b6b; font-weight: 400; font-size: .85em; } /* was #777 (4.47:1, fails); #6b6b6b is ~5.3:1 */

.hhm-b4-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ddd; margin-bottom: 1em; }
.hhm-b4-tab { background: none; border: none; padding: .6em 1em; cursor: pointer; font-size: .95rem; border-bottom: 2px solid transparent; }
.hhm-b4-tab.is-active { border-bottom-color: #a8741a; font-weight: 600; }

.hhm-b4-form { display: flex; flex-direction: column; gap: .5em; max-width: 420px; }
.hhm-b4-form label { display: block; font-size: .88rem; font-weight: 600; margin-top: .4em; }
.hhm-b4-form input[type=text], .hhm-b4-form input[type=email], .hhm-b4-form input[type=password], .hhm-b4-form input[type=tel], .hhm-b4-form textarea, .hhm-b4-form select {
	padding: .6em .7em; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; width: 100%; box-sizing: border-box;
}
.hhm-b4-form input:focus, .hhm-b4-form textarea:focus, .hhm-b4-form select:focus, .hhm-b4-btn:focus {
	outline: 3px solid #a8741a; outline-offset: 1px;
}
.hhm-b4-btn { margin-top: .8em; padding: .7em 1.2em; background: #a8741a; color: #fff; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; }
.hhm-b4-btn:hover { background: #8f6113; }
.hhm-b4-btn--ghost { background: none; color: #a8741a; border: 1px solid #a8741a; }
.hhm-b4-btn--ghost:hover { background: #fbf3e6; }
.hhm-b4-btn--danger { background: #b3261e; }
.hhm-b4-msg { min-height: 1.2em; font-size: .9rem; }
.hhm-b4-msg[data-ok] { color: #1c7a3e; }
.hhm-b4-msg[data-err] { color: #b3261e; }

.hhm-b4-hello { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; }

/* PDPA note reused from hhm-content2 -- only spacing here, wording/markup is theirs */
.hhm2-pdpa { font-size: .85rem; color: #555; }

/* shortlist star (injected onto search cards + listing page) */
.hhm-b4-star { background: #fff; border: 1px solid #ddd; border-radius: 999px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.hhm-b4-star[aria-pressed="true"] { background: #a8741a; border-color: #a8741a; color: #fff; }
.hhm-b4-star:focus { outline: 3px solid #a8741a; outline-offset: 2px; }

.hhm-b4-list-item { display: flex; gap: .8em; align-items: center; padding: .6em 0; border-bottom: 1px solid #eee; }
.hhm-b4-list-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #eee; }
.hhm-b4-list-item .hhm-b4-li-body { flex: 1; min-width: 0; }
.hhm-b4-list-item a { color: #1f2530; text-decoration: none; font-weight: 600; }
.hhm-b4-list-item a:hover { text-decoration: underline; }
.hhm-b4-empty { color: #707070; font-size: .9rem; padding: .8em 0; } /* was #888 (3.55:1, fails); #707070 is ~4.95:1 -- found sweeping this page for other near-miss greys */

/* compare */
#hhm-b4-compare-picker { display: flex; gap: .6em; flex-wrap: wrap; margin: .8em 0 1.2em; }
#hhm-b4-compare-table { overflow-x: auto; }
#hhm-b4-compare-table table { border-collapse: collapse; width: 100%; min-width: 480px; }
#hhm-b4-compare-table th, #hhm-b4-compare-table td { border: 1px solid #eee; padding: .5em .6em; font-size: .9rem; text-align: left; vertical-align: top; }
#hhm-b4-compare-table th { background: #faf7f0; }
#hhm-b4-compare-table img { width: 100%; max-width: 160px; height: 100px; object-fit: cover; border-radius: 4px; }

/* per-listing widgets */
.hhm-b4-widgets { display: flex; gap: .6em; flex-wrap: wrap; margin: 1em 0; }
.hhm-b4-modal { border: none; border-radius: 10px; padding: 0; max-width: 480px; width: 92vw; }
.hhm-b4-modal::backdrop { background: rgba(20,20,20,.5); }
.hhm-b4-modal-inner { padding: 1.4em; position: relative; }
.hhm-b4-modal-close { position: absolute; top: .6em; right: .6em; background: none; border: none; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: .2em .5em; }
.hhm-b4-sparkline { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin: .4em 0; }
.hhm-b4-sparkline i { display: block; width: 6px; background: #a8741a; border-radius: 2px 2px 0 0; }
.hhm-b4-pricehist-table { font-size: .85rem; border-collapse: collapse; }
.hhm-b4-pricehist-table td { padding: .15em .6em .15em 0; }

@media (max-width: 480px) {
	.hhm-b4-form { max-width: 100%; }
	#hhm-b4-compare-table table { min-width: 100%; }
}

.hhm2-privacy-line{font-size:.85em;line-height:1.45;color:#555;margin:.7em 0}
.hhm2-privacy-line a{color:inherit;text-decoration:underline}

/* viewing slot picker */
.hhm-b4-slots{border:0;padding:0;margin:.4em 0 .8em}
.hhm-b4-slots legend{font-weight:600;margin-bottom:.4em;padding:0}
.hhm-b4-days,.hhm-b4-times{display:flex;flex-wrap:wrap;gap:.4em;margin:.3em 0}
.hhm-b4-slotbtn{min-height:44px;padding:.4em .9em;border:1.5px solid #3a6b4a;border-radius:999px;background:#fff;color:#1f3d2b;font:inherit;cursor:pointer}
.hhm-b4-slotbtn[aria-pressed=true]{background:#3a6b4a;color:#fff}

.hhm-b4-opt{border:0;padding:0;margin:.6em 0}
.hhm-b4-opt legend{font-weight:600;padding:0}
.hhm-b4-opt select{width:100%;min-height:44px;margin:.2em 0 .6em}
