/* Shared branded booking controls: used on the booking page and room pages. */
.mohar-booking-control__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.mohar-booking-control__label {
    display: block;
    margin: 0 0 2px;
    color: var(--text-secondary, #2C2C2C);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.mohar-booking-control__date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #D8D0C3;
    border-radius: 10px;
    background: #FFFDFA;
    color: #2C2C2C;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mohar-booking-control__date-trigger:hover,
.mohar-booking-control__guest-button:hover:not(:disabled) {
    border-color: var(--color-primary, #365C46);
}

.mohar-booking-control__date-trigger:focus-visible,
.mohar-booking-control__guest-button:focus-visible,
.mohar-booking-calendar button:focus-visible {
    outline: 2px solid var(--color-primary, #365C46);
    outline-offset: 2px;
}

.mohar-booking-control__date-trigger[aria-expanded="true"] {
    border-color: var(--color-primary, #365C46);
    box-shadow: 0 0 0 3px rgb(54 92 70 / 10%);
}

.mohar-booking-control__date-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mohar-booking-control__date-text.is-placeholder {
    color: #77736D;
}

.mohar-booking-control__date-trigger svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .8;
}

.mohar-booking-control__guest-stepper {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border: 1px solid #D8D0C3;
    border-radius: 10px;
    background: #FFFDFA;
    overflow: hidden;
}

.mohar-booking-control__guest-button {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary, #365C46);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.mohar-booking-control__guest-button:hover:not(:disabled) {
    background: #EAF0EA;
}

.mohar-booking-control__guest-button:disabled {
    color: #B8B2A9;
    cursor: not-allowed;
}

.mohar-booking-control__guest-value {
    display: block;
    min-width: 0;
    padding: 0 4px;
    color: #2C2C2C;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.mohar-booking-calendar[hidden] { display: none !important; }

.mohar-booking-calendar {
    position: fixed;
    z-index: 999999;
    width: 344px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    border: 1px solid #D8D0C3;
    border-radius: 16px;
    background: #FFFDFA;
    color: #2C2C2C;
    box-shadow: 0 18px 50px rgb(37 32 24 / 18%);
    font-family: var(--font-body, Inter, sans-serif);
}

.mohar-booking-calendar__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.mohar-booking-calendar__month {
    margin: 0;
    color: #2C2C2C;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.mohar-booking-calendar__nav {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary, #365C46);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.mohar-booking-calendar__nav:hover:not(:disabled) {
    border-color: #D8D0C3;
    background: #F3EFE7;
}
.mohar-booking-calendar__nav:disabled { color: #C9C3B9; cursor: not-allowed; }

.mohar-booking-calendar__weekdays,
.mohar-booking-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.mohar-booking-calendar__weekdays { margin-bottom: 5px; }
.mohar-booking-calendar__weekdays span {
    padding-block: 7px;
    color: #7B7B7B;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.mohar-booking-calendar__day,
.mohar-booking-calendar__empty {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #2C2C2C;
    font: inherit;
    font-size: 13px;
    line-height: 1;
}

.mohar-booking-calendar__day { cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.mohar-booking-calendar__day:hover:not(:disabled):not(.is-selected) { background: #EAF0EA; }
.mohar-booking-calendar__day.is-today:not(.is-selected) { border-color: #A9B9AA; font-weight: 700; }
.mohar-booking-calendar__day.is-in-range { border-radius: 7px; background: #EAF0EA; }
.mohar-booking-calendar__day.is-selected {
    border-color: var(--color-primary, #365C46);
    background: var(--color-primary, #365C46);
    color: #FFFFFF;
    font-weight: 700;
}
.mohar-booking-calendar__day:disabled { color: #C4BEB5; cursor: not-allowed; }

.mohar-booking-calendar__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E6E0D5;
}
.mohar-booking-calendar__hint { margin: 0; color: #6F6A62; font-size: 12px; line-height: 1.4; }
.mohar-booking-calendar__clear {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-primary, #365C46);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.mohar-booking-calendar__clear:hover { background: #EAF0EA; }

@media (max-width: 480px) {
    .mohar-booking-calendar { padding: 13px; }
    .mohar-booking-control__date-trigger,
    .mohar-booking-control__guest-stepper { min-height: 52px; }
}
