/* =============================================================
   PENDING DATES — append these rules to your existing public.css
   ============================================================= */

/* Pending calendar cell */
.spbm-day.is-pending {
    background: #fef3c7;
    color: #92400e;
    cursor: not-allowed;
    opacity: 1;
    position: relative;
}

.spbm-day.is-pending:hover {
    background: #fde68a;
}

/* Small dot indicator at the bottom of the cell */
.spbm-day.is-pending::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d97706;
}

/* Pending tooltip — reuses .spbm-booker-tooltip base styles,
   override only the colour so it reads differently from booked. */
.spbm-booker-tooltip--pending {
    background: #92400e !important;
}

/* Legend dot for Pending */
.spbm-dot-pending {
    background: #fbbf24;
    border: 1px solid #d97706;
}
/* =========================================================
   BOOKED DATE INTERACTIONS
   Add this entire block to your public.css
   ========================================================= */

/* Booked cells — not disabled so events still fire */
.spbm-day.is-booked {
    cursor: not-allowed;
    pointer-events: auto;
}

/* ── Desktop: hover tooltip ─────────────────────────────── */
.spbm-booker-tooltip {
    position: absolute;
    z-index: 9999;
    background: #19312d;
    color: #f5f0e8;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(25, 49, 45, 0.28);
    animation: spbm-tooltip-in 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spbm-booker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #19312d;
}

@keyframes spbm-tooltip-in {
    from { opacity: 0; transform: translateY(5px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Mobile: bottom sheet overlay ──────────────────────── */
.spbm-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.45);
    z-index: 10000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.spbm-sheet-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* The sheet itself */
.spbm-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 12px 28px 36px;
    text-align: center;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.spbm-sheet.is-open {
    transform: translateY(0);
}

/* Drag handle */
.spbm-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 99px;
    margin: 0 auto 20px;
}

/* Icon */
.spbm-sheet-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
}

/* "Already booked by" label */
.spbm-sheet-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 6px;
}

/* The name */
.spbm-sheet-name {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #19312d;
    margin: 0 0 10px;
    line-height: 1.2;
}

/* Sub-message */
.spbm-sheet-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Got it button */
.spbm-sheet-close {
    display: inline-block;
    background: #19312d;
    color: #f5f0e8;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 13px 40px;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.spbm-sheet-close:active {
    background: #2d5247;
    transform: scale(0.97);
}
/* ── Booker name tooltip (add to public.css) ── */
.spbm-booker-tooltip {
    position: absolute;
    z-index: 9999;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    animation: spbm-tooltip-in 0.12s ease;
}

.spbm-booker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

