:root {
    --lhb-primary: #5B7E5F;
    --lhb-primary-hover: #4A6A4E;
    --lhb-booked: #E8D5D5;
    --lhb-booked-text: #9B6B6B;
    --lhb-tentative: #FFF0D4;
    --lhb-tentative-text: #8A6D1B;
    --lhb-selected: #D4E7D6;
    --lhb-selected-border: #5B7E5F;
    --lhb-today-border: #C9A96E;
    --lhb-bg: #FDFBF7;
    --lhb-text: #3D3D3D;
    --lhb-text-light: #8A8A8A;
    --lhb-border: #E5E0D8;
    --lhb-radius: 8px;
    --lhb-font: inherit;
}

.lhb-widget { font-family: var(--lhb-font); color: var(--lhb-text); max-width: 720px; margin: 0 auto; padding: 2rem 0; }

.lhb-step-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; padding: 0.9rem 1.1rem 0.9rem 1rem; margin-bottom: 1.25rem; background: var(--lhb-bg); border: 1px solid var(--lhb-border); border-left: 4px solid var(--lhb-primary); border-radius: var(--lhb-radius); font-size: 0.95rem; line-height: 1.45; color: var(--lhb-text); transition: background 0.25s ease, border-color 0.25s ease; }
.lhb-step-banner__inner { display: inline; }
.lhb-step-banner strong { color: var(--lhb-primary); font-weight: 700; }
.lhb-step-banner__detail { color: var(--lhb-text-light); font-size: 0.85rem; margin-left: 0.25rem; }
.lhb-step-banner[data-state="in_progress"] { border-left-color: #C9A96E; background: #FFFBF1; }
.lhb-step-banner[data-state="in_progress"] strong { color: #8A6D1B; }
.lhb-step-banner[data-state="complete"] { border-left-color: #3D6B42; background: #EAF2EB; }
.lhb-step-banner[data-state="complete"] strong { color: #3D6B42; }
.lhb-step-banner[data-state="warning"] { border-left-color: #E0A800; background: #FFF8E6; color: #8A6D1B; }
.lhb-step-banner[data-state="error"] { border-left-color: #9B3B3B; background: #FDEDED; color: #9B3B3B; }

.lhb-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.25rem 0; padding: 0.65rem 1rem; background: var(--lhb-bg); border: 1px solid var(--lhb-border); border-radius: var(--lhb-radius); font-size: 0.8rem; justify-content: center; color: var(--lhb-text-light); }
.lhb-legend-item { display: flex; align-items: center; gap: 0.5rem; }
.lhb-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--lhb-border); }
.lhb-swatch--available { background: #fff; }
.lhb-swatch--unavailable { background: #f0ece6; border-color: #ddd4c7; }
.lhb-swatch--booked { background: var(--lhb-booked); }
.lhb-swatch--tentative { background: var(--lhb-tentative); border-color: #E8D5A0; }
.lhb-swatch--selected { background: var(--lhb-selected); border-color: var(--lhb-selected-border); }

.lhb-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding: 0 0.25rem; user-select: none; }
.lhb-nav__label { font-size: 1.1rem; font-weight: 600; color: var(--lhb-text); text-align: center; }
.lhb-nav__btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--lhb-border); border-radius: 50%; background: #fff; color: var(--lhb-text); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; }
.lhb-nav__btn:hover { background: var(--lhb-bg); border-color: var(--lhb-primary); color: var(--lhb-primary); }
.lhb-nav__btn:active { transform: scale(0.92); }
.lhb-nav__btn--disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.lhb-swipe-hint { text-align: center; font-size: 0.75rem; color: var(--lhb-text-light); margin: -0.5rem 0 0.75rem; font-style: italic; }

.lhb-months-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1rem; transition: opacity 0.2s ease, transform 0.2s ease; }
.lhb-slide-left { opacity: 0; transform: translateX(-20px); }
.lhb-slide-right { opacity: 0; transform: translateX(20px); }

.lhb-month { background: #fff; border: 1px solid var(--lhb-border); border-radius: var(--lhb-radius); padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.lhb-month__title { text-align: center; font-size: 1rem; font-weight: 600; margin: 0 0 1rem 0; color: var(--lhb-text); }
.lhb-month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lhb-day-header { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--lhb-text-light); padding: 0.25rem 0; text-transform: uppercase; letter-spacing: 0.05em; }

.lhb-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.875rem; border-radius: 6px; cursor: pointer; transition: all 0.15s ease; position: relative; border: 2px solid transparent; -webkit-tap-highlight-color: transparent; }
.lhb-day__number { display: block; font-weight: 600; }
.lhb-day__price { display: block; font-size: 0.65rem; color: var(--lhb-primary); font-weight: 600; margin-top: 2px; line-height: 1; }
.lhb-day:hover:not(.lhb-day--booked):not(.lhb-day--tentative):not(.lhb-day--past):not(.lhb-day--empty):not(.lhb-day--too-short):not(.lhb-day--unavailable) { background: var(--lhb-selected); border-color: var(--lhb-selected-border); }
@media (hover: none) {
    .lhb-day:hover:not(.lhb-day--booked):not(.lhb-day--tentative):not(.lhb-day--past):not(.lhb-day--empty):not(.lhb-day--too-short):not(.lhb-day--unavailable) { background: transparent; border-color: transparent; }
    .lhb-day:active:not(.lhb-day--booked):not(.lhb-day--tentative):not(.lhb-day--past):not(.lhb-day--empty):not(.lhb-day--too-short):not(.lhb-day--unavailable) { background: var(--lhb-selected); border-color: var(--lhb-selected-border); }
}
.lhb-day--empty { cursor: default; }
.lhb-day--past { color: var(--lhb-text-light); opacity: 0.4; cursor: not-allowed; }
.lhb-day--today { border-color: var(--lhb-today-border); font-weight: 700; }
.lhb-day--booked { background: var(--lhb-booked); color: var(--lhb-booked-text); cursor: not-allowed; text-decoration: line-through; }
.lhb-day--tentative { background: var(--lhb-tentative); color: var(--lhb-tentative-text); cursor: not-allowed; }
.lhb-day--unavailable { background: #f0ece6; color: #9a8f80; cursor: not-allowed; opacity: 0.65; pointer-events: none; }
.lhb-day--selected { background: var(--lhb-primary) !important; border-color: var(--lhb-primary) !important; color: #fff !important; font-weight: 700; }
.lhb-day--selected .lhb-day__price { color: rgba(255, 255, 255, 0.85); }
.lhb-day--range { background: #EAF2EB !important; border-color: transparent !important; }
.lhb-day.lhb-day--range-preview { background: #EAF2EB !important; border-color: transparent !important; opacity: 1 !important; }
.lhb-day.lhb-day--range-preview-invalid { background: #f5f0ea !important; border-color: transparent !important; opacity: 0.5 !important; }
.lhb-day--checkin { border-radius: 6px 0 0 6px; }
.lhb-day--checkout { border-radius: 0 6px 6px 0; }
.lhb-day--too-short { opacity: 0.35; cursor: not-allowed; background: #f5f0ea !important; }

.lhb-notice { padding: 0.75rem 1.25rem; border-radius: var(--lhb-radius); font-size: 0.875rem; margin: 0.75rem 0; animation: lhb-fade-in 0.25s ease; }
.lhb-notice--info { background: #EAF2EB; color: #3D6B42; border: 1px solid #C5DECA; }
.lhb-notice--warning { background: #FFF8E6; color: #8A6D1B; border: 1px solid #F0DFA0; }
.lhb-notice--error { background: #FDEDED; color: #9B3B3B; border: 1px solid #F0C5C5; }
@keyframes lhb-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.lhb-summary { background: var(--lhb-bg); border: 2px solid var(--lhb-selected-border); border-radius: var(--lhb-radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.lhb-summary h4 { margin: 0 0 0.75rem 0; color: var(--lhb-primary); font-size: 1rem; }
.lhb-summary p { margin: 0 0 1rem 0; line-height: 1.8; }
.lhb-summary__lines { margin: 0 0 1rem 0; line-height: 1.8; }
.lhb-summary__lines > div { display: block; }
#lhb-pricing-breakdown { margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd; }
#lhb-pricing-breakdown p { margin: 0.5rem 0; font-size: 0.95rem; }
#lhb-pricing-breakdown strong { font-weight: 700; }
#lhb-cleaning-fee-line { color: var(--lhb-text); }
#lhb-discount-line { color: var(--lhb-text); }
#lhb-price-discount { color: #16A34A; font-weight: 700; }
#lhb-price-total { color: var(--lhb-primary); font-weight: 700; font-size: 1.15em; }

.lhb-btn { display: inline-block; padding: 0.65rem 1.5rem; font-size: 0.9rem; font-weight: 600; border: none; border-radius: var(--lhb-radius); cursor: pointer; transition: all 0.2s ease; text-decoration: none; margin-right: 0.5rem; -webkit-tap-highlight-color: transparent; }
.lhb-btn--primary { background: var(--lhb-primary); color: #fff; }
.lhb-btn--primary:hover { background: var(--lhb-primary-hover); }
.lhb-btn--secondary { background: #fff; color: var(--lhb-text); border: 1px solid var(--lhb-border); }
.lhb-btn--secondary:hover { background: #f5f5f5; }
.lhb-btn--small { padding: 0.45rem 1rem; font-size: 0.8rem; }

#lhb-discount-code-section label { display: block; margin-bottom: 0.5rem; }
#lhb-discount-code-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }
#lhb-discount-message { font-weight: 500; }

.lhb-loading { text-align: center; color: var(--lhb-text-light); font-style: italic; padding: 3rem 0; grid-column: 1 / -1; }
.lhb-sync-note { text-align: center; color: var(--lhb-text-light); margin-top: 0.5rem; }

@media (max-width: 639px) {
    .lhb-widget { padding: 1rem 0; }
    .lhb-months-wrapper { grid-template-columns: 1fr; gap: 0; }
    .lhb-month { border-radius: var(--lhb-radius); padding: 1rem 0.75rem; }
    .lhb-day { font-size: 0.95rem; min-height: 44px; }
    .lhb-day__price { font-size: 0.6rem; margin-top: 1px; }
    .lhb-legend { gap: 1rem; font-size: 0.8rem; padding: 0.5rem 0.75rem; }
    .lhb-summary { text-align: center; padding: 1rem; }
    .lhb-btn { display: block; width: 100%; margin: 0.5rem 0; padding: 0.85rem 1.5rem; }
    .lhb-notice { font-size: 0.8rem; padding: 0.65rem 1rem; }
    .lhb-nav__label { font-size: 1rem; }
    #lhb-pricing-breakdown p { font-size: 0.9rem; }
}
@media (min-width: 640px) and (max-width: 900px) {
    .lhb-months-wrapper { gap: 1rem; }
    .lhb-month { padding: 1rem; }
}
