/* Hotel and BnB – Near Me & Promoted. Uses the theme's colours when present. */
:root {
	--hnbp-clay: var(--hb-clay, #0a6fc2);
	--hnbp-green: var(--hb-green, #0d3b66);
	--hnbp-ink: var(--hb-ink, #1c1f1d);
	--hnbp-muted: var(--hb-muted, #5f6661);
	--hnbp-line: var(--hb-line, #e3e2de);
	--hnbp-soft: var(--hb-soft, #f5f4f1);
	--hnbp-ochre: var(--hb-ochre, #d8a03c);
}

/* ---------- near me: hero button ---------- */
.hnbp-near-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 22px 0 0; }
.hnbp-near-btn {
	display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 999px; background: #fff; color: var(--hnbp-clay);
	font: 700 16px/1.2 var(--hb-body, system-ui, sans-serif); cursor: pointer;
	box-shadow: 0 8px 24px rgba(5, 25, 50, .25); transition: transform .15s, box-shadow .15s;
}
.hnbp-near-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(5, 25, 50, .32); }
.hnbp-near-btn:disabled { cursor: progress; opacity: .9; transform: none; }
.hnbp-near-btn.is-busy svg { animation: hnbp-spin 1.1s linear infinite; }
@keyframes hnbp-spin { to { transform: rotate(360deg); } }
.hnbp-near-town { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.hnbp-near-town select {
	min-height: 40px; padding: 0 32px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") right 12px center no-repeat;
	color: #fff; font: 600 15px var(--hb-body, system-ui, sans-serif); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.hnbp-near-town select option { color: #1c1f1d; }
.hnbp-near-msg { flex-basis: 100%; margin: 0; min-height: 0; text-align: center; color: #fff; font-weight: 600; font-size: 15px; }
.hnbp-near-msg:empty { display: none; }

/* Shortcode on a light page */
.hnbp-near-sc .hnbp-near-cta { justify-content: flex-start; }
.hnbp-near-sc .hnbp-near-btn { background: var(--hnbp-clay); color: #fff; box-shadow: none; }
.hnbp-near-sc .hnbp-near-town, .hnbp-near-sc .hnbp-near-msg { color: var(--hnbp-ink); }
.hnbp-near-sc .hnbp-near-town select { color: var(--hnbp-ink); background-color: #fff; border-color: #cfcdc7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1f1d' stroke-width='2'/%3E%3C/svg%3E"); }

/* ---------- near me: results ---------- */
.hnbp-near { border-bottom: 1px solid var(--hnbp-line); scroll-margin-top: 80px; }
.hnbp-near[hidden] { display: none; }
.hnbp-near .hb-section__title:focus { outline: none; }
.hnbp-near-sub { margin: 6px 0 0; color: var(--hnbp-muted); }
.hnbp-link { background: none; border: 0; padding: 0; color: var(--hnbp-clay); font: 700 15px var(--hb-body, system-ui, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hnbp-grid { margin: 0; }
.hnbp-item { display: flex; flex-direction: column; min-width: 0; }
.hnbp-item > :first-child { flex: 1 1 auto; }
.hnbp-dist { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; color: var(--hnbp-green); font-size: 15px; font-weight: 700; }
.hnbp-dist span { color: var(--hnbp-muted); font-weight: 400; }
.hnbp-more-wrap { text-align: center; margin: 30px 0 0; }
.hnbp-more-wrap:has(> [hidden]) { display: none; }

/* ---------- promoted ---------- */
.hnbp-promoted { border-bottom: 1px solid var(--hnbp-line); }
.hnbp-item--promoted { position: relative; }
.hnbp-ad { align-self: flex-start; margin: 10px 0 0; padding: 2px 10px; border-radius: 999px; background: #e3f0fb; color: #0a5596; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.hnbp-invite { padding: 34px 0; border-bottom: 1px solid var(--hnbp-line); }
.hnbp-invite__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; border: 2px dashed #a9cdee; border-radius: 14px; background: #f3f8fd; }
.hnbp-invite .hb-container.hnbp-invite__in { max-width: calc(var(--hb-w, 1200px) - 48px); }
.hnbp-invite .hb-eyebrow { margin-bottom: 2px; }
.hnbp-invite__t { margin: 0; font: 600 21px/1.3 var(--hb-head, Georgia, serif); color: var(--hnbp-ink); }

/* ---------- promote page ---------- */
.hnbp-promote { max-width: 760px; margin: 0 auto; }
.hnbp-promote__intro p { color: var(--hnbp-muted); font-size: 18px; }
.hnbp-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 28px; }
.hnbp-pack { padding: 18px; border: 1px solid var(--hnbp-line); border-radius: 12px; background: #fff; text-align: center; }
.hnbp-pack--pop { border: 2px solid var(--hnbp-clay); }
.hnbp-pack p { margin: 0; }
.hnbp-pack__days { font-weight: 700; color: var(--hnbp-muted); }
.hnbp-pack__price { font: 600 30px/1.2 var(--hb-head, Georgia, serif); color: var(--hnbp-ink); margin: 4px 0 !important; }
.hnbp-pack__per { font-size: 14px; color: var(--hnbp-muted); }
.hnbp-box { padding: 24px; border: 1px solid var(--hnbp-line); border-radius: 14px; background: #fff; margin: 0 0 24px; }
.hnbp-box__h { font-size: 24px; margin: 0 0 14px; }
.hnbp-box fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.hnbp-box legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.hnbp-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hnbp-line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.hnbp-opt:has(input:checked) { border-color: var(--hnbp-clay); background: #eef5fc; }
.hnbp-opt input { width: 18px; height: 18px; accent-color: var(--hnbp-clay); flex: none; margin: 0; }
.hnbp-opt__main { flex: 1; font-weight: 600; }
.hnbp-opt__note { color: var(--hnbp-muted); font-size: 15px; text-align: right; }
.hnbp-opt__note.is-on { color: var(--hnbp-green); font-weight: 700; }
.hnbp-pay { width: 100%; min-height: 52px; margin: 6px 0 10px; }
.hnbp-small { font-size: 14px; color: var(--hnbp-muted); margin: 0 0 8px; }
.hnbp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hnbp-msg { padding: 14px 16px; border-radius: 10px; margin: 0 0 20px; border-left: 4px solid; }
.hnbp-msg--ok { background: #eaf4ee; border-color: var(--hnbp-green); }
.hnbp-msg--wait { background: #fdf6e7; border-color: #d8a03c; }
.hnbp-msg--err { background: #fcebe6; border-color: #c2462a; }

/* owner box on their listing page */
.hnbp-side { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #eef5fc; border: 1px solid #c4dcf2; font-size: 15px; }
.hnbp-side p { margin: 0 0 6px; }

@media (max-width: 600px) {
	.hnbp-near-cta { flex-direction: column; }
	.hnbp-near-btn { width: 100%; justify-content: center; }
	.hnbp-invite__in { flex-direction: column; align-items: flex-start; margin: 0 16px; width: auto; }
	.hnbp-opt { flex-wrap: wrap; }
	.hnbp-opt__note { flex-basis: 100%; text-align: left; padding-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.hnbp-near-btn, .hnbp-near-btn.is-busy svg { transition: none; animation: none; }
}
