/* HousifyHub – "Dates and guests" sheet (shared, 2.15.0)
 *
 * Styles of the bottom sheet of assets/js/dates-sheet.js, used by the
 * homepage hero (homepage.css + homepage.js) and the Short stay list page
 * (map.css + map-list.js). Moved here unchanged from homepage.css (blocks
 * 2.13.0 / 2.13.1 / 2.13.1 text fixes), in the same order, so both pages
 * show exactly the same sheet. The sheet is appended to <body> (outside
 * #hk-home / #hk-app): plain class selectors, theme button styles reset.
 * Plus Jakarta Sans, the local file (no Google Fonts request).
 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

html.hk-hm-sheet-open,
html.hk-hm-sheet-open body { overflow: hidden; }

.hk-hm-sheet-root {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #013B23;
}

.hk-hm-sheet-root * { box-sizing: border-box; font-family: inherit; }

.hk-hm-sheet-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(4, 25, 15, .58); }

.hk-hm-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 480px;
    max-height: calc(100% - 16px);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .2);
}

.hk-hm-sheet-root button {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #013B23;
    font-size: 15px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.hk-hm-sheet-root button:hover,
.hk-hm-sheet-root button:focus { background: transparent; color: #013B23; }

.hk-hm-sheet-root button:focus-visible { outline: 3px solid #F6A51E; outline-offset: 2px; }

.hk-hm-sheet-root button:disabled { cursor: default; }

.hk-hm-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 16px; }

.hk-hm-sheet-title { margin: 0; color: #013B23; font-size: 18px; font-weight: 700; line-height: 1.3; }

.hk-hm-sheet-root .hk-hm-sheet-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.hk-hm-sheet-body { padding: 4px 16px 0; }

.hk-hm-sum { display: flex; margin-top: 8px; }

.hk-hm-sum-box {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 12px;
    border: 1.5px solid #e3e8e3;
    border-radius: 12px;
}

.hk-hm-sum-box + .hk-hm-sum-box { margin-left: 10px; }

.hk-hm-sum-box.is-active { border-color: #013B23; }

.hk-hm-sum-label { display: block; color: #5d6e5d; font-size: 12px; font-weight: 600; }

.hk-hm-sum-val { display: block; margin-top: 2px; color: #013B23; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hk-hm-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.hk-hm-sheet-root .hk-hm-cal-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.hk-hm-sheet-root .hk-hm-cal-arrow:disabled { color: #c3cbc3; }

.hk-hm-cal-month { margin: 0; color: #013B23; font-size: 16px; font-weight: 700; }

.hk-hm-cal-week,
.hk-hm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.hk-hm-cal-week span { padding: 4px 0; color: #5d6e5d; font-size: 12px; font-weight: 600; text-align: center; }

.hk-hm-cal-cell { display: flex; align-items: center; justify-content: center; height: 44px; margin: 1px 0; }

.hk-hm-cal-cell.is-between { background: #e3efe7; }

.hk-hm-cal-cell.is-start.has-range { background: linear-gradient(to right, transparent 50%, #e3efe7 50%); }

.hk-hm-cal-cell.is-end { background: linear-gradient(to left, transparent 50%, #e3efe7 50%); }

.hk-hm-sheet-root .hk-hm-cal-day {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    color: #013B23;
    font-size: 15px;
    font-weight: 600;
}

.hk-hm-sheet-root .hk-hm-cal-day.is-today { text-decoration: underline; }

.hk-hm-sheet-root .hk-hm-cal-day:disabled { color: #b5bdb5; font-weight: 400; }

.hk-hm-sheet-root .is-start .hk-hm-cal-day,
.hk-hm-sheet-root .is-end .hk-hm-cal-day,
.hk-hm-sheet-root .is-start .hk-hm-cal-day:hover,
.hk-hm-sheet-root .is-end .hk-hm-cal-day:hover,
.hk-hm-sheet-root .is-start .hk-hm-cal-day:focus,
.hk-hm-sheet-root .is-end .hk-hm-cal-day:focus { background: #013B23; color: #fff; }

.hk-hm-guests { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 0 14px; border-top: 1px solid #e3e8e3; }

.hk-hm-guests-label { color: #013B23; font-size: 16px; font-weight: 700; }

.hk-hm-step { display: flex; align-items: center; }

.hk-hm-sheet-root .hk-hm-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid #cfd8cf;
    border-radius: 50%;
}

.hk-hm-sheet-root .hk-hm-step-btn:disabled { color: #c3cbc3; border-color: #e3e8e3; }

.hk-hm-step-val { min-width: 40px; color: #013B23; font-size: 17px; font-weight: 700; text-align: center; }

.hk-hm-sheet-foot {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e3e8e3;
    background: #fff;
}

.hk-hm-sheet-foot-left { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin-right: 12px; }

.hk-hm-sheet-root .hk-hm-clear {
    min-height: 32px;
    padding: 0;
    color: #013B23;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.hk-hm-sheet-root .hk-hm-clear:disabled { color: #9aa59e; text-decoration: none; }

.hk-hm-summary { color: #5d6e5d; font-size: 13px; white-space: nowrap; }

.hk-hm-sheet-root .hk-hm-apply,
.hk-hm-sheet-root .hk-hm-apply:hover,
.hk-hm-sheet-root .hk-hm-apply:focus {
    flex: none;
    min-height: 44px;
    padding: 0 26px;
    border-radius: 12px;
    background: #F6A51E;
    color: #013B23;
    font-size: 16px;
    font-weight: 700;
}

.hk-hm-sheet {
    padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    box-shadow: none;
}

.hk-hm-grab { width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: #d3d9d3; }

.hk-hm-sheet-head { height: 48px; padding: 0; }

.hk-hm-sheet-title { font-size: 20px; line-height: normal; }

.hk-hm-sheet-root .hk-hm-sheet-x { margin-right: -10px; border-radius: 0; }

.hk-hm-sheet-body { padding: 0; }

.hk-hm-sum { margin-top: 2px; }

.hk-hm-sum-box { height: 56px; padding: 8px 12px; border: 1px solid #cfd8cf; }

.hk-hm-sum-box + .hk-hm-sum-box { margin-left: 8px; }

.hk-hm-sum-box.is-active { padding: 7px 11px; border: 2px solid #013B23; }

.hk-hm-sum-label { font-size: 12px; font-weight: 400; line-height: normal; }

.hk-hm-sum-val { margin-top: 0; font-size: 15px; font-weight: 700; line-height: normal; }

.hk-hm-cal-nav { height: 48px; margin-top: 6px; }

.hk-hm-sheet-root .hk-hm-cal-arrow { border-radius: 0; }

.hk-hm-sheet-root .hk-hm-cal-arrow:first-child { margin-left: -10px; }

.hk-hm-sheet-root .hk-hm-cal-arrow:last-child { margin-right: -10px; }

.hk-hm-cal-month { font-size: 18px; font-weight: 600; line-height: normal; }

.hk-hm-cal-week { height: 24px; align-items: center; }

.hk-hm-cal-week span { padding: 0; line-height: normal; }

.hk-hm-cal-cell { height: 40px; margin: 0; }

.hk-hm-sheet-root .hk-hm-cal-day { width: 36px; height: 36px; min-width: 36px; font-weight: 500; }

.hk-hm-sheet-root .hk-hm-cal-day:disabled { color: #b8c2b8; font-weight: 500; }

.hk-hm-sheet-root .is-start .hk-hm-cal-day,
.hk-hm-sheet-root .is-end .hk-hm-cal-day { font-weight: 700; }

.hk-hm-guests { height: 56px; margin-top: 6px; padding: 0; border-top: 1px solid #e5e9e5; }

.hk-hm-guests-text { font-size: 16px; line-height: normal; }

.hk-hm-guests-label { display: block; font-size: 15px; font-weight: 700; line-height: normal; }

.hk-hm-guests-sub { display: inline; color: #5d6e5d; font-size: 12px; line-height: normal; }

.hk-hm-step { margin-right: -4px; }

.hk-hm-sheet-root .hk-hm-step-btn { width: 44px; height: 44px; border: 0; border-radius: 0; }

.hk-hm-step-c {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #013B23;
    border-radius: 50%;
}

.hk-hm-step-val { min-width: 22px; margin: 0 6px; font-size: 18px; font-weight: 800; line-height: normal; }

.hk-hm-sheet-foot { display: block; padding: 10px 0 0; border-top: 1px solid #e5e9e5; }

.hk-hm-sheet-foot-line { display: flex; align-items: center; justify-content: space-between; height: 24px; margin-bottom: 8px; }

.hk-hm-sheet-root .hk-hm-clear { height: 24px; min-height: 24px; font-size: 14px; font-weight: 700; text-decoration: none; }

.hk-hm-summary { color: #013B23; font-size: 14px; font-weight: 700; line-height: normal; }

.hk-hm-sheet-root .hk-hm-apply,
.hk-hm-sheet-root .hk-hm-apply:hover,
.hk-hm-sheet-root .hk-hm-apply:focus {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
}

.hk-hm-sheet-root,
.hk-hm-sheet-root * { letter-spacing: normal; }

.hk-hm-sheet-root button {
    text-decoration-thickness: auto;
    text-underline-offset: auto;
}

.hk-hm-sheet-root button { line-height: normal; }

/* ── 2.17.0: "Block dates" mode (landlord dashboard, landlord-account.js) ──
   A line under the title, and days that are already blocked: green, struck
   through, not tappable. The search sheets never get these classes. */
.hk-hm-sheet-intro { margin: 2px 0 0; color: #5d6e5d; font-size: 14px; line-height: 1.4; }

.hk-hm-sheet-root .is-marked .hk-hm-cal-day,
.hk-hm-sheet-root .is-marked .hk-hm-cal-day:disabled { background: #e3efe7; color: #1C4A2F; font-weight: 600; text-decoration: line-through; }

/* 2.17.1: in "Block dates" the main button is grey while no day is chosen
   ("Choose dates"), orange with "Block 15–17 Nov" once there is one. */
.hk-hm-sheet-root .hk-hm-sheet--block .hk-hm-apply:disabled,
.hk-hm-sheet-root .hk-hm-sheet--block .hk-hm-apply:disabled:hover { background: #e3e8e3; color: #4b5a4f; }