@keyframes spbm-tooltip-in {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Booked day: not disabled anymore, but still visually blocked ── */
.spbm-day.is-booked {
    cursor: not-allowed;
    pointer-events: auto; /* must stay auto so hover/touch events fire */
}

.spbm-booking,
.spbm-booking * {
    box-sizing: border-box;
    font-family: inherit;
}

.spbm-booking {
    --spbm-ink: #19312d;
    --spbm-muted: #66746e;
    --spbm-line: #e7e4d8;
    --spbm-soft: #faf9f3;
    --spbm-cream: #ffffff;
    --spbm-accent: #235f35;
    --spbm-accent-dark: #173f2a;
    --spbm-gold: #F6C500;
    --spbm-gold-soft: #fff6c7;
    --spbm-booked: #b54f4f;
    --spbm-shadow: 0 24px 70px rgba(25, 49, 45, 0.14);
    color: var(--spbm-ink);
    margin: 32px auto;
    max-width: 1120px;
    padding: 0 16px;
}

.spbm-property-section + .spbm-property-section {
    border-top: 1px solid var(--spbm-line);
    margin-top: 26px;
    padding-top: 26px;
}

.spbm-card {
    background:
        radial-gradient(circle at 15% 0%, rgba(246, 197, 0, 0.14), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(35, 95, 53, 0.08), transparent 28%),
        #ffffff;
    border: 1px solid rgba(25, 49, 45, 0.1);
    border-radius: 30px;
    box-shadow: var(--spbm-shadow);
    overflow: hidden;
    padding: clamp(22px, 4vw, 42px);
    position: relative;
}

.spbm-card::before {
    background: linear-gradient(90deg, var(--spbm-gold), #ffe881, var(--spbm-accent));
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.spbm-header,
.spbm-layout,
.spbm-field-row,
.spbm-selected-dates,
.spbm-calendar-toolbar,
.spbm-legend {
    display: flex;
    gap: 18px;
}

.spbm-header {
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
}

.spbm-eyebrow,
.spbm-form-heading span {
    color: var(--spbm-accent-dark);
    font-family:inherit !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.spbm-header h2 {
    color: var(--spbm-ink);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0;
}

.spbm-subtitle {
    color: var(--spbm-muted);
    font-family:inherit !important;
    font-size: 16px;
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 560px;
}

.spbm-property-label,
.spbm-form label {
    color: var(--spbm-ink);
    display: flex;
    flex-direction: column;
    font-family:inherit !important;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.01em;
}

.spbm-property-label {
    min-width: 230px;
}

.spbm-layout {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(320px, 0.92fr);
}

.spbm-calendar-wrap,
.spbm-form {
    background: #ffffff;
    border: 1px solid var(--spbm-line);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(23, 35, 31, 0.07);
    min-width: 0;
}

.spbm-calendar-wrap {
    padding: clamp(18px, 3vw, 26px);
}

.spbm-calendar-toolbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.spbm-month-title {
    color: var(--spbm-ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.spbm-calendar-hint {
    color: var(--spbm-muted);
    font-family:inherit !important;
    font-size: 14px;
    margin: 0 0 18px;
}

.spbm-calendar-toolbar button,
.spbm-submit {
    background: var(--spbm-gold);
    border: 0;
    color: var(--spbm-accent-dark);
    cursor: pointer;
    font-family:inherit !important;
    font-weight: 900;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.spbm-calendar-toolbar button {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    font-size: 26px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    width: 44px;
}

.spbm-calendar-toolbar button:hover,
.spbm-submit:hover {
    background: #ffd91f;
    box-shadow: 0 12px 24px rgba(246, 197, 0, 0.28);
    transform: translateY(-1px);
}

.spbm-calendar-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.spbm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
}

.spbm-weekday {
    color: var(--spbm-muted);
    font-family:inherit !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0 0 3px;
    text-align: center;
    text-transform: uppercase;
}

.spbm-day {
    align-items: center;
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #e8e5d9;
    border-radius: 16px;
    color: var(--spbm-ink);
    cursor: pointer;
    display: inline-flex;
    font-family:inherit !important;
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.spbm-day-empty {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

.spbm-day.is-past {
    background: #f4f2ea;
    border-color: #ebe7da;
    color: #b0aa9d;
    cursor: not-allowed;
    opacity: 0.62;
}

.spbm-day:not(.spbm-day-empty):hover {
    background: var(--spbm-gold-soft);
    border-color: var(--spbm-gold);
    transform: translateY(-1px);
}

.spbm-day.is-booked {
    background: #fff1f0;
    border-color: #e7b5b0;
    color: var(--spbm-booked);
    cursor: not-allowed;
    opacity: 0.78;
    position: relative;
    text-decoration: line-through;
}

.spbm-day.is-checkout-only {
    background: var(--spbm-gold-soft);
    border-color: var(--spbm-gold);
    color: #6d4b00;
}

.spbm-day.is-selected-range,
.spbm-day.is-selected-edge {
    background: var(--spbm-gold);
    border-color: var(--spbm-gold);
    color: var(--spbm-accent-dark);
}

.spbm-day.is-selected-range {
    background: rgba(246, 197, 0, 0.32);
    color: var(--spbm-accent-dark);
}

.spbm-day.is-selected-edge {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.74);
}

.spbm-legend {
    align-items: center;
    border-top: 1px solid var(--spbm-line);
    color: var(--spbm-muted);
    flex-wrap: wrap;
    font-family:inherit !important;
    font-size: 13px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 16px;
}

.spbm-legend span {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.spbm-dot {
    border-radius: 50%;
    display: inline-block;
    height: 11px;
    width: 11px;
}

.spbm-dot-available { background: #fff9dd; border: 1px solid #efdf86; }
.spbm-dot-booked { background: var(--spbm-booked); }
.spbm-dot-selected { background: var(--spbm-gold); }

.spbm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: clamp(18px, 3vw, 26px);
}

.spbm-form-heading {
    border-bottom: 1px solid var(--spbm-line);
    padding-bottom: 14px;
}

.spbm-form-heading strong {
    display: block;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.spbm-selected-dates {
    background: #fffdf2;
    border: 1px solid rgba(246, 197, 0, 0.38);
    border-radius: 18px;
    color: var(--spbm-muted);
    flex-wrap: wrap;
    font-family:inherit !important;
    justify-content: space-between;
    padding: 15px;
}

.spbm-selected-dates span {
    flex: 1 1 130px;
    font-size: 13px;
    line-height: 1.4;
}

.spbm-selected-dates strong {
    color: var(--spbm-ink);
    display: block;
    font-size: 15px;
    margin-top: 3px;
}

.spbm-field-row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spbm-form input,
.spbm-form textarea,
.spbm-property-label select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--spbm-line);
    border-radius: 14px;
    color: var(--spbm-ink);
    font: 500 15px/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Poppins", sans-serif;
    min-height: 50px;
    outline: none;
    padding: 12px 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.spbm-form textarea {
    min-height: 108px;
    resize: vertical;
}

.spbm-form input:focus,
.spbm-form textarea:focus,
.spbm-property-label select:focus {
    border-color: var(--spbm-gold);
    box-shadow: 0 0 0 4px rgba(246, 197, 0, 0.2);
}

.spbm-submit {
    border-radius: 16px;
    font-size: 16px;
    letter-spacing: 0.02em;
    min-height: 56px;
    padding: 15px 20px;
    text-transform: uppercase;
}

.spbm-notice,
.spbm-form-error {
    border-radius: 16px;
    font-family:inherit !important;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.spbm-notice-success { background: #edf8f2; color: #1f6b44; }
.spbm-notice-error,
.spbm-form-error { background: #fff0f0; color: #9e2f2f; }

.rm-website-field {
    height: 1px !important;
    left: -9999px !important;
    overflow: hidden !important;
    position: absolute !important;
    top: auto !important;
    width: 1px !important;
}

@media (max-width: 860px) {
    .spbm-header {
        align-items: stretch;
        flex-direction: column;
    }

    .spbm-property-label {
        min-width: 0;
    }

    .spbm-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .spbm-booking {
        margin: 18px auto;
        padding: 0 8px;
    }

    .spbm-card {
        border-radius: 20px;
        padding: 14px;
    }

    .spbm-header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .spbm-header h2 {
        font-size: 30px;
    }

    .spbm-subtitle {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 8px;
    }

    .spbm-calendar-wrap,
    .spbm-form {
        border-radius: 18px;
        padding: 12px;
    }

    .spbm-calendar-wrap {
        overflow: hidden;
    }

    .spbm-calendar-toolbar {
        gap: 10px;
        margin-bottom: 6px;
    }

    .spbm-calendar-toolbar button {
        font-size: 21px;
        height: 38px;
        width: 38px;
    }

    .spbm-month-title {
        font-size: 19px;
        text-align: center;
    }

    .spbm-calendar-hint {
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .spbm-calendar-grid {
        gap: 6px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .spbm-weekday {
        font-size: 8px;
        letter-spacing: 0.05em;
    }

    .spbm-day {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        font-size: 10px;
        min-height: 0;
        padding: 0;
        width: 100%;
    }

    .spbm-field-row {
        grid-template-columns: 1fr;
    }

    .spbm-legend {
        font-size: 10px;
        gap: 9px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .spbm-selected-dates {
        gap: 8px;
        padding: 11px;
    }

    .spbm-form-heading strong {
        font-size: 22px;
    }
}


