.hb-dp-trigger {
    display: block; width: 100%;
    background: var(--hb-bg-soft, #faf6ef); border: 1.5px solid var(--hb-line-2, #e5e0d3); border-radius: 9px;
    padding: 0 14px; height: 46px;
    cursor: pointer; text-align: left; font-family: inherit;
    display: flex; align-items: center; gap: 10px;
    transition: border-color .15s, background .15s, box-shadow .15s;
    color: var(--hb-ink-2, #1e293b); font-size: 14px;
}
.hb-dp-trigger:hover, .hb-dp-trigger:focus {
    outline: none; border-color: var(--hb-accent, #c49a52); background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--hb-accent-rgb, 196,154,82),.15);
}
.hb-dp-tr-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--hb-bg-tint, #f5ecd7); color: var(--hb-accent-dark, #a37f3d); font-size: 12px;
    flex-shrink: 0;
}
.hb-dp-tr-value { color: var(--hb-ink-2, #1e293b); font-weight: 500; }
.hb-dp-tr-value.empty { color: #94a3b8; font-weight: 400; font-style: italic; }

/* Combined single-field trigger — shows "Check-in → Check-out" so the
   search widget only needs one dates field (the popup handles both
   dates in a single interaction). */
.hb-dp-trigger-range {
    gap: 8px;
    min-width: 0;
}
.hb-dp-tr-range {
    display: flex; align-items: center; gap: 8px;
    min-width: 0; flex: 1;
    white-space: nowrap; overflow: hidden;
}
.hb-dp-tr-range-part { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hb-dp-tr-range-part.empty { color: #94a3b8; font-weight: 400; font-style: italic; }
.hb-dp-tr-range-arrow {
    color: var(--hb-accent, #c49a52); font-size: 12px; flex-shrink: 0;
}

/* ── Popup ── */
.hb-dp-popup {
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px 16px;
    box-shadow: 0 30px 60px rgba(15,23,42,.18), 0 4px 14px rgba(15,23,42,.08);
    border: 1px solid var(--hb-line, #eee7d4);
    z-index: 100000;
    min-width: 620px;
    max-width: 92vw;
}
.hb-dp-p-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.hb-dp-p-nav {
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: 1px solid var(--hb-line, #eee7d4); color: var(--hb-accent-muted, #94875a);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}
.hb-dp-p-nav:hover { background: var(--hb-accent, #c49a52); color: #fff; border-color: var(--hb-accent, #c49a52); }
.hb-dp-p-title {
    flex: 1; display: flex; justify-content: space-around;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 15.5px; font-weight: 700; color: var(--hb-ink, #0f172a);
    gap: 10px;
}
.hb-dp-p-months {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.hb-dp-p-heads {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
    margin-bottom: 4px;
}
.hb-dp-p-heads > div {
    text-align: center; font-size: 10px; font-weight: 700;
    color: var(--hb-accent-muted, #94875a); letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 0;
}
.hb-dp-p-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hb-dp-p-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 13px; font-weight: 500;
    color: var(--hb-ink-2, #1e293b); cursor: pointer; user-select: none;
    background: transparent;
    transition: background .12s, color .12s, transform .1s;
}
.hb-dp-p-day:hover:not(.past):not(.empty) {
    background: var(--hb-bg-tint, #f5ecd7); color: var(--hb-accent-deep, #7f6122);
    transform: scale(1.06);
}
.hb-dp-p-day.empty { visibility: hidden; }
.hb-dp-p-day.past,
.hb-dp-p-day.oor   { color: #cbd5e1; cursor: not-allowed; }
.hb-dp-p-nav[disabled] { opacity: .3; cursor: not-allowed; pointer-events: none; }
.hb-dp-p-day.today { box-shadow: inset 0 0 0 1.5px #93c5fd; font-weight: 700; }
.hb-dp-p-day.selected {
    background: linear-gradient(135deg, var(--hb-accent, #c49a52) 0%, var(--hb-accent-dark, #a37f3d) 100%);
    color: #fff !important; font-weight: 700;
    box-shadow: 0 4px 10px rgba(var(--hb-accent-rgb, 196,154,82),.3);
}
.hb-dp-p-day.selected.range-start { border-radius: 999px 6px 6px 999px; }
.hb-dp-p-day.selected.range-end   { border-radius: 6px 999px 999px 6px; }
.hb-dp-p-day.in-range {
    background: var(--hb-bg-tint, #f5ecd7); color: var(--hb-accent-deep, #7f6122); border-radius: 4px;
}
.hb-dp-p-day.in-range:hover { background: #edd9a9; transform: none; }

.hb-dp-p-foot {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid #f2ead9;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.hb-dp-p-clr, .hb-dp-p-done {
    padding: 8px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    cursor: pointer;
    transition: background .13s, color .13s, border-color .13s;
}
.hb-dp-p-clr {
    background: transparent; color: #94a3b8; border: 1px solid var(--hb-line-2, #e5e0d3);
}
.hb-dp-p-clr:hover { background: var(--hb-bg-soft, #faf6ef); color: #64748b; }
.hb-dp-p-done {
    background: var(--hb-accent, #c49a52); color: #fff; border: none;
}
.hb-dp-p-done:hover { background: var(--hb-accent-dark, #a37f3d); }
.hb-dp-p-summary {
    flex: 1; text-align: center; font-size: 12.5px; font-weight: 600;
    color: var(--hb-ink, #0f172a);
}
.hb-dp-p-summary-empty { color: #94a3b8; font-weight: 500; font-style: italic; }

@media (max-width: 640px) {
    .hb-dp-popup { min-width: 300px; padding: 16px 16px 14px; }
    .hb-dp-p-months { grid-template-columns: 1fr; gap: 14px; }
}
